/* assets/css/modal.css */
/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 74, 173, 0.4);
    /* Blue-ish overlay */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

/* Modal Content Card */
.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: left;
    overflow: hidden;
    animation: slideIn 0.3s;
}

/* Header */
.modal-header {
    background: linear-gradient(135deg, #004aad 0%, #0078d4 100%);
    padding: 25px;
    color: white;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.modal-header p {
    margin: 5px 0 0;
    color: #e3f2fd;
    font-size: 0.95rem;
}

/* Body */
.modal-body {
    padding: 30px;
}

/* Close Button */
.close-modal {
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    transition: 0.3s;
    background: #f9f9f9;
}

.modal-input:focus {
    border-color: #004aad;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
}

.modal-input::placeholder {
    color: #999;
}

/* Submit Button */
.btn-submit-modal {
    width: 100%;
    padding: 15px;
    background: #00c853;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-submit-modal:hover {
    background: #009624;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}