/* Wide Form & Enhanced Inputs Style - Clean V38 - Layout Fix v4 (Image Match) */

/* 1. Reset Container Width for Form */
.booking-container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 80%; /* Requested 80% width */
}

.hero-form-card {
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 20px 30px !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.ticket-visual {
  display: flex;
  width: 100%;
  max-width: 600px;
  height: 200px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  ); /* Blue/Purple Gradient */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.ticket-left {
  flex: 2;
  padding: 20px;
  position: relative;
  border-right: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  gap: 15px;
}

.ticket-left::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #fff; /* Match form bg */
  border-radius: 50%;
}

.ticket-left::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #fff; /* Match form bg */
  border-radius: 50%;
}

.barcode-strip {
  width: 30px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.5) 2px,
    rgba(255, 255, 255, 0.5) 4px
  );
  border-radius: 4px;
}

.ticket-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ticket-main-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 10px 0;
}

.ticket-main-route i {
  font-size: 1.2rem;
  opacity: 0.9;
  transform: rotate(45deg);
}

.ticket-info-row {
  display: flex;
  justify-content: space-between;
}

.ticket-data-col {
  display: flex;
  flex-direction: column;
}

.ticket-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 1px;
}

.ticket-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.ticket-footer-note {
  font-size: 0.6rem;
  text-align: center;
  opacity: 0.6;
  margin-top: 5px;
}

.ticket-right {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.barcode-top {
  height: 30px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.8) 2px,
    rgba(255, 255, 255, 0.8) 4px
  );
  border-radius: 4px;
  margin-bottom: 5px;
}

.ticket-right-row {
  display: flex;
  flex-direction: column;
}

/* Hide Ticket on very small screens */
@media (max-width: 600px) {
  .ticket-visual {
    display: none;
  }
}

/* 3. ROW 1: RADIO & PASSENGERS */
.form-section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* Compact Spacing */
  gap: 20px;
}

/* Left: Radio Group */
.radio-group-horizontal {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 4px;
  border-radius: 999px;
  border: 2px solid #3b66a5;
  height: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.radio-group-horizontal label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  color: #3b66a5;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
  height: 100%;
}

.radio-group-horizontal label:hover {
  background: rgba(59, 102, 165, 0.08); /* Light blue hover */
}

.radio-group-horizontal input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #3b66a5;
  border-radius: 50%;
  margin: 0;
  position: relative;
  transition: all 0.2s;
}

.radio-group-horizontal input[type="radio"]:checked {
  background: #3b66a5;
  border-color: #3b66a5;
  box-shadow: inset 0 0 0 3px #fff; /* Dot effect */
}

/* Right: Passengers */
.passengers-wrapper {
  position: relative;
  flex: 0 0 400px; /* Adjusted width */
}
.passengers-display {
  width: 100%;
  height: 40px; /* Reduced Height */
  border: 2px solid #3b66a5;
  border-radius: 12px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-size: 0.95rem; /* Slightly smaller text */
  font-weight: 500;
  color: #333;
  cursor: pointer;
  background: #fff;
}
.passengers-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  display: none;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}
.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.pax-row:last-child {
  margin-bottom: 0;
}
.pax-count-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}
.pax-count-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: bold;
  font-size: 1rem;
}

/* Date Picker Enhancements */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  color: #333;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  background-color: #f0f7ff;
}

::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-year-field {
  color: #333;
}

::-webkit-datetime-edit-text {
  color: #999;
  padding: 0 2px;
}

/* 4. ROW 2: INPUTS */
.inputs-row-unified {
  display: flex;
  gap: 15px; /* Compact gap */
  justify-content: space-between;
  margin-bottom: 15px; /* Compact margin */
}

.input-col {
  flex: 1;
  min-width: 0;
}

.inputs-row-unified label {
  font-weight: 700;
  color: #3b66a5;
  font-size: 0.85rem;
  margin-bottom: 5px;
  display: block;
}

.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon input {
  width: 100%;
  height: 44px; /* Reduced from 48px */
  border: 2px solid #3b66a5 !important;
  border-radius: 12px !important;
  padding-left: 45px !important;
  font-size: 0.95rem !important;
  color: #333;
  font-weight: 500;
  background: #fff !important;
  box-sizing: border-box !important;
}
.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #3b66a5;
  pointer-events: none;
}

/* ROW 3: BUTTON */
#search-btn {
  width: 400px;
  max-width: 100%;
  height: 60px;
  background: linear-gradient(
    135deg,
    #ff7e5f 0%,
    #feb47b 100%
  ) !important; /* ORANGE Gradient */
  color: #fff !important;
  border: none !important;
  border-radius: 20px; /* More rounded */
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(255, 126, 95, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
#search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 126, 95, 0.5);
  background: linear-gradient(135deg, #feb47b 0%, #ff7e5f 100%) !important;
}
#search-btn:disabled {
  background: #e0e0e0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
}

/* 4. Selection Summary Bar */
.selection-summary-bar {
  background: #f1f5f9;
  padding: 15px 25px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 15px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

.summary-item i {
  color: #3b66a5;
  width: 20px;
  text-align: center;
}

.edit-search-btn {
  background: white;
  border: 1.5px solid #3b66a5;
  color: #3b66a5;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-search-btn:hover {
  background: #3b66a5;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .form-section-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .passengers-wrapper {
    flex: auto;
    width: 100%;
  }
  .input-col {
    flex: 1 1 45%;
  }
  .inputs-row-unified {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .inputs-row-unified {
    flex-direction: column;
  }
  .input-col {
    flex: 1 1 100%;
  }
  .radio-group-horizontal {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
}

/* Ticket Validity Segmented Control */
.validity-options {
  display: flex !important;
  width: 100%;
  height: 48px;
  border: 2px solid #3b66a5;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  gap: 0 !important;
  margin-top: 5px;
}

.validity-pill {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 !important;
  border-right: 1px solid #3b66a5;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
  transition: all 0.2s;
  border-radius: 0 !important;
  position: relative;
}

.validity-pill:last-child {
  border-right: none;
}

.validity-pill.active {
  background: #0066cc; /* Match the bright blue in screenshot */
  background: #007bff; /* Or standard blue */
  background: #1976d2; /* Or the theme blue #3b66a5 - screenshot looks brighter? Let's use theme color but maybe check exact hex. Theme is 3b66a5 */
  background: #3b66a5;
  color: #fff;
}

/* Bright blue override if user wants exact screenshot match */
.validity-pill.active {
  background: #007bff !important; /* This looks like the screenshot blue */
  color: white !important;
}

.validity-pill input {
  display: none;
}
