/*=========================================================
Skylark School Admission Popup
popup/css/popup.css
Bootstrap Free
Foundation Compatible
=========================================================*/


/*====================================
RESET
====================================*/

#popupOverlay,
#admissionPopup,
#thankyouPopup{

    box-sizing:border-box;

}

#admissionPopup *{

    box-sizing:border-box;

}


/*====================================
POPUP OVERLAY
====================================*/

#popupOverlay{

    display:none;

    position:fixed;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.70);

    z-index:99998;

}


/*====================================
MAIN POPUP
====================================*/

#admissionPopup{

    display:none;

    position:fixed;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    width:470px;

    max-width:96%;

    background:#ffffff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 20px 60px rgba(0,0,0,.35);

    z-index:99999;

}


/*====================================
HEADER
====================================*/

#admissionPopup .popupHeader{

    background:#0056b3;

    color:#ffffff;

    text-align:center;

    padding:22px;

}


#admissionPopup .popupHeader h2{

    margin:0;

    padding:0;

    font-size:30px;

    color:#ffffff;

    font-weight:bold;

}


#admissionPopup .popupHeader p{

    margin-top:10px;

    margin-bottom:0;

    color:#ffffff;

    font-size:15px;

}


/*====================================
OPTIONAL LOGO
====================================*/

#admissionPopup .popupLogo{

    margin-bottom:10px;

}

#admissionPopup .popupLogo img{

    width:70px;

    height:auto;

}


/*====================================
CLOSE BUTTON
====================================*/

#popupClose{

    position:absolute;

    right:18px;

    top:10px;

    color:#ffffff;

    font-size:34px;

    font-weight:bold;

    cursor:pointer;

    transition:.30s;

    line-height:1;

}

#popupClose:hover{

    color:#ffe000;

}


/*====================================
POPUP BODY
====================================*/

#admissionPopup .popupBody{

    padding:25px;

    background:#ffffff;

}


/*====================================
MESSAGE BOX
====================================*/

#responseMessage{

    display:none;

    margin-bottom:20px;

    padding:12px;

    border-radius:5px;

    font-size:14px;

}

#responseMessage.success{

    background:#d4edda;

    color:#155724;

    border:1px solid #c3e6cb;

}

#responseMessage.error{

    background:#f8d7da;

    color:#721c24;

    border:1px solid #f5c6cb;

}
/*====================================
FORM GROUP
====================================*/

#admissionPopup .formGroup{

    margin-bottom:18px;

}


/*====================================
LABEL
====================================*/

#admissionPopup label{

    display:block;

    margin-bottom:8px;

    font-size:15px;

    font-weight:bold;

    color:#333333;

}

#admissionPopup .required{

    color:#ff0000;

}


/*====================================
TEXTBOX
====================================*/

#admissionPopup input[type=text],

#admissionPopup input[type=email],

#admissionPopup select{

    width:100%;

    height:48px;

    padding:12px 15px;

    border:1px solid #cccccc;

    border-radius:6px;

    background:#ffffff;

    font-size:15px;

    color:#333333;

    transition:all .30s ease;

    outline:none;

}


/*====================================
FOCUS
====================================*/

#admissionPopup input[type=text]:focus,

#admissionPopup input[type=email]:focus,

#admissionPopup select:focus{

    border-color:#0056b3;

    box-shadow:0 0 8px rgba(0,86,179,.20);

}


/*====================================
PLACEHOLDER
====================================*/

#admissionPopup input::placeholder{

    color:#999999;

}


/*====================================
PRIVACY BOX
====================================*/

#admissionPopup .privacyBox{

    margin-top:10px;

    margin-bottom:20px;

}

#admissionPopup .checkboxLabel{

    display:flex;

    align-items:flex-start;

    cursor:pointer;

    font-size:14px;

    line-height:22px;

    color:#555555;

}

#admissionPopup .checkboxLabel input{

    margin-right:10px;

    margin-top:4px;

}

