/** Seat Layout - Comprehensive Responsive Design **/
*, *:before, *:after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

/* Base Seat Layout Styles */
.plane {
  margin: 20px auto;
  max-width: 100%;
}

.exit {
  position: relative;
  height: 50px;
}

.exit:before, .exit:after {
  content: "EXIT";
  font-size: 14px;
  line-height: 18px;
  padding: 0px 2px;
  font-family: "Arial Narrow", Arial, sans-serif;
  display: block;
  position: absolute;
  background: green;
  color: white;
  top: 50%;
  transform: translate(0, -50%);
}

.exit:before {
  left: 0;
}

.exit:after {
  right: 0;
}

.fuselage {
  /* border-right: 5px solid #d8d8d8;
  border-left: 5px solid #d8d8d8; */
  /* Empty by design - can be used for future styling */
}

ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Cabin Container */
.cabin {
  list-style: none;
  padding: 20px;
  background: #f9f9f9;
  border: 2px solid #333;
  border-radius: 10px;
  display: inline-block;
  width: 100%;
}

.row {
  margin: 10px 0;
}

/* Seats Container */
.seats {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
}

/* Seat Item */
.seat {
  display: flex;
  flex: 0 0 14.28571428571429%;
  padding: 5px;
  position: relative;
  text-align: center;
}

.seat.onebyone:nth-child(1) {
  margin-right: 14.28571428571429%;
}

.seat.onebytwo:nth-child(1) {
  margin-right: 14.28571428571429%;
}

.seat.twobytwo:nth-child(2) {
  margin-right: 14.28571428571429%;
}

.seat.twobythree:nth-child(2) {
  margin-right: 14.28571428571429%;
}

.seat.threebythree:nth-child(3) {
  margin-right: 14.28571428571429%;
}

/* Seat Checkbox */
.seat input[type="checkbox"] {
  display: none;
  position: absolute;
  opacity: 0;
}

.seat input[type="checkbox"]:checked + label {
  background: #0092bf;
  -webkit-animation-name: rubberBand;
  animation-name: rubberBand;
  animation-duration: 300ms;
  animation-fill-mode: both;
}

.seat-checkbox.booked-seat + label {
  background: #f77;
  color: #fff;
  text-decoration: line-through;
  cursor: not-allowed;
}

.seat-checkbox.available-seat + label:hover {
  background: #81c784;
}

.seat input[type="checkbox"]:disabled + label {
  background: #dddddd;
  text-indent: -9999px;
  overflow: hidden;
  cursor: not-allowed;
}

.seat input[type="checkbox"]:disabled + label:after {
  content: "X";
  text-indent: 0;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translate(-50%, 0%);
}

.seat input[type="checkbox"]:disabled + label:hover {
  box-shadow: none;
  cursor: not-allowed;
}

/* Seat Label */
.seat label {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 6px;
  background: #c87b04;
  color: #000000;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  font-size: 14px;
  position: relative;
  text-align: center;
}

.seat label:before {
  content: "";
  position: absolute;
  width: 75%;
  height: 75%;
  top: 1px;
  left: 50%;
  transform: translate(-50%, 0%);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.seat label:hover {
  cursor: pointer;
  box-shadow: 0 0 0px 2px #5C6AFF;
}

/* Special Seats */
.seat label.driver {
  background: #333;
  color: #fff;
}

.seat label.door {
  background: #ccc;
  color: #000;
}

/* Seat Legend */
.seat-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #666;
}

.legend-box.available {
  background: #9f9;
}

.legend-box.booked {
  background: #f77;
}

.legend-box.driver {
  background: #333;
}

.legend-box.door {
  background: #ccc;
}

