/* ========================================
   TC BOOKING WIDGET STYLES
   ======================================== */

/* ========================================
   0. ELEMENTOR EDITOR COMPATIBILITY
   ======================================== */

/* Ensure proper display in Elementor editor iframe */
.elementor-editor-active .tc-booking-widget-container {
  min-height: 400px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========================================
   1. LAYOUT & CONTAINER
   ======================================== */

/* Main Widget Container */
.tc-booking-widget-container {
  position: relative !important;
  z-index: 100 !important;
}

/* Main Form Container */
.tc-form-box {
  backdrop-filter: blur(16px) !important;
  background-color: rgba(150, 150, 150, 0.3) !important;
  border-radius: 16px !important;
  padding: 25px 32px 40px 32px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18) !important;
  border: 1.5px solid rgba(255,255,255,0.13) !important;
  max-width: 1100px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

/* ========================================
   2. TABS
   ======================================== */

.tc-tabs {
  backdrop-filter: blur(16px) !important;
  background-color: rgba(150, 150, 150, 0.3) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-end !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.tc-tab {
  flex: 1 !important;
  text-align: center !important;
  padding: 16px 10px 14px 10px !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 15px !important;
  transition: background 0.3s, color 0.3s !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-right: 1px solid rgba(255,255,255,0.13) !important;
  white-space: nowrap !important;
}

.tc-tab.active {
  background: #ffee00 !important;
  color: #23272f !important;
  font-weight: bold !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04) !important;
}

.tab-icon svg {
  vertical-align: middle !important;
  fill: #ffee00 !important;
  transition: fill 0.2s !important;
}

.tc-tab.active .tab-icon svg {
  fill: #000 !important;
}

/* ========================================
   3. FORM STRUCTURE
   ======================================== */

/* Top Section (Trip Type & Class) */
.tc-booking-widget-container .tc-form-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  padding-bottom: 15px !important;
  gap: 24px !important;
}

/* Form Rows */
.tc-booking-widget-container .tc-modern-row {
  display: flex !important;
  gap: 24px !important;
  justify-content: center !important;
  align-items: flex-end !important;
  overflow: visible !important;
}

.tc-booking-widget-container .tc-modern-row:not(:last-child) {
  margin-bottom: 18px !important;
}

/* ========================================
   4. RADIO BUTTONS
   ======================================== */

.tc-booking-widget-container .tc-radio-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
}

.tc-booking-widget-container .tc-radio-label {
  display: block !important;
  margin-bottom: 4px !important;
  margin-right: 0 !important;
  color: #ffee00 !important;
  font-weight: bold !important;
  font-size: 14px !important;
}

.tc-booking-widget-container .tc-radio-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: nowrap !important;
}

.tc-booking-widget-container .tc-radio-list label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.tc-booking-widget-container .tc-radio-group input[type="radio"] {
  accent-color: #ffee00 !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  position: relative !important;
}

/* ========================================
   5. FORM FIELDS
   ======================================== */

.tc-booking-widget-container .tc-modern-field {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 240px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: transparent !important;
  border: 1.5px solid #fff !important;
  border-radius: 12px !important;
  padding: 4px 10px 0 10px !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
}

.tc-booking-widget-container .tc-modern-field:focus-within {
  border-color: #ffee00 !important;
}

.tc-booking-widget-container .tc-modern-label {
  font-weight: 500 !important;
  color: #ffee00 !important;
  font-size: 14px !important;
  margin-bottom: 4px !important;
  margin-left: 2px !important;
  letter-spacing: 0.01em !important;
}

.tc-booking-widget-container .tc-modern-label .bi {
  vertical-align: middle !important;
}

.tc-booking-widget-container .field-inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 32px !important;
  position: relative !important;
  overflow: visible !important;
}

