/* ---------------------------
   🔹 Base Container & Button
---------------------------- */
.ceb-container {
    text-align: center;
    margin: 30px 0;
}

#ceb-open-form {
    padding: 12px 22px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

#ceb-open-form:hover {
    background: #004c99;
}

/* ---------------------------
   🔹 Modal Popup
---------------------------- */
.ceb-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ceb-modal-content {
    background-color: #ffffff;
    color: #111;
    margin: 8% auto;
    padding: 25px 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    position: relative;
    font-family: "Arial", sans-serif;
    line-height: 1.4;
}

/* ---------------------------
   🔹 Close Button (×)
---------------------------- */
#ceb-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

#ceb-close:hover {
    color: #e60000;
}

/* ---------------------------
   🔹 Enrollment Form
---------------------------- */
#ceb-enroll-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    margin: 0 auto;
}

#ceb-enroll-form label {
    font-weight: bold;
    text-align: left;
    color: #222;
    font-size: 14px;
}

#ceb-enroll-form input[type="text"],
#ceb-enroll-form input[type="file"] {
    background-color: #fff;
    color: #000;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    width: 100%;
}

#ceb-enroll-form input[type="text"]:focus,
#ceb-enroll-form input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

#ceb-enroll-form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #0073aa;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#ceb-enroll-form button:hover {
    background: #005f8a;
}

/* ---------------------------
   🔹 Message Area
---------------------------- */
#ceb-message {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: #222;
}

/* ---------------------------
   🔹 Hidden Helper Class
---------------------------- */
.ceb-hidden {
    display: none;
}

/* ---------------------------
   🔹 Responsive Adjustments
---------------------------- */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .ceb-modal-content {
        width: 92%;
        margin-top: 15%;
        padding: 20px;
        border-radius: 8px;
    }

    #ceb-enroll-form {
        max-width: 100%;
    }

    #ceb-open-form {
        font-size: 15px;
        padding: 10px 18px;
    }

    #ceb-enroll-form input,
    #ceb-enroll-form button {
        font-size: 15px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .ceb-modal-content {
        width: 95%;
        margin-top: 25%;
        padding: 16px 14px;
        border-radius: 8px;
    }

    #ceb-enroll-form label {
        font-size: 13px;
    }

    #ceb-enroll-form input,
    #ceb-enroll-form button {
        font-size: 14px;
        padding: 9px;
    }

    #ceb-open-form {
        width: 85%;
        font-size: 14px;
        padding: 9px 14px;
    }

    #ceb-close {
        font-size: 22px;
    }
}

/* Very Small Screens (360px and below) */
@media (max-width: 360px) {
    .ceb-modal-content {
        margin-top: 30%;
        padding: 12px;
    }

    #ceb-enroll-form button {
        font-size: 13px;
        padding: 8px;
    }
}

/* 🔹 Login popup styling */
.ceb-login-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.ceb-login-popup .ceb-modal-content {
    background: #fff;
    color: #111;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
}

.ceb-login-popup h3 {
    margin-bottom: 10px;
}

.ceb-login-btn {
    display: inline-block;
    margin-top: 10px;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.ceb-login-btn:hover {
    background: #005f8a;
}
