/**
 * Flora & Fauna Eco Park - Public Booking Page Styles
 * 
 * This stylesheet contains styles specific to the public booking flow,
 * including multi-step forms, horizontal progress steps, and public-specific layouts.
 */

/* ========================================================================
   CSS Variables - Legacy Color Scheme
   ======================================================================== */

:root {
    --legacy-primary-green: #1a772e;
    --legacy-light-green: #4a7c2a;
    --legacy-dark-green: #0f4a1a;
    --legacy-accent-orange: #e89600;
    --legacy-light-orange: #ff9f1a;
    --legacy-text-dark: #333333;
    --legacy-text-light: #666666;
    --legacy-background: #fefcf8; /* Changed to lighter beige */
    --legacy-background-light: #f9f3e8; /* Changed to warm beige */
    --legacy-border: #e0e0e0;
    --legacy-success: #28a745;
    --legacy-warning: #ffc107;
    --legacy-error: #dc3545;

    /* Missing CSS Variables from main.css */
    --color-primary: #2d5016;
    --color-primary-light: #4a7c2a;
    --color-primary-dark: #1a3009;
    --color-secondary: #8b4513;
    --color-accent: #ff8c00;
    
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;
    --color-info: #17a2b8;
    
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-background: #fefcf8; /* Changed to lighter beige */
    --color-background-light: #f9f3e8; /* Changed to warm beige */
    --color-border: #dee2e6;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Georgia', serif;
    
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-small: 4px;
    --border-radius-large: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ========================================================================
   Base Layout
   ======================================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f9f3e8; /* Changed from var(--legacy-background-light) to warm beige */
    color: var(--legacy-text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* ========================================================================
   Header Styling
   ======================================================================== */

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--legacy-primary-green);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: var(--legacy-primary-green);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    background-color: var(--legacy-primary-green);
    color: white;
    transform: translateY(-2px);
}
/* ========================================================================
   Booking Section Layout
   ======================================================================== */

.booking-section {
    padding: 0.5rem 0;
    min-height: auto;
}

.booking-layout {
    display: flex !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    min-height: auto !important;
    max-width: 1600px !important; /* Increased from 1500px to use more screen space */
    margin: 0 auto !important;
}

.booking-main {
    flex: 1 !important;
    height: auto !important;
    overflow: visible !important;
    min-width: 0 !important; /* Prevent flex item from growing beyond container */
}

.summary-sidebar {
    flex: 0 0 auto !important; /* Allow natural width expansion */
    min-width: 260px !important; /* Reduced from 280px to give more space to main content */
    background: #fefcf8 !important; /* Changed from white to light beige */
    border-radius: 8px !important;
    padding: 1rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--legacy-border) !important;
    position: sticky !important;
    top: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    height: fit-content !important;
    max-height: calc(100vh - 200px) !important;
    overflow-wrap: break-word !important; /* Handle long text */
}

/* Hide summary sidebar on steps other than step 1 */
.summary-sidebar.hidden {
    display: none;
}
/* ========================================================================
   Mobile Responsive Design - Override booking.css
   ======================================================================== */