.tc-booking-widget-container .tc-modern-icon-input {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* ========================================
   6. INPUT FIELDS
   ======================================== */

.tc-booking-widget-container .tc-modern-input,
.tc-booking-widget-container .date-input,
.tc-booking-widget-container .yhsdate-picker {
  border: 0 !important;
  padding: 0 !important;
  color: white !important;
  background: none !important;
  font-size: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.tc-booking-widget-container .tc-modern-input::placeholder {
  color: #fff !important;
  opacity: 0.7 !important;
  font-weight: 400 !important;
}

.tc-booking-widget-container .tc-modern-value {
  color: #fff !important;
  font-size: 14px !important;
}

/* ========================================
   7. TRAVEL AGENT DROPDOWN (FLIGHT TAB)
   ======================================== */

.tc-booking-widget-container .tc-agent-field-wrapper {
  flex: 0 0 calc((100% - (24px * 3)) / 4) !important;
  width: calc((100% - (24px * 3)) / 4) !important;
  min-width: 0 !important;
  max-width: 240px !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.tc-booking-widget-container .tc-agent-field {
  width: 100% !important;
  overflow: visible !important;
  padding: 2px 10px 0 10px !important;
  min-height: auto !important;
  box-sizing: border-box !important;
}

.tc-booking-widget-container .tc-agent-field .field-inner {
  display: flex !important;
  align-items: center !important;
  height: 24px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.tc-booking-widget-container .tc-agent-field .tc-modern-label {
  font-size: 12px !important;
  margin-bottom: 2px !important;
}

.tc-booking-widget-container .tc-agent-field .tc-modern-icon-input {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
}

.tc-booking-widget-container .tc-agent-field .choices,
.tc-booking-widget-container .tc-agent-field .choices__inner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.tc-booking-widget-container .tc-agent-field .choices__list--single {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.tc-booking-widget-container .tc-agent-field .choices__list--single .choices__item {
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding-right: 20px !important;
  font-size: 13px !important;
  line-height: 24px !important;
  display: flex !important;
  align-items: center !important;
}

.tc-booking-widget-container .tc-agent-field .choices[data-type*='select-one']::after {
  right: 10px !important;
}

.tc-booking-widget-container .tc-agent-field .choices__list--dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  overflow: visible !important;
}

/* ========================================
   8. CHOICES.JS DROPDOWNS
   ======================================== */

.tc-booking-widget-container .choices,
.tc-booking-widget-container .choices__inner {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 14px !important;
  min-height: 38px !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 32px !important;
}

.tc-booking-widget-container .choices__placeholder {
  background: transparent !important;
  color: #fff !important;
  opacity: 0.7 !important;
  font-size: 14px !important;
}

.tc-booking-widget-container .choices[data-type*='select-one']::after {
  content: '' !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 7px solid #fff !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

.tc-booking-widget-container .choices[data-type*=select-one] {
  text-overflow: ellipsis !important;
  display: contents !important;
}

.tc-booking-widget-container .choices__list--dropdown,
.tc-booking-widget-container .choices__list[role="listbox"] {
  background: #23272f !important;
  color: #fff !important;
  border-radius: 0 0 12px 12px !important;
  border: none !important;
  border-top: none !important;
  margin-top: -2px !important;
  min-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  z-index: 200 !important;
}

.tc-booking-widget-container .choices__list[role="listbox"] {
  background: transparent !important;
}

.tc-booking-widget-container .choices__item--choice {
  color: #fff !important;
  background: transparent !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 14px !important;
}

.tc-booking-widget-container .choices__list--single .choices__item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
}

/* ========================================
   8. CUSTOM AUTOCOMPLETE
   ======================================== */

.tc-autocomplete-wrapper {
  position: relative !important;
}

.tc-autocomplete-wrapper .field-inner {
  position: relative !important;
}

.tc-autocomplete-input {
  width: 100% !important;
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  font-size: 14px !important;
  padding: 0 !important;
}

.tc-autocomplete-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1 !important;
}

.tc-autocomplete-dropdown {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #23272f !important;
  border-radius: 12px !important;
  border: 2px solid #FFD600 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  padding: 4px 0 !important;
  margin-top: 8px !important;
  z-index: 200 !important;
}

.tc-autocomplete-item {
  padding: 10px 16px !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background-color 0.15s ease !important;
}

.tc-autocomplete-item:hover,
.tc-autocomplete-item.active {
  background: rgba(255, 214, 0, 0.15) !important;
  color: #FFD600 !important;
}

.tc-autocomplete-no-results {
  padding: 12px 16px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px !important;
  text-align: center !important;
}

/* Scrollbar styling for autocomplete dropdown */
.tc-autocomplete-dropdown::-webkit-scrollbar {
  width: 8px !important;
}

.tc-autocomplete-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 4px !important;
}

.tc-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
}

.tc-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Swap Button - Desktop (centered between fields) */
.tc-swap-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 214, 0, 0.1) !important;
  border: 2px solid #ffdb2591 !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-left: -32px !important;
  margin-right: -32px !important;
  padding: 0 !important;
  align-self: center !important;
  position: relative !important;
}

