/* Default Theme */
:root {
  /* Colors from Figma */
  --ticketok-primary-color: #009cfc;
  --ticketok-primary2-color: #0084dd;
  --ticketok-white-color: #ffffff;
  --ticketok-off-white-color: #fafafa;
  --ticketok-black-color: #000000;
  --ticketok-secondary-color: #757575;
  --ticketok-muted-color: #b3b3b3;
  --ticketok-dark-blue-color: #044273;
  --ticketok-green-light-color: #e6e9e9;
  --ticketok-yellow-color: #ffb217;

  --primary-blue: #009cfc;
  --primary-blue-dark: #0088e6;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f5;
  --gray-medium: #e6e9e9;
  --gray-border: #d9d9d9;
  --gray-text: #757575;
  --gray-dark: #b3b3b3;
  --green-success: #258c06;
  --green-light: rgba(37, 140, 6, 0.12);
  --red-accent: #c70a0c;

  /* Typography */
  --font-family: "Inter", sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 26px;
  --font-size-3xl: 32px;
  --font-size-4xl: 36px;
  --font-size-5xl: 40px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;
  --spacing-4xl: 48px;
  --spacing-5xl: 80px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 156, 252, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0px 16px 32px -8px rgba(12, 12, 13, 0.4);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  background: var(--ticketok-white-color);
  color: var(--ticketok-black-color);
}

.ticketok-ps-8 {
  padding-left: 4rem !important;
}

/* Colors */
.ticketok-black-color {
  color: var(--ticketok-black-color);
}
.ticketok-primary-color {
  color: var(--ticketok-primary-color);
}
.ticketok-secondary-color {
  color: var(--ticketok-secondary-color);
}
.ticketok-muted-color {
  color: var(--ticketok-muted-color);
}

/* Typography */
.ticketok-text-10 {
  font-size: 10px;
}
.ticketok-text-12 {
  font-size: 12px;
}
.ticketok-text-14 {
  font-size: 14px;
}
.ticketok-text-16 {
  font-size: 16px;
}

.ticketok-border-bottom {
  border-bottom: 1px solid #f5f5f5;
}

/* Header */
.ticketok-header {
  /* border-bottom: 1px solid #f1f1f1; */
}

.ticketok-country-btn {
  background: transparent;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  color: #000;
  border-radius: 10px;
}

/* Buttons */
.ticketok-btn-primary {
  background: #009cfc;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  font-size: 14px;
}

.ticketok-btn-primary:hover {
  background: #0084dd;
  color: #fff;
}

.ticketok-btn-search-main {
  background: #009cfc;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  border-radius: 10px;
  border: none;
}

.ticketok-btn-search-main:hover {
  background: #0084dd;
  color: #fff;
}

.ticketok-btn-default {
  background: none;
  color: #000;
  padding: 2px;
  font-size: 13px;
}

/* Search Section */
.ticketok-search-box {
  position: relative;
}

.ticketok-card {
  background: #fff;
  border-radius: 20px;
  padding-top: 40px !important;
}

