 /* Modal styles */
:root {
            --primary-color: #d8232a;
            --secondary-color: #22c55e;
            --text-dark: #1e293b;
            --text-light: #6b7280;
            --background-light: #f8fafc;
            --white: #ffffff;
            --black: #000000;
            --border-light: #e5e7eb;
        }

  
 .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Adds a blur effect to the background */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    text-decoration: none;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-btn:hover {
    background-color: #114c54;
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .modal-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