.tc-swap-button:hover {
  background: rgba(255, 214, 0, 0.15) !important;
  border-color: #FFD600 !important;
  transform: rotate(180deg) !important;
}

.tc-swap-button:active {
  transform: rotate(180deg) scale(0.95) !important;
}

.tc-swap-button svg {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.2s ease !important;
}

/* ========================================
   9. NATIVE SELECT STYLING
   ======================================== */

.tc-booking-widget-container select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  padding-right: 32px !important;
  font-size: 14px !important;
}

.tc-booking-widget-container select option {
  background: #fff !important;
  color: #333 !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

.tc-booking-widget-container select option:hover {
  background: #f5f5f5 !important;
  color: #333 !important;
}

/* Deprecated nice-select */
.tc-booking-widget-container .nice-select {
  display: none !important;
}

/* ========================================
   10. PERSON PICKER (FLIGHT)
   ======================================== */

.tc-booking-widget-container .tc-person-dropdown {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13) !important;
  padding: 10px 0 !important;
  min-width: 240px !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 8px !important;
  z-index: 200 !important;
}

.tc-booking-widget-container .tc-person-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 22px !important;
  font-size: 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.tc-booking-widget-container .tc-person-row:last-child {
  border-bottom: none !important;
}

.tc-booking-widget-container .tc-person-label {
  flex: 1 1 60px !important;
  display: flex !important;
  flex-direction: column !important;
}

.tc-booking-widget-container .tc-person-label span {
  color: #222 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.tc-booking-widget-container .tc-person-label small {
  color: #666 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
  line-height: 1.1 !important;
}

.tc-booking-widget-container .tc-person-count {
  width: 32px !important;
  text-align: center !important;
  color: #222 !important;
  font-size: 15px !important;
}

.tc-booking-widget-container .tc-person-plus,
.tc-booking-widget-container .tc-person-minus {
  background: #fff !important;
  border: 2px solid #ffee00 !important;
  color: #ffee00 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s, color 0.15s, border 0.15s !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 8px !important;
  user-select: none !important;
}

.tc-booking-widget-container .tc-person-plus:hover,
.tc-booking-widget-container .tc-person-minus:hover {
  background: #b6aa02 !important;
  color: #fff !important;
  border-color: #b6aa02 !important;
}

/* ========================================
   11. ROOMS & GUESTS PICKER (HOTELS)
   ======================================== */

.tc-booking-widget-container .tc-rooms-guests-wrapper {
  position: relative !important;
  width: 100% !important;
}

.tc-booking-widget-container .tc-rooms-guests-display {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  cursor: pointer !important;
  color: #fff !important;
  font-size: 14px !important;
  padding-right: 8px !important;
  height: 32px !important;
}

.tc-booking-widget-container .tc-rooms-guests-display > span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.tc-booking-widget-container .tc-rooms-guests-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 280px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  padding: 16px !important;
  margin-top: 8px !important;
  display: none !important;
  z-index: 200 !important;
}

.tc-booking-widget-container .tc-rooms-guests-dropdown.active {
  display: block !important;
}