/* Flights Tab */
.ticketok-tab {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.ticketok-tab-btn {
  /* background: #009CFC;
  color: #fff;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  padding: 8px 20px;
  font-weight: 500; */

  background: #009cfc;
  color: #ffffff;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  padding: 5px 15px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.03em;
} /* Rectangle 88 */

/* Small Select */
.ticketok-mini-select,
.ticketok-custom-select {
  width: 140px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  /* border-color: #E5E5E5; */
  background-color: #f5f5f5;
}

/* Custom Select2 Theme */
.select2-container--ticketok .select2-selection--single {
  background-color: #f5f5f5 !important;
  /* border: 1px solid #ced4da !important; */
  border-radius: 4px !important;
  height: auto !important;
  padding: 6px 32px 6px 12px !important; /* space for icon */
  font-size: 14px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Add custom arrow */
.select2-container--ticketok .select2-selection--single::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f078"; /* fa-chevron-down */
  position: absolute;
  top: 50%;
  right: 12px;
  /* width: 0;
  height: 0;
  pointer-events: none;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #555;  */
  /* arrow color */
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

/* Optional: change arrow color when focused */
.select2-container--ticketok.select2-container--open
  .select2-selection--single::after {
  /*border-top-color: #007bff; /* blue when open */
  color: var(--ticketok-primary-color);
  transform: translateY(-50%) rotate(180deg);
  transition: 0.2s;
}

.select2-container--ticketok
  .select2-selection--single
  .select2-selection__rendered {
  color: #000;
  line-height: normal;
}

.select2-container--ticketok
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 8px;
}

.select2-container--ticketok .select2-results__option--highlighted {
  background-color: #f5f5f5;
  color: var(--ticketok-primary-color);
}

.select2-container--ticketok .select2-results__option[aria-selected="true"] {
  /* background-color: transparent; */
  color: var(--ticketok-primary-color);
  font-weight: 600;
  position: relative;
}

.select2-container--ticketok
  .select2-results__option[aria-selected="true"]::after {
  content: "✓";
  color: var(--ticketok-primary-color);
  position: absolute;
  right: 10px;
}

.select2-dropdown {
  border: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* Passenger dropdown styling */
.passenger-box {
  width: 220px;
  padding: 10px;
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.passenger-row .info {
  line-height: 1.2;
}

.passenger-row .info small {
  color: #777;
  font-size: 12px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.counter-minus {
  background: #d9d9d9;
  color: #fff;
}

.counter-minus:hover {
  background: #b3b3b3;
  color: #fff;
}

.counter-plus {
  /* background: #bfe0ff; */
  background: rgba(0, 156, 252, 0.5);
  color: #fff;
}

.counter-plus:hover {
  background: var(--ticketok-primary-color);
  color: #fff;
}

.apply-btn {
  width: 100%;
  border: none;
  /* background: #19a7ff; */
  background: rgba(25, 167, 255, 0.5);
  color: #fff;
  border-radius: 8px;
  padding: 6px 0;
  font-weight: 500;
}
/* End Passenger dropdown styling */

/* Location Boxes */
.ticketok-location-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.ticketok-swap-btn {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  width: 45px;
  height: 45px;
}

.ticketok-btn-white {
  background: var(--ticketok-off-white-color);
  color: var(--ticketok-primary-color);
  font-weight: 600;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  width: 100px;
  height: 50px;
}

.ticketok-label-btn {
  background: var(--ticketok-green-light-color);
  border-radius: 30px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Date Input */
.ticketok-input {
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
}

/** 2nd Page */
/* Summary Bar */
.ticketok-summary {
  background: #ffffff;
}

.ticketok-summary .summary-details {
  background: var(--ticketok-green-light-color);
  border-bottom: 3px solid var(--ticketok-primary-color);
  padding: 10px 20px 15px 20px;
}
.summary-details h5 {
  font-size: 18px;
  font-weight: 600;
}

.summary-details small {
  font-size: 13px;
}

.summary-details .remaining-text {
  display: block;
  font-size: 9px;
  color: var(--ticketok-black-color);
}
.summary-details .remaining-time {
  display: block;
}

/* Sidebar */
.filter-card {
  background: var(--ticketok-white-color);
  /* border: 1px solid #E6E6E6; */
  border: none;
  border-radius: 16px !important;
  box-shadow: 0px 16px 32px -8px rgba(12, 12, 13, 0.4);
}

.filter-card h6 {
  font-size: 16px;
  font-weight: 600;
}

.filter-card label {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
}

.filter-card input.form-check-input {
  border-color: #b3b3b3;
  cursor: pointer;
}

.filter-card input.form-check-input:checked {
  background-color: #009cfc;
  border-color: #009cfc;
}

/* Flight Card */
.flight-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 16px !important;
  transition: box-shadow 0.2s ease-in-out;
}

.flight-card:hover {
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.08);
}

.flight-card .fw-semibold {
  color: #000000;
}

.flight-card .ticketok-muted-color {
  color: #757575 !important;
}

/* Flight Path Center Section */
.flight-card .col-md-4 img {
  opacity: 0.8;
}

/* Price Section */
.flight-card .fs-5 {
  font-size: 22px !important;
  font-weight: 700;
  color: #000000;
}

/* "Flight Details" link */
.ticketok-primary-color {
  color: #009cfc !important;
  font-weight: 600;
  text-decoration: none;
}

.ticketok-primary-color:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .ticketok-summary .container {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .ticketok-header .row > div {
    text-align: center !important;
  }

  .flight-card {
    padding: 16px !important;
  }

  .filter-card {
    margin-bottom: 20px;
  }
}

/* -----------------------------
   Chart Tabs + Bar Chart Section
--------------------------------*/
/* Base */
.ticketok-chart-section {
  background: #fff;
  padding: 0;
  margin-top: -15px;
}

/* Tabs */
.ticketok-tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  gap: 20px;
}

.ticketok-tabs .tab {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-weight: 600;
  color: #757575;
  cursor: pointer;
  position: relative;
}

.ticketok-tabs .tab.active {
  color: #000;
}

.ticketok-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: #000000;
  border-radius: 4px;
}

/* Tab Contents */
.tab-content {
  display: none;
  padding-top: 20px;
}

.tab-content.active {
  display: block;
}

/* Chart Box */
.chart-box {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 20px 40px;
  background: #fff;
}

.chart-row {
  display: flex;
  justify-content: space-between;
  gap: 70px;
}

.chart-block {
  flex: 1;
  position: relative;
  padding: 0 5px;
  width: 45%;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* .bar-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
}

.bar {
  width: 20px;
  background: #E6E6E6;
  border-radius: 4px;
  height: calc(var(--h) * 80px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.bar:hover {
  background: #009CFC;
  transform: translateY(-4px);
}

.bar.selected {
  background: #009CFC;
} */

.bar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  height: 140px;
  position: relative;
}

.date-bar {
  position: relative;
  width: 18px;
  text-align: center;
  cursor: pointer;
}

.date-bar .month-label {
  position: absolute;
  top: calc(100% - (1 * 90px) - 60px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #777;
}

.date-bar .bar {
  width: 100%;
  background: #e6e6e6;
  border-radius: 0;
  height: calc(var(--h) * 90px);
  transition: all 0.3s ease;
}

.date-bar:hover .bar {
  background: #009cfc;
  transform: translateY(-3px);
}

.date-bar.selected .bar {
  background: #009cfc;
}

.day-label {
  margin-top: 5px;
  font-size: 12px;
  color: #555;
}

.day-label .day-num {
  font-weight: 600;
}

.day-label .day-name {
  font-size: 11px;
  color: #888;
}

.chart-btn {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  background: none;
  /* border: 1px solid #E5E5E5; */
  border: none;
  /* border-radius: 50%; */
  width: 36px;
  /* height: 36px; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  /* color: #757575; */
  transition: 0.2s;
  z-index: 2;
}
.chart-btn:hover {
  color: #009cfc;
}
.chart-btn.left {
  left: -30px;
}
.chart-btn.right {
  right: -30px;
}

/* Airline Slider */
.ticketok-slider-section {
  height: 80px;
  width: 100%;
  float: none;
  border: #e5e5e5 1px solid;
  border-radius: 16px;
  padding: 20px 20px;
}
.airline-slider-wrapper {
  /* position: relative;
  margin-top: 25px; */
  position: relative;
  overflow: hidden;
  width: 100% !important;
  height: 100% !important;
  padding: 0px 15px;
}

.airline-slider {
  /* display: flex;
  overflow-x: auto;
  gap: 15px;
  scroll-behavior: smooth;
  padding: 5px; */

  position: relative;
  margin: 0 !important;
  /* padding: 0 60px !important; */
  gap: 5px;
  height: 100% !important;
  display: flex;
  width: 100% !important;
}

.airline-slider::-webkit-scrollbar {
  height: 6px;
}
.airline-slider::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 3px;
}

.airline-card {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  /* border: 1px solid #E5E5E5;
  border-radius: 12px; */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  transition: 0.3s;
  min-width: 190px;
}

.airline-card::after {
  content: "";
  background-image: url("../img/line-19.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 1px; /* adjust width as needed */
  height: 100%;
  pointer-events: none;
}

.airline-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.airline-card img {
  height: 24px;
}

.airline-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.airline-card p {
  font-size: 13px;
  color: #757575;
  margin: 0;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  /* border: 1px solid #E5E5E5;
  border-radius: 50%; */
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #757575;
  transition: 0.2s;
  z-index: 2;
}

.slider-btn:hover {
  background: none;
  color: #009cfc;
}

.slider-btn.left {
  left: -10px;
}
.slider-btn.right {
  right: -10px;
}

/** Sort Filter Section */
.sort-filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-medium);
  padding: 10px 15px;
  border-radius: 16px;
}
.quick-sort {
  display: flex;
  align-items: center;
  gap: 24px;
}
.sort-label {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.21;
  color: var(--black);
}
.sort-options {
  display: flex;
  gap: 15px;
}
.sort-option {
  position: relative;
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.21;
  color: var(--black);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 20px 0 15px;
}
.sort-option::after {
  content: "";
  position: absolute;
  background: url("../img/line-17.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  top: 0;
  right: 0;
  left: auto;
  width: 1px; /* adjust width as needed */
  height: 100%;
  pointer-events: none;
}
.sort-option:last-child::after {
  width: 0;
}

.sort-option small {
  font-size: 12px;
  color: var(--black);
  font-weight: 400;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-dropdown {
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto !important;
  font-size: 12px;
  background-color: var(--ticketok-green-light-color);
}

/* -----------------------------
   Flight Card Sections
--------------------------------*/

.ticketok-flight-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 25px;
  position: relative;
  font-family: "Inter", sans-serif;
}

.flight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ticketok-green-light-color);
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}

