/* =========================
       MODAL
    ========================= */

.custom-admission-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}

.custom-admission-error-modal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.custom-admission-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(3px);

}

/* =========================
       BOX
    ========================= */

.custom-admission-box {

    position: relative;

    max-height: 100vh;
    overflow: auto;

    width: 100%;

    max-width: 700px;

    background: #ffffff;

    border-radius: 10px;

    /* padding: 16px 40px; */

    z-index: 2;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    animation: popupFade .4s ease;

}

.custom-admission-box form {
    padding: 16px 40px;
}

@keyframes popupFade {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }

}

/* =========================
       CLOSE
    ========================= */

.popup-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24;
    border: none;
    border-radius: 50%;
    background: var(--e-global-color-primary) !important;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    transition: .3s;
    background: transparent;
    font-size: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-close-btn:hover {

    background: #e9e9e9;

}

/* =========================
       HEADER
    ========================= */

.popup-header {

    text-align: center;
    margin-bottom: 30px;
    background-color: var(--e-global-color-primary);
    padding: 20px;
}

.popup-header h2 {

    font-size: 36px;

    font-weight: 800;

    color: #fcca17;
    margin-top: 0;

    margin-bottom: 8px;


}

.popup-header p {

    font-size: 22px;

    color: #fcca17;

    margin: 0;

}

/* =========================
       INPUT GROUP
    ========================= */

.popup-input-group {

    display: flex;

    align-items: center;

    border: 1px solid #ddd;

    border-radius: 4px;

    overflow: hidden;

    margin-bottom: 8px;

    background: #fff;

    transition: border-color .2s ease;

}

.popup-icon {

    width: 70px;

    min-width: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #d90429;

    font-size: 20px;

    border-right: 1px solid #ececec;

}

.popup-input-group input,
.popup-input-group select {

    width: 100%;

    border: 0 !important;

    outline: 0 !important;

    height: 50px;

    padding: 0 18px;

    font-size: 18px;

    background: transparent;

    color: #333;

    box-shadow: none !important;

}

.popup-input-group input:focus,
.popup-input-group select:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


.popup-input-group input::placeholder {
    color: #333;
}


.popup-input-group:focus-within {
    border-color: #d90429;
}

.popup-input-group.has-error {
    border-color: #d90429;
}

/* =========================
       OTP BTN
    ========================= */

.popup-otp-btn {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 4px !important;

    background: var(--e-global-color-accent);

    color: #fff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;

}

.popup-otp-btn:hover {

    transform: translateY(-2px);
}


.popup-otp-btn.disabled {
    border: none;

    background: #fff !important;

    color: var(--e-global-color-accent);
    text-decoration: underline;
}

.popup-otp-btn.disabled-2 {
    border: 1px solid var(--e-global-color-accent);

    background: #fff !important;

    color: var(--e-global-color-accent) !important;
    text-decoration: none;
}


.popup-otp-btn.disabled:hover {
    background: #fff !important;

    color: var(--e-global-color-accent) !important;
    text-decoration: underline;

    cursor: not-allowed;
}

.popup-otp-btn.disabled-2:hover {
    background: #fff !important;

    color: var(--e-global-color-accent) !important;
    text-decoration: underline;

    cursor: not-allowed;
}

.popup-otp-btn:disabled,
.popup-otp-btn:disabled:hover {
    transform: none;
    cursor: not-allowed;
    opacity: .65;
}

/* =========================
       CHECKBOX
    ========================= */
.popup-checkbox-wrap {

    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 12px;
}

.popup-checkbox-wrap input {

    margin-top: 4px;

}

.popup-checkbox-wrap label {

    font-size: 14px;

    line-height: 1.2;

    color: #444;

}

.popup-checkbox-wrap a {

    color: #111;

    font-weight: 700;

    text-decoration: none;

}

/* =========================
       SUBMIT BTN
    ========================= */

.popup-submit-btn {

    width: 100%;

    border: none;

    height: 50px;

    border-radius: 14px;

    background: var(--e-global-color-primary) !important;

    color: #fcca17 !important;

    font-size: 28px;

    font-weight: 700 !important;

    letter-spacing: .5px;

    cursor: pointer;

    transition: .3s;

}


.popup-submit-btn.danger {
    background: var(--e-global-color-accent) !important;

    color: #fff !important;
}




.popup-submit-btn.disabled {
    cursor: not-allowed;
    outline: 1px solid var(--e-global-color-primary) !important;
    background: #fff !important;
    color: var(--e-global-color-primary) !important;
}

.popup-submit-btn.disabled:hover {
    background: #fff !important;
    color: var(--e-global-color-primary) !important;
}



.popup-submit-btn:hover {

    transform: translateY(-2px);

}

/* =========================
       MOBILE
    ========================= */

@media(max-width:768px) {

    .custom-admission-box {

        /* padding: 6px; */

        border-radius: 8px;

    }

    .popup-header {
        margin-bottom: 0;
    }

    .popup-header h2 {

        font-size: 20px;
        width: 70%;
        margin: auto;
        text-align: center;

    }

    .popup-header p {

        font-size: 17px;

    }

    .popup-input-group input,
    .popup-input-group select {

        height: 54px;

        font-size: 15px;

    }

    .popup-icon {

        width: 54px;
        min-width: 54px;

        font-size: 17px;

    }

    .popup-otp-btn {

        height: 54px;

        font-size: 9px !important;

    }

    .popup-submit-btn {

        height: 58px;

        font-size: 16px;

    }

    .popup-checkbox-wrap label {

        font-size: 11px;

        line-height: 1.6;

    }

    .custom-admission-box form {
        padding: 16px 8px;
    }

}

/* =========================
    ERROR MODAL
    ========================= */

.custom-admission-error-modal {

    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999999;
    padding: 20px;
}

/* OVERLAY */
.custom-admission-error-overlay {

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(3px);
}

/* BOX */
.custom-admission-error-box {

    position: relative;

    width: 100%;
    max-width: 550px;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    z-index: 2;

    animation: popupFade .3s ease;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

/* CONTENT */
.custom-admission-error-box .content {

    padding: 30px;
}