#admissionPopup .checkboxLabel a{

    color:#0056b3;

    text-decoration:none;

}

#admissionPopup .checkboxLabel a:hover{

    text-decoration:underline;

}


/*====================================
GOOGLE CAPTCHA
====================================*/

#admissionPopup .captchaBox{

    margin-bottom:22px;

}


/*====================================
SUBMIT BUTTON
====================================*/

#admissionPopup .submitArea{

    margin-top:5px;

}

#submitBtn{

    width:100%;

    height:52px;

    border:none;

    border-radius:6px;

    background:#0056b3;

    color:#ffffff;

    font-size:17px;

    font-weight:bold;

    cursor:pointer;

    transition:all .30s ease;

}

#submitBtn:hover{

    background:#003f88;

}

#submitBtn:disabled{

    background:#999999;

    cursor:not-allowed;

}
/*====================================
THANK YOU POPUP
====================================*/

#thankyouPopup{

    display:none;

    position:fixed;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.70);

    z-index:100000;

}


#thankyouPopup .thankyouBox{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    width:420px;

    max-width:92%;

    background:#ffffff;

    border-radius:12px;

    text-align:center;

    padding:35px;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}


#thankyouPopup .successIcon{

    width:90px;

    height:90px;

    line-height:90px;

    margin:auto;

    border-radius:50%;

    background:#28a745;

    color:#ffffff;

    font-size:46px;

    font-weight:bold;

    margin-bottom:20px;

}


#thankyouPopup h2{

    margin:0;

    font-size:30px;

    color:#28a745;

}


#thankyouPopup p{

    margin-top:15px;

    color:#555555;

    font-size:15px;

    line-height:24px;

}


#thankyouClose{

    margin-top:25px;

    background:#0056b3;

    color:#ffffff;

    border:none;

    padding:12px 35px;

    border-radius:6px;

    font-size:16px;

    cursor:pointer;

    transition:.30s;

}


#thankyouClose:hover{

    background:#003f88;

}


/*====================================
FADE ANIMATION
====================================*/

@keyframes popupFade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}


@keyframes popupZoom{

    from{

        opacity:0;

        transform:translate(-50%,-45%) scale(.90);

    }

    to{

        opacity:1;

        transform:translate(-50%,-50%) scale(1);

    }

}


#popupOverlay{

    animation:popupFade .30s ease;

}


#admissionPopup{

    animation:popupZoom .30s ease;

}


#thankyouPopup{

    animation:popupFade .30s ease;

}


/*====================================
SCROLLBAR
====================================*/

#admissionPopup::-webkit-scrollbar{

    width:8px;

}


#admissionPopup::-webkit-scrollbar-thumb{

    background:#cccccc;

    border-radius:20px;

}


/*====================================
RESPONSIVE
====================================*/

@media only screen and (max-width:768px){

    #admissionPopup{

        width:95%;

    }

    #admissionPopup .popupHeader{

        padding:18px;

    }

    #admissionPopup .popupHeader h2{

        font-size:24px;

    }

    #admissionPopup .popupBody{

        padding:18px;

    }

    #popupClose{

        right:15px;

        top:8px;

        font-size:30px;

    }

    .g-recaptcha{

        transform:scale(.92);

        transform-origin:left top;

    }

}


@media only screen and (max-width:480px){

    #admissionPopup{

        width:96%;

    }

    #admissionPopup input,

    #admissionPopup select{

        height:44px;

        font-size:14px;

    }

    #submitBtn{

        height:48px;

        font-size:15px;

    }

    #thankyouPopup .thankyouBox{

        padding:25px;

    }

    #thankyouPopup h2{

        font-size:24px;

    }

    #thankyouPopup .successIcon{

        width:70px;

        height:70px;

        line-height:70px;

        font-size:34px;

    }

    .g-recaptcha{

        transform:scale(.78);

        transform-origin:left top;

    }

}