
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 95px;
    background-image:
        linear-gradient(180deg, rgba(8, 26, 56, 0.35) 0%, rgba(8, 26, 56, 0.68) 100%),
        var(--contact-hero-image);
    background-position: center 10% !important;
    background-size: cover !important;
    background-repeat: no-repeat;
    transform-origin: center top;
    text-align: center;
    animation: contactHeroZoom 9s ease-out forwards;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   Contact Hero
========================== */

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 255, 255, 0.08),
            transparent 55%
        );
    pointer-events: none;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-hero .eyebrow {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2b544;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(25px);
    animation: contactHeroFade 0.7s ease forwards 0.2s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.contact-hero h1 {
    opacity: 0;
    transform: translateY(35px);
    animation: contactHeroFade 0.8s ease forwards 0.4s;
    font-size: clamp(28px, 3.4vw, 42px) !important;
    line-height: 1.25;
    max-width: 800px;
    margin: 10px auto 16px auto;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

@keyframes contactHeroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contactHeroZoom {
    from {
        background-size: 108% auto;
    }

    to {
        background-size: 100% auto;
    }
}

/* =========================
   Scroll Reveal
========================== */

.contact-reveal,
.contact-reveal-left,
.contact-reveal-right,
.contact-reveal-scale {
    opacity: 0;
    will-change: opacity, transform;
}

.contact-reveal {
    transform: translateY(45px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.contact-reveal-left {
        transform: translateX(-60px);
        transition:
            opacity 0.9s ease,
            transform 0.9s ease;
    }

    .contact-reveal-right {
        transform: translateX(60px);
        transition:
            opacity 0.9s ease,
            transform 0.9s ease;
    }

    .contact-reveal-scale {
        transform: scale(0.9);
        transition:
            opacity 0.8s ease,
            transform 0.8s ease;
    }

    .contact-reveal.active,
    .contact-reveal-left.active,
    .contact-reveal-right.active,
    .contact-reveal-scale.active {
        opacity: 1;
        transform: translate(0) scale(1);
    }

    .contact-delay-1 {
        transition-delay: 0.08s;
    }

    .contact-delay-2 {
        transition-delay: 0.16s;
    }

    .contact-delay-3 {
        transition-delay: 0.24s;
    }

    .contact-delay-4 {
        transition-delay: 0.32s;
    }

    /* =========================
       Contact Layout
    ========================== */

    .contact-page-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 55px;
        align-items: start;
    }

    .contact-page-heading {
        width: 100%;
        margin-bottom: 38px;
        text-align: center;
    }

    .contact-page-heading > .eyebrow,
    .contact-page-heading > h2 {
        display: block;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }

    .contact-page-heading > p {
        width: 100%;
        margin: 0;
        color: #142033;
        line-height: 1.9;
        text-align: justify;
    }

    /* =========================
       Contact Information
    ========================== */

    .contact-information-list {
        display: grid;
        gap: 18px;
        margin-top: 0;
    }

    .contact-page-item {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid rgba(9, 30, 65, 0.08);
        border-radius: 20px;
        box-shadow: 0 14px 35px rgba(9, 30, 65, 0.08);
        transition:
            transform 0.35s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease;
    }

    .contact-page-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: #0a2248;
        transition: height 0.35s ease;
    }

    .contact-page-item:hover {
        transform: translateX(8px);
        border-color: rgba(9, 30, 65, 0.18);
        box-shadow: 0 14px 32px rgba(9, 30, 65, 0.12);
    }

    .contact-page-item:hover::after {
        height: 100%;
    }

    .contact-page-item > i {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        color: #ffffff;
        font-size: 19px;
        background: #0a2248;
        border-radius: 13px;
        box-shadow: 0 9px 20px rgba(10, 34, 72, 0.18);
        transition:
            transform 0.35s ease,
            border-radius 0.35s ease;
    }

    .contact-page-item:hover > i {
        transform: scale(1.08) rotate(-5deg);
        border-radius: 50%;
    }

    .contact-page-item strong {
        display: block;
        margin-bottom: 5px;
        color: #0a2248;
        font-size: 16px;
    }

    .contact-page-item p {
        margin: 0;
        color: #687386;
        line-height: 1.65;
        text-align: left;
        text-justify: auto;
    }

    .contact-page-item a {
        color: inherit;
        text-decoration: none;
        word-break: break-word;
        transition: color 0.3s ease;
    }

    .contact-page-item a:hover {
        color: #0a2248;
    }

    /* =========================
       Contact Form Panel
    ========================== */

    .contact-form-panel {
        position: relative;
        overflow: hidden;
        padding: 35px;
        background:
            linear-gradient(
                145deg,
                #0a2248,
                #123a75
            );
        border-radius: 22px;
        box-shadow: 0 22px 55px rgba(9, 30, 65, 0.2);
        transition:
            transform 0.4s ease,
            box-shadow 0.4s ease;
    }

    .contact-form-panel::before {
        content: '';
        position: absolute;
        top: -90px;
        right: -90px;
        width: 220px;
        height: 220px;
        background: rgba(255, 255, 255, 0.07);
        border-radius: 50%;
        transition: transform 0.5s ease;
    }

    .contact-form-panel::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -100px;
        width: 240px;
        height: 240px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .contact-form-panel:hover {
        transform: translateY(-7px);
        box-shadow: 0 28px 65px rgba(9, 30, 65, 0.28);
    }

    .contact-form-panel:hover::before {
        transform: scale(1.18);
    }

    .contact-form-panel > * {
        position: relative;
        z-index: 2;
    }

    .contact-form-panel h3 {
        margin: 0 0 8px;
        color: #ffffff;
        font-size: 27px;
    }

    main .contact-form-panel .contact-form-intro {
        margin: 0 0 25px;
        color: #ffffff !important;
        line-height: 1.7;
        text-align: justify;
    }

    .contact-form {
        display: grid;
        gap: 18px;
    }

    .contact-form-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .contact-form label {
        display: grid;
        gap: 8px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
    }

    .contact-form label span {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 14px 15px;
        color: #162033;
        font-family: inherit;
        font-size: 15px;
        background: #ffffff;
        border: 2px solid transparent;
        border-radius: 11px;
        outline: none;
        transition:
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            transform 0.3s ease;
    }

    .contact-form textarea {
        min-height: 135px;
        resize: vertical;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: #929baa;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #f2bd55;
        box-shadow: 0 0 0 4px rgba(242, 189, 85, 0.18);
        transform: translateY(-2px);
    }

    .contact-form .input-error {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
    }

    .contact-form .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        gap: 9px;
        width: auto;
        margin-top: 3px;
        padding: 14px 20px;
        border: 0;
        cursor: pointer;
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            opacity 0.3s ease;
    }

    .contact-form .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 27px rgba(0, 0, 0, 0.22);
    }

    .contact-form .btn:disabled {
        cursor: not-allowed;
        opacity: 0.75;
        transform: none;
    }

    .contact-form .btn i {
        transition: transform 0.3s ease;
    }

    .contact-form .btn:hover i:not(.fa-spinner) {
        transform: translateX(5px);
    }

    /* =========================
       Messages
    ========================== */

    .contact-form-message {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 13px 15px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.6;
        border-radius: 9px;
    }

    .contact-form-message i {
        margin-top: 4px;
    }

    .contact-form-message.success {
        background: rgba(32, 174, 101, 0.24);
        border: 1px solid rgba(95, 226, 158, 0.5);
    }

    .contact-form-message.error {
        background: rgba(220, 53, 69, 0.24);
        border: 1px solid rgba(255, 125, 137, 0.5);
    }

    .contact-form-message ul {
        margin: 7px 0 0;
        padding-left: 18px;
    }

    /* =========================
       Map Section
    ========================== */

    .contact-map-section {
        background: #f7f9fc;
    }

    .contact-map-heading {
        max-width: 700px;
        margin: 0 auto 38px;
        text-align: center;
    }

    .contact-map-wrapper {
        position: relative;
        padding: 10px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid rgba(9, 30, 65, 0.09);
        border-radius: 20px;
        box-shadow: 0 18px 45px rgba(9, 30, 65, 0.11);
        transition:
            transform 0.4s ease,
            box-shadow 0.4s ease;
    }

    .contact-map-wrapper:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 60px rgba(9, 30, 65, 0.17);
    }

    .contact-map-wrapper iframe {
        display: block;
        width: 100%;
        height: 450px;
        border: 0;
        border-radius: 13px;
    }

    .map-location-chip {
        position: absolute;
        top: 28px;
        left: 28px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 11px 16px;
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        background: rgba(9, 30, 65, 0.88);
        border-radius: 30px;
        box-shadow: 0 10px 25px rgba(9, 30, 65, 0.2);
        backdrop-filter: blur(8px);
    }

    .map-location-chip i {
        color: #f2bd55;
    }

    /* =========================
       Responsive
    ========================== */

    @media (min-width: 992px) {
        .contact-page-grid {
            align-items: stretch;
        }

        .contact-page-details,
        .contact-information-list {
            height: 100%;
        }

        .contact-information-list {
            grid-template-rows: repeat(4, minmax(0, 1fr));
        }

        .contact-page-item {
            align-items: center;
        }

        .contact-page-heading > p {
            text-align: center;
        }

        .contact-form-panel {
            padding: 29px 32px;
        }

        main .contact-form-panel .contact-form-intro {
            margin-bottom: 20px;
        }

        .contact-form {
            gap: 14px;
        }

        .contact-form input,
        .contact-form textarea {
            padding-top: 12px;
            padding-bottom: 12px;
        }

        .contact-form textarea {
            min-height: 118px;
        }

        .contact-form .btn {
            padding-top: 12px;
            padding-bottom: 12px;
        }
    }

    @media (max-width: 991px) {
        .contact-page-heading > p,
        main .contact-form-panel .contact-form-intro {
            text-align: justify;
            text-align-last: justify;
            hyphens: auto;
        }

        .contact-page-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .contact-form-panel {
            max-width: 720px;
        }
    }

    @media (max-width: 768px) {
        .contact-hero {
            background-size: auto 112%;
            background-position: center top;
            animation: none;
        }

        .contact-reveal-left,
        .contact-reveal-right {
            transform: translateY(40px);
        }

        .contact-reveal-left.active,
        .contact-reveal-right.active {
            transform: translateY(0);
        }

        .contact-form-panel {
            padding: 28px 23px;
        }

        .contact-form-row {
            grid-template-columns: 1fr;
        }

        .contact-map-wrapper iframe {
            height: 380px;
        }

        @keyframes contactHeroZoom {
            from {
                background-size: cover;
            }

            to {
                background-size: cover;
            }
        }
    }

    @media (max-width: 575px) {
        .contact-page-item {
            padding: 17px;
        }

        .contact-page-item > i {
            width: 44px;
            height: 44px;
            font-size: 17px;
        }

        .contact-form-panel {
            padding: 25px 18px;
            border-radius: 17px;
        }

        .contact-form-panel h3 {
            font-size: 23px;
        }

        .contact-map-wrapper {
            padding: 6px;
            border-radius: 15px;
        }

        .contact-map-wrapper iframe {
            height: 330px;
        }

        .map-location-chip {
            top: 18px;
            left: 18px;
            max-width: calc(100% - 36px);
            padding: 9px 13px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
        }

        .contact-reveal,
        .contact-reveal-left,
        .contact-reveal-right,
        .contact-reveal-scale {
            opacity: 1;
            transform: none;
        }
    }
