/* =========================================================
   CONTACT SECTION - ISOLATE BACKGROUND LAYERS
   Prevent contact background effects from covering footer
========================================================= */

.school-contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 0;
}

.school-contact .contact-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.school-contact .contact-container {
    position: relative;
    z-index: 2;
}

#footer {
    position: relative;
    z-index: 10;
}

/* =========================================================
   PREMIUM SCHOOL CONTACT SECTION
========================================================= */

.school-contact {
    --navy: #0D0B61;
    --white: #ffffff;
    --gold: #F4CE14;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 70px 24px 80px;
    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(244, 206, 20, 0.11),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(13, 11, 97, 0.14),
            transparent 32%
        ),
        #f8f9fc;
    font-family: inherit;
}


/* =========================================================
   BACKGROUND DESIGN
========================================================= */

.contact-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;

    background-image:
        linear-gradient(
            rgba(13, 11, 97, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(13, 11, 97, 0.035) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 18%,
            black 80%,
            transparent
        );
}


.bg-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0.8;
    animation: floatingOrb 10s ease-in-out infinite;
}

.orb-one {
    width: 340px;
    height: 340px;
    top: -160px;
    right: 12%;
    background:
        radial-gradient(
            circle,
            rgba(244, 206, 20, 0.18),
            transparent 68%
        );
}

.orb-two {
    width: 450px;
    height: 450px;
    left: -260px;
    top: 35%;
    background:
        radial-gradient(
            circle,
            rgba(13, 11, 97, 0.10),
            transparent 68%
        );
    animation-delay: -3s;
}

.orb-three {
    width: 300px;
    height: 300px;
    right: -150px;
    bottom: -100px;
    background:
        radial-gradient(
            circle,
            rgba(244, 206, 20, 0.13),
            transparent 68%
        );
    animation-delay: -6s;
}

@keyframes floatingOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -25px, 0) scale(1.04);
    }
}


/* =========================================================
   CONTAINER
========================================================= */

.contact-container {
    width: min(1240px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.contact-heading {
    max-width: 760px;
    margin: 0 auto 65px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 18px;

    color: var(--navy);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.contact-heading h2 {
    margin: 0;

    color: #11112a;

    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -2.8px;
    font-weight: 850;
}

.contact-heading h2 span {
    display: inline-block;
    color: var(--navy);
    position: relative;
}

.contact-heading h2 span::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: -7px;

    height: 5px;
    border-radius: 20px;

    background: var(--gold);
}

.contact-heading p {
    max-width: 650px;
    margin: 25px auto 0;

    color: #67677c;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   MAIN GRID
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 34px;
    align-items: stretch;
}


/* =========================================================
   FORM CARD
========================================================= */

.contact-form-card {
    position: relative;

    padding: 42px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(244, 206, 20, 0.13),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #15126f 0%,
            #0D0B61 65%,
            #080746 100%
        );

    box-shadow:
        0 30px 70px rgba(13, 11, 97, 0.20);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -110px;
    top: -110px;

    border: 1px solid rgba(244, 206, 20, 0.25);
    border-radius: 50%;
}

.contact-form-card::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: -250px;
    bottom: -270px;

    border-radius: 50%;
    background: rgba(244, 206, 20, 0.05);
}


