/*Modal Background*/
.cef-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cef-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content Box */
.cef-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInScale 0.3s ease-in-out;
    margin: 20px;
}

/* Close Button */
.cef-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #002D62;
    cursor: pointer;
    z-index: 1;
}

.cef-close:hover {
    color: #dcd225;
}

/* Form Styling */
.cef-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #00447c;
}

.cef-form input,
.cef-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.cef-submit-btn {
    display: inline-block;
    background: #002D62;
    color: #dcd225;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.cef-submit-btn:hover {
    background: #dcd225;
    color: #002D62;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cef-modal-content {
        width: 95%;
        padding: 15px;
        margin: 10px;
    }
}