/**
 * Combined and Optimized Styles for Booking System
 * Includes: index.php, booking.php, invoice.php styles
 * Date: January 28, 2026
 */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
    /* Color Palette */
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.header {
    background: var(--gradient-1);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
    margin: 0;
}

.filter-bar {
    background: white;
    padding: 25px;
    margin: -30px auto 30px;
    max-width: 1140px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.filter-bar label {
    font-weight: 600;
    color: var(--secondary-color);
}

.filter-bar select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: white;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-bar .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.filter-bar .btn-primary {
    background: var(--gradient-3);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.filter-bar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1)),
                linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.product-footer {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-label {
    font-size: 0.75rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.btn-book {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.4);
    color: white;
}

body.booking-page {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.main-container {
    padding-top: 20px;
    padding-bottom: 40px;
}

.product-header {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    background: #f8f9fa;
    padding: 10px;
    flex-shrink: 0;
}

.product-info {
    flex-grow: 1;
}

.product-branch {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.card {
    border: 3px solid #cbd5e0;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 20px;
}

/* Booking page overrides to avoid inline styles */
body.booking-page .card {
    border-radius: 20px !important;
}

body.booking-page .card-body {
    border-radius: 18px !important;
}

body.booking-page .card-body.card-body-bg {
    background-color: #eaf3f9 !important;
}

body.booking-page .addon-price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

body.booking-page .addon-card {
    display: flex;
    position: relative;
    overflow: visible;
}

body.booking-page #addons-container .addon-card.h-100 {
    height: 100% !important;
}

body.booking-page #addons-container .row.g-3 {
    align-items: stretch;
}

body.booking-page .addon-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px 12px !important;
    gap: 5px;
    text-align: center;
}

body.booking-page .addon-card .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    min-height: auto;
}

body.booking-page .addon-card .form-check-input {
    margin-top: 0;
}

body.booking-page .addon-image-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    line-height: 0;
}

body.booking-page .addon-image-thumb {
    width: 100%;
    max-width: 220px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

body.booking-page .addon-image-modal-img {
    width: 100%;
    height: min(70vh, 720px);
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s ease;
    transform-origin: center center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

body.booking-page .addon-image-modal-dialog {
    max-width: min(920px, 92vw);
}

body.booking-page .addon-image-modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
}

body.booking-page .addon-image-modal-body {
    position: relative;
    overflow: hidden;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.14), transparent 55%),
        #eef4fb;
}

body.booking-page .addon-image-overlay-controls {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 3;
}

