.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(79 79 79 / 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal {
    background-color: white;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to right, #7CBA3D 0%, #008238 100%) repeat;
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.modal-header:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 2;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    color: #008238;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.modal-section-title i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.discount-card {
    background-color: #f8fcff;
    border: 1px solid #e1f0fa;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.discount-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(83, 168, 226, 0.1);
}

.discount-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #7CBA3D 0%, #008238 100%) repeat;
}

.discount-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #008238;
    margin-bottom: 10px;
    line-height: 1;
}

.discount-amount {
    font-size: 1rem;
    color: #e63946;
    font-weight: 700;
    margin-bottom: 5px;
}

.discount-desc {
    color: #555;
    font-size: 0.95rem;
}

.modal-note {
    background-color: #fff9f0;
    border-radius: 10px;
    padding: 18px;
    margin-top: 15px;
    border: 1px solid #ffe7c7;
    position: relative;
}

.modal-note:before {
    content: 'ℹ️';
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 1.2rem;
}

.modal-note p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #8a6d3b;
    padding-bottom: 0 !important;
}

.special-offer {
    background: linear-gradient(135deg, #fff8f8, #fff0f0);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ffd6d6;
    position: relative;
}

.special-offer:before {
    content: '🎁';
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 1.2rem;
}

.special-offer-title {
    color: #c53030;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
        
.hidden {
    display: none !important;
}


@media (max-width: 768px) {
    .main-content {
        padding: 25px;
    }
    
    .clinic-name {
        font-size: 2rem;
    }
    
    .modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
}