/* ========================================
   CONTACT PAGE - Specific Styles
   ======================================== */

/* Contact Hero */
.contact-hero {
    min-height: 310px;
    background: #092d59;
    color: #fff
}

.contact-hero .page-hero-media {
    width: 100%;
    opacity: .72
}

.contact-hero::before {
    background: linear-gradient(90deg, rgba(4, 34, 63, .92), rgba(4, 34, 63, .65) 48%, rgba(4, 34, 63, .35) 100%)
}

.contact-hero h1 {
    color: #fff
}

.contact-hero .hero-copy {
    color: #edf7ff;
    max-width: 620px
}

.contact-hero .hero-content {
    width: 65%
}

/* Contact Info Strip */
.contact-strip {
    margin-top: 0;
    padding: 1rem 0;
    background: #fff
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f3faff;
    border: 1px solid #e4f1fa;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 70, 120, .05);
    overflow: hidden
}

.contact-info {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 1.8rem
}

.contact-info:not(:last-child) {
    border-right: 1px solid #dcecf7
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2f3ff;
    color: var(--blue);
    flex: none
}

.contact-icon .i {
    width: 23px
}

.contact-info strong {
    display: block;
    font-family: var(--head);
    color: #092d59
}

.contact-info a,
.contact-info span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5
}

.contact-info span.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Contact Main Section */
.contact-main {
    padding: 5.5rem 0
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center
}

.contact-copy h2 {
    font-family: var(--head);
    font-size: clamp(2rem, 1.3rem + 1.7vw, 3rem);
    line-height: 1.1;
    color: #092d59;
    max-width: 600px;
    margin-bottom: .8rem
}

.contact-copy>p {
    color: var(--muted);
    max-width: 570px;
    line-height: 1.7
}

/* Contact Form */
.contact-form {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem
}

.contact-form .btn {
    width: max-content
}

.form-note {
    font-size: .75rem;
    color: #718398;
    margin-top: .4rem
}

/* Contact Visual */
.contact-visual {
    position: relative
}

.contact-visual::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -22px;
    width: 92%;
    height: 90%;
    background: #078af0;
    border-radius: 25px;
    transform: rotate(-8deg);
    z-index: 0
}

.contact-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1.2/1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(7, 62, 111, .15)
}

.help-card {
    position: absolute;
    z-index: 2;
    left: 8%;
    bottom: -28px;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    box-shadow: 0 18px 42px rgba(4, 65, 118, .16);
    display: flex;
    gap: .7rem;
    align-items: center
}

.help-card .i {
    width: 35px;
    height: 35px;
    color: var(--blue)
}

.help-card strong {
    display: block;
    font-family: var(--head);
    color: #092d59
}

.help-card span {
    display: block;
    color: var(--muted);
    font-size: .8rem
}

/* Map Section */
.map-section {
    background: #f0faff;
    padding: 5rem 0
}

.map-wrap {
    margin-top: 2rem;
    border: 8px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(7, 57, 99, .1)
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0
}

/* Responsive */
@media(max-width:899px) {
    .contact-hero::before {
        background: linear-gradient(90deg, #03284f 0%, rgba(3, 45, 85, .88) 58%, rgba(3, 45, 85, .62) 100%)
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .contact-info-grid {
        grid-template-columns: 1fr
    }

    .contact-info:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #dcecf7
    }

    .contact-main {
        padding: 4rem 0
    }

    .map-wrap iframe {
        height: 360px
    }
}

@media(max-width:599px) {
    .contact-hero .hero-content {
        width: 100%
    }

    .contact-form {
        grid-template-columns: 1fr
    }

    .contact-visual {
        margin-top: 1rem
    }

    .contact-info {
        padding: 1.25rem
    }

    .map-wrap iframe {
        height: 300px
    }
}

/* ── Form validation styles ───────────────────────────────────────────────── */
.field--error input,
.field--error textarea {
    border-color: #e53e3e !important;
    background: #fff8f8
}

.field-error {
    color: #c53030;
    font-size: .8125rem;
    margin: -.3rem 0 .3rem;
    padding: 0;
    grid-column: 1 / -1
}

.contact-form .field.full {
    grid-column: 1 / -1
}

/* ── Submit button spinner ────────────────────────────────────────────────── */
.contact-submit {
    position: relative;
    transition: opacity .2s, transform .25s ease, box-shadow .25s ease
}

.contact-submit:disabled {
    opacity: .72;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important
}

/* Spinner element — CSS-only, no extra library */
.btn-spinner {
    display: none;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
    flex-shrink: 0
}

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

/* Hide arrow while loading, show spinner */
.contact-submit.is-loading .btn-arrow {
    display: none
}

.contact-submit.is-loading .btn-spinner {
    display: inline-block !important
}
