/* ==========================================================
   1. RESET
========================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    font-family:Arial,sans-serif;
    background:#fff;
}

html,
body{
    min-height:100%;
}


/* ==========================================================
   2. NAVBAR
========================================================== */
body{
    padding-top:90px;
    background:#eaf6ff;
    overflow-x:hidden;
}

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:90px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    z-index:1000;
}

.logo img{
    height:150px;
}

.navbar nav{
    display:flex;
    gap:30px;
}

.navbar nav a{
    text-decoration:none;
    color:#134cae;
    font-size:19px;
    font-weight:515;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:30px;
    cursor:pointer;
    color:#002b6f;
}

/* ==========================================================
   6. DESKTOP FORM
========================================================== */

.desktop-registration{
    position:relative;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    overflow-y:auto;
    min-height:calc(100vh - 90px);
    padding:40px 20px;
}

.registration-card{
    display:flex;
    align-items:stretch;
    width:100%;
    max-width:1400px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 40px rgba(0,0,0,.12);
    overflow:hidden;
}

.card-image{
    flex:0 0 40%;
    max-width:40%;
}

.card-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.card-form{
    flex:1;
    padding:40px 60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.card-form h1{
    text-align:center;
    color:#163a80;
    font-size:32px;
    font-weight:700;
    margin-bottom:15px;
}

.desktop-form-panel{
    width:100%;
}


/* ==========================================================
   7. MOBILE FORM
========================================================== */

.mobile-registration{
    display:none;
}


/* ==========================================================
   8. FORM SCREEN
========================================================== */

.form-screen{
    display:none;
    width:100%;
    max-width:500px;
    margin:100px auto 40px;
    background:#fff;
    border-radius:12px;
}

.form-top{
    width:100%;
    position:relative;
}

.form-top img{
    width:100%;
    display:block;
}

.close-btn{
    position:absolute;
    top:10px;
    right:14px;
    font-size:30px;
    color:#5a5a5a;
    cursor:pointer;
}

.form-screen h1{
    text-align:center;
    color:#111;
    font-size:26px;
    margin:10px 0 14px;
}


/* ==========================================================
   9. REGISTRATION FORM
========================================================== */

.registration-form{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:70px 26px 30px;
}

.registration-form label{
    font-size:16px;
    font-weight:500;
    color:#222;
    margin-top:-8px;
    margin-bottom:0;
}

.registration-form input,
.registration-form select{
    width:96%;
    height:48px;
    padding:0 18px;
    border:1px solid #b8b8b8;
    border-radius:16px;
    font-size:15px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.18);
    margin-bottom:6px;
    transition:all .2s ease;
}

.registration-form input:focus,
.registration-form select:focus{
    border-color:#214d9c;
    box-shadow:0 0 0 3px rgba(33,77,156,.15);
    outline:none;
}

.registration-form button{
    width:210px;
    display:block;
    height:52px;
    margin:20px auto 0;
    border:none;
    border-radius:26px;
    background:#214d9c;
    color:#fff;
    font-size:19px;
    font-weight:700;
    cursor:pointer;
}

.registration-form button:hover{
    background:#163a80;
}

.registration-form{
    padding-bottom:120px;
}

/* Desktop form sits inside .card-form — override the mobile-oriented
   padding above so the desktop card stays compact and the Submit
   button is never pushed off screen. */
.card-form .registration-form{
    padding:0 10px 10px;
}
.popup{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.85);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.popup.show{

    display:flex;

}

.chief-image{

    display:none;

    max-width:100%;

    max-height:90vh;

}

.desktop-image{
    display:block;
}

.mobile-image{
    display:none;
}


@media (max-width:768px){


    body{
    padding-top:72px;
    overflow-y:auto;
    overflow-x:hidden;
}

    .navbar{
        height:72px;
        padding:0 16px;
    }

    .logo img{
        height:58px;
    }

    .menu-toggle{
        display:block;
    }

    #mainNav{
        display:none;
        position:fixed;
        top:72px;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        z-index:9999;
    }

    #mainNav.show{
        display:flex;
    }

    #mainNav a{
        display:block;
        width:100%;
        text-align:center;
        color:#134cae;
        font-size:20px;
        font-weight:700;
        text-decoration:none;
        padding:18px 0;
        border-bottom:1px solid #e2e2e2;
    }

    #mainNav a:last-child{
        border-bottom:none;
        box-shadow:0 2px 6px rgba(0,0,0,0.08);
    }
    .desktop-image{
    display:none !important;
}

.mobile-image{
    display:block !important;
}

    /* Hide desktop completely */
    .desktop-registration,
    .registration-card,
    .card-image,
    .card-form{
        display:none !important;
    }

    /* Show only mobile */
    .mobile-registration{

        display:block !important;

        position:relative;

        min-height:calc(100vh - 72px);

    }

    .form-screen{

        display:block;

        width:100%;

        margin:0;

        position:relative;

        background:transparent;

        overflow:visible;     /* don't clip the image */

        padding-bottom:20px;

    }

    .form-top img{

        display:block;

        width:100%;

        height:auto;

    }

    #registrationFormMobile{

        position:absolute;

        top:22%;

        left:50%;

        transform:translateX(-50%);

        width:80%;

        z-index:10;

    }



    #registrationFormMobile label{
        font-size:13px;
        font-weight:700;
    }

    #registrationFormMobile input,
    #registrationFormMobile select{
        height:36px;
        font-size:13px;
        border-radius:12px;
    }

    #registrationFormMobile button{
        width:160px;
        height:40px;
        font-size:16px;
    }
}