/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    margin: 0; /* Ensure no margin at the top */
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.6); */
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
    padding: 0 5px;
}

.modal-close:hover,
.modal-close:focus {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.modal-body h4 {
    color: black;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    border-left: 3px solid #f39200;
    padding-left: 12px;
}

.modal-body h4:first-of-type {
    margin-top: 10px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    /* background-color: #f8f9fa; */
}

.modal-footer .custom-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    border: none;
     color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
 

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 70%;
        margin: 5% auto;
        max-height: 75vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        font-size: 13px;
    }
    
    .modal-body h4 {
        font-size: 15px;
    }
    
    .modal-footer .custom-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 60vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-footer .custom-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Animation classes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}