.form-top {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.form-label-small {
    display: block;
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.form-top h3 {
    margin: 0;

    color: var(--white);

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.form-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(244, 206, 20, 0.35);
    border-radius: 14px;

    background: rgba(244, 206, 20, 0.10);
}

.form-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: var(--gold);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-intro {
    position: relative;
    z-index: 1;

    margin: 13px 0 32px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

#schoolContactForm {
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 19px;
}

.input-group {
    min-width: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.input-group label span {
    color: var(--gold);
}

.input-group label small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
}


.input-wrap,
.select-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 17px;
    height: 17px;

    transform: translateY(-50%);

    fill: none;
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}

.input-wrap input,
.select-wrap select,
.message-group textarea {
    width: 100%;

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;

    outline: none;

    color: var(--white);
    background: rgba(255, 255, 255, 0.075);

    font: inherit;
    font-size: 13px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.input-wrap input {
    height: 54px;
    padding: 0 15px 0 46px;
}

.input-wrap input::placeholder,
.message-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.input-wrap input:focus,
.select-wrap select:focus,
.message-group textarea:focus {
    border-color: rgba(244, 206, 20, 0.75);

    background: rgba(255, 255, 255, 0.11);

    box-shadow:
        0 0 0 3px rgba(244, 206, 20, 0.08);
}


/* Select */

.select-wrap select {
    height: 54px;
    padding: 0 45px 0 17px;

    appearance: none;
    cursor: pointer;
}

.select-wrap select option {
    color: #11112a;
    background: var(--white);
}

.select-wrap > svg {
    position: absolute;
    right: 16px;
    top: 50%;

    width: 17px;
    height: 17px;

    transform: translateY(-50%);

    fill: none;
    stroke: var(--gold);
    stroke-width: 2;

    pointer-events: none;
}


/* Textarea */

.message-group {
    margin-top: 1px;
}

.message-group textarea {
    display: block;

    min-height: 132px;
    padding: 16px;

    resize: vertical;
    line-height: 1.6;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 190px;
    height: 55px;

    margin-top: 22px;
    padding: 0 25px;

    border: 0;
    border-radius: 100px;

    color: var(--navy);
    background: var(--gold);

    font: inherit;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(244, 206, 20, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contact-submit svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.25s ease;
}

.contact-submit:hover {
    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(244, 206, 20, 0.28);
}

.contact-submit:hover svg {
    transform: translate(3px, -3px);
}

.contact-submit:active {
    transform: translateY(-1px);
}


/* Form Success */

.form-success {
    display: none;

    margin-top: 18px;
    padding: 13px 15px;

    border: 1px solid rgba(244, 206, 20, 0.25);
    border-radius: 10px;

    color: var(--gold);
    background: rgba(244, 206, 20, 0.07);

    font-size: 13px;
}

.form-success.show {
    display: block;
    animation: successReveal 0.4s ease both;
}

@keyframes successReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   PREMIUM SCHOOL IMAGE CARD
========================================================= */

.school-image-card {
    position: relative;

    height: 405px;

    overflow: hidden;

    border: 1px solid rgba(13, 11, 97, 0.12);
    border-radius: 30px;

    background: var(--navy);

    box-shadow:
        0 25px 65px rgba(13, 11, 97, 0.19);

    transform: translateZ(0);
}

.school-image-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2,.8,.2,1),
        filter 0.8s ease;
}

.school-image-card:hover img {
    transform: scale(1.06);

    filter: saturate(1.08);
}


/* =========================================================
   SHINING EFFECT
========================================================= */

.image-shine {
    position: absolute;
    top: -80%;
    left: -65%;

    width: 45%;
    height: 240%;

    opacity: 0;

    transform: rotate(25deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.05) 30%,
            rgba(255, 255, 255, 0.50) 50%,
            rgba(255, 255, 255, 0.05) 70%,
            transparent
        );

    pointer-events: none;
}

.school-image-card:hover .image-shine {
    opacity: 1;
    animation: imageShine 1.3s ease forwards;
}

@keyframes imageShine {
    0% {
        left: -65%;
    }

    100% {
        left: 125%;
    }
}


/* Image glow */

.image-glow {
    position: absolute;
    z-index: 2;

    width: 130px;
    height: 130px;

    top: -65px;
    right: -65px;

    border-radius: 50%;

    background: var(--gold);

    filter: blur(70px);
    opacity: 0.22;

    pointer-events: none;
}


/* =========================================================
   CAMPUS BADGE
========================================================= */

