/* ========================================= */
/* === MAIN STYLE.CSS (FINAL MERGED) === */
/* ========================================= */

:root {
    --primary-blue: #003B72;
    --accent-blue: #008CBA;
    --bg-color: #f4f8fb;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --border-radius: 20px;
    --max-width: 1200px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    margin: 0; padding: 0; padding-bottom: 120px;
}

/* ========================================= */
/* === 1. GLOBAL LAYOUT (FIXED) === */
/* ========================================= */
.booking-wrapper { max-width: var(--max-width); margin: 40px auto; padding: 0 20px; }

.booking-container {
    display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start;
    max-width: var(--max-width); margin: 0 auto;
}

/* Columns */
.booking-main, .left-column { flex: 2; min-width: 300px; }

.booking-sidebar, .right-column { 
    flex: 1; min-width: 350px; 
    position: sticky; top: 20px; height: fit-content; z-index: 10;
}

/* Kiosk Top Bar */
.kiosk-top-bar {
    width: 95%; max-width: 1200px; margin: 20px auto;
    display: flex; justify-content: flex-start;
}
.kiosk-back-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: #333; color: #fff; padding: 10px 25px;
    border-radius: 50px; text-decoration: none; font-weight: bold;
    transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.kiosk-back-btn:hover { background-color: #000; transform: translateY(-2px); }

/* ========================================= */
/* === 2. CARDS & GENERAL STYLES === */
/* ========================================= */
.ww-main-card, .card, .sidebar-box, .white-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

/* Images in Cards */
.ticket-main { display: flex; gap: 20px; margin-bottom: 25px; }
.ticket-img { width: 200px; height: 200px; border-radius: 15px; object-fit: cover; flex-shrink: 0; }

/* Typography */
.section-title, .checkout-card h3 { 
    color: var(--primary-blue); margin-bottom: 15px; 
    font-weight: 700; font-size: 1.2rem; margin-top: 0;
}
.ticket-info h2 { color: var(--primary-blue); margin: 0 0 10px 0; font-size: 1.5rem; }
.ticket-info p { color: #666; font-size: 0.9rem; line-height: 1.5; margin: 5px 0; }

/* Inputs */
.ww-form-group { display: flex; flex-direction: column; gap: 15px; }
.ww-input {
    background: #f2f2f2; border: 1px solid #ccc; padding: 12px;
    border-radius: 8px; width: 100%; box-sizing: border-box; font-size: 1rem;
}
.ww-input:focus { background: #fff; border-color: var(--primary-blue); outline: none; }

/* ========================================= */
/* === 3. PRICING & COUNTERS (Book.php) === */
/* ========================================= */
.pricing-section {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #eee; padding-top: 20px; flex-wrap: wrap; gap: 15px;
}
.price-item { display: flex; align-items: center; gap: 15px; }
.price-label strong { display: block; color: var(--primary-blue); font-size: 1.1rem; }
.price-label span { font-size: 0.75rem; color: #888; }

.counter-box {
    display: flex; align-items: center; background: #fff;
    border: 1px solid #ddd; border-radius: 50px; padding: 5px;
}
.counter-btn {
    background: none; border: none; font-size: 1.2rem; color: var(--primary-blue);
    cursor: pointer; width: 30px; height: 30px; 
    display: flex; align-items: center; justify-content: center;
}
.counter-value { 
    font-weight: bold; min-width: 30px; text-align: center; border: none; 
    font-size: 1rem; width: 40px; background: transparent;
}

/* ========================================= */
/* === 4. UPGRADES GRID (Book.php) === */
/* ========================================= */
.upgrades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.upgrade-card {
    background: white; border-radius: var(--border-radius); padding: 20px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
    position: relative; display: block; user-select: none;
}
.addon-checkbox { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.upgrade-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.upgrade-card:has(.addon-checkbox:checked) { border-color: var(--primary-blue); background-color: #eef7fc; }
.upgrade-icons { font-size: 2rem; color: var(--accent-blue); margin-bottom: 10px; }

/* ========================================= */
/* === 5. CALENDAR (Book.php) === */
/* ========================================= */
.calendar-card { padding: 25px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--primary-blue); font-weight: bold; }
.cal-nav { cursor: pointer; color: var(--accent-blue); background:none; border:none; font-size:1.2rem;}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 10px; }
.day-name { color: var(--primary-blue); font-weight: bold; font-size: 0.8rem; margin-bottom: 10px; }
.cal-date { color: #ccc; padding: 10px 0; font-size: 0.9rem; border-radius: 10px; }
.cal-date.active { color: #555; cursor: pointer; transition: 0.2s; }
.cal-date.active:hover { background-color: #f0f8ff; color: var(--primary-blue); font-weight: bold; }
.cal-date.selected { background-color: var(--primary-blue); color: white; }

/* CONTROL NG CALENDAR START */
.cal-date {
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    position: relative;
}

.cal-date small {
    display: block;
    font-size: 0.65rem;
    margin-top: 3px;
    opacity: 0.8;
}

.cal-date.active {
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.cal-date.active:hover {
    background-color: #f0f8ff;
    color: var(--primary-blue);
    font-weight: bold;
}

.cal-date.selected {
    background-color: var(--primary-blue);
    color: white;
}

.cal-date.disabled {
    background: #f3f4f6;
    color: #b8bcc3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-date.full {
    background: #fff1f1;
    color: #c0392b;
    cursor: not-allowed;
    border: 1px solid #f5c6c6;
}

.cal-date.full small {
    color: #c0392b;
    opacity: 1;
}

/* CONTROL NG CALENDAR END */

/* ========================================= */
/* === 6. SUMMARY & CHECKOUT SPECIFICS === */
/* ========================================= */
/* Sidebar Summary Items */
.cart-item-row, .summary-item-row { 
    display: flex; gap: 15px; border-bottom: 1px solid #eee; 
    padding-bottom: 15px; margin-bottom: 15px; align-items: center; 
}
.summary-total-row { 
    display: flex; justify-content: space-between; margin-top: 20px; 
    font-size: 1.2rem; border-top: 2px solid var(--primary-blue); 
    padding-top: 15px; font-weight: 700; color: var(--primary-blue); 
}

/* Checkout Payment Options */
.payment-option {
    background: #f9f9f9; border: 1px solid #ddd; padding: 15px; border-radius: 10px;
    display: flex; align-items: center; margin-bottom: 15px; cursor: pointer; transition: 0.2s;
}
.payment-option:hover { border-color: var(--primary-blue); background: white; }
.payment-option input { display: none; }
.radio-dot {
    width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; 
    margin-right: 15px; position: relative; flex-shrink: 0; 
}
.payment-option input:checked + .radio-dot { border-color: var(--primary-blue); }
.payment-option input:checked + .radio-dot::after {
    content: ''; width: 10px; height: 10px; background: var(--primary-blue); 
    border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.pay-icons { margin-left: auto; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* Promo Code Box */
.discount-box { background: #f8f9fa; padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #e9ecef; }
.discount-form { display: flex; gap: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.discount-input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-right: none; outline: none; }
.btn-apply { background: var(--primary-blue); color: white; border: none; padding: 0 20px; cursor: pointer; font-weight: bold; }
.btn-remove { background: #fff; color: #dc3545; border: 1px solid #dc3545; padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; cursor: pointer; }

/* ========================================= */
/* === 7. FOOTER & STEPS === */
/* ========================================= */
.ww-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--primary-blue);
    padding: 15px 0; z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.ww-footer-inner {
    max-width: 1000px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.ww-footer-left { color: white; display: flex; flex-direction: column; }
.ww-total-lbl { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }
.ww-total-val { font-size: 1.5rem; font-weight: 700; }

.ww-footer-right { display: flex; align-items: center; gap: 15px; }
.ww-next-btn {
    background: white; color: var(--primary-blue); border: none;
    padding: 12px 35px; font-weight: 800; border-radius: 30px;
    cursor: pointer; transition: 0.2s; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap;
}
.ww-next-btn:hover { background: #f0f0f0; transform: scale(1.05); }
.ww-next-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Steps */
.ww-steps-container { display: flex; gap: 10px; align-items: center; }
.ww-step-circle { width: 30px; height: 30px; background: rgba(255,255,255,0.2); border-radius: 50%; color: white; display: grid; place-items: center; font-size: 0.8rem; }
.ww-step-circle.active { background: white; color: var(--primary-blue); font-weight: 700; }
.ww-step-line { width: 30px; height: 1px; background: rgba(255,255,255,0.2); }

/* ========================================= */
/* === 8. MOBILE RESPONSIVE === */
/* ========================================= */
@media (max-width: 900px) {
    .booking-container { flex-direction: column; }
    .ticket-main { flex-direction: column; }
    .ticket-img { width: 100%; height: 200px; }
    .upgrades-grid { grid-template-columns: 1fr; }
    .pricing-section { flex-direction: column; align-items: stretch; }
    
    /* Mobile Footer */
    .ww-steps-container { display: none !important; }
    .ww-footer-inner { flex-direction: row; justify-content: space-between; padding: 5px 15px; }
    .ww-footer-right { gap: 8px; }
    .ww-next-btn { padding: 10px 18px; font-size: 0.85rem; height: 40px; }
    .ww-total-lbl { font-size: 0.65rem; }
    .ww-total-val { font-size: 1.1rem; }
}