body.booking-page .addon-close-btn-simple {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.booking-page .addon-close-btn-simple:hover {
    color: #f8fafc;
}

body.booking-page .addon-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

body.booking-page .addon-image-nav-prev {
    left: 12px;
}

body.booking-page .addon-image-nav-next {
    right: 12px;
}

body.booking-page .addon-image-nav:hover {
    background: #0ea5e9;
}

body.booking-page .booking-announcement-modal-dialog {
    max-width: 520px;
}

body.booking-page .booking-announcement-modal-dialog.booking-announcement-modal-dialog-image {
    max-width: 760px;
}

body.booking-page .booking-announcement-modal-content {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-promo {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f2fff8 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-plain {
    border-color: rgba(148, 163, 184, 0.35);
    background: #ffffff;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-celebration {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, #ffffff 0%, #fff8ec 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-ocean {
    border-color: rgba(14, 165, 233, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #effbff 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark {
    border-color: rgba(30, 41, 59, 0.45);
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-urgent {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-display-image {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

body.booking-page .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 88% -35%, rgba(42, 157, 143, 0.22) 0%, rgba(42, 157, 143, 0) 48%),
        radial-gradient(circle at -5% 10%, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 46%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    padding: 0.88rem 0.9rem 0.8rem;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-promo .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 88% -35%, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0) 48%),
        radial-gradient(circle at -5% 10%, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 46%),
        linear-gradient(180deg, #f4fff8 0%, #eafff3 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-plain .booking-announcement-modal-header {
    background: #ffffff;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-celebration .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 85% -30%, rgba(251, 191, 36, 0.26) 0%, rgba(251, 191, 36, 0) 48%),
        radial-gradient(circle at -2% 8%, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 46%),
        linear-gradient(180deg, #fff7eb 0%, #ffeed9 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-ocean .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 84% -32%, rgba(56, 189, 248, 0.24) 0%, rgba(56, 189, 248, 0) 48%),
        radial-gradient(circle at -4% 8%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 46%),
        linear-gradient(180deg, #eff9ff 0%, #e3f4ff 100%);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 84% -30%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 48%),
        radial-gradient(circle at -4% 10%, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 46%),
        linear-gradient(180deg, #1e293b 0%, #111827 100%);
    border-bottom-color: rgba(71, 85, 105, 0.8);
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-urgent .booking-announcement-modal-header {
    background:
        radial-gradient(circle at 88% -35%, rgba(248, 113, 113, 0.2) 0%, rgba(248, 113, 113, 0) 48%),
        radial-gradient(circle at -5% 10%, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0) 46%),
        linear-gradient(180deg, #fff6f6 0%, #ffecec 100%);
}

body.booking-page .booking-announcement-header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 42px;
}

body.booking-page .booking-announcement-modal-title {
    color: #1f3b57;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-align: center;
    margin: 0;
}

body.booking-page .booking-announcement-logo {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #d8e5f3;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    background: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.booking-page .booking-announcement-modal-body-image {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

body.booking-page .booking-announcement-image-only {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78vh, 920px);
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.booking-page .booking-announcement-close-below {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

body.booking-page .booking-announcement-image-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.booking-page .booking-announcement-image-dismiss:hover {
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-1px);
}

body.booking-page .booking-announcement-title-text {
    line-height: 1.2;
    font-size: 1.35rem;
    font-weight: 800;
    color: #17324d;
}

body.booking-page .booking-announcement-modal-body {
    padding: 0.95rem 1rem 1.2rem;
    text-align: center;
}

body.booking-page .booking-announcement-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c9dcf2;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
    border-radius: 999px;
    padding: 0.18rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #46617d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.68rem;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-promo .booking-announcement-kicker {
    border-color: #b8eccc;
    background: linear-gradient(180deg, #ffffff 0%, #effdf4 100%);
    color: #166534;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-plain .booking-announcement-kicker {
    display: none;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-celebration .booking-announcement-kicker {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffdf6 0%, #fff7db 100%);
    color: #9a3412;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-ocean .booking-announcement-kicker {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #f8feff 0%, #eaf9ff 100%);
    color: #0c4a6e;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-kicker {
    border-color: #334155;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #cbd5e1;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-urgent .booking-announcement-kicker {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f1 100%);
    color: #b91c1c;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-title-text,
body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-message {
    color: #e2e8f0;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-expiry {
    border-color: #334155;
    background: #1e293b;
    color: #cbd5e1;
}

body.booking-page .booking-announcement-modal-content.booking-announcement-tone-dark .booking-announcement-close {
    border-color: #334155;
    background-color: #1f2937;
    filter: invert(1) grayscale(1);
}

body.booking-page .booking-announcement-message {
    color: #334155;
    font-size: 1rem;
    line-height: 1.45;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-line;
}

body.booking-page .booking-announcement-expiry {
    font-size: 0.77rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8e5f3;
    background: #f8fbff;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
}

body.booking-page .booking-announcement-close {
    position: absolute;
    right: 0px;
    top: -5px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px;
    border: 1px solid #cbd9ea;
    background-color: #f8fbff;
    background-size: 14px 14px;
    background-position: center;
    opacity: 1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

body.booking-page .booking-announcement-close:hover {
    background-color: #eef5ff;
    border-color: #b8cce5;
}

@media (max-width: 768px) {
    body.booking-page .booking-announcement-title-text {
        font-size: 1.06rem;
    }

    body.booking-page .booking-announcement-logo {
        width: 64px;
        height: 64px;
    }

    body.booking-page .booking-announcement-message {
        font-size: 0.94rem;
        max-width: 96%;
    }
}

body.booking-page .addon-price-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

body.booking-page .addon-base-price-amount {
    position: relative;
    display: inline-block;
}

body.booking-page .addon-base-price-amount::after {
    content: "";
    position: absolute;
    left: -8%;
    top: 50%;
    width: 116%;
    height: 5px;
    background: #dc2626;
    opacity: 0.6;
    transform: translateY(-50%) rotate(-5deg);
    transform-origin: center;
    border-radius: 4px;
    pointer-events: none;
}

.card.shadow-sm {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-body {
    padding: 1.75rem;
    border-radius: 18px;
}

.card-header {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.calendar-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-top: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.calendar-nav-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Calendar months grid uses Bootstrap .row class */

.month-container {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.month-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8f9fa;
    color: var(--secondary-color);
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: var(--gradient-3);
    color: white;
}

.calendar-day.selected {
    background: var(--gradient-1);
    color: white;
    font-weight: 700;
    border: 2px solid #764ba2;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
}

.calendar-day.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: #ced4da;
    background: transparent;
}

.calendar-day.full {
    background: #f8d7da;
    color: #721c24;
}

.calendar-day.limited {
    background: #fff3cd;
    color: #856404;
}

.option-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}

.option-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.option-price {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.selected-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.selected-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.item-qty {
    font-size: 0.85rem;
    color: #6c757d;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 5px;
    transition: all var(--transition-fast);
}

.btn-remove:hover {
    color: #c0392b;
    transform: scale(1.2);
}

.total-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.selected-date-display {
    background: white;
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--success-color);
    display: none;
    align-items: center;
    justify-content: space-between;
}

.selected-date-display.show {
    display: flex;
}

.selected-date-text {
    font-weight: 600;
    color: var(--secondary-color);
}

.right-section {
    position: sticky;
    top: 20px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #95a5a6;
}

.empty-state-icon {
    font-size: 100px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #7f8c8d;
    font-weight: 600;
}

.product-count {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.disabled-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    cursor: not-allowed;
}

.disabled-section .badge {
    opacity: 0.6;
}

/* ========================================
   INVOICE PAGE SPECIFIC STYLES
   ======================================== */
body.invoice-page {
    background: var(--gradient-1);
    padding: 5px;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.invoice-page * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body.invoice-page *::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.invoice-container {
    max-width: 780px;
    width: 100%;
    height: calc(100vh - 10px);
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.invoice-header {
    background: var(--gradient-1);
    color: white;
    padding: 10px 15px 0px 15px;
    flex-shrink: 0;
}

.branch-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.branch-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.branch-info {
    text-align: center;
}

.branch-info h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.branch-info p {
    margin: 2px 0 0 0;
    opacity: 0.95;
    font-size: 0.75rem;
}

.invoice-details {
    text-align: center;
}

.invoice-details h1 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.invoice-details p {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

/* Status badge is now a corner triangle - see .status-badge below */


.invoice-body {
    padding: 20px 15px 20px 15px;
    flex: 0 1 auto;
    overflow: visible;
    display: block;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    margin-top: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    flex-shrink: 0;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.info-card p {
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: #495057;
    display: inline-block;
    width: 100px;
    font-size: 0.85rem;
}

/* Scrollable description content */
.description-content {
    max-height: 90px;
    overflow-y: auto;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #212529;
    scrollbar-width: thin;
    scrollbar-color: #667eea #e5e7eb;
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.description-content::-webkit-scrollbar {
    width: 10px;
    display: block !important;
}

.description-content::-webkit-scrollbar-track {
    background: linear-gradient(to right, #e5e7eb 0%, #f3f4f6 100%);
    border-radius: 10px;
    margin: 5px 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.description-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.description-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4451b8 0%, #552f73 100%);
}

.items-table {
    width: 100%;
    margin-top: 6px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.items-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.items-table th,
.items-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    line-height: 1.4;
}

.items-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
}

.items-table th:nth-child(1),
.items-table td:nth-child(1) {
    width: 40%;
}

.items-table th:nth-child(2),
.items-table td:nth-child(2) {
    width: 20%;
}

.items-table th:nth-child(3),
.items-table td:nth-child(3) {
    width: 20%;
}

.items-table th:nth-child(4),
.items-table td:nth-child(4) {
    width: 20%;
}

.items-table tbody tr {
    transition: background-color 0.2s ease;
}

.items-table tbody tr:hover {
    background: #f8f9fa;
}

.items-table tbody tr:last-child td {
    border-bottom: none;
}

.total-row {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    font-weight: 700;
    font-size: 0.85rem;
    border-top: 2px solid #667eea;
}

.total-row td {
    padding: 10px;
    color: #667eea;
    font-weight: 700;
}

.total-row td:last-child {
    font-size: 1rem;
}

.action-buttons {
    margin-top: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Below */
@media (max-width: 991px) {
    .calendar-months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .header {
        padding: 40px 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .filter-bar {
        margin: -20px 15px 20px;
        padding: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-footer {
        flex-wrap: nowrap !important;
        gap: 10px;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .price-label {
        font-size: 0.65rem;
    }
    
    .btn-book {
        padding: 10px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .product-header {
        flex-direction: column;
    }
    
    .product-logo {
        width: 80px;
        height: 80px;
    }
    
    .product-title {
        font-size: 1.4rem;
    }
    
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
    
    .calendar-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .month-title {
        font-size: 0.9rem;
    }
    
    .invoice-body {
        padding: 20px;
    }
    
    .invoice-header {
        padding: 20px;
    }
    
    .branch-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .branch-logo {
        width: 70px;
        height: 70px;
    }
    
    .invoice-details h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .info-card strong {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }
    
    .items-table {
        font-size: 0.85rem;
    }
    
    .items-table th,
    .items-table td {
        padding: 8px 6px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .invoice-container {
        box-shadow: none;
    }
    
    .action-buttons,
    .no-print {
        display: none;
    }
    
    .header,
    .filter-bar {
        display: none;
    }
    
    .description-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .items-table {
        page-break-inside: avoid;
    }

    .items-table tr,
    .items-table thead,
    .items-table tfoot {
        page-break-inside: avoid;
    }

    .discount-row td {
        font-size: 0.9rem;
    }

    .total-row td {
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.bg-primary { background: var(--primary-color) !important; }
.bg-gradient-1 { background: var(--gradient-1) !important; }
.bg-gradient-2 { background: var(--gradient-2) !important; }
.bg-gradient-3 { background: var(--gradient-3) !important; }

/* ========================================
   MOBILE OPTIMIZATION FOR INVOICE
   ======================================== */

/* General Invoice Page Spacing */
.invoice-page .row {
    margin-bottom: 0 !important;
}

.invoice-page .col-md-6 {
    margin-bottom: 8px !important;
}

.invoice-page .mb-4 {
    margin-bottom: 8px !important;
}

/* Corner Ribbon Status Badge */
.invoice-header {
    position: relative;
    overflow: hidden;
}

.status-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-style: solid;
    border-width: 0 80px 80px 0;
    z-index: 10;
    overflow: visible;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.status-badge::after {
    content: attr(data-status);
    position: absolute;
    top: 32px;
    left: 48px;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .status-badge {
        width: 70px;
        height: 70px;
        border-width: 0 70px 70px 0;
    }
    
    .status-badge::after {
        top: 28px;
        left: 42px;
        font-size: 0.6rem;
    }
}

/* Status colors */
.status-pending {
    border-color: transparent #ffc107 transparent transparent;
}

.status-paid {
    border-color: transparent #28a745 transparent transparent;
}

.status-confirmed {
    border-color: transparent #0dcaf0 transparent transparent;
}

.status-cancelled {
    border-color: transparent #dc3545 transparent transparent;
}

@media (max-width: 768px) {
    body.invoice-page {
        font-size: 0.65rem;
        padding: 1.25rem 1.25rem calc(15vh + env(safe-area-inset-bottom, 0px)) 1.25rem;
        min-height: 100vh;
    }
    .invoice-container {
        padding: 0;
        max-height: calc(100vh - 3.5rem);
        height: auto;
        border-radius: 0.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        margin-bottom: 0;
    }
    .invoice-header {
        padding: 3px 6px 0px 6px !important;
        margin-bottom: 2px !important;
    }
    .invoice-header h1 {
        font-size: 0.7rem !important;
    }
    .invoice-header p {
        font-size: 0.6rem !important;
        margin-bottom: 1px !important;
    }
    .invoice-body {
        padding: 15px !important;
    }
    .branch-header {
        flex-direction: row !important;
        gap: 5px !important;
        margin-bottom: 2px !important;
        padding-bottom: 2px !important;
    }
    .branch-header img {
        width: 32px !important;
        height: 32px !important;
    }
    .branch-header h2 {
        font-size: 0.7rem !important;
    }
    .branch-header p {
        font-size: 0.58rem !important;
    }
    .status-badge {
        width: 60px;
        height: 60px;
        border-width: 0 60px 60px 0;
    }
    
    .status-badge::after {
        top: 24px;
        left: 36px;
        font-size: 0.5rem;
    }
    .section-title {
        font-size: 0.65rem !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
    }
    .info-card {
        padding: 3px 5px !important;
        margin-bottom: 2px !important;
    }
    .info-card p {
        margin-bottom: 1px !important;
        font-size: 0.63rem !important;
        line-height: 1.2 !important;
    }
    .info-card strong {
        width: 70px;
        font-size: 0.63rem !important;
    }
    .items-table {
        font-size: 0.63rem !important;
        margin-top: 2px !important;
    }
    .items-table th,
    .items-table td {
        padding: 3px 2px !important;
        font-size: 0.63rem !important;
    }
    .items-table th {
        font-size: 0.6rem !important;
    }
    .total-row {
        font-size: 0.63rem !important;
    }
    .total-row td {
        padding: 4px 2px !important;
    }
    .total-row td:last-child {
        font-size: 0.7rem !important;
    }
    .action-buttons {
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
    }
    .action-buttons .btn {
        flex: 1;
        font-size: 0.7rem !important;
        padding: 5px 8px !important;
        justify-content: center !important;
        white-space: nowrap;
    }
    .row.mb-4 {
        margin-bottom: 2px !important;
    }
    .col-md-6.mb-4 {
        margin-bottom: 2px !important;
    }
    
    /* Mobile footer styling - uses relative units for better scaling */
    footer {
        padding: 0.4rem 0.5rem !important;
        margin-top: 0.3rem !important;
        font-size: 0.65rem !important;
        position: fixed;
        bottom: env(safe-area-inset-bottom, 0);
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    footer p {
        font-size: 0.65rem !important;
    }
}

/* Extra adjustments for very small screens */
@media (max-width: 768px) and (max-height: 700px) {
    body.invoice-page {
        padding-bottom: calc(18vh + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Extra adjustments for very tall screens */
@media (max-width: 768px) and (min-height: 900px) {
    body.invoice-page {
        padding-bottom: calc(12vh + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Promo/Voucher summary card */
.promo-card {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 12px;
}

.promo-card .input-group-text {
    background: #fff;
}

.promo-card .form-text {
    min-height: 18px;
}

.calendar-container {
    position: relative;
}

.calendar-loading {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 12px;
}

/* Booking page visual polish */
body.booking-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 40%),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 45%),
        linear-gradient(180deg, #f5f9ff 0%, #eef4fb 100%);
}

body.booking-page .header {
    background: linear-gradient(135deg, #0f4c81 0%, #1f6f9b 45%, #2a9d8f 100%);
    box-shadow: 0 14px 34px rgba(15, 76, 129, 0.28);
}

body.booking-page .header h1 {
    letter-spacing: 0.2px;
}

body.booking-page .main-container > .content {
    animation: bookingFadeUp 0.45s ease-out;
}

body.booking-page .product-header {
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    align-items: center;
    justify-content: center;
}

body.booking-page .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 0;
}

body.booking-page .product-logo {
    border: 1px solid #dbe4ef;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

body.booking-page .initial-hidden {
    display: none;
}

body.booking-page .booking-step-badge {
    font-size: 1rem;
    padding: 8px 12px;
}

body.booking-page .phone-country-code-select {
    max-width: 180px;
}

body.booking-page .phone-country-code-help {
    font-size: 0.75rem;
}

body.booking-page .card {
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

body.booking-page .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

body.booking-page .card-title {
    color: #1f3b57;
}

body.booking-page .card-title i {
    color: #0f69a8;
}

body.booking-page .card-body.card-body-bg {
    background:
        linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%) !important;
    border: 1px solid #dfeaf6;
}

body.booking-page .badge.bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

body.booking-page .badge.bg-info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
}

body.booking-page .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff;
}

body.booking-page .badge.bg-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

body.booking-page .form-control,
body.booking-page .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    min-height: 44px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

body.booking-page textarea.form-control {
    min-height: 84px;
}

body.booking-page .form-control:focus,
body.booking-page .form-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

body.booking-page .calendar-container {
    border: 1px solid #d8e5f2;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f8ff 100%);
}

body.booking-page #calendar-months-grid > [class*="col-"] {
    display: flex;
}

body.booking-page #calendar-months-grid .month-container {
    width: 100%;
}

body.booking-page .calendar-month-col {
    margin-bottom: 0;
}

/* Unified booking calendar styling */
body.booking-page #date-section .calendar-container {
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fafdff 0%, #eff6ff 100%);
    border: 1px solid #d7e5f4;
}

body.booking-page #date-section .calendar-header {
    margin-bottom: 14px;
}

body.booking-page #date-section .calendar-month-year {
    font-size: 1rem;
    font-weight: 700;
    color: #1f3b57;
    letter-spacing: 0.2px;
}

body.booking-page #calendar-months-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.booking-page #date-section .month-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid #d8e5f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

body.booking-page #date-section .month-title {
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    padding: 0 0 8px;
    color: #1f3b57;
    border-bottom: 1px solid #e2e8f0;
}

body.booking-page #date-section .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

body.booking-page #date-section .calendar-day-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    padding: 3px 0;
}

body.booking-page #date-section .calendar-day {
    min-height: 34px;
    aspect-ratio: 1;
    border-radius: 9px;
    border: 1px solid #d4e0ee;
    background: #f8fbff;
    color: #1e3a56;
    font-size: 0.79rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.booking-page #date-section .calendar-day:hover:not(.disabled):not(.other-month) {
    background: #e1efff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: none;
}

body.booking-page #date-section .calendar-day.selected {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1e40af;
    color: #fff;
    box-shadow: 0 7px 12px rgba(37, 99, 235, 0.28);
}

body.booking-page #date-section .calendar-day.today {
    border-color: #0284c7;
    box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.16);
}

body.booking-page #date-section .calendar-day.full {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

body.booking-page #date-section .calendar-day.limited {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

body.booking-page #date-section .calendar-day.disabled {
    background: #e2e8f0;
    border-color: #d5dde8;
    color: #94a3b8;
}

body.booking-page #date-section .calendar-day.other-month {
    background: transparent;
    border-color: transparent;
    color: #cbd5e1;
}

body.booking-page .summary-ticket-icon {
    margin-top: 2px;
}

body.booking-page .summary-option-name {
    font-size: 0.95rem;
}

body.booking-page .summary-option-meta {
    font-size: 0.85rem;
}

body.booking-page .summary-meta-text {
    font-size: 0.9rem;
}

body.booking-page .addon-card-clickable {
    cursor: pointer;
}

body.booking-page .addon-selectable {
    position: relative;
}

body.booking-page .addon-form-check-hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

body.booking-page .addon-check-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

body.booking-page .addon-tick-indicator {
    position: absolute;
    top: auto;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    transition: all 0.2s ease;
    pointer-events: none;
}

body.booking-page .addon-card.is-selected {
    border-color: rgba(16, 185, 129, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 8px 16px rgba(15, 23, 42, 0.1) !important;
}

body.booking-page .addon-card.is-selected .addon-tick-indicator {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

body.booking-page .transport-check-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

body.booking-page .transport-option-card {
    position: relative;
    border: 1px solid #d7e2ef;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.booking-page .transport-option-card:hover {
    border-color: #9ec5f8;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

body.booking-page .transport-card-tick-indicator {
    position: absolute;
    top: auto;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

body.booking-page .transport-option-card.is-selected {
    border-color: rgba(16, 185, 129, 0.65);
    background: #f8fffb;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 8px 14px rgba(15, 23, 42, 0.08);
}

body.booking-page .transport-option-card.is-selected .transport-card-tick-indicator {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

body.booking-page .transport-option-card.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.booking-page .transport-option-card .transport-info {
    color: #475569;
    font-size: 0.92rem;
}

body.booking-page .transport-option-card .transport-tier {
    margin-top: 2px;
}

body.booking-page .addon-qty-group {
    width: 120px;
}

body.booking-page #addons-container .addon-card h6 {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-right: 0;
    text-align: center;
}

body.booking-page #addons-container .addon-card .badge {
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
    position: absolute;
    left: 50%;
    top: -10px;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 2;
}

body.booking-page #addons-container .addon-card .small.text-muted {
    font-size: 0.76rem !important;
    line-height: 1.28;
    margin-bottom: 0.2rem !important;
}

body.booking-page #addons-container .addon-card .small.text-muted:empty {
    display: none;
    margin: 0 !important;
}

body.booking-page #addons-container .addon-card .d-flex.justify-content-between.align-items-start.mb-2 {
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 0.35rem !important;
}

body.booking-page #addons-container .addon-card .d-flex.align-items-center.justify-content-between {
    width: 100%;
    margin-top: auto;
}

body.booking-page #addons-container .addon-card .addon-price-row-centered {
    justify-content: center !important;
}

body.booking-page #addons-container .addon-card .addon-price-row-has-qty {
    justify-content: space-between !important;
}

body.booking-page .booking-footer {
    text-align: center;
    padding: 1.875rem 1.25rem;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 3.75rem;
}

body.booking-page .booking-footer-text {
    margin: 0;
    opacity: 0.9;
}

body.booking-page .booking-footer-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

body.booking-page .selected-date-display {
    border-color: #10b981;
    background: linear-gradient(180deg, #ffffff 0%, #f4fffb 100%);
}

body.booking-page .promo-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(148, 163, 184, 0.45);
}

body.booking-page .total-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid #dbe7f5;
}

body.booking-page #submit-booking {
    border: 0;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%);
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.32);
}

body.booking-page #submit-booking:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(21, 128, 61, 0.36);
}

body.booking-page #submit-booking:disabled {
    box-shadow: none;
    background: #9ca3af;
}

/* Compact redesign for Select Your Options flow (JS-safe: style-only) */
body.booking-page .booking-flow-compact {
    --compact-option-row-height: 96px;
}

body.booking-page .booking-flow-compact .card {
    border-radius: 12px;
    margin-bottom: 0.9rem !important;
}

body.booking-page .booking-flow-compact > .card:last-child {
    margin-bottom: 0 !important;
}

body.booking-page .booking-flow-compact .card-body.card-body-bg {
    padding: 0.85rem 0.9rem !important;
    border-radius: 12px;
}

body.booking-page .booking-flow-compact .d-flex.align-items-center.mb-3 {
    margin-bottom: 0.6rem !important;
}

body.booking-page .booking-flow-compact .booking-step-badge {
    font-size: 0.82rem;
    line-height: 1;
    padding: 0.33rem 0.46rem;
}

body.booking-page .booking-flow-compact h5 {
    font-size: 0.97rem;
    line-height: 1.2;
    margin: 0 !important;
}

body.booking-page .booking-flow-compact .alert {
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.6rem !important;
}

body.booking-page .booking-flow-compact small.text-muted {
    font-size: 0.74rem !important;
    line-height: 1.32;
    margin-top: 0.45rem !important;
}

body.booking-page .booking-flow-compact #options-container {
    margin-top: 0.5rem !important;
    display: grid;
    gap: 0.58rem;
}

body.booking-page .booking-flow-compact #options-container .option-item {
    padding: 0.62rem 0.72rem;
    margin-bottom: 0 !important;
    border-left-width: 3px;
    border-radius: 10px;
    gap: 0.6rem;
    border: 1px solid #c8d8ea;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    /* Keep equal row height even when JS adds Bootstrap h-100 utility. */
    height: var(--compact-option-row-height) !important;
    overflow: hidden;
}

body.booking-page .booking-flow-compact #options-container .option-info {
    flex: 1 1 auto;
    min-width: 0;
}

body.booking-page .booking-flow-compact #options-container .option-item:nth-child(even) {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f8ff 100%);
}

body.booking-page .booking-flow-compact #options-container .option-item:hover {
    border-color: #9fc3e8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

body.booking-page .booking-flow-compact #options-container .option-name {
    font-size: 0.91rem;
    line-height: 1.2;
    margin-bottom: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.booking-page .booking-flow-compact #options-container .option-description {
    font-size: 0.75rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.booking-page .booking-flow-compact #options-container .option-price {
    font-size: 0.82rem;
    line-height: 1.15;
    white-space: nowrap;
}

body.booking-page .booking-flow-compact #options-container .option-controls {
    margin-top: 0 !important;
    flex: 0 0 auto;
    gap: 0.35rem;
    margin-left: auto;
    padding-left: 0.55rem;
    border-left: 1px dashed #c5d7ea;
}

body.booking-page .booking-flow-compact #options-container .quantity-input {
    width: 74px;
    flex: 0 0 74px;
    min-height: 34px;
    padding: 0.25rem 0.35rem;
    font-size: 0.88rem;
}