@media (max-width: 768px) {
    body .booking-layout {
        flex-direction: column !important;
        gap: 1rem !important;
        height: auto !important;
        padding: 0 0.5rem !important;
    }

    body .booking-main {
        flex: none !important;
        order: 1 !important; /* First: Main content */
        height: auto !important;
        width: 100% !important;
    }

    body .summary-sidebar {
        flex: none !important;
        position: static !important;
        order: 2 !important; /* Second: Summary sidebar */
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body .booking-form {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important; /* Override booking.css var(--spacing-md) */
    }

    body .form-step {
        padding: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body .ticket-selection {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body .ticket-item {
        width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 0.8rem !important;
        box-sizing: border-box !important;
        flex-direction: column !important; /* Override booking.css */
        align-items: flex-start !important; /* Override booking.css */
        gap: 1rem !important; /* Override booking.css var(--spacing-md) */
    }

    body .ticket-type-card {
        width: 100% !important;
        padding: 1rem !important; /* Override booking.css var(--spacing-md) */
    }
    body .ticket-pricing-grid {
        grid-template-columns: 1fr !important; /* Same as booking.css but with !important */
        gap: 1rem !important; /* Override booking.css var(--spacing-lg) */
        width: 100% !important;
    }

    body .pricing-section {
        width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 0.8rem !important; /* Override booking.css var(--spacing-sm) */
    }

    body .section-title {
        font-size: 0.8rem !important; /* Same as booking.css but with !important */
    }

    body .header-item {
        font-size: 0.7rem !important; /* Same as booking.css but with !important */
    }

    body .price-item {
        font-size: 0.9rem !important; /* Same as booking.css but with !important */
    }

    body .booking-summary-section {
        padding: 1rem !important; /* Override booking.css var(--spacing-md) */
    }

    body .form-row {
        grid-template-columns: 1fr !important; /* Same as booking.css but with !important */
    }

    body .form-actions {
        flex-direction: column !important; /* Same as booking.css but with !important */
        gap: 0.5rem !important;
        width: 100% !important;
    }

    body .summary-sidebar .form-actions {
        flex-direction: row !important; /* Override the column direction for sidebar */
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    body .summary-sidebar .form-actions .btn-primary,
    body .summary-sidebar .form-actions .btn-secondary {
        flex: 1 !important;
        max-width: 150px !important;
    }

    body .container {
        padding: 0 0.5rem !important;
    }

    body .horizontal-steps {
        padding: 0 0.5rem !important;
        overflow-x: auto !important;
    }

    body .horizontal-step {
        min-width: 80px !important;
        flex-shrink: 0 !important;
    }
    /* Override booking.css step styles */
    body .step {
        flex-basis: auto !important; /* Override booking.css 50% */
        margin-bottom: 0 !important; /* Override booking.css var(--spacing-md) */
    }

    body .progress-steps {
        flex-wrap: nowrap !important; /* Override booking.css wrap */
    }
}

@media (max-width: 480px) {
    body .booking-layout {
        padding: 0 0.25rem !important;
    }

    body .form-step {
        padding: 0.8rem !important;
    }

    body .ticket-item {
        padding: 0.6rem !important;
    }

    body .ticket-type-card {
        padding: 0.6rem !important;
    }

    body .pricing-section {
        padding: 0.6rem !important;
    }

    body .container {
        padding: 0 0.25rem !important;
    }

    /* Override booking.css step styles for mobile */
    body .step-label {
        font-size: 0.7rem !important; /* Override booking.css 0.75rem */
    }
    
    body .step-number {
        width: 28px !important; /* Override booking.css 30px */
        height: 28px !important; /* Override booking.css 30px */
        font-size: 0.8rem !important; /* Override booking.css var(--font-size-small) */
    }
}
/* ========================================================================
   Booking Section
   ======================================================================== */

.booking-section,
.payment-section,
.confirmation-section {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

.booking-section h1,
.payment-section h1,
.confirmation-section h1 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ========================================================================
   Progress Steps (Vertical)
   ======================================================================== */

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xxl);
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-border);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-weight: bold;
    color: var(--color-text-light);
    transition: all var(--transition-base);
}

.step-label {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}
.step.active .step-number {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 500;
}

.step.completed .step-number {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
}

/* ========================================================================
   Horizontal Progress Steps - Above Footer
   ======================================================================== */

.progress-steps-horizontal {
    background: white;
    border-top: 3px solid var(--legacy-primary-green);
    padding: 2rem 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative; /* Ensure normal document flow */
    z-index: 1; /* Ensure it's above other content */
}

.progress-steps-horizontal .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.progress-steps-horizontal h3 {
    text-align: center;
    color: var(--legacy-primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.horizontal-steps {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.horizontal-steps::before {
    content: '' !important;
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--legacy-border) !important;
    z-index: 0 !important;
}
.horizontal-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    background: white !important;
    padding: 0 1rem !important;
}

.horizontal-step-number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--legacy-border) !important;
    color: var(--legacy-text-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.horizontal-step.active .horizontal-step-number {
    background: var(--legacy-primary-green) !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(26, 119, 46, 0.2) !important;
}

.horizontal-step.completed .horizontal-step-number {
    background: var(--legacy-accent-orange) !important;
    color: white !important;
}

.horizontal-step-label {
    font-size: 0.9rem !important;
    color: var(--legacy-text-light) !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.horizontal-step.active .horizontal-step-label {
    color: var(--legacy-primary-green) !important;
    font-weight: 600 !important;
}

.horizontal-step.completed .horizontal-step-label {
    color: var(--legacy-accent-orange) !important;
    font-weight: 600 !important;
}
/* Mobile responsive for horizontal steps */
@media (max-width: 768px) {
    .progress-steps-horizontal {
        padding: 1rem 0 !important;
    }

    .progress-steps-horizontal h3 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .horizontal-steps {
        max-width: 100% !important;
    }

    .horizontal-step {
        padding: 0 0.5rem !important;
    }

    .horizontal-step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .horizontal-step-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .horizontal-step {
        padding: 0 0.25rem !important;
    }

    .horizontal-step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .horizontal-step-label {
        font-size: 0.7rem !important;
    }
}

/* ========================================================================
   Form Styling
   ======================================================================== */

.booking-form {
    background: #fefcf8 !important; /* Changed from white to light beige */
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
    overflow: visible !important;
    border: 1px solid var(--legacy-border) !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}
.form-step {
    padding: 1.5rem !important;
    padding-top: 0 !important;
    display: none !important;
    flex: none !important;
    overflow: visible !important;
    width: 100% !important;
}

.form-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

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

/* Form actions - normal flow, no sticky positioning */
.form-step .form-actions {
    margin-top: 1rem;
    flex-shrink: 0;
}

/* Override for step 1 where summary sidebar handles buttons */
#step-1 .form-actions {
    display: none;
}

.form-step h2 {
    color: var(--legacy-primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 2rem 0;
}

.step-description {
    color: var(--legacy-text-light);
    margin-bottom: var(--spacing-lg);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-actions button {
    flex: 1;
}
/* ========================================================================
   Button Styling
   ======================================================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--legacy-accent-orange) 0%, var(--legacy-light-orange) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232, 150, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 150, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--legacy-text-light);
    border: 2px solid var(--legacy-border);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--legacy-primary-green);
    color: var(--legacy-primary-green);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================================================
   Form Controls
   ======================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--legacy-text-dark);
}
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--legacy-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--legacy-primary-green);
    box-shadow: 0 0 0 3px rgba(26, 119, 46, 0.1);
}

.form-text {
    font-size: 0.85rem;
    color: var(--legacy-text-light);
    margin-top: 0.25rem;
}

/* Form row styling for phone and state fields */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 1.5rem;
}

/* Mobile responsive for form-row */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        flex: none !important;
    }
}

/* ========================================================================
   Ticket Selection Container
   ======================================================================== */

.ticket-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* ========================================================================
   Ticket Type Cards - Production Ready Layout (Match Reference Design)
   ======================================================================== */

.ticket-type-card {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1.5rem !important;
    background: #fefcf8; /* Changed from white to light beige */
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ticket-type-card:hover {
    border-color: var(--legacy-primary-green);
    box-shadow: 0 6px 20px rgba(26, 119, 46, 0.15);
    transform: translateY(-2px);
}

.ticket-type-card:last-child {
    margin-bottom: 0 !important;
}

/* Ticket Header - Centered at Top */
.ticket-header {
    background: linear-gradient(135deg, #2c5530 0%, #1a772e 100%) !important;
    color: white !important;
    text-align: center !important;
    padding: 1rem !important;
    margin: 0 !important;
    border-bottom: none !important;
}

.ticket-type-title {
    font-size: 1.3rem !important;
    margin: 0 !important;
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.ticket-description {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.3 !important;
    margin: 0.5rem 0 0 0 !important;
    opacity: 0.95;
}

/* Content Row - Image and Pricing Side by Side (NO GAPS) */
.ticket-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #fefcf8 !important; /* Changed from white to light beige */
    height: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important; /* NO GAP between image and pricing */
}

/* Photo Section - Left side, exact dimensions */
.ticket-photo {
    width: 280px !important; /* Keep photo size the same */
    height: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.ticket-photo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ticket-type-card:hover .ticket-photo-img {
    transform: scale(1.05);
}

/* Pricing Section - Right side, fills remaining space */
.ticket-content .pricing-section {
    flex: 1 !important;
    padding: 0 !important; /* Remove all padding to eliminate gaps */
    background: #fefcf8 !important; /* Changed from white to light beige */
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Align to top instead of center */
    height: 200px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Override any conflicting styles from other CSS files */
.ticket-type-card .pricing-section,
.ticket-item .pricing-section,
body .pricing-section {
    background: #fefcf8 !important; /* Changed from white to light beige */
    border-radius: 0 !important;
}

/* Ensure pricing table fills the section properly */
.pricing-section .pricing-table {
    flex: 1 !important;
    min-height: 180px !important; /* Adjusted since we removed margin */
}

/* Production-Ready Pricing Table - Enhanced for Better Readability */
.pricing-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.9rem !important; /* Reduced from 1rem to fit content better */
    margin: 0 !important; /* Remove all margins to eliminate gap */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 100% !important; /* Fill full height without margin offset */
    table-layout: fixed !important; /* Ensure consistent column widths */
}

/* Define column widths for better balance - 5 columns total */
.pricing-table th:nth-child(1) { width: 20% !important; } /* Empty header + ADULTS/CHILD labels - reduced more */
.pricing-table th:nth-child(2) { width: 16% !important; } /* TICKET RATE - reduced more */
.pricing-table th:nth-child(3) { width: 12% !important; } /* GST - reduced more */
.pricing-table th:nth-child(4) { width: 14% !important; } /* TOTAL - reduced more */
.pricing-table th:nth-child(5) { width: 38% !important; } /* QUANTITY - significantly increased */

.pricing-table td:nth-child(1) { width: 20% !important; }
.pricing-table td:nth-child(2) { width: 16% !important; }
.pricing-table td:nth-child(3) { width: 12% !important; }
.pricing-table td:nth-child(4) { width: 14% !important; }
.pricing-table td:nth-child(5) { width: 38% !important; }

.pricing-table th {
    background: white !important; /* Force white background */
    padding: 0.8rem 0.5rem !important; /* Reduced padding to fit content */
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem !important; /* Reduced from 0.9rem */
    color: var(--legacy-primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e8e8e8;
    border-bottom: 2px solid var(--legacy-primary-green);
    height: 2.5rem !important; /* Reduced height */
    border-radius: 0 !important; /* Remove border radius */
}

.pricing-table td {
    padding: 0.8rem 0.5rem !important; /* Reduced padding to fit content */
    text-align: center;
    border: 1px solid #e8e8e8;
    font-weight: 500;
    background: white !important; /* Force white background */
    transition: background-color 0.2s ease;
    font-size: 0.9rem !important; /* Consistent with table font size */
    height: 3rem !important; /* Reduced height */
    vertical-align: middle !important; /* Center content vertically */
    border-radius: 0 !important; /* Remove border radius */
}

.pricing-table tr:hover td {
    background: white !important; /* Keep white on hover instead of gray */
}

.pricing-table .price-label {
    text-align: left;
    font-weight: 700;
    color: var(--legacy-primary-green);
    font-size: 0.85rem !important; /* Reduced from 1rem */
    background: white !important; /* Changed to white background */
    padding: 0.8rem 0.5rem !important; /* Consistent with other cells */
    border-radius: 0 !important; /* Remove border radius */
}

.pricing-table .price-value {
    font-weight: 700;
    color: #1a772e;
    font-size: 0.95rem !important; /* Reduced from 1.1rem */
    padding: 0.8rem 0.5rem !important; /* Consistent with other cells */
    background: white !important; /* Force white background */
    border-radius: 0 !important; /* Remove border radius */
}

.pricing-table .quantity-cell {
    padding: 0.4rem !important; /* Reduced padding for controls */
    height: 3rem !important; /* Match other cells */
    vertical-align: middle !important;
    background: white !important; /* Force white background */
    border-radius: 0 !important; /* Remove border radius */
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem !important; /* Increased gap for better usability with larger quantity column */
    justify-content: center;
}

.quantity-btn {
    width: 30px !important; /* Increased from 26px for better visibility */
    height: 30px !important;
    border: 1px solid #1a772e;
    background: #fefcf8; /* Changed from white to light beige */
    color: #1a772e;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem !important; /* Slightly increased */
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #1a772e;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-input {
    width: 45px !important; /* Increased from 35px for better visibility */
    text-align: center;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    padding: 0.3rem !important; /* Slightly increased padding */
    font-weight: 600;
    font-size: 0.9rem !important; /* Increased from 0.85rem */
    background: #fefcf8; /* Changed from white to light beige */
    /* Remove spinner arrows */
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: #1a772e;
}

.ticket-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.pricing-section {
    margin-top: auto;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8faf9;
    border-radius: 12px;
    border: 1px solid #e8f5e9;
    transition: all 0.3s ease;
}

.pricing-row:hover {
    background: #f0f8f1;
    border-color: #d4edda;
}

.pricing-row:last-child {
    margin-bottom: 0;
}

.adult-pricing,
.child-pricing {
    flex: 1;
}

.price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-detail {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a772e;
    margin-top: 0.25rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #1a772e;
    background: white;
    color: #1a772e;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #1a772e;
    color: white;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.5rem 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    background: white;
}

.quantity-input:focus {
    outline: none;
    border-color: #1a772e;
    box-shadow: 0 0 0 2px rgba(26, 119, 46, 0.1);
}

/* Disabled ticket type styling */
.ticket-type-card.ticket-disabled {
    opacity: 0.6;
    background-color: #f8f8f8;
    border-color: #ddd;
}

.ticket-type-card.ticket-disabled:hover {
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: none;
    cursor: not-allowed;
}

.ticket-type-card.ticket-disabled .pricing-row {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.ticket-type-card.ticket-disabled .quantity-btn {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ========================================================================
   Booking Summary Section - Match Staff Booking Design
   ======================================================================== */

.booking-summary-section {
    background: #f9f3e8 !important; /* Changed from var(--legacy-background-light) to warm beige */
    border: 2px solid var(--legacy-primary-green) !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    text-align: left;
    margin: 0;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important; /* Fill the sidebar container */
    box-sizing: border-box !important; /* Include padding in width calculation */
}

.booking-summary-section h4 {
    color: var(--legacy-primary-green) !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.no-tickets-message {
    color: var(--legacy-text-light) !important;
    font-style: italic;
    text-align: left !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
}

.summary-ticket-type {
    margin-bottom: 0.25rem !important;
    word-wrap: break-word;
}

.summary-ticket-type h5 {
    color: var(--legacy-primary-green) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    text-align: left !important;
    word-wrap: break-word;
}

.summary-item {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 0.1rem !important;
    font-size: 0.8rem !important;
    word-wrap: break-word;
}

.summary-total {
    border-top: 2px solid var(--legacy-primary-green) !important;
    padding-top: 0.5rem !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.total-label {
    font-weight: 600 !important;
    color: var(--legacy-primary-green) !important;
    font-size: 0.9rem !important;
}

.total-value {
    font-weight: 700 !important;
    color: var(--legacy-accent-orange) !important;
    font-size: 1rem !important;
    word-wrap: break-word !important;
}

/* Form actions in right sidebar - Match Staff Booking Design */
.summary-sidebar .form-actions {
    display: flex;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin: 0.25rem 0 0 0 !important;
}

.summary-sidebar .form-actions .btn-primary,
.summary-sidebar .form-actions .btn-secondary {
    flex: 1 !important;
    padding: 0.6rem 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

/* Legacy ticket item styles for backward compatibility */
.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-small);
    transition: border-color var(--transition-fast);
}

.ticket-item:hover {
    border-color: var(--color-primary-light);
}

.ticket-info {
    flex: 1;
}

.ticket-info h4 {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-primary);
}

.ticket-info p {
    margin: 0;
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

.ticket-price-display {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: var(--color-primary-dark);
    margin: 0 var(--spacing-lg);
}

.ticket-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
/* ========================================================================
   Availability Info
   ======================================================================== */

.availability-info {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-small);
}

.availability-info.available {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.availability-info.limited {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.availability-info.unavailable {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.availability-status {
    font-weight: 500;
}

/* ========================================================================
   Booking Summary
   ======================================================================== */

.booking-summary {
    background-color: #f9f3e8; /* Changed from var(--color-background-light) to warm beige */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.summary-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-section h3 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.summary-item .label {
    color: var(--color-text-light);
}

.summary-item .value {
    font-weight: 500;
}
/* ========================================================================
   Footer Styling
   ======================================================================== */

.footer {
    background: linear-gradient(135deg, var(--legacy-dark-green) 0%, var(--legacy-primary-green) 100%);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================================================
   Loading and Error States
   ======================================================================== */

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--legacy-text-light);
    font-size: 1.1rem;
}

.error {
    background-color: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #fcc;
}

/* ========================================================================
   Payment Page
   ======================================================================== */

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.payment-summary,
.payment-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.payment-info {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-small);
    margin-bottom: var(--spacing-lg);
}
.test-info {
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.test-cards {
    list-style: none;
    font-size: var(--font-size-small);
}

.test-cards li {
    margin-bottom: var(--spacing-xs);
}

.test-cards code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.processing {
    text-align: center;
    padding: var(--spacing-xl);
}

.processing p {
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
}

/* ========================================================================
   Confirmation Page
   ======================================================================== */

.confirmation-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--spacing-lg);
}

.success-message {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}
.ticket-number-display {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.ticket-number-display .label {
    display: block;
    font-size: var(--font-size-small);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.ticket-number {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.booking-details {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.detail-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h3 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.detail-item .label {
    color: var(--color-text-light);
}

.detail-item .value {
    font-weight: 500;
}

.status-confirmed {
    color: var(--color-success);
    font-weight: bold;
}
.important-info,
.park-info {
    background-color: #f9f3e8; /* Changed from var(--color-background-light) to warm beige */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.important-info h3,
.park-info h3 {
    margin-bottom: var(--spacing-md);
}

.important-info ul {
    list-style-position: inside;
    color: var(--color-text-light);
}

.important-info li {
    margin-bottom: var(--spacing-sm);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ========================================================================
   OTP Verification
   ======================================================================== */

.otp-status {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.otp-status.otp-success {
    color: #28a745;
}

.otp-status.otp-error {
    color: #dc3545;
}

#otp-code {
    text-align: center;
}

/* ========================================================================
   Responsive Design
   ======================================================================== */

@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex-basis: 50%;
        margin-bottom: var(--spacing-md);
    }
    
    .payment-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .confirmation-card {
        padding: var(--spacing-lg);
    }
    
    .ticket-number {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: var(--font-size-small);
    }
}

/* ========================================================================
   End of Public Booking Styles
   ======================================================================== */
/* Mobile Responsive Design for Compact Cards */
@media (max-width: 768px) {
    .ticket-type-card {
        flex-direction: column !important;
        min-height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .ticket-header {
        padding: 0.75rem !important;
    }
    
    .ticket-type-title {
        font-size: 1.1rem !important;
    }
    
    .ticket-description {
        font-size: 0.8rem !important;
    }
    
    .ticket-content {
        flex-direction: column !important;
        height: auto !important; /* Allow natural height on mobile */
    }
    
    .ticket-photo {
        width: 100% !important;
        height: 160px !important; /* Reduced height for mobile to save space */
        border-radius: 0 !important;
        padding: 0.5rem !important; /* Reduced padding for mobile */
    }
    
    .ticket-photo-img {
        width: calc(100% - 1.5rem) !important;
        height: calc(100% - 1.5rem) !important;
        border-radius: 4px !important;
    }
    
    .ticket-content .pricing-section {
        padding: 0 !important; /* Remove all padding on mobile */
        height: auto !important; /* Allow natural height on mobile */
    }
    
    .pricing-table {
        font-size: 0.7rem !important; /* Further reduced for mobile */
    }
    
    .pricing-table th {
        padding: 0.4rem 0.15rem !important; /* Reduced padding for mobile */
        font-size: 0.6rem !important; /* Smaller headers for mobile */
        height: 1.8rem !important; /* Reduced height for mobile */
    }
    
    .pricing-table td {
        padding: 0.5rem 0.15rem !important; /* Reduced padding for mobile */
        font-size: 0.7rem !important; /* Smaller text for mobile */
        height: 2.2rem !important; /* Reduced height for mobile */
    }
    
    .pricing-table .price-label {
        font-size: 0.65rem !important; /* Smaller labels for mobile */
        padding: 0.5rem 0.15rem !important;
    }
    
    .pricing-table .price-value {
        font-size: 0.75rem !important; /* Smaller values for mobile */
        padding: 0.5rem 0.15rem !important;
    }
    
    .pricing-table .quantity-cell {
        padding: 0.25rem !important; /* Reduced padding for mobile */
        height: 2.2rem !important;
    }
    
    .quantity-btn {
        width: 24px !important; /* Smaller buttons for mobile */
        height: 24px !important;
        font-size: 0.7rem !important; /* Smaller font for mobile buttons */
    }
    
    .quantity-input {
        width: 32px !important; /* Smaller input for mobile */
        font-size: 0.7rem !important; /* Smaller font for mobile input */
        padding: 0.15rem !important;
    }
    
    .quantity-controls {
        gap: 0.3rem !important; /* Reduced gap for mobile */
    }
    
    /* Booking Summary Mobile Adjustments */
    .booking-summary-section {
        padding: 1rem !important;
    }
    
    .booking-summary-section h4 {
        font-size: 1rem !important;
    }
    
    .total-value {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .ticket-header {
        padding: 0.5rem !important;
    }
    
    .ticket-type-title {
        font-size: 1rem !important;
    }
    
    .ticket-content .pricing-section {
        padding: 0 !important; /* Remove all padding on small mobile */
    }
    
    .pricing-table {
        font-size: 0.8rem !important; /* Maintain readability on small screens */
    }
    
    .pricing-table th {
        padding: 0.5rem 0.3rem !important; /* Adequate padding for small screens */
        font-size: 0.7rem !important; /* Readable on small screens */
        height: 2.25rem !important;
    }
    
    .pricing-table td {
        padding: 0.6rem 0.3rem !important; /* Consistent spacing */
        font-size: 0.8rem !important; /* Maintain readability */
        height: 2.75rem !important;
    }
    
    .pricing-table .price-label {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.3rem !important;
    }
    
    .pricing-table .price-value {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.3rem !important;
    }
    
    .pricing-table .quantity-cell {
        padding: 0.3rem !important;
        height: 2.75rem !important;
    }
    
    /* Booking Summary Extra Small Mobile */
    .booking-summary-section {
        padding: 0.75rem !important;
    }
    
    .summary-item {
        font-size: 0.7rem !important;
    }
    
    .total-label {
        font-size: 0.9rem !important;
    }
    
    .total-value {
        font-size: 1rem !important;
    }
}

/* ========================================================================
   Comprehensive Beige Theme Override for Production-Ready Booking Flow
   ======================================================================== */

/* Ensure all white backgrounds use beige theme */
.ticket-type-card,
.booking-summary,
.booking-summary-section,
.form-step,
.booking-form,
.step-content,
.payment-summary,
.payment-form,
.confirmation-card {
    background-color: #fefcf8 !important; /* Lighter beige for all cards */
}

/* Form elements beige theme */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea,
.quantity-input {
    background-color: #fefcf8 !important;
    border-color: #e8dcc6 !important; /* Slightly darker beige for borders */
}

/* Progress steps and containers */
.progress-container,
.progress-steps,
.horizontal-steps {
    background-color: transparent !important;
}

/* Sidebar and summary sections */
.booking-sidebar,
.summary-sidebar {
    background-color: #fefcf8 !important;
}

/* Pricing table header should be white */
.pricing-table th {
    background: white !important;
    border-radius: 0 !important; /* Remove border radius */
}

/* Hover states with beige theme */
.pricing-table tr:hover td {
    background: #f5ede0 !important;
}

/* Button hover states maintain original colors */
.quantity-btn:hover:not(:disabled) {
    background: #1a772e !important;
    color: white !important;
}

/* Ensure consistent beige theme across all sections */
.section,
.container,
.main-content {
    background-color: transparent !important;
}

/* Form sections and wrappers */
.form-section,
.form-wrapper,
.content-wrapper {
    background-color: #fefcf8 !important;
}