.tc-booking-widget-container .tc-room-item {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  position: relative !important;
  border-bottom: 1px solid #eee !important;
}

.tc-booking-widget-container .tc-room-item:last-of-type {
  border-bottom: none !important;
}

.tc-booking-widget-container .tc-room-title,
.tc-booking-widget-container .tc-room-title-wrapper {
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 12px !important;
  font-size: 15px !important;
}

.tc-booking-widget-container .tc-room-title-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.tc-booking-widget-container .tc-room-remove-btn {
  background: none !important;
  border: none !important;
  color: #999 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tc-booking-widget-container .tc-room-remove-btn:hover {
  color: #666 !important;
}

.tc-booking-widget-container .tc-guest-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}

.tc-booking-widget-container .tc-guest-label {
  color: #555 !important;
  font-size: 14px !important;
}

.tc-booking-widget-container .tc-guest-age-label {
  color: #999 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
}

.tc-booking-widget-container .tc-guest-controls {
  display: flex !important;
  align-items: center !important;
}

.tc-booking-widget-container .tc-guest-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  padding: 0 !important;
  border: none !important;
}

.tc-booking-widget-container .tc-guest-btn:hover {
  opacity: 0.8 !important;
}

.tc-booking-widget-container .tc-guest-btn.tc-guest-decrease {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
}

.tc-booking-widget-container .tc-guest-btn.tc-guest-increase {
  background-color: #ffee00 !important;
  border: none !important;
}

