/* ========================================
   BOOKING MODAL - MAXIMUM Z-INDEX FIX
   ======================================== */

/* Modal Overlay - HIGHEST POSSIBLE Z-INDEX */
.booking-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999999 !important; /* MÁXIMO ABSOLUTO */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity, visibility;
}

/* Modal Active State */
.booking-modal.active {
    display: flex !important;
    -webkit-display: flex !important;
    -moz-display: flex !important;
    -ms-display: flexbox !important;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
}

/* Modal Content Container */
.booking-modal-content {
    position: relative;
    z-index: 999999998 !important;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: var(--green-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    overflow: hidden;
    isolation: isolate;
}

/* Close Button - MÁXIMO Z-INDEX */
.booking-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--gold-primary);
    color: var(--green-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000000 !important; /* AINDA MAIS ALTO */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.booking-modal-close:hover {
    background: var(--ivory);
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

/* Iframe - OnceHub Container */
.booking-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    position: relative;
    z-index: 999999997 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-moz-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        -webkit-transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}

@-webkit-keyframes slideUp {
    from {
        -webkit-transform: translateY(50px);
        opacity: 0;
    }
    to {
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}

@-moz-keyframes slideUp {
    from {
        -moz-transform: translateY(50px);
        opacity: 0;
    }
    to {
        -moz-transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        border-radius: 0;
        border: none;
    }
    
    .booking-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        z-index: 1000000002 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }
    
    .booking-modal {
        padding: 0;
    }
    
    .booking-modal-content iframe {
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .booking-modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
}

/* Prevent body scroll when modal is active */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   SHOE CONFIGURATOR NOTICE POPUP
   ======================================== */

.shoe-notice-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999999 !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.shoe-notice-popup.active {
    display: flex !important;
}

.shoe-notice-content {
    background: var(--green-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: slideUp 0.4s ease;
}

.shoe-notice-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.shoe-notice-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.shoe-notice-text {
    font-size: 16px;
    color: var(--ivory);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.shoe-notice-buttons .btn-primary,
.shoe-notice-buttons .btn-secondary {
    flex: 1;
    min-width: 140px;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.shoe-notice-buttons .btn-primary {
    background: var(--gold-primary);
    color: var(--green-primary);
    font-weight: 600;
}

.shoe-notice-buttons .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 163, 90, 0.4);
}

.shoe-notice-buttons .btn-secondary {
    background: transparent;
    color: var(--ivory);
    border: 1px solid var(--ivory);
}

.shoe-notice-buttons .btn-secondary:hover {
    background: rgba(242, 237, 228, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

@media (max-width: 576px) {
    .shoe-notice-content {
        padding: 40px 25px;
    }
    
    .shoe-notice-icon {
        font-size: 60px;
    }
    
    .shoe-notice-title {
        font-size: 24px;
    }
    
    .shoe-notice-text {
        font-size: 14px;
    }
    
    .shoe-notice-buttons {
        flex-direction: column;
    }
    
    .shoe-notice-buttons .btn-primary,
    .shoe-notice-buttons .btn-secondary {
        width: 100%;
    }
}


