.contact-section {
    width: 100%;
    max-width: var(--content-max-reading);
    margin-inline: auto;
    padding: 2rem;
    background: var(--card);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    font-family: var(--font-family);
}

.contact-section .section-header {
    margin-bottom: 1rem;
}

.contact-section .section-header__title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-section .section-header__subtitle {
    margin-bottom: 0;
}

.contact-section .section-meta {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--fg);
}

input,
textarea {
    border: 1px solid rgb(0, 0, 0);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--fg-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.btn-submit {
    background: var(--bg);
    color: var(--fg);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: center;
    transition: transform var(--hover-duration) var(--hover-ease), background var(--hover-duration) var(--hover-ease), color var(--hover-duration) var(--hover-ease);
}

.btn-submit:hover {
    background: var(--acc);
    color: var(--fg-dark);
    transform: translateY(var(--hover-lift-button));
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .contact-section {
        margin-inline: 1rem;
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .contact-section {
        margin-inline: 0.5rem;
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    input,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        margin-inline: 0;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .form-row {
        gap: 0.75rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .btn-submit {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .contact-section .section-header__subtitle {
        margin-inline: 0;
    }
}