/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#booking-form * {
  font-weight: bold;
  font-size: 0.9rem;
}

#booking-form input,
#booking-form select,
#booking-form button {
  color: #818589;
}

.bg-bronze {
  background-color: #cd7f32;
}

/* .flex-boxes{
	column-gap: 20px !important;
} */

/* .flex-boxes * {
	flex: 1 1;
	width: 100%;
} */

.flex-boxes input {
  padding: 0.8em;
  line-height: normal;
  padding-right: 1em;
  appearance: none;
  background-position: 98% 50%;
  background-color: #fff;
  border-color: var(--ast-border-color);
  border-radius: 3px;
  box-shadow: none;
}

.flex-boxes .conditional {
  display: contents;
}

.d-inputs {
  display: flex !important;
  flex-direction: column;
}

/*.d-inputs label{
	color: #ffffff !important;
}*/

/*.button-box{
    max-width: 150px;
}*/

.flex-boxes button {
  max-width: 150px;
  padding: 1em;
  line-height: normal;
  border-radius: 3px;
}

select {
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1em center !important;
  background-size: 1em !important;
}

#booking-form button.submit,
button.submit,
#formSbtn {
  color: #ffffff !important;
  background-color: #399af4 !important;
  padding: 1em;
  line-height: normal;
  border-radius: 3px;
  max-width: 100% !important;
}

#booking-form button.submit:hover,
button.submit:hover,
#formSbtn:hover {
  background-color: #2563eb !important;
}

.text-white {
  color: #ffffff !important;
}

.form-wrap {
  background: #ffffff;
  padding: 1rem;
  align-items: stretch;
}

.top-fields {
  background-color: #ffffffc7 !important;
  padding: 8px 15px 8px 15px !important;
  // color: #ffffff !important;
  // border: none !important;
}

.top-fields button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover .button:hover, .ast-custom-button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus{
  color: #424242 !important;
}

#passenger-dropdown-trigger {
  line-height: normal !important;
}

#top-buttons-section {
  max-width: 600px;
}

#top-buttons-section,
#top-buttons-section .flex {
  gap: 0.5rem !important;
}

.hide {
  display: none !important;
}

/*Flight Card*/

.flight-card,
.card-stack {
  width: 800px;
}

.flight-time-border {
  border-color: #399af4;
  width: 54px;
  margin: 0 auto;
  position: relative;
}

.flight-time-border:before {
  left: 0;
}

.flight-time-border:before,
.flight-time-border:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  display: inline-block;
  background-color: #fff;
  border: 1px solid #399af4;
  border-radius: 50%;
  top: -4px;
}

.flight-time-border:after {
  right: 0;
}

.flight-time-border:before,
.flight-time-border:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  display: inline-block;
  background-color: #fff;
  border: 1px solid #399af4;
  border-radius: 50%;
  top: -4px;
}

/*Multi range slider*/
.slider {
  position: relative;
  z-index: 1;
  height: 5px; /* Reduced from 10px to 5px for a thinner track */
  margin: 0 15px;
}
.slider > .track {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 2.5px; /* Adjusted for a thinner track */
  background-color: #9bb6f0;
}
.slider > .range {
  position: absolute;
  z-index: 2;
  left: 25%;
  right: 25%;
  top: 0;
  bottom: 0;
  border-radius: 2.5px; /* Adjusted for a thinner range */
  background-color: #2563eb;
}
.slider > .thumb {
  position: absolute;
  z-index: 3;
  width: 15px; /* Reduced from 30px to 15px for smaller knobs */
  height: 15px; /* Reduced from 30px to 15px for smaller knobs */
  background-color: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(98, 0, 238, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}
.slider > .thumb.left {
  left: 25%;
  transform: translate(-7.5px, -5px); /* Adjusted for smaller knobs */
}
.slider > .thumb.right {
  right: 25%;
  transform: translate(7.5px, -5px); /* Adjusted for smaller knobs */
}
.slider > .thumb.hover {
  box-shadow: 0 0 0 10px rgba(98, 0, 238, 0.1); /* Adjusted for smaller hover effect */
}
.slider > .thumb.active {
  box-shadow: 0 0 0 20px rgba(98, 0, 238, 0.2); /* Adjusted for smaller active effect */
}

input[type="range"] {
  position: absolute;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 2;
  height: 5px; /* Reduced to match the new slider height */
  width: 100%;
  opacity: 0;
}
input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 15px; /* Reduced from 30px to 15px for smaller knobs */
  height: 15px; /* Reduced from 30px to 15px for smaller knobs */
  border-radius: 50%; /* Adjusted for rounded knobs */
  background-color: #2563eb;
  -webkit-appearance: none;
}

/* Results Page */

#flight-info-container {
  background-color: #2563eb;
}

#flight-info-container p {
  margin: 0 !important;
  padding: 0 !important;
}

#flight-info-container #modify-button {
  background-color: #399af4;
  color: #ffffff;
}

div#f-sidebar.flex-none.filter-sidebar {
  min-width: 18rem !important;
}

h2#filter-title.text-lg.font-semibold {
  font-size: 1.25rem !important;
  margin: 0 !important;
}

#f-sidebar.filter-sidebar button.btns,
#f-sidebar.filter-sidebar button.clear,
button.btns.clear-all,
button.btns.clear {
  border: none !important;
  letter-spacing: normal !important;
}

#f-sidebar.filter-sidebar button.clear:hover,
button.btns.clear-all:hover,
button.btns.clear:hover {
  background-color: transparent !important;
}

h4#flight-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #424242;
}

#flightFilterTabs > button {
  letter-spacing: normal !important;
}

#flightFilterTabs > button[aria-selected="true"] {
  background-color: #2563eb !important;
  color: #ffffff !important;
  min-width: 100px;
}

.top-fields option {
  color: #424242 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.text-lg {
  font-size: 1.2rem !important;
}

/* New Styles */
.booking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  display: flex;
  gap: 15px;
}

.field-container {
  flex: 1;
  position: relative;
}

.airport-input,
.date-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.passenger-dropdown {
  position: relative;
  width: 100%;
}

.submit-button {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-section {
    flex-direction: column;
  }

  .field-container {
    width: 100%;
  }
}

/* Flight Booking Elements */
.flight-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#flight-search-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.airport-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#flight-results {
  margin-top: 20px;
}

.flight-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.2s;
}

.flight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.passenger-select {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.search-btn {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.search-btn:hover {
  background: #0056b3;
}

input[type="date"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
  font-family: inherit;
}

input[type="date"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Remove any existing datepicker styles */
.ui-datepicker {
  display: none !important;
}

/* Passenger Dropdown */
.passenger-dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  margin-top: 4px;
  min-width: 250px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-menu.hidden {
  display: none;
}

.passenger-type {
  margin-bottom: 12px;
}

.passenger-type:last-child {
  margin-bottom: 0;
}

.passenger-type label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #666;
}

.counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.counter button:hover {
  background: #f5f5f5;
}

.counter input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
}
