/* Keep the continuous closing background; light is confined to the form area. */
.contact.contact--refined::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 48% at 50% 56%, rgba(42,112,153,.12), transparent 100%);
}
.contact--refined .contact-header { margin-bottom: 2.5rem; }
.contact--refined .contact-header::before {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, #a2d9f4, transparent);
}
.contact--refined .contact-header h2 {
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #e4f1fc;
    background: linear-gradient(175deg, #f8fcff, #c0d9ec);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    text-shadow: none;
}
.contact--refined .contact-lede { color: #aebdce; font-size: 1rem; max-width: 35rem; }
.contact--refined .contact-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 760px;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(19,38,56,.8), rgba(9,18,32,.94) 65%);
    border: 1px solid rgba(155,194,220,.22);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.2), inset 0 1px 0 rgba(206,233,250,.06);
}
.contact--refined .contact-form::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #89ccec, transparent);
    box-shadow: 0 -2px 14px rgba(103,201,246,.2);
    pointer-events: none;
}
.contact--refined .form-group { margin: 0; min-width: 0; }
.contact--refined .form-group--wide { grid-column: 1 / -1; }
.contact--refined label {
    display: block;
    margin-bottom: .625rem;
    color: #b8d1e3;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.contact--refined input, .contact--refined textarea {
    display: block;
    border: 1px solid rgba(138,174,201,.22);
    border-radius: 5px;
    padding: .9rem 1rem;
    background: rgba(4,12,24,.65);
    color: #edf5fc;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact--refined input { min-height: 52px; }
.contact--refined textarea { resize: vertical; min-height: 150px; }
.contact--refined input::placeholder, .contact--refined textarea::placeholder { color: #879bad; }
.contact--refined input:hover, .contact--refined textarea:hover { border-color: rgba(138,190,221,.4); }
.contact--refined input:focus, .contact--refined textarea:focus {
    border-color: #8acceb;
    background: rgba(12,29,45,.9);
    box-shadow: 0 0 0 3px rgba(91,182,226,.09), 0 0 22px rgba(69,159,202,.06);
    outline: none;
}
.contact-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: .5rem;
}
.contact-form__note { font-size: .75rem; line-height: 1.6; color: #95aabd; max-width: 15rem; margin: 0; }
.contact--refined .contact-submit {
    /* The shared submit-button class supplies the original liquid-glass finish. */
    width: auto;
    min-width: 158px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .9rem 1.25rem;
    font-size: .875rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}
.contact--refined .contact-submit:focus-visible { outline: 2px solid #d5edff; outline-offset: 4px; }
.contact-form__status { grid-column: 1 / -1; margin: 0; color: #c4deed; font-size: .875rem; line-height: 1.6; }
@media (max-width: 540px) {
    .contact--refined .contact-form { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; gap: 1.25rem; }
    .contact-form__actions { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
    .contact--refined .contact-submit { width: 100%; }
    .contact-form__note { max-width: none; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .contact--refined input, .contact--refined textarea, .contact--refined .contact-submit { transition: none; }
    .contact--refined .contact-submit { transition: none !important; }
    .contact--refined .contact-submit:hover { transform: none !important; }
}