.flight-card-header h6 {
  margin: 0;
  font-weight: 600;
  color: #333;
}
.flight-card-header span {
  font-weight: 400;
  color: #777;
  font-size: 14px;
}

.search-actions {
  display: flex;
  gap: 5px;
}

.copy-btn,
.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.copy-btn:hover,
.share-btn:hover {
  background: var(--gray-light);
}

.flight-card-body {
  position: relative;
  padding: 20px;
  padding-right: 170px; /* leave space for price block */
}

.price-block {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 130px;
  text-align: center;
  /* border-radius: 10px; */
  padding: 12px;
}

.price-details {
  width: 100%;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 7px;
  padding: 30px 10px 20px 10px;
}

.price-block .price {
  font-size: 22px;
  font-weight: 700;
  color: #009cfc;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.price-block .price::after {
  display: none !important;
  content: none !important;
}

/* ensure the down arrow appears after the amount */
.price-block .price::before {
  content: "$"; /* dollar */
  font-size: 0.8em;
  color: inherit;
  margin-right: 0;
  line-height: 0.5;
  margin-top: -10px;
  font-weight: 300;
}

.price-block .price-note {
  font-size: 12px;
}

.price-block .tax-note {
  font-size: 8px;
}

.flight-segment {
  margin-bottom: 10px;
}
.flight-segment .airline-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.segment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 25px;
}

