/* =========================================================
   HORIZON SCHOOL — CONTACT PAGE
   assets/css/contact.css
   ========================================================= */

:root {
    --contact-navy: #0f6654;
    --contact-navy-dark: #084a3c;
    --contact-blue: #27836f;
    --contact-gold: #d7a947;
    --contact-text: #172033;
    --contact-muted: #6b7788;
    --contact-light: #f4f7fb;
    --contact-border: #dfe6ee;
    --contact-white: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(74, 133, 190, 0.38),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #0b3158 0%,
            #123f6d 55%,
            #285c91 100%
        );
}

.contact-hero-pattern {
    position: absolute;
    width: 650px;
    height: 650px;
    right: -220px;
    top: -270px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-hero-pattern::before,
.contact-hero-pattern::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contact-hero-pattern::before {
    width: 430px;
    height: 430px;
    top: 105px;
    left: 105px;
}

.contact-hero-pattern::after {
    width: 230px;
    height: 230px;
    top: 205px;
    left: 205px;
}

.contact-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-hero-content {
    max-width: 720px;
}

.contact-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--contact-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.contact-hero-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--contact-gold);
}

.contact-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.contact-hero h1 span {
    color: #e6b34c;
}

.contact-hero-content > p {
    max-width: 610px;
    margin: 25px 0 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.75;
}

.contact-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-hero-call,
.contact-hero-enquire {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.contact-hero-call {
    gap: 12px;
    padding: 12px 20px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.contact-call-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--contact-gold);
    color: var(--contact-navy-dark);
    font-size: 17px;
    font-weight: 800;
}

.contact-hero-call small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.contact-hero-call span:last-child {
    font-size: 14px;
    font-weight: 700;
}

