.popup-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.65);

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:0.35s ease;

    z-index:9999;

    overscroll-behavior:contain;
}

.popup-overlay.active{
    opacity:1;
    visibility:visible;
}

.popup-form-box{
    width:90%;
    max-width:850px;
    height:90vh;

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    position:relative;

    transform:translateY(40px);

    transition:0.35s ease;

    overscroll-behavior:contain;
}

.popup-overlay.active .popup-form-box{
    transform:translateY(0);
}

.popup-form-box iframe{
    width:100%;
    height:100%;
    border:none;
}

.close-popup{
    position:absolute;

    top:18px;
    right:18px;

    width:42px;
    height:42px;

    border:none;

    background:#d20f20;
    color:#fff;

    border-radius:50%;

    font-size:26px;

    cursor:pointer;

    z-index:20;

    transition:0.3s ease;
}

.close-popup:hover{
    background:#b50d1b;
    transform:rotate(90deg);
}
/* =========================
   style.css
========================= */

/* GOOGLE FONT */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BODY */


/* FORM CONTAINER */

.form-container{
    max-width:1200px;
    margin:auto;
    background:#fff;
    border-radius:24px;
    padding:40px;
    box-shadow:
    0 10px 40px rgba(0,0,0,0.08);
}

/* HEADER */

.form-header{
    margin-bottom:35px;
}

.form-header span{
    color:#d20f20;
    font-size:14px;
    font-weight:700;
    letter-spacing:2px;
}

.form-header h2{
    font-size:42px;
    margin-top:10px;
    font-weight:800;
}

.form-header p{
    color:#666;
    margin-top:10px;
    line-height:1.8;
}

/* PHOTO */

.photo-upload{
    display:flex;
    justify-content:center;
    margin-bottom:40px;
}

.photo-box{
    width:150px;
    height:150px;
    border-radius:20px;
    border:2px dashed #d20f20;
    background:#fff5f5;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    overflow:hidden;
    position:relative;
    transition:0.3s ease;
}

.photo-box:hover{
    background:#ffecec;
}

.photo-box i{
    font-size:34px;
    color:#d20f20;
    margin-bottom:10px;
}

.photo-box p{
    font-size:14px;
    color:#666;
}

.photo-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:none;
}

.photo-box input{
    display:none;
}

/* FORM */

.admission-form{
    display:flex;
    flex-direction:column;
    gap:30px;
}

/* SECTIONS */

.form-section{
    border-top:1px solid #eee;
    padding-top:35px;
}

.form-section h2{
    font-size:26px;
    margin-bottom:25px;
    color:#d20f20;
    font-weight:700;
}

.form-section h3{
    margin-bottom:20px;
    margin-top:10px;
    font-size:20px;
    font-weight:600;
}

/* ROW */

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

/* GROUP */

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    font-size:15px;
    font-weight:600;
    margin-bottom:10px;
    color:#222;
}

/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #e4e4e4;
    border-radius:14px;
    padding:16px 18px;
    font-size:15px;
    outline:none;
    transition:0.3s ease;
    background:#fff;
    font-family:'Poppins',sans-serif;
}

.form-group textarea{
    height:130px;
    resize:none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#d20f20;

    box-shadow:
    0 0 0 4px rgba(210,15,32,0.08);
}

/* FILE INPUT */

input[type="file"]{
    padding:14px;
    cursor:pointer;
}

/* DECLARATION */

.declaration-box{
    background:#fff5f5;
    border:1px solid #ffd6d6;
    padding:20px;
    border-radius:14px;
    line-height:1.8;
    margin-bottom:20px;
}

/* CHECKBOX */

.checkbox-group{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:25px;
}

.checkbox-group input{
    width:18px;
    height:18px;
}

/* BUTTON */

.submit-btn{
    border:none;
    background:#d20f20;
    color:#fff;
    padding:18px 30px;
    border-radius:14px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s ease;
}

.submit-btn:hover{
    background:#b50d1b;
    transform:translateY(-3px);
}

/* RESPONSIVE */

@media(max-width:768px){

    body{
        padding:20px;
    }

    .form-container{
        padding:25px;
    }

    .form-header h2{
        font-size:32px;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .form-section h2{
        font-size:22px;
    }

}
/* =========================
   VALIDATION UI
========================= */

.error{

    border-color:#ff2e2e !important;

    box-shadow:
    0 0 0 4px rgba(255,46,46,0.12) !important;

}

.error-message{

    color:#ff2e2e;

    font-size:13px;

    margin-top:8px;

    font-weight:500;

}

/* =========================
   VALIDATION STATES
========================= */

.input-error{

    border-color:#ff2e2e !important;

    box-shadow:
    0 0 0 4px rgba(255,46,46,0.12) !important;

}

.input-success{

    border-color:#16c172 !important;

    box-shadow:
    0 0 0 4px rgba(22,193,114,0.12) !important;

}

.error-message{

    display:block;

    color:#ff2e2e;

    font-size:13px;

    margin-top:8px;

    font-weight:500;

}

.success-message{

    display:block;

    color:#16c172;

    font-size:13px;

    margin-top:8px;

    font-weight:500;

}