.segment-col .time {
  font-size: 18px;
  font-weight: 600;
}
.segment-col .airport {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.segment-line {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segment-line .line {
  flex: 1;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
}

.segment-line .stop-label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.segment-line .duration {
  font-size: 12px;
  color: #999;
}

.flight-line {
  position: relative;
  margin: 0;
  padding: 0;
}

.flight-segment-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 45%;
}

.flight-segment-line .flight-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* The gray horizontal line */
/* .flight-segment-line .flight-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  background: #000;
  z-index: 1;
  transform: translateY(-0.5px);
} */

.flight-segment-line .flight-bar::before {
  content: "";
  position: absolute;
  top: 0; /* remove 50% problem */
  bottom: 0;
  margin: auto;
  height: 1px;
  background: #000;
  width: 100%;
  z-index: 1;
  transform: translateY(0%);
}

/* Each stop */
.flight-segment-line .stop {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 120px;
}

.flight-segment-line .stop.single {
  width: 100%;
}

.flight-segment-line .stop.multiple {
  width: 100%;
}

.flight-segment-line .dot-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px; /* distance between dots (adjust as you like) */
}

/* Dot marker */
.flight-segment-line .dot {
  width: 12px;
  height: 12px;
  background: #009cfc;
  border-radius: 50%;
  margin: 6px auto;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0px #009cfc;
}