.tc-booking-widget-container .tc-guest-count {
  margin: 0 10px !important;
  width: 20px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

.tc-booking-widget-container .tc-add-room-row {
  display: flex !important;
  justify-content: center !important;
  margin-top: 8px !important;
  flex-direction: column !important;
  align-items: center !important;
}

.tc-booking-widget-container .tc-add-room-btn {
  background: none !important;
  border: none !important;
  color: #0078d4 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  transition: all 0.2s !important;
  width: 100% !important;
  text-align: center !important;
}

.tc-booking-widget-container .tc-add-room-btn:hover {
  background: rgba(0, 120, 212, 0.1) !important;
}

.tc-booking-widget-container .tc-add-room-btn span {
  color: #0078d4 !important;
}

.tc-booking-widget-container .tc-max-rooms-message {
  text-align: center !important;
  color: #666 !important;
  font-size: 12px !important;
  padding: 5px !important;
  width: 100% !important;
}

/* ========================================
   12. MULTI-CITY BUTTONS
   ======================================== */

.tc-booking-widget-container .tc-mc-add-btn,
.tc-booking-widget-container .tc-mc-remove-btn {
  justify-content: left !important;
  border: none !important;
  color: #ffee00 !important;
  height: 50px !important;
  background: transparent !important;
  font-size: 14px !important;
  width: 100% !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-align: left !important;
}

.tc-booking-widget-container .tc-mc-add-btn:hover,
.tc-booking-widget-container .tc-mc-remove-btn:hover {
  background: transparent !important;
  opacity: 0.8 !important;
}

/* ========================================
   13. SUBMIT BUTTON
   ======================================== */

.tc-booking-widget-container .tc-submit {
  position: absolute !important;
  left: 50% !important;
  bottom: -26px !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.tc-booking-widget-container .tc-submit button {
  background: #ffee00 !important;
  color: #23272f !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 auto !important;
  display: inline-block !important;
  height: 45px !important;
  width: 150px !important;
  padding: 0 20px !important;
  box-shadow: none !important;
  outline: none !important;
  vertical-align: middle !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.tc-booking-widget-container .tc-submit button:hover {
  background: #000 !important;
  color: #fff !important;
}

.tc-booking-widget-container .tc-submit button:focus {
  background: #ffee00 !important;
  color: #23272f !important;
}

/* ========================================
   14. DATERANGEPICKER
   ======================================== */

.daterangepicker,
.daterangepicker * {
  box-sizing: border-box !important;
}

.daterangepicker {
  overflow: visible !important;
  max-width: 100vw !important;
  min-width: unset !important;
  font-size: 14px !important;
  z-index: 999999 !important;
}

.daterangepicker .drp-calendar {
  padding: 0 4px 0px 4px !important;
}

.daterangepicker .calendar-table {
  width: 100% !important;
  min-width: 196px !important;
  padding: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 1px !important;
  font-size: 14px !important;
  table-layout: fixed !important;
}

.daterangepicker .calendar-table td,
.daterangepicker .calendar-table th {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 28px !important;
  overflow: hidden !important;
}

.table-condensed {
  padding: 0 !important;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
  display: inline-block !important;
  width: auto !important;
  min-width: 60px !important;
  margin-right: 6px !important;
  margin-bottom: 0 !important;
  vertical-align: middle !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  font-size: 14px !important;
}

.daterangepicker td.active,
.daterangepicker td.active.end-date,
.daterangepicker td.active.start-date {
  background-color: #ffee00 !important;
  color: #23272f !important;
}

.daterangepicker td.in-range {
  background-color: #ffe066 !important;
  color: #23272f !important;
}

.daterangepicker.single td.active,
.daterangepicker.single td.active.end-date,
.daterangepicker.single td.active.start-date {
  background-color: #ffee00 !important;
  color: #23272f !important;
}

/* Hide days from previous and next months */
.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.daterangepicker .drp-buttons {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.daterangepicker .drp-selected {
  display: none !important;
}

/* ========================================
   15. RESPONSIVE DESIGN
   ======================================== */

/* Tablet & Medium Screens (max-width: 1100px) */
@media (max-width: 1100px) {
  .tc-form-box {
    padding: 24px 16px 40px 16px !important;
  }

  .tc-booking-widget-container .tc-modern-row {
    gap: 14px !important;
  }

  .tc-booking-widget-container .tc-modern-field {
    max-width: 100% !important;
    padding: 6px 12px 4px 12px !important;
  }

  .tc-booking-widget-container .tc-form-top {
    display: block !important;
    gap: 0 !important;
    padding-bottom: 12px !important;
  }

  .tc-booking-widget-container .tc-radio-group {
    min-width: 0 !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .tc-booking-widget-container .tc-agent-field-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
  }

  .tc-booking-widget-container .tc-agent-field {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .tc-swap-button {
    margin-left: -24px !important;
    margin-right: -24px !important;
  }
}

/* Tablets (max-width: 900px) - Keep 2-column layout */
@media (max-width: 900px) {
  .tc-booking-widget-container .tc-modern-row {
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-end !important;
  }

  .tc-booking-widget-container .tc-modern-field {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }

  /* Swap button - centered between fields on tablet */
  .tc-swap-button {
    margin-left: -32px !important;
    margin-right: -32px !important;
  }
}

/* Mobile (max-width: 700px) - Single Column Layout */
@media (max-width: 700px) {
  .tc-form-box {
    border-radius: 0px !important;
    border: 0 !important;
    padding: 20px 12px 40px 12px !important;
  }

  .tc-booking-widget-container .tc-form-top {
    flex-direction: column !important;
    gap: 0 !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .tc-booking-widget-container .tc-radio-group {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    display: block !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
  }

  .tc-booking-widget-container .tc-radio-group:last-of-type {
    margin-bottom: 12px !important;
  }

  .tc-booking-widget-container .tc-radio-label {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-weight: bold !important;
    color: #ffee00 !important;
  }

  .tc-booking-widget-container .tc-radio-list {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .tc-booking-widget-container .tc-radio-list label {
    font-size: 14px !important;
  }

  /* Single column layout for all fields */
  .tc-booking-widget-container .tc-modern-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .tc-booking-widget-container .tc-modern-field {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 6px 12px 4px 12px !important;
  }

  .tc-booking-widget-container .tc-agent-field {
    padding: 6px 12px 4px 12px !important;
  }

  .tc-booking-widget-container .field-inner {
    height: 38px !important;
  }

  .tc-booking-widget-container .tc-modern-label,
  .tc-booking-widget-container .tc-agent-field .tc-modern-label {
    font-size: 14px !important;
  }

  .tc-booking-widget-container .tc-modern-label {
  margin-bottom: 0 !important;
  }

  .tc-booking-widget-container .tc-agent-field .field-inner {
    height: 38px !important;
  }

  .tc-booking-widget-container .tc-agent-field .choices,
  .tc-booking-widget-container .tc-agent-field .choices__inner {
    min-height: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
  }

  .tc-booking-widget-container .tc-agent-field .choices__list--single .choices__item {
    font-size: 15px !important;
    line-height: 38px !important;
  }

  .tc-booking-widget-container .tc-modern-input,
  .tc-booking-widget-container .tc-modern-value {
    font-size: 15px !important;
  }

  .tc-booking-widget-container .tc-modern-row:not(:last-child) {
    margin-bottom: 12px !important;
  }

  /* Swap button on the right between Origin and Destination */
  .tc-booking-widget-container .tc-modern-row {
    position: relative !important;
  }

  .tc-swap-button {
    position: absolute !important;
    right: 12px !important;
    top: 58px !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
}

/* Small Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .tc-form-box {
    padding: 16px 10px 40px 10px !important;
  }

  .tc-booking-widget-container .tc-form-top {
    flex-direction: column !important;
    gap: 0 !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .tc-tabs {
    flex-wrap: wrap !important;
    gap: 0 !important;
    width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    box-sizing: border-box !important;
  }

  .tc-tab {
    text-align: center !important;
    padding: 10px 0 10px 0 !important;
    font-size: 13px !important;
    color: #fff !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid #ffffff31 !important;
  }

  .tc-tab.active {
    background: #ffee00 !important;
    color: #23272f !important;
    font-weight: bold !important;
  }

  .tc-tab:first-child {
    border-top-left-radius: 16px !important;
  }

  .tc-tab:nth-child(2) {
    border-top-right-radius: 0 !important;
  }

  .tc-tab:nth-child(3),
  .tc-tab:nth-child(4) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .tc-tab:nth-child(n+5) {
    display: none !important;
  }

  .tc-booking-widget-container .tc-modern-field,
  .tc-booking-widget-container .tc-agent-field {
    padding: 5px 10px 3px 10px !important;
  }

  .tc-booking-widget-container .tc-modern-label,
  .tc-booking-widget-container .tc-agent-field .tc-modern-label {
    font-size: 13px !important;
  }

  .tc-booking-widget-container .tc-modern-label {
    margin-bottom: 5px !important;
  }

  .tc-booking-widget-container .field-inner,
  .tc-booking-widget-container .tc-agent-field .field-inner {
    height: 36px !important;
  }

  .tc-booking-widget-container .tc-modern-icon-input {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
  }

  .tc-booking-widget-container .tc-agent-field .tc-modern-icon-input {
    width: 14px !important;
    height: 14px !important;
  }

  .tc-booking-widget-container .tc-agent-field .choices,
  .tc-booking-widget-container .tc-agent-field .choices__inner {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .tc-booking-widget-container .tc-agent-field .choices__list--single .choices__item {
    font-size: 14px !important;
    line-height: 36px !important;
  }

  .tc-booking-widget-container .tc-modern-input,
  .tc-booking-widget-container .tc-modern-value {
    font-size: 14px !important;
  }

  .tc-booking-widget-container .tc-modern-row {
    gap: 10px !important;
  }

  .tc-booking-widget-container .tc-modern-row:not(:last-child) {
    margin-bottom: 10px !important;
  }

  .tc-booking-widget-container .tc-submit button {
    font-size: 16px !important;
    height: 42px !important;
    width: 140px !important;
    padding: 0 16px !important;
  }

  /* Adjust autocomplete for small mobile */
  .tc-autocomplete-dropdown {
    max-height: 200px !important;
    font-size: 14px !important;
  }

  .tc-autocomplete-item {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .tc-autocomplete-input {
    font-size: 14px !important;
  }
}