.contact-hero-enquire {
    gap: 14px;
    padding: 15px 19px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.contact-hero-enquire span {
    font-size: 17px;
}

.contact-hero-enquire:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-hero-side {
    display: flex;
    justify-content: flex-end;
}

.contact-hero-card {
    width: 100%;
    max-width: 330px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.contact-hero-card-label {
    display: block;
    margin-bottom: 17px;
    color: var(--contact-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.contact-hero-card strong {
    display: block;
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
}

.contact-hero-card-line {
    width: 45px;
    height: 2px;
    margin: 25px 0 20px;
    background: var(--contact-gold);
}

.contact-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MAIN CONTACT AREA
   ========================================================= */

.contact-main {
    padding: 100px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--contact-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-section-intro h2 {
    margin: 0;
    color: var(--contact-navy-dark);
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.contact-section-intro h2 span {
    color: var(--contact-blue);
}

.contact-section-intro > p {
    max-width: 510px;
    margin: 20px 0 34px;
    color: var(--contact-muted);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   INFORMATION CARD
   ========================================================= */

.contact-info-card {
    overflow: hidden;
    border: 1px solid var(--contact-border);
    border-radius: 18px;
    background: #f7f9fc;
    box-shadow: 0 18px 45px rgba(18, 63, 109, 0.07);
}

.contact-info-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 18px;
    padding: 28px;
    border-bottom: 1px solid var(--contact-border);
}

.contact-info-item:last-child {
    border-bottom: 0;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--contact-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(18, 63, 109, 0.16);
}

.contact-info-content {
    min-width: 0;
}

.contact-info-label {
    display: block;
    margin-bottom: 7px;
    color: var(--contact-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-info-content h3 {
    margin: 0 0 9px;
    color: var(--contact-text);
    font-size: 17px;
}

.contact-info-content p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.75;
}

.contact-info-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--contact-navy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.contact-info-link:hover {
    color: var(--contact-blue);
}

.contact-phone-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-phone-list a {
    color: var(--contact-navy);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.contact-phone-list a:hover {
    color: var(--contact-blue);
}

.contact-call-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--contact-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.contact-call-button:hover {
    background: var(--contact-navy-dark);
}

.contact-info-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: #667085;
    font-size: 11px;
}

.contact-info-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26a269;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.contact-form-card {
    padding: 40px;
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    background: #f7f9fc;
    box-shadow: 0 20px 55px rgba(18, 63, 109, 0.08);
}

.contact-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.contact-form-header h2 {
    margin: 0;
    color: var(--contact-navy-dark);
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.contact-form-badge {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;
    border-radius: 12px;
    background: var(--contact-gold);
    color: var(--contact-navy-dark);
    font-size: 19px;
}

.contact-form-intro {
    max-width: 580px;
    margin: 14px 0 30px;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field label {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.contact-input-wrap {
    position: relative;
}

.contact-input-wrap > span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8090a4;
    font-size: 14px;
    pointer-events: none;
}

.contact-input-wrap input,
.contact-input-wrap select,
.contact-textarea-wrap textarea {
    width: 100%;
    border: 1px solid #d7e0ea;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--contact-text);
    font-family: inherit;
    font-size: 13px;
    transition: 0.2s ease;
}

.contact-input-wrap input,
.contact-input-wrap select {
    height: 48px;
    padding: 0 14px 0 40px;
}

.contact-input-wrap select {
    cursor: pointer;
    appearance: auto;
}

.contact-textarea-wrap textarea {
    min-height: 145px;
    padding: 14px;
    resize: vertical;
}

.contact-input-wrap input::placeholder,
.contact-textarea-wrap textarea::placeholder {
    color: #9aa6b6;
}

.contact-input-wrap input:focus,
.contact-input-wrap select:focus,
.contact-textarea-wrap textarea:focus {
    border-color: var(--contact-navy);
    box-shadow: 0 0 0 3px rgba(18, 63, 109, 0.08);
}

.contact-submit {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px 0 20px;
    border: 0;
    border-radius: 9px;
    background: var(--contact-navy);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-submit strong {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 17px;
}

.contact-submit:hover {
    background: var(--contact-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 63, 109, 0.2);
}

.contact-form-note {
    margin: -4px 0 0;
    color: #98a2b3;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   LOCATION
   ========================================================= */

.contact-location {
    padding: 100px 0;
    background: var(--contact-light);
}

.contact-location-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 35px;
}

.contact-location-heading h2 {
    margin: 0;
    color: var(--contact-navy-dark);
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.contact-location-heading h2 span {
    color: var(--contact-blue);
}

.contact-location-heading > p {
    max-width: 500px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.75;
}

.contact-map-card {
    display: grid;
    grid-template-columns: 1.65fr 0.65fr;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(18, 63, 109, 0.09);
}

.contact-map-image {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #e8edf3;
}

.contact-map-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-map-image iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

.contact-map-pin {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 60px);
    padding: 11px 16px 11px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
}

.contact-map-pin-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 9px;
    background: var(--contact-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.contact-map-pin strong,
.contact-map-pin span {
    display: block;
}

.contact-map-pin strong {
    color: var(--contact-text);
    font-size: 13px;
}

.contact-map-pin span {
    margin-top: 3px;
    color: var(--contact-muted);
    font-size: 10px;
}

.contact-map-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
}

.contact-map-info-top {
    display: block;
}

.contact-map-label {
    display: block;
    margin-bottom: 14px;
    color: var(--contact-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.contact-map-info h3 {
    margin: 0 0 15px;
    color: var(--contact-navy-dark);
    font-size: 25px;
}

.contact-map-info p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.8;
}

.contact-direction-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 15px 14px 18px;
    border-radius: 9px;
    background: var(--contact-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.contact-direction-button strong {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
}

.contact-direction-button:hover {
    background: var(--contact-navy-dark);
    transform: translateY(-1px);
}


/* =========================================================
   CTA
   ========================================================= */

.contact-cta {
    padding: 70px 0;
    background: var(--contact-navy);
}

.contact-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-cta-content > div:first-child > span {
    display: block;
    margin-bottom: 12px;
    color: var(--contact-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-cta h2 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.2;
}

.contact-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.contact-btn-light {
    background: #fff;
    color: var(--contact-navy);
}

.contact-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.contact-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .contact-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero-side {
        justify-content: flex-start;
    }

    .contact-hero-card {
        max-width: 420px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-map-card {
        grid-template-columns: 1fr;
    }

    .contact-map-image {
        min-height: 420px;
    }

    .contact-map-info {
        min-height: 320px;
    }
}


@media (max-width: 700px) {

    .contact-hero {
        min-height: auto;
    }

    .contact-hero-container {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .contact-hero h1 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .contact-hero-content > p {
        font-size: 15px;
    }

    .contact-main,
    .contact-location {
        padding: 70px 0;
    }

    .contact-section-intro h2,
    .contact-location-heading h2 {
        font-size: 38px;
    }

    .contact-form-card {
        padding: 28px 22px;
    }

    .contact-form-header h2 {
        font-size: 32px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-location-heading {
        display: block;
    }

    .contact-location-heading > p {
        margin-top: 18px;
    }

    .contact-map-image {
        min-height: 340px;
    }

    .contact-map-info {
        min-height: 320px;
    }

    .contact-cta-content {
        display: block;
    }

    .contact-cta-actions {
        margin-top: 25px;
    }
}


@media (max-width: 480px) {

    .contact-hero-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .contact-hero h1 {
        font-size: 39px;
    }

    .contact-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-hero-call,
    .contact-hero-enquire {
        width: 100%;
    }

    .contact-hero-card {
        padding: 25px;
    }

    .contact-info-item {
        grid-template-columns: 42px 1fr;
        gap: 13px;
        padding: 22px 18px;
    }

    .contact-info-icon {
        width: 42px;
        height: 42px;
    }

    .contact-form-card {
        padding: 24px 17px;
    }

    .contact-form-header h2 {
        font-size: 28px;
    }

    .contact-map-image {
        min-height: 270px;
    }

    .contact-map-pin {
        left: 15px;
        bottom: 15px;
        max-width: calc(100% - 30px);
    }

    .contact-map-info {
        padding: 24px 20px;
    }

    .contact-cta h2 {
        font-size: 28px;
    }

    .contact-cta-actions {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }
}