/* Labels */
.flight-segment-line .stop-code {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.flight-segment-line .stop-time {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 10px 0 10px 25px;
}

.flight-card-footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-card-footer .left-links a {
  color: #009cfc;
  text-decoration: none;
  margin-right: 15px;
  font-size: 14px;
}
.flight-card-footer .left-links a.active {
  font-weight: 600;
}

/* Alternate Sections */
.alternate-section {
  /* background: #f3f8f3; */
  background: var(--ticketok-green-light-color);
  border: 1px solid #cde0cd;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
}

.alternate-section h5 {
  text-align: center;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.alt-slider-btn {
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: none;
  font-size: 20px;
  color: #757575;
  transition: 0.2s;
  opacity: 0.8;
}
.alt-slider-btn.active {
  opacity: 1;
  pointer-events: auto;
}
.alt-slider-btn.active:hover {
  background: none;
  color: #009cfc;
}

.alternate-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.alt-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  width: 48%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.airline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 10px;
}

.segment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.col .time {
  font-weight: 600;
  font-size: 15px;
}
.col .airport {
  font-size: 13px;
  font-weight: 500;
}
.col .date {
  font-size: 12px;
  color: #777;
}

/* .line {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.bar {
  flex: 1;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
}
.stop {
  display: flex;
  font-size: 11px;
  font-weight: 600;
}
.duration {
  display: flex;
  font-size: 11px;
  color: #888;
} */

.flight-line {
  position: relative;
  margin: 0;
  padding: 0;
}

.flight-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 15px;
}

/* The gray horizontal line */
/* .flight-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  background: #ccc;
  z-index: 1;
  transform: translateY(-50%);
} */

.flight-bar::before {
  content: "";
  position: absolute;
  top: 2px; /* remove 50% problem */
  bottom: 0;
  margin: auto;
  height: 1px;
  background: #000;
  width: 100%;
  z-index: 1;
  transform: translateY(0%);
}

/* Each stop */
.stop {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 60px;
}

/* Dot marker */
.dot {
  width: 12px;
  height: 12px;
  /* background: #e6e6e6; */
  background: #009cfc;
  border-radius: 50%;
  margin: 6px auto;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0px #009cfc;
}