body.booking-page .booking-flow-compact #addons-container .addon-card .card-body {
    min-height: 106px;
    padding: 0.58rem 0.62rem !important;
}

body.booking-page .booking-flow-compact #addons-container .addon-card h6 {
    font-size: 0.88rem;
    margin-bottom: 0.18rem;
}

body.booking-page .booking-flow-compact #customer-section .row > [class*="col-"] {
    margin-bottom: 0.62rem !important;
}

body.booking-page .booking-flow-compact #customer-section .form-label.small {
    margin-bottom: 0.28rem;
}

body.booking-page .booking-flow-compact #customer-section .form-control,
body.booking-page .booking-flow-compact #customer-section .form-select {
    min-height: 40px;
}

@media (max-width: 768px) {
    body.booking-page .booking-flow-compact {
        --compact-option-row-height: 84px;
    }

    body.booking-page .booking-flow-compact .card {
        margin-bottom: 0.62rem !important;
        border-radius: 10px;
    }

    body.booking-page .booking-flow-compact .card-body.card-body-bg {
        padding: 0.56rem 0.56rem !important;
    }

    body.booking-page .booking-flow-compact .booking-step-badge {
        font-size: 0.7rem;
        padding: 0.24rem 0.34rem;
    }

    body.booking-page .booking-flow-compact h5 {
        font-size: 0.84rem;
    }

    body.booking-page .booking-flow-compact .d-flex.align-items-center.mb-3 {
        margin-bottom: 0.4rem !important;
    }

    body.booking-page .booking-flow-compact .alert {
        padding: 0.42rem 0.5rem;
        margin-bottom: 0.45rem !important;
    }

    body.booking-page .booking-flow-compact small.text-muted {
        font-size: 0.68rem !important;
        line-height: 1.26;
        margin-top: 0.32rem !important;
    }

    body.booking-page .booking-flow-compact .form-control,
    body.booking-page .booking-flow-compact .form-select {
        min-height: 34px;
        font-size: 0.82rem;
    }

    body.booking-page .booking-flow-compact textarea.form-control {
        min-height: 60px;
    }

    body.booking-page .booking-flow-compact #date-section .calendar-container {
        padding: 8px;
    }

    body.booking-page .booking-flow-compact #date-section .month-container {
        padding: 0.4rem;
    }

    body.booking-page .booking-flow-compact #date-section .calendar-day {
        min-height: 27px;
        font-size: 0.66rem;
    }

    body.booking-page .booking-flow-compact #options-container {
        gap: 0.4rem;
    }

    body.booking-page .booking-flow-compact #options-container .option-item {
        padding: 0.42rem 0.48rem;
        gap: 0.36rem;
        border-radius: 8px;
        align-items: flex-start !important;
        width: 100%;
        height: auto !important;
        min-height: var(--compact-option-row-height);
        overflow: visible;
    }

    body.booking-page .booking-flow-compact #options-container .option-info {
        flex: 1 1 0;
        justify-content: flex-start;
        min-height: 0;
        min-width: 0;
    }

    body.booking-page .booking-flow-compact #options-container .option-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }

    body.booking-page .booking-flow-compact #options-container .option-description {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
        word-break: break-word;
    }

    body.booking-page .booking-flow-compact #options-container .option-controls {
        margin-top: 0 !important;
        align-self: center;
        flex-shrink: 0;
        margin-left: auto;
    }

    body.booking-page .booking-flow-compact #options-container .option-controls label {
        display: none;
    }

    body.booking-page .booking-flow-compact #options-container .option-controls {
        padding-left: 0;
        border-left: 0;
    }

    body.booking-page .booking-flow-compact #options-container .quantity-input {
        width: 58px;
        flex: 0 0 58px;
        min-height: 28px;
        font-size: 0.76rem;
    }

    body.booking-page .booking-flow-compact #addons-container {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }

    body.booking-page .booking-flow-compact #addons-container .addon-card .card-body {
        min-height: 90px;
        padding: 0.42rem 0.45rem !important;
    }

    body.booking-page .booking-flow-compact #addons-container .addon-card h6 {
        font-size: 0.79rem;
    }

    body.booking-page .booking-flow-compact #customer-section .row > [class*="col-"] {
        margin-bottom: 0.45rem !important;
    }
}

