.contact-page {
    position: relative;
    overflow-x: clip;
    padding-top: 124px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(229, 168, 184, .16), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(200, 218, 185, .18), transparent 30%),
        linear-gradient(180deg, #faf6f4 0%, #f5f1ee 100%);
}

.contact-page::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: -200px;
    right: -160px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(229, 168, 184, .18), rgba(229, 168, 184, 0));
    pointer-events: none;
    z-index: 0;
}

.contact-section {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

.contact-copy {
    padding-top: 8px;
}

.contact-lead {
    margin-top: 18px;
    max-width: 48ch;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.contact-details {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .9rem;
    color: var(--muted);
}

.contact-detail-item a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(23, 20, 20, .22);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}

.contact-detail-item a:hover {
    text-decoration-color: rgba(23, 20, 20, .7);
}

/* Form card */
.contact-form-card {
    background: #fff;
    border-radius: 28px;
    padding: clamp(24px, 3.2vw, 40px);
    border: 1px solid rgba(23, 20, 20, .08);
    box-shadow:
        0 24px 56px rgba(23, 20, 20, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* Notice */
.contact-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .88rem;
    line-height: 1.6;
}

.contact-notice--success {
    background: rgba(106, 153, 85, .10);
    border: 1px solid rgba(106, 153, 85, .28);
    color: #3a6628;
}

.contact-notice--error {
    background: rgba(196, 78, 78, .08);
    border: 1px solid rgba(196, 78, 78, .24);
    color: #8b2a2a;
}

/* Form fields */
.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 7px;
    color: rgba(23, 20, 20, .72);
}

.contact-form-field {
    width: 100%;
    padding: 0 16px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(23, 20, 20, .13);
    background: rgba(255, 255, 255, .9);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .22s ease, box-shadow .22s ease;
    outline: none;
}

.contact-form-field:focus {
    border-color: rgba(23, 20, 20, .32);
    box-shadow: 0 0 0 3px rgba(229, 168, 184, .28);
}

.contact-form-field:focus-visible {
    border-color: rgba(23, 20, 20, .32);
    box-shadow: 0 0 0 3px rgba(229, 168, 184, .28);
}

.contact-form-field.is-invalid {
    border-color: rgba(196, 78, 78, .55);
    box-shadow: 0 0 0 3px rgba(196, 78, 78, .10);
}

.contact-form-textarea {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    min-height: 130px;
}

.contact-form-error {
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .8rem;
    color: #b03434;
    display: none;
}

.contact-form-error.is-visible {
    display: block;
}

.contact-form-submit {
    margin-top: 4px;
    width: 100%;
}

.contact-form-submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.contact-form-submit.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 860px) {
    .contact-page {
        padding-top: 110px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        padding-top: 0;
    }

    .contact-lead {
        max-width: 100%;
    }

    .contact-details {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .contact-page {
        padding-top: 96px;
    }

    .contact-section {
        padding-bottom: 48px;
    }

    .contact-form-card {
        padding: 20px;
        border-radius: 20px;
    }
}
