/* NextLabs Booking - Confirmation Modal Styles */

/* Modal Container */
.nlb-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nlb-confirmation-modal.show {
    display: flex;
}

/* Modal Content */
.nlb-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Modal Close Button */
.nlb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.nlb-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.nlb-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #333;
}

/* Modal Header */
.nlb-modal-header {
    background: linear-gradient(135deg, #024E72 0%, #0A6FA6 100%);
    color: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.nlb-modal-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.nlb-modal-header .booking-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* Modal Body */
.nlb-modal-body {
    padding: 30px;
}

/* Booking Details Section */
.nlb-booking-details {
    background: #F8FBFD;
    border: 1px solid #D6EAF3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.nlb-booking-details h3 {
    margin: 0 0 15px;
    color: #024E72;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.nlb-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(214, 234, 243, 0.5);
}

.nlb-detail-row:last-child {
    border-bottom: none;
}

.nlb-detail-label {
    color: #666;
    font-size: 14px;
}

.nlb-detail-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Payment Instructions - Bank Transfer */
.nlb-payment-instructions {
    background: #FFF4E6;
    border: 1px solid #F3780D;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.nlb-payment-instructions h3 {
    margin: 0 0 15px;
    color: #F3780D;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.nlb-bank-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

.nlb-bank-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Payment Instructions - Stripe */
.nlb-payment-stripe {
    background: #E8F4FD;
    border: 2px solid #1A73E8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.nlb-payment-stripe h3 {
    margin: 0 0 10px;
    color: #1A73E8;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.nlb-payment-stripe p {
    margin: 0 0 15px;
    color: #666;
}

.nlb-btn-stripe {
    background: #1A73E8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nlb-btn-stripe:hover {
    background: #1557B0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.nlb-btn-stripe svg {
    width: 20px;
    height: 20px;
}

/* Modal Actions */
.nlb-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #E5E7EB;
}

.nlb-modal-actions button,
.nlb-modal-actions a {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlb-btn-print {
    background: #024E72;
    color: white;
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlb-btn-print:hover {
    background: #0A6FA6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 78, 114, 0.3);
}

.nlb-btn-print:focus,
.nlb-btn-print:active {
    background: #024E72 !important;
    color: white !important;
    outline: none;
}

.nlb-btn-close {
    background: #F3780D;
    color: white;
}

.nlb-btn-close:hover {
    background: #e06a0c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 120, 13, 0.3);
}

/* Loading Modal */
#nlb-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlb-loading-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nlb-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #024E72;
    border-radius: 50%;
    animation: nlb-spin 1s linear infinite;
    margin: 0 auto 20px;
}
/* @keyframes nlb-spin definita in frontend.css */

.nlb-loading-text {
    color: #333;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .nlb-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .nlb-modal-header {
        padding: 20px;
    }
    
    .nlb-modal-header h2 {
        font-size: 22px;
    }
    
    .nlb-modal-header .booking-code {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .nlb-modal-body {
        padding: 20px;
    }
    
    .nlb-modal-actions {
        flex-direction: column;
    }

    .nlb-modal-actions button,
    .nlb-modal-actions a {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    body > *:not(.nlb-confirmation-modal) {
        display: none !important;
    }
    
    .nlb-confirmation-modal {
        display: block !important;
        position: static !important;
        background: transparent !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nlb-modal-content {
        max-width: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .nlb-modal-close,
    .nlb-modal-actions,
    .nlb-btn-stripe {
        display: none !important;
    }
    
    .nlb-modal-header {
        background: none !important;
        color: #024E72 !important;
        border-bottom: 2px solid #024E72 !important;
        page-break-after: avoid !important;
    }
    
    .nlb-modal-header h2 {
        color: #024E72 !important;
    }
    
    .nlb-modal-header .booking-code {
        background: #024E72 !important;
        color: white !important;
    }
    
    .nlb-booking-details,
    .nlb-payment-instructions {
        page-break-inside: avoid !important;
        border: 1px solid #ddd !important;
    }
    
    .nlb-bank-details {
        background: #f5f5f5 !important;
        border: 1px solid #333 !important;
    }
    
    /* Forza tutto su una pagina */
    .nlb-confirmation-modal {
        page-break-inside: avoid !important;
        page-break-before: auto !important;
        page-break-after: avoid !important;
    }
}