@media (max-width: 400px) {
    body.booking-page .booking-flow-compact #options-container .option-item {
        gap: 0.28rem;
    }

    body.booking-page .booking-flow-compact #options-container .option-controls {
        gap: 0.2rem;
    }

    body.booking-page .booking-flow-compact #options-container .quantity-input {
        width: 54px;
        flex-basis: 54px;
    }
}

@keyframes bookingFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    body.booking-page #session-section .card-body > .d-flex.align-items-center.mb-3,
    body.booking-page #date-section .card-body > .d-flex.align-items-center.mb-3,
    body.booking-page #options-section .card-body > .d-flex.align-items-center.mb-3,
    body.booking-page #transport-section .card-body > .d-flex.align-items-center.mb-3,
    body.booking-page #addons-section .card-body > .d-flex.align-items-center.mb-3,
    body.booking-page #customer-section .card-body > .d-flex.align-items-center.mb-4 {
        margin-bottom: 14px !important;
        padding: 10px 12px;
        border: 1px solid #dce8f6;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    }

    body.booking-page #session-section .card-body > .d-flex h5,
    body.booking-page #date-section .card-body > .d-flex h5,
    body.booking-page #options-section .card-body > .d-flex h5,
    body.booking-page #transport-section .card-body > .d-flex h5,
    body.booking-page #addons-section .card-body > .d-flex h5,
    body.booking-page #customer-section .card-body > .d-flex h5 {
        font-size: 1.08rem;
        line-height: 1.3;
    }

    body.booking-page #session-section .card-body > .d-flex .badge,
    body.booking-page #date-section .card-body > .d-flex .badge,
    body.booking-page #options-section .card-body > .d-flex .badge,
    body.booking-page #transport-section .card-body > .d-flex .badge,
    body.booking-page #addons-section .card-body > .d-flex .badge,
    body.booking-page #customer-section .card-body > .d-flex .badge {
        box-shadow: 0 6px 12px rgba(37, 99, 235, 0.18);
    }
}