/* Labels */
.stop-code {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.stop-time {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/** */
.price-box {
  display: flex;
  background: #e8f4e8;
  border-radius: 10px;
  padding: 10px 80px;
  margin-top: 10px;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.alt-price-details,
.save-details {
  flex: 1;
}
.alt-price-details {
  text-align: left;
}
.save-details {
  text-align: right;
  line-height: 1.2;
}
.price {
  font-size: 22px;
  color: #0a9f0a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.alt-price-details .price::after {
  display: none !important;
  content: none !important;
}

/* ensure the down arrow appears after the amount */
.alt-price-details .price::before {
  content: "$"; /* dollar */
  font-size: 0.8em;
  color: inherit;
  margin-right: 0;
  line-height: 0.5;
  margin-top: -10px;
  font-weight: 300;
}

.per {
  font-size: 12px;
  color: #666;
  margin-top: -5px;
}
.save {
  font-size: 12px;
  font-weight: 600;
  color: #4c864c;
  margin-top: 5px;
}
.save span {
  color: #0a9f0a;
}

.save-details .amount {
  color: #0a9f0a;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* hide any existing arrow injected before the amount */
.save-details .amount::after {
  display: none !important;
  content: none !important;
}

/* ensure the down arrow appears after the amount */
.save-details .amount::before {
  content: "▾"; /* down chevron */
  font-size: 2.2em;
  color: inherit;
  margin-right: 0;
  line-height: 0.5;
}

.footer {
  margin-top: 10px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.footer a {
  text-decoration: none;
  color: #009cfc;
}
.footer a.active {
  font-weight: 600;
}

.btn-book {
  display: inline-block;
  background: #009cfc;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.footer-content {
  width: 100%;
  height: 150px;
  padding: 20px 0;
  background-color: var(--ticketok-green-light-color);
  color: var(--ticketok-white-color);
}

/* -----------------------------
   Flight Details Card Section
--------------------------------*/

.ticketok-flight-details-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 25px;
  position: relative;
  font-family: "Inter", sans-serif;
}

.ticketok-flight-details-card .flight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(25, 167, 255, 0.09);
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}

.flight-details-card-body {
  position: relative;
  padding: 20px;
  padding-right: 20px; /* leave space for price block */
}

/* Flight Details Segment */
.flight-details-segment {
  font-family: "Inter", sans-serif;
  margin-bottom: 25px;
  color: #000;
}

.details-segment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 0 20px 0;
}

/* Columns */
.details-segment-col {
  width: 30%;
  min-width: 200px;
}

.details-segment-col .airport {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.details-segment-col .airport-name {
  font-size: 11px;
  color: #666;
  white-space: nowrap; /* prevent line break */
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-segment-col .time {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.details-segment-col .date {
  font-size: 13px;
  color: #888;
}

/* Center Line Section */
.details-segment-line {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  margin-left: -50px;
  margin-right: 50px;
}

.details-segment-line .line {
  width: 100%;
  height: 2px;
  background: #ccc;
  position: relative;
  margin: 6px 0;
}

.details-segment-line .dot {
  position: absolute;
  top: 1px;
  width: 10px;
  height: 10px;
  background: #888;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.details-segment-line .dot.left {
  left: 0;
}

.details-segment-line .dot.right {
  right: 0;
}

.details-segment-line .plane {
  position: absolute;
  top: -6.5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.details-segment-line .details-duration {
  font-size: 13px;
  color: #444;
  margin-top: 4px;
  font-weight: 500;
}

/* Layover Box */
.flight-details-segment .layover {
  background: #f3f3f3;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  display: inline-block;
  margin-top: 8px;
}

.flight-details-card-body .divider {
  height: 1px;
  background: #e6e9e9;
  margin: 10px 0 10px 0;
}

.flight-details-card-footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-details-card-footer .left-links a {
  color: #009cfc;
  text-decoration: none;
  margin-right: 15px;
  font-size: 14px;
}
.flight-details-card-footer .left-links a.active {
  font-weight: 600;
}

/* Flight Details Footer Elements */
.flight-details-card-footer .tollfree-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.flight-details-card-footer .tollfree-contact p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.flight-details-card-footer .tollfree-contact a {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.flight-details-card-footer .divider-vertical {
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.flight-details-card-footer .live-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.flight-details-card-footer .live-chat:hover {
  background: #f5f5f5;
}

.flight-details-card-footer .live-chat span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.flight-details-card-footer .btn-ref-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.flight-details-card-footer .ref-id {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.flight-details-card-footer .ref-id a {
  color: #666;
  text-decoration: none;
  font-size: 10px;
}

.flight-details-card-footer .ref-id .copy-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* -----------------------------
    Flight Analysis Section
--------------------------------*/

.table-chart-box,
.air-chart-box,
.date-picker-chart-box {
  border: 1px solid #ccc;
  background: #ffffff;
  border-radius: 8px;
}
.tab-content .filters {
  border-bottom: 2px solid #eee;
  padding: 5px 40px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filters select.form-select {
  height: 30px;
  min-width: 180px;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 0;
}

.matrix-wrapper {
  border: 0;
  background: none;
  border-radius: 0;
  overflow: hidden;
  padding-bottom: 10px;
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
}

.prev-btn,
.next-btn {
  background: none;
  border: none;
  color: #000;
  font-weight: normal;
  cursor: pointer;
  padding: 0;
}

.prev-btn i,
.next-btn i {
  font-size: 14px;
  color: #009cfc;
}

.matrix-wrapper .table-container {
  width: 100%;
  border-radius: 8px;
  border: 0;
  background: none;
}

.return-paginator {
  margin-left: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 5px;
}

.departure-paginator {
  position: absolute;
  top: 55%;               /* Always center vertically */
  left: -40px;            /* Adjust horizontal spacing */
  transform: translateY(-50%) rotate(-90deg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  font-size: 13px;
  font-weight: bold;
  padding: 5px;
  gap: 20px;
}

.table-container table {
  border-collapse: collapse;
  width: 100%;
  min-width: 100%;
}

.table-container table th,
td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  font-weight: normal;
}

.table-container table th {
  background: #f3f3f3;
  font-weight: 600;
}

.table-container table td.date-cell {
  background: #f3f3f3;
  font-weight: 600;
  text-align: left;
}

.table-container table td:hover {
  background: #e9f4ff;
  cursor: pointer;
}

.table-container table td.best-price {
  color: #0072ff;
  font-weight: bold;
}

.matrix-wrapper .footer {
  font-size: 10px;
  color: #000;
  padding: 0;
}

/* Airline Analysis Chart */
.day-paginator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 5px;
}

/* sortable table header */
th.sortable {
  position: relative;
  cursor: pointer;
  padding-right: 2.2rem !important; /* room for icons on the right */
  user-select: none;
  white-space: nowrap;
}

/* small up/down icon stack */
.sort-icons {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  line-height: 1;
  color: #6c757d; /* muted color */
  font-size: 0.6rem; /* keep icons small */
}

/* each chevron */
.sort-icons i {
  display: block;
  font-size: 0.75rem;
  opacity: 0.45;
  transition: opacity 0.12s, color 0.12s;
}

/* active/selected sort state */
.sort-icons i.active {
  opacity: 1;
  color: var(--ticketok-primary-color, #0d6efd);
}

/* subtle hover affordance */
th.sortable:hover .sort-icons i {
  opacity: 0.75;
}

/* Date Picker Chart */
.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  padding: 8px 0;
  font-weight: 600;
}

.date-picker-chart-box .filters {
  border-bottom: 0;
  padding: 5px 20px 10px 20px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.date-picker-chart-box .matrix-wrapper {
  padding: 0 20px 10px 20px;
}

.date-row {
  display: grid;
  grid-template-columns: 100px repeat(31, 1fr);
  border-bottom: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
}

.date-header div {
  background: #f6f6f6;
  padding: 8px 0;
  font-weight: bold;
  border-right: 1px solid #ddd;
}

#departure,
#arrival {
  border: 1px solid #000;
}

.label-col {
  background: #f6f6f6;
  font-weight: bold;
  padding: 5px;
  border-right: 1px solid #ddd;
  text-align: left;
  font-size: 13px;
}

.cell {
  padding: 7px 2px;
  border-right: 1px solid #eee;
  /* border-bottom: 1px solid #eee; */
  font-size: 9px;
  cursor: pointer;
}

.cell:hover {
  background: #eaf2ff;
}

.highlight {
  background: #e1f5e0;
}

.best {
  color: #1e74f7;
  font-weight: bold;
}

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  padding-left: 50px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  background: #f6f6f6;
  border: 1px solid #000;
}

.summary-left {
  max-width: 35%;
  min-width: 30%;
}

.summary-fare {
  font-size: 22px;
  color: #0080ff;
  font-weight: bold;
}

.summary-buttons {
  display: flex;
  gap: 10px;
}

.summary-buttons .group-btn {
  background: #fff;
  padding: 5px;
}

/* advance search option */

.ticketok-checkbox-box {
  padding: 8px 12px;
  min-width: 160px;
}

.ticketok-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 4px 0;
}

.ticketok-checkbox-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--ticketok-primary-color);
  cursor: pointer;
}

/* .ticketok-search-input {
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 8px;
  box-sizing: border-box;
  border: 0 solid #ccc;
  background: var(--ticketok-green-light-color);
  border-radius: 6px;
  outline: none;
} */

/* --- Search box with icon placeholder --- */
.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-box input {
  width: 100%;
  padding: 6px 34px 6px 10px; /* left space for icon */
  border-radius: 4px;
  border: 0px solid #eee;
  outline: none;
  font-size: 13px;
  background: #f5f5f5;
}

.search-box input::placeholder {
  color: #cbd3d8;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 15px;
  color: #cbd3d8;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-icon i {
  color: var(--ticketok-primary-color);
}

/* Hide icon when typing or focusing */
/* .search-box input:focus + .search-icon, */
.search-box input:not(:placeholder-shown) + .search-icon {
  opacity: 0;
}

/* Scrollbar Styling for WebKit browsers (Chrome, Edge, Safari) */
.ticketok-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.ticketok-checkbox-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ticketok-checkbox-list::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}

.ticketok-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

/* Remove arrows */
.ticketok-checkbox-list::-webkit-scrollbar-button {
  display: none;
}

/* Remove top and bottom arrows explicitly */
.ticketok-checkbox-list::-webkit-scrollbar-button:start:decrement,
.ticketok-checkbox-list::-webkit-scrollbar-button:end:increment {
  display: none;
  width: 0;
  height: 0;
}

/* For Firefox */
.ticketok-checkbox-list {
  scrollbar-width: thin;
  scrollbar-color: #c7c7c7 #f1f1f1;
}


/** Booking Page */
.multi-step-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step {
  width: 33%;
  padding: 10px;
  text-align: center;
  border-bottom: 3px solid #ddd;
  font-weight: 500;
}

.step.active {
  border-color: #007bff;
  color: #007bff;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

button {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.back-btn {
  background: #6c757d;
  margin-right: 10px;
}


/** new Design */
/*form styles*/
#msform {
    /* text-align: center; */
    position: relative;
    margin-top: 30px;
}

#msform fieldset {
    /* background: white;
    border: 0 none;
    border-radius: 0px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;

    /*stacking fieldsets above each other*/
    /*position: relative; */
}

#msform .ticketok-fieldset {
    background: #fff;
    border-radius: 16px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    font-family: "Inter", sans-serif;
}

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}

#msform .fieldset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ticketok-green-light-color);
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

#msform .fieldset-header h6{
  margin-bottom: 0;
}
#msform .fieldset-header button {
  margin-top: 0;
}

