/**
 * Booking Page Color Scheme
 * Professional, clear, and accessible color palette for seat selection
 */

/* ============================================
   SEAT SELECTION COLOR SCHEME
   ============================================ */

/* Available — standard green (high contrast white label) */
#seat-map .seat.seat-available {
    background-color: #15803d !important;
    border-color: #14532d !important;
    border-width: 2px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

#seat-map .seat.seat-available:hover:not(:disabled) {
    background-color: #16a34a !important;
    border-color: #166534 !important;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(22, 101, 52, 0.35) !important;
    color: #ffffff !important;
}

/* Selected Seats - Maroon */
#seat-map .seat.seat-selected {
    background-color: #6B1026 !important;
    border-color: #4A0D1A !important;
    border-width: 3px !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(107, 16, 38, 0.35) !important;
    opacity: 1 !important;
}

#seat-map .seat.seat-selected:hover:not(:disabled) {
    background-color: #5A0D1F !important;
    box-shadow: 0 0 0 3px rgba(107, 16, 38, 0.45) !important;
}

/* Booked / held — muted grey, clearly disabled */
#seat-map .seat.seat-booked,
#seat-map .seat.seat-held,
#seat-map .seat.seat-reserved,
#seat-map .seat.seat-disabled {
    background-color: #9ca3af !important;
    border-color: #6b7280 !important;
    border-width: 2px !important;
    color: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    filter: grayscale(0.15);
}

/* ============================================
   BOOKING PAGE UI COLORS
   ============================================ */

/* Primary Actions */
.booking-primary-btn {
    background-color: #6B1026 !important;
    color: #FFFFFF !important;
    border-color: #6B1026 !important;
}

.booking-primary-btn:hover:not(:disabled) {
    background-color: #5A0D1F !important;
    border-color: #5A0D1F !important;
    box-shadow: 0 4px 12px rgba(107, 16, 38, 0.35) !important;
}

/* Secondary Actions */
.booking-secondary-btn {
    background-color: #C9A227 !important;
    color: #2A0A0C !important;
    border-color: #9A7A28 !important;
}

.booking-secondary-btn:hover:not(:disabled) {
    background-color: #B8941F !important;
    border-color: #7D6220 !important;
}

/* Cards */
.booking-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.booking-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

/* Selected Service/Meal */
.booking-selected {
    border-color: #6B1026 !important;
    background-color: #F5E8EB !important;
}

.booking-selected:hover {
    border-color: #5A0D1F !important;
    background-color: #EDD5DC !important;
}

/* Price Display */
.booking-price {
    color: #6B1026 !important;
    font-weight: 700 !important;
}

.booking-total {
    color: #1E1E1E !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
}

/* ============================================
   EXTRA SERVICES COLORS
   ============================================ */

.extra-service-card {
    border: 2px solid #E5E7EB !important;
    transition: all 0.2s ease !important;
}

.extra-service-card:hover {
    border-color: #6B1026 !important;
    box-shadow: 0 2px 8px rgba(107, 16, 38, 0.15) !important;
}

.extra-service-card.selected {
    border-color: #6B1026 !important;
    background-color: #F5E8EB !important;
}

.extra-service-price {
    color: #6B1026 !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

/* ============================================
   MEAL SELECTION COLORS
   ============================================ */

.meal-option {
    border: 2px solid #E5E7EB !important;
    transition: all 0.2s ease !important;
}

.meal-option:hover {
    border-color: #6B1026 !important;
}

.meal-option.selected {
    border-color: #6B1026 !important;
    background-color: #F5E8EB !important;
}

/* ============================================
   SUMMARY SECTION COLORS
   ============================================ */

.booking-summary {
    background-color: #FAFAFA !important;
    border: 1px solid #E5E7EB !important;
}

.booking-summary-total {
    border-top: 2px solid #C9A227 !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

/* ============================================
   LEGEND COLORS
   ============================================ */

.seat-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 2rem;
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-size: 0.8125rem;
    font-weight: 600;
}

.seat-legend-box {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Legend swatches — match #seat-map seat colours exactly */
.seat-legend-box--available {
    background-color: #15803d;
    border-color: #14532d;
}

.seat-legend-box--selected {
    background-color: #6B1026;
    border-color: #4A0D1A;
    border-width: 3px;
}

.seat-legend-box--booked {
    background-color: #9ca3af;
    border-color: #6b7280;
}

.seat-legend-box--business {
    background-color: #ecfdf5;
    border-color: #6b1026;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.2);
}

.seat-legend-box__bc {
    font-size: 9px;
    font-weight: 900;
    color: #fffdf8;
    background-color: #4a0d1a;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

/* ============================================
   BUSINESS CLASS SEAT BADGE
   ============================================ */

/* BC badge — dark label on light chip (readable on any seat tone) */
#seat-map .bc-badge {
    display: block;
    font-size: 8px !important;
    font-weight: 900 !important;
    color: #fffdf8 !important;
    background-color: #4a0d1a !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    line-height: 1.1 !important;
    margin-top: 1px !important;
    letter-spacing: 0.04em !important;
    text-shadow: none !important;
    flex-shrink: 0;
}

/* Business: distinct from standard — maroon ring + light green panel */
#seat-map .seat.seat-business {
    border-color: #6b1026 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 1px rgba(107, 16, 38, 0.25) !important;
}

#seat-map .seat.seat-business.seat-available {
    background-color: #ecfdf5 !important;
    border-color: #6b1026 !important;
    color: #064e3b !important;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.2), 0 0 0 1px rgba(107, 16, 38, 0.25) !important;
}

#seat-map .seat.seat-business.seat-available:hover:not(:disabled) {
    background-color: #d1fae5 !important;
    color: #022c22 !important;
}

#seat-map .seat.seat-business.seat-selected {
    background-color: #6b1026 !important;
    border-color: #c9a227 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.55) !important;
}

#seat-map .seat.seat-business.seat-selected .bc-badge {
    background-color: #c9a227 !important;
    color: #4a0d1a !important;
}

#seat-map .seat.seat-business.seat-available .bc-badge {
    color: #fffdf8 !important;
    background-color: #4a0d1a !important;
}

#seat-map .seat.seat-business.seat-booked,
#seat-map .seat.seat-business.seat-held {
    background-color: #9ca3af !important;
    border-color: #6b7280 !important;
    color: #f9fafb !important;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

/* Scroll booking steps below sticky header (mobile + desktop) */
#meal-selection-section,
#extra-services-section,
#passenger-form-section {
    scroll-margin-top: 5.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
    .seat-legend {
        gap: 0.75rem 1rem;
    }
    
    .seat-legend-item {
        font-size: 0.8125rem;
    }
    
    .seat-legend-box {
        width: 1.75rem;
        height: 1.75rem;
    }

    .seat-legend-box__bc {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    #seat-map .bc-badge {
        font-size: 7px !important;
        padding: 1px 3px !important;
    }

    #seat-map .seat {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
}