/* Booking page responsive refinements */
body.booking-page {
    overflow-x: hidden;
}

html,
body.booking-page {
    max-width: 100%;
    overflow-x: clip;
}

body.booking-page {
    touch-action: pan-y;
}

body.booking-page .product-description {
    overflow-wrap: anywhere;
}

body.booking-page .selected-date-display {
    gap: 10px;
}

body.booking-page .selected-date-display .selected-date-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.booking-page #selected-items .alert {
    word-break: break-word;
}

body.booking-page .right-section .booking-summary-scroll {
    max-height: min(56vh, 760px);
    overflow-y: auto;
}

@media (min-width: 992px) {
    body.booking-page .right-section .booking-summary-scroll {
        max-height: calc(100vh - 250px);
        min-height: 520px;
    }
}

body.booking-page .right-section.sticky-top {
    top: 12px;
}

body.booking-page .checkout-sticky-wrap {
    position: sticky;
    bottom: 10px;
    z-index: 1200;
    margin-top: 18px;
}

body.booking-page .checkout-sticky-bar {
    border: 2px solid rgba(14, 116, 144, 0.35) !important;
    border-top-color: rgba(37, 99, 235, 0.6) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(224, 242, 254, 0.98) 100%);
    backdrop-filter: blur(6px);
}