.campus-badge {
    position: absolute;
    z-index: 5;

    top: 22px;
    right: 22px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 15px 11px 11px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;

    background: rgba(13, 11, 97, 0.72);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    border-radius: 10px;

    background: var(--gold);
}

.badge-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: var(--navy);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campus-badge strong,
.campus-badge span {
    display: block;
}

.campus-badge strong {
    color: var(--white);
    font-size: 12px;
}

.campus-badge span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
}


/* =========================================================
   IMAGE CAPTION
========================================================= */

.image-caption {
    position: absolute;
    z-index: 4;

    left: 28px;
    right: 28px;
    bottom: 27px;
}

.image-caption > span {
    display: block;
    margin-bottom: 9px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.image-caption h3 {
    margin: 0;

    color: var(--white);

    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -1px;
}


/* =========================================================
   CONTACT INFO CARDS
========================================================= */

.contact-info-grid {
    display: grid;
    gap: 12px;
}

.info-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 79px;
    padding: 12px 18px 12px 12px;

    border: 1px solid rgba(13, 11, 97, 0.08);
    border-radius: 17px;

    color: inherit;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.90);

    box-shadow:
        0 8px 30px rgba(13, 11, 97, 0.06);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateX(5px);

    border-color: rgba(244, 206, 20, 0.45);

    box-shadow:
        0 13px 35px rgba(13, 11, 97, 0.10);
}

.info-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: var(--navy);
}

.info-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--gold);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card div:nth-child(2) {
    min-width: 0;
}

.info-card span {
    display: block;
    margin-bottom: 4px;

    color: #77778c;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.info-card strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
    line-height: 1.45;
}

.info-arrow {
    width: 18px;
    height: 18px;

    margin-left: auto;

    flex: 0 0 auto;

    fill: none;
    stroke: rgba(13, 11, 97, 0.35);
    stroke-width: 1.8;

    transition:
        transform 0.25s ease,
        stroke 0.25s ease;
}

.info-card:hover .info-arrow {
    transform: translateX(4px);
    stroke: var(--navy);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .school-image-card {
        height: 100%;
        min-height: 420px;
    }

    .contact-info-grid {
        align-content: center;
    }
}


@media (max-width: 760px) {

    .school-contact {
        padding: 80px 18px 90px;
    }

    .contact-heading {
        margin-bottom: 45px;
    }

    .contact-heading h2 {
        font-size: clamp(36px, 10vw, 52px);
        letter-spacing: -2px;
    }

    .contact-heading p {
        font-size: 14px;
    }

    .contact-form-card {
        padding: 28px 22px;
        border-radius: 23px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 17px;
    }

    .contact-side {
        display: flex;
    }

    .school-image-card {
        height: 390px;
        min-height: 0;
        border-radius: 23px;
    }

    .campus-badge {
        top: 17px;
        right: 17px;
    }

    .image-caption {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .image-caption h3 {
        font-size: 30px;
    }
}


@media (max-width: 480px) {

    .school-contact {
        padding: 65px 14px 75px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .eyebrow-line {
        width: 18px;
    }

    .contact-heading h2 {
        font-size: 35px;
    }

    .contact-form-card {
        padding: 25px 17px;
    }

    .form-top h3 {
        font-size: 24px;
    }

    .form-icon {
        width: 42px;
        height: 42px;
    }

    .school-image-card {
        height: 350px;
    }

    .campus-badge {
        transform: scale(0.9);
        transform-origin: top right;
    }

    .image-caption h3 {
        font-size: 27px;
    }

    .info-card {
        padding-right: 13px;
    }

    .info-icon {
        width: 43px;
        height: 43px;
    }

    .info-card strong {
        font-size: 12px;
    }

    .info-arrow {
        display: none;
    }

    .contact-submit {
        width: 100%;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bg-orb,
    .image-shine,
    .contact-submit,
    .info-card,
    .school-image-card img {
        animation: none !important;
        transition: none !important;
    }
}