#msform .fieldset-body {
  padding: 20px 170px 20px 20px;
}

/*inputs*/
/* #msform input, #msform textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 0px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2C3E50;
    font-size: 13px;
} */
#msform .fieldset-body .form-group label {
  margin-bottom: 5px;
}
#msform input, #msform textarea, #msform select {
    background-color: var(--ticketok-green-light-color);
    border: 0;
}

#msform input:focus, #msform textarea:focus {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: 1px solid #ee0979;
    outline-width: 0;
    transition: All 0.5s ease-in;
    -webkit-transition: All 0.5s ease-in;
    -moz-transition: All 0.5s ease-in;
    -o-transition: All 0.5s ease-in;
}

/*buttons*/
#msform .action-button {
    width: 120px;
    /* background: #ee0979; */
    background: var(--primary-blue);
    font-weight: normal;
    text-transform: uppercase;
    color: white;
    border: 0 none;
    /* border-radius: 25px; */
    border-radius: 10px;
    cursor: pointer;
    padding: 8px 5px;
    margin: 10px 5px;
}

#msform .action-button:hover, #msform .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #ee0979;
}

#msform .action-button-previous {
    width: 120px;
    background: #767676;
    /* background: #C5C5F1; */
    font-weight: normal;
    text-transform: uppercase;
    color: white;
    border: 0 none;
    border-radius: 10px;
    cursor: pointer;
    padding: 8px 5px;
    margin: 10px 5px;
}