body.booking-page .checkout-sticky-bar .card-body {
    border-radius: 16px;
    padding: 14px 16px !important;
}

body.booking-page .checkout-pay-btn {
    min-height: 54px;
    font-size: 2rem;
}

body.booking-page .checkout-promo {
    border-color: rgba(14, 116, 144, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
    padding: 10px 12px;
}

body.booking-page .checkout-promo-meta {
    line-height: 1.25;
}

body.booking-page .checkout-promo-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f4c81;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.booking-page .checkout-promo-desc {
    font-size: 0.77rem;
    color: #64748b;
}

body.booking-page .checkout-total {
    border-color: #cfe5f6;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5fc 100%);
    padding: 10px 12px;
    border-radius: 12px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

body.booking-page .checkout-discount-row {
    margin-bottom: 2px !important;
}

body.booking-page .checkout-metric-label {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 700;
}

body.booking-page .checkout-metric-value {
    font-size: 1.04rem;
    font-weight: 700;
}

body.booking-page .checkout-total-row {
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
    padding-top: 8px;
}

body.booking-page .checkout-total-label {
    font-size: 0.92rem !important;
    line-height: 1;
    margin: 0;
    color: #64748b;
}

body.booking-page .checkout-total-value {
    font-size: 1.5rem !important;
    line-height: 1;
}

@media (min-width: 992px) {
    body.booking-page .checkout-sticky-bar .row.g-3 {
        align-items: stretch !important;
    }

    body.booking-page .checkout-sticky-bar .row.g-3 > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    body.booking-page .checkout-promo,
    body.booking-page .checkout-total,
    body.booking-page .checkout-pay-btn {
        height: 100%;
        width: 100%;
    }

    body.booking-page .checkout-pay-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }

    body.booking-page .checkout-total {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }

    body.booking-page .checkout-discount-row,
    body.booking-page .checkout-total-row {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0 !important;
        border-top: 0;
        padding-top: 0;
        white-space: normal;
    }

    body.booking-page .checkout-total-row {
        border-left: 1px dashed rgba(148, 163, 184, 0.45);
        padding-left: 12px;
    }

    body.booking-page .checkout-total-label {
        font-size: 0.92rem !important;
    }

    body.booking-page .checkout-total-value {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 1200px) {
    body.booking-page .card-header {
        padding: 16px 18px;
    }

    body.booking-page .card-body {
        padding: 1.2rem;
    }

    body.booking-page .card-title {
        font-size: 1.12rem;
    }

    body.booking-page .product-title {
        font-size: 1.45rem;
    }

    body.booking-page .right-section {
        top: 12px;
    }

    body.booking-page #session-section .d-flex.align-items-center.mb-3,
    body.booking-page #date-section .d-flex.align-items-center.mb-3,
    body.booking-page #options-section .d-flex.align-items-center.mb-3,
    body.booking-page #addons-section .d-flex.align-items-center.mb-3,
    body.booking-page #customer-section .d-flex.align-items-center.mb-4 {
        align-items: flex-start !important;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

@media (max-width: 991px) {
    body.booking-page .main-container {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    body.booking-page .header {
        margin-bottom: 0.9rem !important;
    }

    body.booking-page .right-section .booking-summary-scroll {
        max-height: none;
        overflow: visible;
    }

    body.booking-page .checkout-sticky-wrap {
        position: sticky;
        bottom: 10px;
        z-index: 1200;
        margin-top: 14px;
    }

    body.booking-page #date-section .calendar-container {
        padding: 14px;
    }

    body.booking-page #date-section .month-container {
        padding: 0.62rem;
    }
}

@media (max-width: 768px) {
    body.booking-page .header {
        padding: 26px 12px;
    }

    body.booking-page .header h1 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    body.booking-page .header p {
        font-size: 0.92rem;
    }

    body.booking-page .product-header {
        padding: 16px;
        gap: 12px;
    }

    body.booking-page .product-logo {
        width: 68px;
        height: 68px;
        padding: 8px;
    }

    body.booking-page .product-title {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    body.booking-page .product-description {
        font-size: 0.92rem;
        margin-bottom: 0;
    }

    body.booking-page .card-header {
        padding: 14px 14px 10px;
    }

    body.booking-page .card-body {
        padding: 0.95rem;
    }

    body.booking-page .card-title {
        font-size: 1rem;
        margin-bottom: 0.65rem !important;
    }

    body.booking-page #date-section .calendar-month-year {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 6px;
    }

    body.booking-page #date-section .calendar-grid {
        gap: 3px;
    }

    body.booking-page #date-section .calendar-day-header {
        font-size: 0.66rem;
        padding: 2px 0;
    }

    body.booking-page #date-section .calendar-day {
        font-size: 0.74rem;
        min-height: 33px;
    }

    body.booking-page #date-section .calendar-container {
        padding: 12px;
        border-radius: 14px;
    }

    body.booking-page #date-section .month-container {
        padding: 0.52rem;
        border-radius: 12px;
    }

    body.booking-page #date-section .month-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    body.booking-page #date-section .calendar-day {
        min-height: 32px;
        border-radius: 8px;
    }

    body.booking-page #addons-container .input-group.input-group-sm {
        width: 108px !important;
    }

    body.booking-page .addon-qty-group {
        width: 108px;
    }

    body.booking-page #addons-container .addon-card .d-flex.justify-content-between.align-items-start.mb-2 {
        flex-direction: column;
        gap: 6px;
        align-items: center !important;
        justify-content: center !important;
    }

    body.booking-page .addon-card .card-body {
        min-height: 114px;
        padding: 10px 11px !important;
        gap: 4px;
    }

    body.booking-page #addons-container .addon-card h6 {
        font-size: 0.9rem;
    }

    body.booking-page #addons-container .addon-card .badge {
        font-size: 0.72rem;
        padding: 0.24rem 0.44rem;
    }

    body.booking-page .addon-tick-indicator {
        top: auto;
        bottom: -6px;
        right: -6px;
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    body.booking-page .selected-date-display {
        padding: 10px 12px;
    }

    body.booking-page .selected-date-display .btn {
        flex-shrink: 0;
    }

    body.booking-page .total-section .fs-5 {
        font-size: 1.02rem !important;
    }

    body.booking-page .total-section .fs-4 {
        font-size: 1.35rem !important;
    }

    body.booking-page #customer-section .input-group {
        flex-direction: column;
        gap: 8px;
    }

    body.booking-page #customer-section #phone-country-code {
        max-width: 100% !important;
        width: 100%;
        margin-right: 0 !important;
    }

    body.booking-page #customer-section #customer-phone {
        width: 100%;
    }

    body.booking-page .checkout-sticky-bar .card-body {
        padding: 0.62rem !important;
    }

    body.booking-page .checkout-pay-btn {
        min-height: 40px;
        font-size: 0.82rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    body.booking-page .checkout-sticky-wrap {
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        margin-top: 8px;
    }

    body.booking-page .checkout-sticky-bar .row.g-3 {
        --bs-gutter-y: 0.4rem;
        --bs-gutter-x: 0.5rem;
    }

    body.booking-page .checkout-sticky-bar .promo-card {
        padding: 7px 8px;
    }

    body.booking-page .checkout-promo-col {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(1px);
        pointer-events: none;
        transition: max-height 0.68s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.56s ease-out, transform 0.56s ease-out;
    }

    body.booking-page.mobile-promo-visible .checkout-promo-col {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    @media (prefers-reduced-motion: reduce) {
        body.booking-page .checkout-promo-col {
            transition: none;
        }
    }

    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .form-control,
    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .input-group-text,
    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .btn {
        min-height: 30px;
        font-size: 0.76rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    body.booking-page .checkout-total {
        padding: 7px 8px;
        gap: 2px;
    }

    body.booking-page .checkout-metric-label {
        font-size: 0.9rem;
    }

    body.booking-page .checkout-metric-value {
        font-size: 1rem;
    }

    body.booking-page .checkout-total-label {
        font-size: 0.9rem !important;
    }

    body.booking-page .checkout-total-value {
        font-size: 1.2rem !important;
    }

    body.booking-page .checkout-total-row {
        padding-top: 4px;
    }

    body.booking-page .checkout-promo-title {
        font-size: 0.68rem;
    }

    body.booking-page .checkout-promo-desc {
        font-size: 0.64rem;
    }

    body.booking-page .booking-footer {
        margin-top: 2.2rem;
        padding: 1.2rem 0.75rem;
        font-size: 0.78rem;
    }

    /* Global compact mode for booking page */
    body.booking-page .main-container {
        padding-top: 8px;
        padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    }

    body.booking-page .card {
        margin-bottom: 0.9rem;
    }

    body.booking-page .card-header {
        padding: 10px 12px;
    }

    body.booking-page .card-body {
        padding: 0.72rem !important;
    }

    body.booking-page .booking-step-badge {
        font-size: 0.84rem;
        padding: 5px 8px;
    }

    body.booking-page .form-control,
    body.booking-page .form-select {
        min-height: 38px;
        font-size: 0.9rem;
    }

    body.booking-page textarea.form-control {
        min-height: 72px;
    }

    body.booking-page .selected-date-display {
        padding: 8px 10px;
    }

    body.booking-page .selected-date-text {
        font-size: 0.86rem;
    }

    body.booking-page .promo-card,
    body.booking-page .total-section {
        padding: 8px;
    }

    body.booking-page #options-section .alert,
    body.booking-page #addons-section .alert,
    body.booking-page #selected-items .alert {
        margin-bottom: 0.5rem !important;
    }

    body.booking-page #options-section .fw-semibold,
    body.booking-page #addons-section .fw-semibold,
    body.booking-page #selected-items .fw-semibold {
        font-size: 0.92rem;
    }

    body.booking-page small,
    body.booking-page .small {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    body.booking-page .main-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.booking-page #date-section .calendar-container {
        padding: 9px;
        border-radius: 12px;
    }

    body.booking-page #date-section .month-container {
        padding: 0.45rem;
        border-radius: 10px;
    }

    body.booking-page #date-section .month-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    body.booking-page #date-section .calendar-grid {
        gap: 2px;
    }

    body.booking-page #date-section .calendar-day-header {
        font-size: 0.62rem;
    }

    body.booking-page #date-section .calendar-day {
        min-height: 28px;
        font-size: 0.68rem;
    }

    body.booking-page #addons-container .input-group.input-group-sm {
        width: 100px !important;
    }

    body.booking-page .addon-qty-group {
        width: 100px;
    }

    body.booking-page .addon-card .card-body {
        min-height: 102px;
        padding: 9px 10px !important;
    }

    body.booking-page #addons-container .addon-card h6 {
        font-size: 0.86rem;
    }

    body.booking-page #addons-container .addon-card .small.text-muted {
        font-size: 0.72rem !important;
    }

    body.booking-page .checkout-sticky-bar .card-body {
        padding: 0.48rem !important;
    }

    body.booking-page .checkout-sticky-wrap {
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        margin-top: 6px;
    }

    body.booking-page .checkout-sticky-bar .promo-card {
        padding: 6px 7px;
    }

    body.booking-page .checkout-promo-title {
        font-size: 0.64rem;
    }

    body.booking-page .checkout-promo-desc {
        font-size: 0.6rem;
    }

    body.booking-page .checkout-sticky-bar .promo-card .small.text-muted {
        display: none;
    }

    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .form-control,
    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .input-group-text,
    body.booking-page .checkout-sticky-bar .input-group.input-group-sm .btn {
        min-height: 28px;
        font-size: 0.72rem;
    }

    body.booking-page .checkout-sticky-bar .total-section {
        padding: 10px;
    }

    body.booking-page .checkout-metric-label {
        font-size: 0.84rem;
    }

    body.booking-page .checkout-metric-value {
        font-size: 0.92rem;
    }

    body.booking-page .checkout-total-label {
        font-size: 0.84rem !important;
    }

    body.booking-page .checkout-total-value {
        font-size: 1.05rem !important;
    }

    body.booking-page .checkout-pay-btn {
        min-height: 36px;
        font-size: 0.78rem;
    }

    /* Extra compact mode for very small screens */
    body.booking-page .main-container {
        padding-top: 6px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }

    body.booking-page .card-header {
        padding: 8px 10px;
    }

    body.booking-page .card-body {
        padding: 0.58rem !important;
    }

    body.booking-page .booking-step-badge {
        font-size: 0.78rem;
        padding: 4px 7px;
    }

    body.booking-page .form-control,
    body.booking-page .form-select {
        min-height: 34px;
        font-size: 0.84rem;
    }

    body.booking-page .selected-date-text {
        font-size: 0.8rem;
    }

}
