.contact-section {
    padding: 40px 0;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 48px;
}

.contact-title {
    color: black;
    font-size: 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    line-height: 44px;
    margin: 0 0 8px 0;
}

.contact-description {
    color: #828282;
    font-size: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.10);
    border: 1px #F7F7F7 solid;
    transition: box-shadow 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 0 30px rgba(147, 211, 9, 0.4);
}

.form-group-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: black;
    margin-bottom: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    line-height: 28px;
}

.required {
    color: #93D309;
    margin-left: 4px;
    font-size: 18px;
    line-height: 1;
}

.optional {
    color: #828282;
    font-size: 16px;
    margin-left: 8px;
    font-weight: normal;
}

.form-input,
.form-textarea {
    padding: 16px;
    border: 1px solid #F7F7F7;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    transition: all 0.3s ease;
    background-color: white;
    width: 100%;
    color: #3C3C3C;
    line-height: 28px;
    box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.10);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #828282;
    opacity: 0.8;
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
}

.form-input:hover,
.form-textarea:hover {
    border-color: #93D309;
    box-shadow: 0 0 30px rgba(147, 211, 9, 0.4);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #93D309;
    box-shadow: 0 0 30px rgba(147, 211, 9, 0.4);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 16px;
    margin-top: 8px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message:not(:empty)::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.form-status {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    line-height: 28px;
    font-family: 'Space Grotesk', sans-serif;
}

.form-status.success {
    background-color: rgba(147, 211, 9, 0.1);
    color: black;
    border: 1px solid #93D309;
}

.form-status.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.form-submit {
    margin-top: 32px;
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #93D309;
    border: none;
    color: white;
    box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.10);
}

.form-submit:hover {
    box-shadow: 0 0 30px rgba(147, 211, 9, 0.4);
}

.form-submit:active {
    transform: translateY(2px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-submit.loading .button-text {
    opacity: 0;
}

.form-submit.loading .button-loader {
    display: block;
    position: absolute;
}

@media (min-width: 768px) {
    .form-group-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group:last-child {
        grid-column: span 2;
    }
}

/* Verbesserte Fokus-Sichtbarkeit für Barrierefreiheit */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-submit:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High Contrast Mode Unterstützung */
@media (forced-colors: active) {
    .form-input,
    .form-textarea,
    .form-submit {
        border: 2px solid ButtonText;
    }
    
    .form-input:focus,
    .form-textarea:focus,
    .form-submit:focus {
        outline: 2px solid ButtonText;
    }

    .error-message::before {
        background-color: Mark;
        color: MarkText;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-input,
    .form-textarea,
    .form-submit,
    .button-loader {
        transition: none;
    }

    .button-loader {
        animation: none;
    }

    .form-submit:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* .contact-section {
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(147,211,9,0.03) 100%);
    } */

    .contact-form {
        background: rgba(255,255,255,0.03);
        backdrop-filter: blur(20px);
        border-color: rgba(255,255,255,0.1);
    }

    .form-input,
    .form-textarea {
        background-color: rgba(255,255,255,0.03);
        border-color: rgba(255,255,255,0.2);
        color: var(--text-primary);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: rgba(255,255,255,0.5);
    }

    .form-input:hover,
    .form-textarea:hover {
        background-color: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.35);
    }

    .form-input:focus,
    .form-textarea:focus {
        background-color: rgba(255,255,255,0.07);
        border-color: var(--accent-color);
        border-width: 2px;
        box-shadow:
            0 0 0 3px rgba(147, 211, 9, 0.15),
            inset 0 2px 4px rgba(0,0,0,0.1);
    }

    .form-submit {
        background: linear-gradient(
            45deg,
            var(--accent-color) 0%,
            rgba(147, 211, 9, 0.8) 100%
        );
    }

    .form-status.success {
        background-color: rgba(147, 211, 9, 0.1);
        border-color: rgba(147, 211, 9, 0.2);
    }

    .form-status.error {
        background-color: rgba(220, 53, 69, 0.1);
        border-color: rgba(220, 53, 69, 0.2);
    }
}

/* Responsive Improvements */
@media (min-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-title {
        font-size: 40px;
        margin-bottom: 2rem;
    }

    .contact-description {
        font-size: 20px;
    }

    .contact-form {
        padding: 4rem;
    }

    .form-group-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .form-group:last-child {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 5rem 0;
    }

    .contact-form {
        padding: 5rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-section .container {
        padding: 0 16px;
    }

    .contact-intro {
        margin-bottom: 24px;
    }

    .contact-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 8px;
    }

    .contact-description {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .form-label {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .required {
        font-size: 16px;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        line-height: 24px;
        padding: 12px;
    }

    .form-status {
        font-size: 16px;
        line-height: 24px;
        padding: 12px;
        margin: 16px 0;
    }

    .form-submit {
        font-size: 16px;
        line-height: 24px;
        padding: 12px 24px;
        margin-top: 24px;
    }
}