html{
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    background: #f4f7fb;
    color: #0B1F5B;
    overflow-x: hidden;
}
#navbar{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 92px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 40px;
    background: rgba(9, 24, 68, .9);
    backdrop-filter: blur(16px);
    transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}
#navbar.scrolled{
    height: 75px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 3px 18px rgba(0,0,0,.15);
}
.nav-left,
.nav-right{
    display: flex;
    gap: 15px;
    list-style: none;
}
.nav-left{
    justify-content: flex-end;
}
.nav-right{
    justify-content: flex-start;
}
#navbar a{
    color: white;
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color .3s ease;
}
#navbar.scrolled a{
    color: #0B1F5B;
}
#navbar a:hover,
#navbar a.active{
    color: #FFD700;
}
#navbar.scrolled a:hover,
#navbar.scrolled a.active{
    color: #D62828;
}
#navbar a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: width .3s ease;
}
#navbar a:hover::after,
#navbar a.active::after{
    width: 100%;
}
.logo img{
    width: 104px;
    display: block;
    position: relative;
    left: 20px;
    transition: width .35s ease;
}
#navbar.scrolled .logo img{
    width: 90px;
}
.menu-btn{
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
#navbar.scrolled .menu-btn{
    color: #0B1F5B;
}
.mobile-menu{
    position: fixed;
    top: 92px;
    left: -100%;
    width: 30%;
    height: 100vh;
    overflow-y: auto;
    background: white;
    display: flex;
    flex-direction: column;
    transition: left .4s ease, top .35s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    z-index: 998;
}
#navbar.scrolled + .mobile-menu{
    top: 75px;
}
.mobile-menu.show{
    left: 0;
}
.mobile-menu a{
    padding: 18px;
    text-decoration: none;
    color: #0B1F5B;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}
.mobile-menu a:hover,
.mobile-menu a.active{
    color: #D62828;
}
.menu-btn.active i::before{
    content:"\f00d";
}
.contact-hero{
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 120px 20px 64px;
    color: white;
    text-align: center;
    background:
        linear-gradient(rgba(7,25,70,.82), rgba(7,25,70,.78)),
        url("preview-assets/school-community-960.webp") center/cover;
}
.contact-hero-inner{
    width: min(820px, 100%);
}
.eyebrow,
.section-heading span{
    color: #FFD700;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.contact-hero h1{
    margin: 12px 0 16px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
}
.contact-hero p{
    margin: 0 auto;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
}
main{
    padding: 0 20px 90px;
}
.contact-cards{
    width: min(1120px, 100%);
    margin: -54px auto 70px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}
.contact-cards article{
    min-height: 210px;
    padding: 28px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 20px 42px rgba(8,24,65,.13);
    transition: transform .3s ease, box-shadow .3s ease;
}
.contact-cards article:hover{
    transform: translateY(-8px);
    box-shadow: 0 30px 58px rgba(8,24,65,.18);
}
.contact-cards i{
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #071946;
    background: #FFD700;
    font-size: 23px;
}
.contact-cards span{
    color: #D62828;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.contact-cards h2{
    margin: 8px 0 12px;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.contact-cards h2 a{
    color: #0B1F5B;
    text-decoration: none;
}
.contact-cards p{
    margin: 0;
    color: #546078;
    line-height: 1.65;
}
.contact-section{
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: start;
}
.contact-form,
.visit-panel{
    background: white;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(8,24,65,.1);
}
.contact-form{
    padding: 32px;
}
.section-heading{
    margin-bottom: 24px;
}
.section-heading span{
    color: #D62828;
}
.section-heading h2{
    margin: 8px 0 10px;
    font-size: 30px;
}
.section-heading p{
    margin: 0;
    color: #546078;
    line-height: 1.7;
}
.form-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field{
    position: relative;
    margin-bottom: 18px;
}
.field label{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: #10182f;
    font-weight: 700;
}
.field label span{
    color: #D62828;
}
input,
textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #c9d1dd;
    border-radius: 4px;
    color: #162044;
    font: inherit;
    background: white;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
textarea{
    resize: vertical;
}
input:focus,
textarea:focus{
    outline: none;
    border-color: #0B1F5B;
    box-shadow: 0 0 0 4px rgba(11,31,91,.1);
}
::placeholder{
    color: #9aa4b6;
}
.phone-field{
    display: flex;
    align-items: center;
    border: 1px solid #c9d1dd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.phone-field:focus-within{
    border-color: #0B1F5B;
    box-shadow: 0 0 0 4px rgba(11,31,91,.1);
}
.phone-field span{
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #0B1F5B;
    font-weight: 800;
    background: #f4f7fb;
    border-right: 1px solid #d6deeb;
}
.phone-field input{
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.phone-field input:focus{
    box-shadow: none;
}
.error-message{
    display: none;
    position: absolute;
    right: 8px;
    bottom: -13px;
    z-index: 5;
    padding: 8px 12px;
    color: white;
    background: #D62828;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(214,40,40,.24);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.error-message::before{
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #D62828;
}
.field.invalid .error-message{
    display: block;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid .phone-field{
    border-color: #D62828;
    background: #fff8f8;
}
.form-summary{
    min-height: 22px;
    margin-bottom: 14px;
    color: #D62828;
    font-weight: 800;
}
.form-summary.success{
    color: #0a7b3e;
}
.send-btn{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    color: #071946;
    background: #FFD700;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(255,215,0,.22);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.send-btn:hover{
    background: #f4f7fb;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(8,24,65,.18);
}
.send-btn:disabled{
    cursor: wait;
    opacity: .7;
    transform: none;
}
.visit-panel{
    overflow: hidden;
}
.map-placeholder{
    min-height: 300px;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(7,25,70,.9), rgba(7,25,70,.65)),
        repeating-linear-gradient(45deg, #e7edf8 0 10px, #f4f7fb 10px 20px);
    color: white;
}
.map-placeholder i{
    font-size: 52px;
    color: #FFD700;
}
.map-placeholder h2{
    margin: 16px 0 8px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
}
.map-placeholder p{
    margin: 0;
    color: #dce6f7;
    line-height: 1.6;
}
.visit-details{
    padding: 28px;
    color: white;
    background: #071946;
}
.visit-details h3{
    margin: 0 0 10px;
    font-size: 24px;
}
.visit-details p{
    margin: 0 0 20px;
    color: #cbd5ea;
    line-height: 1.7;
}
.visit-details div{
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    color: #f5f8ff;
    font-weight: 700;
}
.visit-details i{
    color: #FFD700;
}
.success-modal{
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7,25,70,.68);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.success-modal.show{
    opacity: 1;
    visibility: visible;
}
.success-dialog{
    width: min(470px, 100%);
    padding: 34px 28px 28px;
    border-radius: 14px;
    background: white;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
    transform: translateY(18px) scale(.96);
    transition: transform .3s ease;
}
.success-modal.show .success-dialog{
    transform: translateY(0) scale(1);
}
.success-icon{
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #071946;
    background: #FFD700;
    font-size: 30px;
}
.success-dialog h2{
    margin: 0 0 12px;
    color: #0B1F5B;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
}
.success-dialog p{
    margin: 0;
    color: #546078;
    line-height: 1.7;
}
.success-dialog button{
    margin-top: 24px;
    padding: 13px 30px;
    border: 0;
    border-radius: 999px;
    color: #071946;
    background: #FFD700;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.site-footer{
    margin-top: 90px;
    background: #071946;
    color: #f5f8ff;
}
.footer-main{
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 42px;
    display: grid;
    grid-template-columns: 1.4fr .9fr 1fr;
    gap: 42px;
}
.footer-brand img{
    width: 82px;
    height: auto;
    margin-bottom: 16px;
}
.footer-brand h3,
.footer-links h4,
.footer-contact h4{
    margin: 0 0 16px;
}
.footer-brand h3{
    font-family: 'Merriweather', Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}
.footer-brand p,
.footer-contact p{
    margin: 0 0 12px;
    color: #cbd5ea;
    line-height: 1.6;
}
.footer-socials{
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
.footer-socials a{
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071946;
    background: #FFD700;
    text-decoration: none;
    transition: transform .3s ease, background .3s ease;
}
.footer-socials a:hover{
    background: white;
    transform: translateY(-4px);
}
.footer-links{
    display: flex;
    flex-direction: column;
}
.footer-links a{
    width: fit-content;
    margin-bottom: 10px;
    color: #cbd5ea;
    text-decoration: none;
    transition: color .3s ease, transform .3s ease;
}
.footer-links a:hover{
    color: #FFD700;
    transform: translateX(4px);
}
.footer-contact i{
    width: 22px;
    color: #FFD700;
}
.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    padding: 18px 20px;
}
.footer-bottom p{
    margin: 0;
    color: #bdc8df;
    font-size: 14px;
}
.footer-bottom .developer-credit{ margin-top: 7px; color: #eef3ff; font-size: 13px; }
.developer-credit strong{ color: #ffd75a; }
.developer-credit a{ color: #fff; font-weight: 700; text-decoration: none; }
.developer-credit a:hover{ color: #ffd75a; text-decoration: underline; }
@media(max-width:1200px){
    #navbar{
        display: flex;
        justify-content: space-between;
        padding: 0 25px;
    }
    .nav-left,
    .nav-right{
        display: none;
    }
    .menu-btn{
        display: block;
    }
    .logo{
        padding-right: 80px;
    }
    .contact-section,
    .contact-cards{
        grid-template-columns: 1fr;
    }
    .footer-main{
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand{
        grid-column: 1 / -1;
    }
}
@media(max-width:760px){
    main{
        padding-left: 14px;
        padding-right: 14px;
    }
    .contact-hero{
        min-height: 380px;
        padding: 104px 16px 58px;
    }
    .contact-hero h1{
        font-size: 38px;
    }
    .contact-cards{
        margin-bottom: 44px;
    }
    .contact-cards article,
    .contact-form{
        padding: 22px;
    }
    .form-grid{
        grid-template-columns: 1fr;
        gap: 0;
    }
    .error-message{
        position: static;
        width: fit-content;
        margin-top: 7px;
        white-space: normal;
    }
    .error-message::before{
        display: none;
    }
    .footer-main{
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 46px;
    }
}
@media(max-width:480px){
    #navbar{
        height: 82px;
        padding: 0 16px;
    }
    #navbar.scrolled{
        height: 70px;
    }
    .logo{
        padding-right: 48px;
    }
    .logo img,
    #navbar.scrolled .logo img{
        width: 78px;
        left: 0;
    }
    .menu-btn{
        font-size: 26px;
    }
    .mobile-menu{
        top: 82px;
        width: 86%;
    }
    #navbar.scrolled + .mobile-menu{
        top: 70px;
    }
    .contact-hero h1{
        font-size: 33px;
    }
    .section-heading h2{
        font-size: 25px;
    }
    .map-placeholder{
        min-height: 240px;
    }
}