/* Rubber Band Animation */
@-webkit-keyframes rubberBand {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes rubberBand {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.rubberBand {
  -webkit-animation-name: rubberBand;
  animation-name: rubberBand;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile - Small screens (< 576px) */
@media (max-width: 575.98px) {
  .plane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px -15px;
    padding: 0 15px;
  }
  
  .cabin {
    min-width: 600px; /* Ensure minimum width for readability */
    padding: 15px;
  }
  
  .seat {
    flex: 0 0 50px; /* Fixed width for mobile */
    padding: 3px;
    min-width: 50px;
  }
  
  .seat label {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .row {
    margin: 8px 0;
  }
  
  .seats {
    gap: 5px;
  }
  
  .seat-legend {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    margin-top: 15px;
  }
  
  .legend-box {
    width: 18px;
    height: 18px;
  }
  
  /* Stack booking summary above seat map on mobile */
  /* Use Bootstrap's natural column stacking - no need to override */
  .row.mt-50 > .col-lg-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .row.mt-50 > .col-lg-6:last-child {
    margin-bottom: 20px;
  }
  
  .row.mt-50 > .col-lg-6:first-child {
    margin-top: 0;
  }
  
  .box-content-tickets-detail {
    margin-bottom: 20px;
  }
  
  .layout_key {
    margin-top: 15px;
  }
}

/* Tablet - Medium screens (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .seat {
    flex: 0 0 11%;
    padding: 4px;
  }
  
  .seat label {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .cabin {
    padding: 18px;
  }
  
  .seats {
    gap: 8px;
  }
  
  .seat-legend {
    gap: 15px;
    font-size: 13px;
  }
}

/* Desktop - Large screens (≥ 992px) */
@media (min-width: 992px) {
  .seat label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .seat-checkbox.available-seat + label:hover {
    background: #81c784;
    transform: scale(1.05);
  }
}

/* Large Desktop - Extra large screens (≥ 1200px) */
@media (min-width: 1200px) {
  .cabin {
    padding: 25px;
  }
  
  .seat {
    padding: 6px;
  }
  
  .seat label {
    width: 48px;
    height: 48px;
    line-height: 48px;
  }
}

/** Seat Layout ENDS**/


.btn.btn-brand-secondary {
    padding: 12px 22px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 700;
    background-color: #f6ad3b;
    border-radius: 50px;
    color: var(--bs-color-1000) !important;
    display: flex
;
    align-items: center;
    width: fit-content;
}

.box-dropdown-cart .dropdown-account, .box-dropdown-cart .dropdown-cart {
  padding: 25x 25px;
  width: fit-content;
  text-align: left;
}

.block-banner-home10 {
  min-height: 600px;
  padding-top: 100px;
  background-image: url(../imgs/page/homepage10/banner.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.box-search-advance .box-bottom-search .item-search {
  width: auto;
  position: relative;
  padding: 0px 20px;
}

.box-top-flights {
  padding: 10px 0px 0px 0px;
}

.box-logos-tickets {
  padding: 50px 0px;
  border-bottom: 0px solid var(--bs-border-color);
}

option {
    background: #c3c3c3;
    border: 0px solid #626262;
    padding-left: 10px;
    font-size: 16px;
}

.box-why-book-travila-3 {
    padding: 25px 0px 60px 0px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
        padding: 20px;
    }
}

/* ============================================
   UTILITY CSS CLASSES - Replace Inline Styles
   ============================================ */

/* Required Field Indicator */
.required-indicator {
    color: red;
}

/* Spacing Utilities */
.spacing-inline {
    margin: 0 10px;
}

.spacing-inline-sm {
    margin: 0 5px;
}

/* Dropdown Menu Margin Reset */
.dropdown-menu-no-margin {
    margin: 0;
}

/* Responsive adjustments for spacing */
@media (max-width: 767.98px) {
    .spacing-inline {
        margin: 0 5px;
    }
    
    .spacing-inline-sm {
        margin: 0 3px;
    }
}

/* ============================================
   FORM RESPONSIVENESS IMPROVEMENTS
   ============================================ */

/* Base form control improvements */
.form-control,
.form-select,
select.form-select,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"] {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    min-height: 44px; /* Touch-friendly minimum height */
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Textarea specific */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Form group spacing */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* Form contact specific improvements */
.form-contact .col-lg-6 {
    margin-bottom: 15px;
}

/* Input focus states */
.form-control:focus,
.form-select:focus {
    border-color: #f6ad3b;
    box-shadow: 0 0 0 0.2rem rgba(246, 173, 59, 0.25);
    outline: none;
}

/* ============================================
   GLOBAL DATE INPUT CLICKABILITY FIX
   ============================================ */
/* Remove ::before pseudo-elements that block clicks on ALL date inputs */
input[type="date"]:before,
input[type="date"]::before,
input[type=date]:before,
input[type=date]::before,
.form-control[type="date"]:before,
.form-control[type="date"]::before,
.form-control[type=date]:before,
.form-control[type=date]::before {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
}

/* Ensure all date inputs are fully clickable */
input[type="date"],
input[type=date],
.form-control[type="date"],
.form-control[type=date] {
    position: relative;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Style calendar picker indicator for better visibility and clickability */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type=date]::-webkit-calendar-picker-indicator,
.form-control[type="date"]::-webkit-calendar-picker-indicator,
.form-control[type=date]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    z-index: 11;
    position: relative;
    opacity: 1;
    background: transparent;
    padding: 5px;
    margin-left: 5px;
}

/* Remove spinner buttons */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button,
input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* Mobile-specific form improvements */
@media (max-width: 767.98px) {
    /* Ensure full width on mobile */
    .form-contact .col-lg-6,
    .form-contact .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Larger touch targets on mobile */
    .form-control,
    .form-select,
    select.form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="date"],
    input[type="time"] {
        min-height: 48px;
        font-size: 16px !important;
        padding: 12px 15px;
    }
    
    /* Enhanced calendar picker indicator on mobile */
    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type=date]::-webkit-calendar-picker-indicator,
    .form-control[type="date"]::-webkit-calendar-picker-indicator,
    .form-control[type=date]::-webkit-calendar-picker-indicator {
        width: 30px;
        height: 30px;
        padding: 8px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* Better spacing for form groups */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Label improvements */
    .form-group label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    /* Button improvements */
    .btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
        touch-action: manipulation; /* Prevents double-tap zoom */
    }
    
    /* Form contact container */
    .form-contact {
        padding: 15px;
    }
    
    /* Search form improvements */
    .box-bottom-search .booking_form {
        margin-bottom: 15px;
    }
    
    .box-bottom-search .col-lg-3 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Search input and dropdown improvements */
    .search-input,
    .btn-dropdown-search,
    .location-search {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
    
    .box-calendar-date .search-input {
        width: 100%;
    }
    
    /* Search button improvements */
    .btn-black-lg {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
        width: 100%;
        margin-top: 10px;
    }
}

/* Tablet-specific form improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
}

/* Desktop hover effects */
@media (min-width: 992px) {
    .form-control:hover,
    .form-select:hover {
        border-color: #d4a85a;
    }
    
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   HEADER & NAVIGATION RESPONSIVENESS
   ============================================ */

/* Header Logo Responsive Sizing */
.header-logo img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Mobile Header Logo */
.mobile-header-logo img {
    max-width: 100%;
    height: auto;
}

/* Main Navigation Responsive */
.header-nav {
    transition: all 0.3s ease;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-menu li a {
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Burger Icon Improvements */
.burger-icon {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    touch-action: manipulation;
}

.burger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Mobile Header Wrapper */
.mobile-header-wrapper-style {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Mobile Menu Improvements */
.mobile-menu {
    font-size: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    padding: 15px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

.mobile-menu li.has-children > a {
    position: relative;
}

/* Mobile Menu Sub-menu */
.mobile-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu li.has-children.active > .sub-menu {
    max-height: 500px;
}

.mobile-menu .sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
}

/* Mobile Header Content Area */
.mobile-header-content-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Header Top Section */
.mobile-header-top {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header-top .box-author-profile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-header-top .card-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-header-top .card-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-header-top .btn {
    width: 100%;
    min-height: 44px;
}

/* Header Container Responsive */
.header .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.header .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile-specific header improvements */
@media (max-width: 767.98px) {
    /* Logo sizing */
    .header-logo img {
        max-width: 180px;
        height: auto;
    }
    
    .mobile-header-logo img {
        max-width: 150px;
        height: auto;
    }
    
    /* Hide desktop navigation on mobile */
    .header-nav.header-left {
        display: none;
    }
    
    /* Header adjustments */
    .header .main-header {
        min-height: 60px;
        padding: 10px 0;
    }
    
    .header-left {
        gap: 10px;
    }
    
    /* Burger icon larger on mobile */
    .burger-icon {
        min-width: 48px;
        min-height: 48px;
        padding: 10px;
    }
    
    /* Mobile menu font size */
    .mobile-menu {
        font-size: 16px;
    }
    
    .mobile-menu a {
        font-size: 16px;
        padding: 18px 20px;
        min-height: 50px;
    }
    
    /* Mobile header wrapper full width */
    .mobile-header-wrapper-style {
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile header top padding */
    .mobile-header-top {
        padding: 15px;
    }
    
    /* Header container padding */
    .header .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Tablet-specific header improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header-logo img {
        max-width: 250px;
    }
    
    .main-menu li a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Desktop header enhancements */
@media (min-width: 992px) {
    .main-menu li a:hover {
        color: #f6ad3b;
        transform: translateY(-2px);
    }
    
    .burger-icon {
        display: none;
    }
    
    .header-nav.header-left {
        display: block;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus Indicators - High Visibility */
*:focus {
    outline: 2px solid #f6ad3b;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #f6ad3b;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
}

/* Seat Selection Accessibility */
.seat input[type="checkbox"]:focus + label,
.seat label:focus {
    outline: 3px solid #f6ad3b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
}

.seat input[type="checkbox"]:checked + label {
    outline: 2px solid #000;
    outline-offset: 1px;
}

/* Keyboard Navigation for Seats */
.seat label {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(246, 173, 59, 0.3);
}

.seat label:focus-visible {
    outline: 3px solid #f6ad3b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
}

/* Form Controls Focus */
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: 3px solid #f6ad3b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
    border-color: #f6ad3b;
}

/* Button Focus */
.btn:focus,
.btn:focus-visible {
    outline: 3px solid #f6ad3b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

/* Link Focus */
a:focus,
a:focus-visible {
    outline: 2px solid #f6ad3b;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Skip to Content Link (Hidden until focused) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f6ad3b;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Color Contrast Improvements */
.required-indicator {
    color: #d32f2f; /* Darker red for better contrast */
    font-weight: bold;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .seat label {
        border: 2px solid currentColor;
    }
    
    .form-control,
    .form-select {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ARIA Live Regions */
[aria-live] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Table Accessibility */
table {
    caption-side: top;
}

th {
    font-weight: bold;
}

/* Ensure sufficient contrast for text */
.text-sm-medium,
.text-sm-bold,
.text-md-medium,
.text-md-bold {
    color: inherit;
}

/* Mobile Menu Accessibility */
.mobile-menu a:focus,
.mobile-menu a:focus-visible {
    background-color: rgba(246, 173, 59, 0.2);
    outline: 2px solid #f6ad3b;
    outline-offset: -2px;
}

/* Search Input Accessibility */
.search-input:focus,
.btn-dropdown-search:focus {
    outline: 3px solid #f6ad3b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(246, 173, 59, 0.3);
}

/* Alert Accessibility */
.alert {
    border-left: 4px solid;
}

.alert-danger {
    border-left-color: #d32f2f;
}

.alert-success {
    border-left-color: #2e7d32;
}

.alert-info {
    border-left-color: #1976d2;
}

/* Loading States */
[aria-busy="true"] {
    cursor: wait;
}

[aria-disabled="true"],
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevent Layout Shift */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize Rendering */
.seat label,
.btn,
.form-control {
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Reduce Repaints */
.header,
.mobile-header-wrapper-style {
    contain: layout style paint;
}

/* Optimize Animations */
@media (prefers-reduced-motion: no-preference) {
    .seat label,
    .btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

/* Content Visibility for Large Lists */
.seat-list,
.mobile-menu {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Optimize Scroll Performance */
.plane,
.mobile-header-content-area {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Reduce Paint Complexity */
.cabin,
.seat-legend {
    isolation: isolate;
}

/* Optimize Font Loading - Applied via main CSS font-face rules */
/* font-display: swap should be added to existing @font-face declarations */

/* Critical CSS - Above the fold content */
/* Header, logo, and burger icon styles are in main CSS for optimal performance */

/* Defer Non-Critical Styles */
@media (max-width: 767.98px) {
    /* Mobile-specific optimizations */
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    /* Desktop-specific optimizations */
    .mobile-only {
        display: none !important;
    }
}