/**
 * Advanced Premium Booking Modal - Cafe Branch Booking Pro
 * Features: Multi-layered shadows, Top-right close button, Backdrop blur.
 */

/* 1. Modal Backdrop / Overlay */
.cbb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7); /* Darker backdrop */
    backdrop-filter: blur(10px); /* Modern glass effect */
    display: none; /* Controlled by JS fadeIn/fadeOut */
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 2. Modal Content Container */
.cbb-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 12px;
    padding: 50px 40px;
    position: relative;
    /* ADVANCED ENTERPRISE SHADOW */
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1), 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 100px rgba(0, 0, 0, 0.1);
    animation: cbbPopupScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cbbPopupScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. Close Button (FIXED TO TOP-RIGHT CORNER) */
.cbb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f8f8f8;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000000;
}

.cbb-modal-close:hover {
    background: #e11d48; /* Red on hover */
    color: #ffffff;
    transform: rotate(90deg);
}

/* 4. Modal Header */
.cbb-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.cbb-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.cbb-modal-header p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    color: #0066ff; /* Match your brand blue */
    margin: 0;
}

/* 5. Form Grid & Premium Inputs */
.cbb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cbb-form-group.full-width {
    grid-column: span 2;
}

.cbb-form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cbb-form-group input, 
.cbb-form-group textarea {
    width: 100%;
    background-color: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.3s ease;
}

.cbb-form-group input:focus, 
.cbb-form-group textarea:focus {
    border-color: #0066ff;
    background-color: #ffffff;
}

/* 6. Confirm Booking Button */
.cbb-confirm-btn {
    background: #0066ff; /* Match your image button */
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 50px; /* Rounded pill as per image */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.cbb-confirm-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

/* 7. Success View Styling */
#cbb-step-success {
    text-align: center;
}

.cbb-success-icon {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.cbb-booking-summary {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.cbb-booking-summary p {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.cbb-booking-summary p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cbb-booking-summary b {
    color: #1a1a1a;
}

.cbb-done-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

/* 8. Mobile Responsiveness */
@media (max-width: 640px) {
    .cbb-modal-content {
        padding: 40px 20px 30px;
        border-radius: 0;
        height: 100%;
        max-width: 100%;
    }
    .cbb-form-grid {
        grid-template-columns: 1fr;
    }
    .cbb-form-group.full-width {
        grid-column: span 1;
    }
}