#msform .action-button-previous:hover, #msform .action-button-previous:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #C5C5F1;
}

/*headings*/
.fs-title {
    font-size: 18px;
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.fs-subtitle {
    font-weight: 500;
    font-size: 13px;
    /* color: #666; */
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
    text-align: center;
}

#progressbar li {
    list-style-type: none;
    color: black;
    text-transform: uppercase;
    font-size: 9px;
    width: 33.33%;
    float: left;
    position: relative;
    letter-spacing: 1px;
}

#progressbar li.active {
  color: var(--ticketok-primary-color);
  font-weight: 600;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 24px;
    height: 24px;
    line-height: 26px;
    display: block;
    font-size: 12px;
    color: white;
    background: #b2b2b2;
    border-radius: 25px;
    margin: 0 auto 10px auto;
}

/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 1px;
    background: black;
    position: absolute;
    left: -50%;
    top: 9px;
    z-index: -1; /*put it behind the numbers*/
}

#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}

/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before, #progressbar li.active:after {
    background: var(--ticketok-primary-color);
    color: white;
}


/* Not relevant to this form */
.dme_link {
    margin-top: 30px;
    text-align: center;
}
.dme_link a {
    background: #FFF;
    font-weight: bold;
    color: #ee0979;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 5px 25px;
    font-size: 12px;
}

.dme_link a:hover, .dme_link a:focus {
    background: #C5C5F1;
    text-decoration: none;
}

