/* Fix for modal z-index to ensure it's above the sticky header */

/* Increase modal z-index above header (which is 3000 on mobile) */
.modal {
    z-index: 5000 !important;
}

.modal-content {
    z-index: 5001 !important;
    position: relative;
}

/* Ensure close button is clickable and visible */
.close-btn {
    position: relative;
    z-index: 5002 !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Ensure modal header doesn't get covered */
.modal-header {
    position: relative;
    z-index: 5001;
}

/* Add some top margin to modal content on mobile to avoid header overlap */
@media (max-width: 768px) {
    .modal-content {
        margin-top: 80px;
    }
}