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

.cleva-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    color: #1a1a1a;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal-content .form-control,
.modal-content .form-control-file {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-content .form-control:focus {
    outline: none;
    border-color: #008577;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.modal-content textarea.form-control {
    resize: vertical;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }
}

/* ========================================
   SUCCESS MODAL STYLES
   ======================================== */

.success-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 50px 40px;
}

.success-modal-content .modal-header {
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #008577;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-content .modal-body h3 {
    font-size: 28px;
    color: #232d4b;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.success-modal-content .modal-body p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.success-modal-content .modal-footer {
    margin-top: 30px;
}

.btn-close-modal {
    background: #008577;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: #006d61;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 133, 119, 0.3);
}

@media (max-width: 768px) {
    .success-modal-content {
        padding: 40px 30px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .success-modal-content .modal-body h3 {
        font-size: 24px;
    }
    
    .success-modal-content .modal-body p {
        font-size: 15px;
    }
}
