/* ============================================================
   ENROLL POPUP MODAL
   MODERN WHITE + BLUE DESIGN
============================================================ */

.enroll-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 30, 60, 0.45);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* Modal Visible */

.enroll-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   MODAL CARD
============================================================ */

.enroll-modal-card {
    position: relative;

    width: 100%;
    max-width: 430px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 38px 32px 30px;

    background: #ffffff;

    border: 1px solid #dce8f5;

    border-radius: 22px;

    box-shadow:
        0 25px 80px rgba(0, 40, 90, 0.25);

    transform:
        translateY(25px)
        scale(0.96);

    opacity: 0;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}


/* Top Blue Line */

.enroll-modal-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    border-radius: 22px 22px 0 0;

    background:
        linear-gradient(
            90deg,
            #0057b8,
            #1687e8
        );
}


/* Modal Animation */

.enroll-modal-overlay.is-visible .enroll-modal-card {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* ============================================================
   CLOSE BUTTON
============================================================ */

.enroll-modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: none;

    border-radius: 50%;

    background: #f0f6fc;

    color: #0057b8;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.enroll-modal-close:hover {
    background: #0057b8;

    color: #ffffff;

    transform: rotate(90deg);
}


/* ============================================================
   TITLE
============================================================ */

.enroll-modal-title {
    margin: 0 0 24px;

    padding-right: 35px;

    color: #102a43;

    font-family: var(--font-display);

    font-size: 1.7rem;

    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


.enroll-modal-title::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 12px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #0057b8,
            #1687e8
        );
}


/* ============================================================
   FORM
============================================================ */

.enroll-modal-form {
    display: flex;
    flex-direction: column;

    gap: 13px;
}


/* Inputs */

.enroll-modal-form input,
.enroll-modal-form select,
.enroll-modal-form textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d8e2ec;

    border-radius: 11px;

    background: #f9fbfd;

    color: #102a43;

    font-family: var(--font-body);

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Textarea */

.enroll-modal-form textarea {
    min-height: 85px;

    resize: vertical;
}


/* Placeholder */

.enroll-modal-form input::placeholder,
.enroll-modal-form textarea::placeholder {
    color: #94a3b8;
}


/* Select */

.enroll-modal-form select {
    color: #64748b;

    cursor: pointer;
}


.enroll-modal-form select:valid {
    color: #102a43;
}


/* Focus */

.enroll-modal-form input:focus,
.enroll-modal-form select:focus,
.enroll-modal-form textarea:focus {
    outline: none;

    background: #ffffff;

    border-color: #0057b8;

    box-shadow:
        0 0 0 4px rgba(0, 87, 184, 0.1);
}


/* ============================================================
   SUBMIT BUTTON
============================================================ */

.enroll-modal-form .btn-amber {
    width: 100%;

    margin-top: 5px;

    padding: 14px 18px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #0057b8,
            #1687e8
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.enroll-modal-form .btn-amber:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(0, 87, 184, 0.25);
}


/* ============================================================
   SUCCESS MESSAGE
============================================================ */

.enroll-modal-success {
    display: none;

    margin: 4px 0 0;

    padding: 10px;

    border-radius: 8px;

    background: #edf8f2;

    color: #16803d;

    font-size: 0.82rem;

    text-align: center;

    line-height: 1.5;
}


.enroll-modal-success.is-visible {
    display: block;
}


/* ============================================================
   SCROLLBAR
============================================================ */

.enroll-modal-card::-webkit-scrollbar {
    width: 5px;
}


.enroll-modal-card::-webkit-scrollbar-thumb {
    background: #b9d9f7;

    border-radius: 10px;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 480px) {

    .enroll-modal-overlay {
        padding: 14px;
    }


    .enroll-modal-card {
        max-width: 100%;

        padding:
            32px
            22px
            24px;

        border-radius: 18px;
    }


    .enroll-modal-card::before {
        border-radius:
            18px
            18px
            0
            0;
    }


    .enroll-modal-title {
        font-size: 1.45rem;

        margin-bottom: 20px;
    }


    .enroll-modal-form {
        gap: 11px;
    }


    .enroll-modal-form input,
    .enroll-modal-form select,
    .enroll-modal-form textarea {
        padding: 12px 13px;

        font-size: 13px;
    }

}