/* Wrestling Lucha Party - Booking System Styles */

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px; /* Added top padding for navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.booking-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: #444;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
}

.step.completed .step-number {
    background: #28a745;
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
}

.step.active .step-label {
    opacity: 1;
    font-weight: bold;
}

/* Form Styles */
.booking-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.horizontal {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.horizontal .event-type-field {
    flex-basis: 75%;
}

.horizontal .guest-count-field {
    flex-basis: 20%;
}

.horizontal .guest-count-field label {
    font-size: 14px;
    font-weight: normal;
}

.horizontal .guest-count-field input {
    font-size: 14px;
    padding: 8px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    margin-bottom: 30px;
    color: #FFD700;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
    padding-top: 10px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: 0;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #FFA500;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.input-group label {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    background: none;
    text-align: left;
    pointer-events: auto;
}

/* Pricing Display */
.pricing-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #FFD700;
}

.price-breakdown {
    text-align: center;
}

.base-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.special-offer {
    font-size: 0.9rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.savings {
    color: #28a745;
    font-weight: bold;
}

/* Calendar Styles */
.calendar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.interactive-calendar-section {
    display: block !important;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

/* Static Calendar (Step 1) */
.static-calendar {
    opacity: 0.8;
    position: relative;
}

/* Removed 'View Only' label from static calendar - it's unnecessary */

.calendar-note {
    color: #ccc;
    font-style: italic;
    margin-bottom: 15px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.available {
    background: #28a745;
}

.legend-dot.booked {
    background: #dc3545;
}

.legend-dot.unavailable {
    background: #6c757d;
}

/* Private Takeover Styles */
.private-takeover-notice {
    margin: 20px 0;
}

.notice-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.notice-card h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

.notice-card p {
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.6;
}

.notice-card ul {
    text-align: left;
    color: #ccc;
    margin: 20px 0;
    padding-left: 20px;
}

.notice-card ul li {
    margin-bottom: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Private Takeover Success Page */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.success-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #28a745;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.success-card h1 {
    color: #28a745;
    margin-bottom: 20px;
}

.success-details {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.success-details h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    color: #fff;
    margin-bottom: 10px;
    padding-left: 10px;
}

.contact-info {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.contact-info p {
    color: #fff;
    margin: 5px 0;
}

.btn-home {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-home:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.month-nav {
    background: #FFD700;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-nav:hover {
    background: #FFA500;
    transform: scale(1.1);
}

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

/* Day Headers */
.day-header {
    text-align: center;
    font-weight: bold;
    color: #FFD700;
    padding: 10px 0;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

/* Static Calendar Grid (Step 1) - View Only */
.static-grid .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    transition: none;
    position: relative;
}

.static-grid .calendar-day.available {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.static-grid .calendar-day.booked {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

.static-grid .calendar-day.unavailable {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    color: #6c757d;
}

.static-grid .calendar-day.other-month {
    opacity: 0.3;
    color: #666;
}

/* Interactive Calendar Grid (Step 2) - Clickable */
.interactive-grid .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 40px;
    min-width: 40px;
}

.calendar-day.available {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid #FFD700;
}

.calendar-day.available:hover {
    background: #FFD700;
    color: black;
}

.calendar-day.selected {
    background: #FFD700;
    color: black;
}

.calendar-day.unavailable,
.calendar-day.unavailable-date {
    background: #444 !important;
    color: #888 !important;
    cursor: not-allowed;
    border: 1px solid #555;
}

.calendar-day.past-date {
    background: #333 !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #444;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Time Slots */
.time-slots {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.time-slots h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

.time-options {
    display: block;
    width: 100%;
}

/* Time Slots Below Calendar */
.time-group {
    margin-bottom: 20px;
}

.time-group-title {
    color: #FFD700;
    margin: 10px 0;
    font-size: 18px;
}

.time-slots-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* New column layout for vertical time slots */
.time-slots-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.slot-wrapper {
    width: 100%;
}

.time-slot {
    /* Override inline styles will be set by JavaScript to match btn-next button */
    border: none !important;
    transition: all 0.3s ease !important;
}

.time-slot .time-display {
    font-size: 16px;
    margin-bottom: 5px;
}

.time-slot .time-slot-info {
    font-size: 12px;
    opacity: 0.9;
}

.time-slot .availability-status {
    font-size: 11px;
    margin-top: 3px;
    font-weight: normal;
}

.time-slot.available {
    background-color: #4CAF50 !important;
    color: white !important;
    border: 2px solid #4CAF50 !important;
}

.time-slot.available:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.time-slot.unavailable {
    cursor: not-allowed;
    background-color: #f44336 !important;
    color: white !important;
    border: 2px solid #f44336 !important;
}

.time-slot.selected {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(45deg, #FFD700, #FFA500) !important;
    color: black !important;
}

/* Calendar day states */
.calendar-day.available,
.calendar-day.available-date {
    background: #4CAF50 !important;
    color: white !important;
    border: 1px solid #4CAF50;
    cursor: pointer;
}

.calendar-day.available:hover,
.calendar-day.available-date:hover {
    background: #45a049 !important;
}

.calendar-day.fully-booked {
    background: #f44336 !important;
    color: white !important;
    border: 1px solid #f44336;
}

.calendar-day.selected {
    background: #FFD700 !important;
    color: black !important;
    border: 2px solid #FFD700;
    transform: scale(1.05);
}

/* Time Slots */
.time-slots {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.time-slot {
    padding: 15px 20px;
    border: 2px solid #444;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.time-slot.available {
    border-color: #FFD700;
    color: #FFD700;
}

.time-slot.available:hover {
    background: #FFD700;
    color: black;
}

.time-slot.selected {
    background: #FFD700;
    color: black;
}

.time-slot.unavailable {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.time-slot-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Payment Summary */
.payment-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #FFD700;
}

.summary-card h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 10px;
}

.deposit-row {
    border-top: 2px solid #FFD700;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.balance-row {
    font-size: 1.1rem;
    font-weight: bold;
}

.total-price {
    color: #FFD700;
}

.deposit-price {
    color: #28a745;
    font-weight: bold;
}

.balance-price {
    color: #FFA500;
    font-weight: bold;
}

.highlight {
    color: #28a745;
    font-weight: bold;
}

/* Payment Options */
.payment-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.payment-options h3 {
    color: #FFD700;
    margin-bottom: 20px;
}

.deposit-explanation {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.deposit-payment-container {
    margin: 25px 0;
}

.deposit-payment-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    display: inline-block;
}

.deposit-payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    background: linear-gradient(45deg, #218838, #1e7e6d);
}

.payment-note {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 15px;
}

.security-icon {
    color: #28a745;
    margin-right: 5px;
}

/* Confirmation Styles */
.confirmation-content {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #28a745;
}

.confirmation-summary {
    text-align: left;
    margin: 20px 0;
}

.confirmation-summary p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.next-steps {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.next-steps h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* Buttons */
.btn-next,
.btn-prev,
.btn-primary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-next,
.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
}

.btn-next:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-next:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-prev {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-prev:hover {
    background: #FFD700;
    color: black;
}

.step-navigation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.step-navigation .pricing-display {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    border: 2px solid #FFD700;
    margin: 0;
    min-width: 200px;
    order: 2;
}

.step-navigation .price-breakdown {
    text-align: center;
}

.step-navigation .base-price {
    font-size: 1rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 3px;
}

.step-navigation .special-offer {
    font-size: 0.8rem;
}

.step-navigation .btn-next,
.step-navigation .btn-prev {
    order: 1;
    width: 100%;
    text-align: center;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .booking-container {
        padding: 100px 10px 10px 10px; /* Added top padding for mobile navbar */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .horizontal {
        flex-direction: column;
        gap: 0;
    }
    
    .horizontal .event-type-field,
    .horizontal .guest-count-field {
        flex-basis: 100%;
        width: 100%;
    }
    
    .step-progress {
        flex-wrap: nowrap; /* Keep all steps in a single row */
        gap: 5px; /* Smaller gap for mobile */
        overflow-x: auto; /* Allow horizontal scroll if needed on very small screens */
    }
    
    .step-progress::before {
        top: 17px; /* Adjust for smaller step circles */
    }
    
    .step {
        min-width: 80px; /* Smaller minimum width */
        flex-shrink: 1; /* Allow steps to shrink */
    }
    
    .step-number {
        width: 35px; /* Smaller circles */
        height: 35px;
        font-size: 0.8rem; /* Smaller font */
    }
    
    .step-label {
        font-size: 0.7rem; /* Smaller text */
        white-space: nowrap; /* Prevent label wrapping */
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .time-options {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .step-navigation .pricing-display {
        min-width: 150px;
        order: 2;
    }
    
    .btn-next,
    .btn-prev {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .booking-header h1 {
        font-size: 2rem;
    }
    
    .booking-form {
        padding: 20px 15px;
    }
    
    .step-progress {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
    }
    
    .step-progress .step {
        flex: 1;
        min-width: 25px;
        padding: 5px;
        font-size: 0.7rem;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .step-navigation {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    
    .step-navigation .pricing-display {
        min-width: 120px;
        padding: 8px 10px;
        order: 2;
    }
    
    .btn-next,
    .btn-prev {
        order: 1;
        width: 100%;
    }
}

/* Extra small screens - ultra compact step indicators */
@media screen and (max-width: 400px) {
    .step-progress {
        margin-bottom: 20px;
        gap: 2px;
    }
    
    .step-progress::before {
        top: 15px; /* Adjust for even smaller circles */
    }
    
    .step {
        min-width: 70px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

/* Booking Type Selector Styles */
.booking-type-selector {
    text-align: center;
    margin-bottom: 30px;
}

/* Availability overview toggle styles */
#toggle-availability-btn {
    background: transparent;
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.15);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#toggle-availability-btn:hover {
    background: rgba(255, 215, 0, 0.08);
}

#toggle-availability-btn:focus {
    outline: 3px solid rgba(255, 215, 0, 0.25);
    outline-offset: 2px;
}

/* When the panel is hidden via aria, keep it visually hidden and non-focusable */
#availability-panel[aria-hidden="true"] {
    display: none !important;
}

#availability-panel[aria-hidden="false"] {
    display: block !important;
}

.booking-type-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.booking-type-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.booking-type-tab.active {
    background: #FFD700;
    color: #1a1a1a;
    font-weight: bold;
}

.booking-type-tab:hover:not(.active) {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

/* Booking Section Styles */
.booking-section {
    transition: opacity 0.3s ease, height 0.3s ease;
}

.booking-section:not(.active) {
    display: none;
}

/* Lookup Button */
.btn-lookup {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 10px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.btn-lookup:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-lookup:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Booking Details Card */
.booking-details {
    margin-top: 25px;
}

.details-card {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 15px;
    padding: 25px;
    color: #4CAF50;
}

.details-card h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    text-align: center;
}

.booking-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.booking-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-info-label {
    font-weight: bold;
}

.payment-status-pending {
    color: #FFA500;
    font-weight: bold;
}

.payment-status-paid {
    color: #4CAF50;
    font-weight: bold;
}

/* Booking Reference Highlight */
.booking-reference-highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.booking-reference-highlight h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: bold;
}

.reference-number {
    color: #1a1a1a;
    /* Responsive font that scales down on smaller screens. JS will further adjust if needed. */
    font-size: clamp(1rem, 4.5vw, 2.5rem);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 3px solid #1a1a1a;
    box-sizing: border-box;
    /* Prevent wrapping and ensure it won't overflow; JS will shrink text to avoid truncation where possible. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: font-size 0.15s ease;
}

.booking-reference-highlight p {
    color: #1a1a1a;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
}

/* Email Status Messages */
.email-success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    margin: 15px 0;
    font-weight: bold;
}

.email-warning {
    color: #FFA500;
    background: rgba(255, 165, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #FFA500;
    margin: 15px 0;
    font-weight: bold;
}

/* Booking Confirmation Styles */
.booking-confirmation {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid #FFD700;
}

.booking-confirmation h2 {
    color: #FFD700;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.confirmation-details p {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.confirmation-actions {
    margin-top: 30px;
}

.print-button, .new-booking-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-button:hover, .new-booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Lookup Options Styling */
.lookup-options {
    margin-bottom: 30px;
}

.lookup-options h3 {
    color: #FFD700;
    margin-bottom: 10px;
    text-align: center;
}

.lookup-options p {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.lookup-tabs {
    display: flex;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.lookup-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lookup-tab:last-child {
    border-right: none;
}

.lookup-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.lookup-tab.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-weight: bold;
}

.lookup-method {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-lookup {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-lookup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.form-note {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

/* Payment Action Styling */
#payment-action {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.paypal-button {
    background: #0070ba;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
}

.paypal-button:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.4);
}

/* Generic payment-button styling for anchor-based payment links
   Ensures links injected by booking.js look and behave like buttons
   (used for private-takeover, express deposit, and other anchor fallbacks) */
.payment-button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    margin: 8px 6px;
}

.payment-button.deposit-button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.payment-button.deposit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.35);
}

.payment-button.full-payment-button,
.payment-button.paypal,
.payment-button.paypal-button {
    background: #0070ba;
    color: white;
    box-shadow: 0 6px 20px rgba(0,112,186,0.18);
}

.payment-button.full-payment-button:hover,
.payment-button.paypal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,112,186,0.35);
}

/* Payment fallback UI (shown when popups are blocked) */
.payment-fallback {
    margin-top: 14px;
}
.payment-fallback .fallback-link-text {
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
}
.payment-fallback .fallback-link {
    background: linear-gradient(45deg,#1976d2,#135ba1);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.payment-fallback .fallback-open-btn,
.payment-fallback .fallback-copy-btn,
.payment-fallback .fallback-close-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.payment-fallback .fallback-open-btn { background: #1976d2; color: #fff; border: none; }
.payment-fallback .fallback-copy-btn { background: #9e9e9e; color: #fff; border: none; }
.payment-fallback .fallback-close-btn { background: transparent; color: #333; border: 1px solid #ccc; }

@media (max-width: 480px) {
    .payment-fallback { font-size: 0.95rem; }
    .payment-fallback .fallback-link-text { font-size: 0.85rem; }
}

/* Improve PayPal / payment button alignment on smaller screens */
@media screen and (max-width: 768px) {
    .payment-options {
        padding: 16px !important;
    }

    .payment-options .payment-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* Make anchor-based payment buttons behave like full-width buttons on mobile */
    .payment-button,
    .payment-button.deposit-button,
    .payment-button.full-payment-button,
    .paypal-button {
        display: block !important;
        width: 100% !important;
        max-width: 520px;
        margin: 6px auto !important;
        padding: 12px 18px !important;
        box-sizing: border-box;
        text-align: center !important;
        font-size: 1rem !important;
    }

    .payment-button small {
        display: block;
        margin-top: 6px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 420px) {
    .payment-button,
    .paypal-button {
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
    }
}

.balance-amount {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: bold;
    margin: 15px 0;
}

.payment-complete {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 2px solid #4CAF50;
}

/* Print helper: when body has class 'print-confirmation', hide everything except the confirmation content.
   This also ensures that calling window.print() will only print the confirmation without popups. */
body.print-confirmation * {
    display: none !important;
}

body.print-confirmation .booking-confirmation,
body.print-confirmation .booking-confirmation *,
body.print-confirmation .booking-reference-highlight,
body.print-confirmation .booking-reference-highlight * {
    display: block !important;
    visibility: visible !important;
}

/* Also provide explicit @media print rules to be safe when the class is not set */
@media print {
    body * { display: none !important; }
    .booking-confirmation, .booking-confirmation * { display: block !important; }
    .booking-reference-highlight, .booking-reference-highlight * { display: block !important; }
    /* Make sure backgrounds are printed cleanly */
    .booking-reference-highlight { box-shadow: none !important; background: #fff !important; }
    .reference-number { background: transparent !important; border: none !important; }
}

/* Custom Confirmation Modal Styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.custom-modal.show {
    opacity: 1;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.custom-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 10001;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 2px solid #FFD700;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 165, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: modalBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-modal.show .custom-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

@keyframes modalBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.custom-modal-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 20px;
    border-radius: 18px 18px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(-25%, -25%);
    }
    50% {
        transform: translate(25%, 25%);
    }
}

.custom-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    animation: pulse 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.custom-modal-body {
    padding: 30px;
    text-align: center;
}

.custom-modal-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.custom-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-modal-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-modal-cancel {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.custom-modal-cancel:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

.custom-modal-cancel:active {
    transform: translateY(0);
}

.custom-modal-confirm {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.custom-modal-confirm:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
    transform: translateY(-2px);
}

.custom-modal-confirm:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .custom-modal-content {
        width: 95%;
    }
    
    .custom-modal-header {
        padding: 20px;
    }
    
    .custom-modal-icon {
        font-size: 3rem;
    }
    
    .custom-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .custom-modal-body {
        padding: 20px;
    }
    
    .custom-modal-body p {
        font-size: 1rem;
    }
    
    .custom-modal-footer {
        flex-direction: column;
        padding: 15px 20px 20px;
    }
    
    .custom-modal-btn {
        width: 100%;
    }
}

/* Addon Styles */
.addons-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(242, 112, 156, 0.1)) !important;
    border: 2px solid #e74c3c !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 30px 0 !important;
}

.addons-section h3 {
    color: #e74c3c;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.addons-section > p {
    color: #999;
    margin-bottom: 20px;
    font-size: 1em;
}

#available-addons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.addon-item {
    padding: 15px;
    margin-bottom: 0 !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.addon-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
    transform: translateY(-2px);
}

.addon-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
}

.addon-item label {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.addon-item strong {
    color: #333;
    font-size: 1em;
}

.addon-item .addon-description {
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
    line-height: 1.4;
}

#addon-total-display {
    margin-top: 20px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0) !important;
    border-radius: 8px !important;
    text-align: right;
    font-weight: bold;
    border-top: 2px solid #ddd;
    font-size: 1.1em;
    color: #e74c3c;
}

/* Addon Summary in payment summary */
.addon-summary-row {
    padding-left: 20px !important;
    font-size: 0.9em !important;
    color: #999 !important;
    font-style: italic;
}

.addon-summary-row::before {
    content: '+ ';
    color: #e74c3c;
    font-weight: bold;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

