/**
 * Improved Booking Form Instant - CSS
 * Based on refined UX patterns with trust building and progressive disclosure
 * 
 * @package TravelerChildTheme
 * @subpackage BookingStyles
 * @since 2.0.0
 */

/* --- CSS Custom Properties --- */
:root {
  /* Design system compatibility - use tokens.css values when available */
  --primary-blue: var(--color-primary, #324fbe);
  --primary-blue-hover: var(--color-primary-hover, #2a42a1);
  --success-green: var(--color-success, #10b981);
  --success-green-dark: var(--color-success-dark, #059669);
  --border-color: var(--color-border, #e5e7eb);
  --text-muted: var(--color-muted, #6b7280);
  --text-dark: var(--color-heading, #111827);
  --bg-light: var(--color-background-light, #f8f9fa);
  --shadow-sm: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
  --shadow-lg: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));
  --border-radius: var(--radius-xl, 12px);
  --border-radius-sm: var(--radius-lg, 8px);
  --multiday-bg: var(--color-background-muted, #f3f4f6);
  --multiday-border: var(--color-border-muted, #d1d5db);

  /* Calendar-specific tokens aligned to design system */
  --brand-primary: var(--color-primary, #324fbe);
  --brand-primary-hover: var(--color-primary-hover, #2a42a1);
}

/* --- Main Container --- */
.booking-widget-instant {
  max-width: var(--container-sm, 440px);
  margin: var(--space-xl, 2rem) auto;
  font-family: var(--font-body, "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial);
}

/* --- Trust Building Banner --- */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 0.75rem);
  margin-bottom: var(--space-md, 1rem);
  padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
  background-color: var(--color-background, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  font-size: var(--fs-h4, 16px);
  line-height: var(--lh-tight, 1.15);
}

.trust-text {
  font-size: var(--fs-sm, 14px);
  font-weight: var(--weight-medium, 500);
  color: var(--text-dark);
  text-align: center;
}

/* Mobile summary removed - no longer needed */

/* --- Main Widget Card --- */
.widget-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.widget-section {
  padding: var(--space-md, 1rem);
  border-bottom: 1px solid var(--border-color);
}

.widget-section:last-child {
  border-bottom: none;
}

/* --- Progress Bar --- */
.progress-container {
  width: 100%;
  height: var(--space-xs, 4px);
  background-color: var(--color-border, #e5e7eb);
  border-radius: var(--radius-xs, 2px);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-hover));
  border-radius: var(--radius-xs, 2px);
  transition: transform 0.7s ease-out, background 0.3s ease;
  transform: translateX(-100%);
}

.progress-fill.has-progress {
  transform: translateX(0);
}

.progress-fill.complete {
  background: linear-gradient(to right, var(--success-green), var(--success-green-dark));
}

.progress-message {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.progress-message.complete {
  color: var(--success-green);
  font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-md, 1rem);
}

.section-title {
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-medium, 500);
  color: var(--text-dark);
}

.completion-check {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.completion-check.show {
  opacity: 1;
  transform: scale(1);
}

/* --- Date Picker --- */
.date-picker-container {
  position: relative;
}

.date-input {
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(50, 79, 190, 0.25);
}

.date-input.has-value {
  border-color: var(--primary-blue);
  background-color: rgba(50, 79, 190, 0.05);
  font-weight: 500;
}

/* --- React-Style Calendar Customization --- */
.react-style-calendar {
  border: none !important;
  border-radius: var(--radius-xl, 12px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  /* Floating calendar positioning */
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1060 !important;
}

.react-style-calendar .drp-calendar {
  padding: var(--space-lg, 20px) !important;
  background: var(--color-background, #ffffff) !important;
}

/* Hide all buttons and ranges */
.react-style-calendar .drp-buttons,
.react-style-calendar .ranges {
  display: none !important;
}

/* Calendar header styling */
.react-style-calendar .calendar-table {
  background: var(--color-background, #ffffff) !important;
  border: none !important;
  border-spacing: var(--space-xs, 4px) !important;
}

/* Header container with relative positioning for nav buttons */
.react-style-calendar .drp-calendar .calendar-table {
  position: relative !important;
}

.react-style-calendar .month {
  color: var(--color-heading, #111827) !important;
  font-size: var(--fs-body, 16px) !important;
  font-weight: var(--weight-medium, 500) !important;
  padding: 12px 0 16px 0 !important;
  text-align: center !important;
  position: relative !important;
}

/* Navigation buttons - 32x32 pill style */
.react-style-calendar .prev,
.react-style-calendar .next {
  position: absolute !important;
  top: 8px !important;
  color: var(--color-muted, #6b7280) !important;
  border: 1px solid var(--color-border, #e5e7eb) !important;
  background: var(--color-background, #ffffff) !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-md, 6px) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.react-style-calendar .prev {
  left: var(--space-sm, 12px) !important;
}

.react-style-calendar .next {
  right: var(--space-sm, 12px) !important;
}

.react-style-calendar .prev:hover,
.react-style-calendar .next:hover {
  background-color: var(--brand-primary, #2961FF) !important;
  border-color: var(--brand-primary, #2961FF) !important;
  color: white !important;
}

/* Week days header */
.react-style-calendar .calendar-table thead tr th {
  color: var(--color-muted, #6b7280) !important;
  font-size: var(--fs-sm, 14px) !important;
  font-weight: var(--weight-medium, 500) !important;
  padding: 8px !important;
  border: none !important;
  text-align: center !important;
  background: var(--color-background, #ffffff) !important;
  width: 40px !important;
  height: 32px !important;
}

/* Date cells - 40px with proper spacing */
.react-style-calendar .calendar-table tbody td {
  border: none !important;
  padding: 2px !important;
  background: var(--color-background, #ffffff) !important;
  width: 40px !important;
  height: 40px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.react-style-calendar .calendar-table tbody td.available {
  color: var(--color-heading, #111827) !important;
  background: var(--color-background, #ffffff) !important;
}

/* Date buttons - 36px centered in 40px cells */
.react-style-calendar .calendar-table tbody td.available span {
  width: 36px !important;
  height: 36px !important;
  line-height: var(--lh-tight, 1.15) !important;
  border-radius: var(--radius-sm, 4px) !important;
  border: none !important;
  font-size: var(--fs-sm, 14px) !important;
  font-weight: var(--weight-regular, 400) !important;
  color: var(--color-heading, #111827) !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

/* Hover state for dates - light background */
.react-style-calendar .calendar-table tbody td.available:not(.disabled):hover span {
  background-color: var(--color-background-light, #f8f9fa) !important;
  border-radius: var(--radius-sm, 4px) !important;
  color: var(--color-heading, #111827) !important;
}

/* Selected date - primary blue pill */
.react-style-calendar .calendar-table tbody td.active span,
.react-style-calendar .calendar-table tbody td.start-date span,
.react-style-calendar .calendar-table tbody td.end-date span,
.react-style-calendar .calendar-table tbody td.in-range span {
  background-color: var(--brand-primary, #2961FF) !important;
  border-radius: var(--radius-md, 6px) !important;
  color: white !important;
  font-weight: 500 !important;
}

/* Today's date - primary outline and bold */
.react-style-calendar .calendar-table tbody td.today span {
  border: 1px solid var(--brand-primary, #2961FF) !important;
  color: var(--brand-primary, #2961FF) !important;
  font-weight: var(--weight-semibold, 600) !important;
  background: transparent !important;
}

/* Today's date when selected */
.react-style-calendar .calendar-table tbody td.today.active span,
.react-style-calendar .calendar-table tbody td.today.start-date span,
.react-style-calendar .calendar-table tbody td.today.end-date span {
  background-color: var(--brand-primary, #2961FF) !important;
  border: 1px solid var(--brand-primary, #2961FF) !important;
  color: var(--color-background, #ffffff) !important;
  font-weight: var(--weight-semibold, 600) !important;
}

/* Disabled dates - soft grey, no interaction */
.react-style-calendar .calendar-table tbody td.off,
.react-style-calendar .calendar-table tbody td.disabled {
  pointer-events: none !important;
}

.react-style-calendar .calendar-table tbody td.off span,
.react-style-calendar .calendar-table tbody td.disabled span {
  color: var(--color-muted, #6b7280) !important;
  cursor: default !important;
  background: transparent !important;
  pointer-events: none !important;
}

.react-style-calendar .calendar-table tbody td.off:hover span,
.react-style-calendar .calendar-table tbody td.disabled:hover span {
  background: transparent !important;
  color: var(--color-muted, #6b7280) !important;
}

/* Remove default daterangepicker styles that interfere */
.react-style-calendar .drp-calendar.left {
  border-right: none !important;
}

.react-style-calendar .drp-calendar.right {
  border-left: none !important;
}

/* Ensure single calendar layout */
.react-style-calendar .drp-calendar {
  width: auto;
  max-width: none;
  min-width: 320px;
}

/* Focus trap and accessibility improvements */
.react-style-calendar .calendar-table tbody td.available span:focus {
  outline: 2px solid var(--brand-primary, #2961FF) !important;
  outline-offset: var(--space-xs, 2px) !important;
  border-radius: var(--radius-sm, 4px) !important;
}

/* Additional spacing and layout refinements */
.react-style-calendar .drp-calendar table.calendar-table {
  margin: 0 auto !important;
  table-layout: fixed !important;
}

/* Smooth animations for state changes */
.react-style-calendar .calendar-table tbody td span {
  transition: all 0.15s ease-in-out;
}

/* Ensure proper calendar positioning */
.react-style-calendar {
  position: absolute !important;
}

/* Month/Year dropdowns styling - merged into single header */
.react-style-calendar .monthselect,
.react-style-calendar .yearselect {
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-medium, 500);
  color: var(--color-heading, #111827);
  border: none;
  background: transparent;
  margin: 0 var(--space-xs, 0.125rem);
  cursor: pointer;
  outline: none;
}

/* Focus state for dropdowns */
.react-style-calendar .monthselect:focus,
.react-style-calendar .yearselect:focus {
  outline: 2px solid var(--brand-primary, #2961FF);
  outline-offset: var(--space-xs, 2px);
  border-radius: var(--radius-sm, 4px);
}

/* --- Collapsible Sections --- */
.collapsible-section {
  border-bottom: 1px solid var(--border-color);
}

.section-toggle {
  width: 100%;
  padding: var(--space-md, 1rem);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.section-toggle:hover {
  background-color: var(--color-background-light, #f8f9fa);
}

.section-details {
  text-align: left;
  flex-grow: 1;
}

.section-summary {
  font-size: var(--fs-sm, 14px);
  color: var(--text-muted);
  margin-top: var(--space-xs, 0.25rem);
  transition: color 0.2s ease;
}

.section-summary.complete {
  color: var(--text-dark);
}

.toggle-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.section-toggle[aria-expanded="true"] .toggle-chevron {
  transform: rotate(180deg);
}

/* --- Section Content --- */
.section-content {
  padding: 0 var(--space-md, 1rem) var(--space-md, 1rem);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Counter Rows --- */
.counter-list {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md, 1rem);
  border-bottom: 1px solid var(--color-background-muted, #f3f4f6);
}

.counter-row:last-child {
  border-bottom: none;
}

.counter-info {
  flex: 1;
}

.counter-label {
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-medium, 500);
  color: var(--text-dark);
  margin-bottom: var(--space-xs, 0.125rem);
}

.counter-sublabel {
  font-size: var(--fs-sm, 14px);
  color: var(--text-muted);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.75rem);
}

.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border-muted, #d1d5db);
  border-radius: var(--radius-round, 50%);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--primary-blue);
  background-color: rgba(50, 79, 190, 0.1);
  transform: scale(1.05);
}

.counter-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter-display {
  min-width: 32px;
  text-align: center;
  font-weight: var(--weight-semibold, 600);
  font-size: var(--fs-body, 16px);
  color: var(--text-dark);
}

/* Legacy pickup selectors moved to pickup.css */

.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(50, 79, 190, 0.25);
}

/* --- Booking Actions --- */
.booking-actions {
  padding: var(--space-md, 1rem);
  background-color: #ffffff;
}

/* Desktop: vertical layout with stacked buttons */
.booking-widget-instant .booking-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.booking-widget-instant .booking-actions .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.total-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.total-label {
  font-size: var(--fs-h4, 16px);
  font-weight: var(--weight-medium, 500);
  color: var(--text-dark);
}

.total-amount {
  text-align: right;
}

/* Price breakdown removed - no longer needed */

.total-price {
  font-size: var(--fs-h2, 22px);
  font-weight: var(--weight-semibold, 600);
  color: var(--text-dark);
}

/* Action buttons styling is now handled by .booking-widget-instant .booking-actions .action-buttons above */

/* --- CTA Buttons --- */
.btn-primary-cta {
  width: 100%;
  height: 48px;
  background-color: var(--primary-blue, var(--brand-primary));
  color: var(--color-background, #ffffff);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-semibold, 600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-cta:hover {
  background-color: var(--primary-blue-hover, var(--brand-primary-hover));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

.btn-primary-cta:focus-visible {
  outline: 2px solid var(--primary-blue, var(--brand-primary));
  outline-offset: var(--space-xs, 2px);
}

.btn-secondary-cta {
  width: 100%;
  height: 48px;
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--color-border-muted, #d1d5db);
  border-radius: var(--border-radius-sm);
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-medium, 500);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-cta:hover {
  background-color: var(--color-background-light, #f8f9fa);
  border-color: var(--color-border-muted, #9ca3af);
}

.btn-secondary-cta:focus-visible {
  outline: 2px solid var(--primary-blue, var(--brand-primary));
  outline-offset: var(--space-xs, 2px);
}

/* --- CTA Pulse Animation --- */
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-primary-cta.pulse {
  animation: ctaPulse 1.2s ease-out 1;
}

/* --- Inquiry Form --- */
.inquiry-title {
  font-size: var(--fs-h3, 19px);
  font-weight: var(--weight-semibold, 600);
  color: var(--text-dark);
  margin-bottom: var(--space-xs, 0.5rem);
}

.inquiry-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
}

.inquiry-form .form-floating {
  margin-bottom: var(--space-md, 1rem);
}

.inquiry-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.75rem);
  margin-top: var(--space-lg, 1.5rem);
}

/* --- View Transitions --- */
.view-pane {
  transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
}

.view-pane.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* --- Sticky Mobile CTA --- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: calc(1rem + env(safe-area-inset-bottom)) 1rem 1rem;
  z-index: 1040;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-mobile-cta.show {
  transform: translateY(0);
}

.sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-sm, 440px);
  margin: 0 auto;
}

.sticky-pricing {
  text-align: left;
}

.sticky-label {
  font-size: var(--fs-sm, 14px);
  color: var(--text-muted);
}

.sticky-amount {
  font-size: var(--fs-h4, 16px);
  font-weight: var(--weight-semibold, 600);
  color: var(--text-dark);
}

.sticky-book-btn {
  padding: var(--space-sm, 0.75rem) var(--space-xl, 2rem);
  background-color: var(--primary-blue, var(--brand-primary));
  color: var(--color-background, #ffffff);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--fs-body, 16px);
  font-weight: var(--weight-semibold, 600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sticky-book-btn:hover {
  background-color: var(--primary-blue-hover, var(--brand-primary-hover));
  transform: scale(1.02);
}

.sticky-book-btn:focus-visible {
  outline: 2px solid var(--primary-blue, var(--brand-primary));
  outline-offset: var(--space-xs, 2px);
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none !important;
  }
}

/* --- Loading States --- */
/* Simplified loading - no animations needed, just text change */
.btn-primary-cta:disabled,
.sticky-book-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- Form Enhancements --- */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(50, 79, 190, 0.25);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-blue);
}

/* Prevent mobile zoom on input focus by ensuring 16px+ font size */
.form-control,
.form-select,
input,
select,
textarea {
  font-size: 16px !important;
}

/* Mobile-specific override to prevent zoom - scoped to booking widget and inquiry view */
@media screen and (max-width: 767px) {
  /* Hide trust banner on mobile */
  .trust-banner {
    display: none !important;
  }
  
  .booking-widget-instant .form-control,
  .booking-widget-instant .form-select,
  .booking-widget-instant input[type="text"],
  .booking-widget-instant input[type="email"],
  .booking-widget-instant input[type="tel"],
  .booking-widget-instant input[type="number"],
  .booking-widget-instant input[type="password"],
  .booking-widget-instant input[type="search"],
  .booking-widget-instant select,
  .booking-widget-instant textarea,
  #inquiry-view .form-control,
  #inquiry-view .form-select,
  #inquiry-view input[type="text"],
  #inquiry-view input[type="email"],
  #inquiry-view input[type="tel"],
  #inquiry-view input[type="number"],
  #inquiry-view input[type="password"],
  #inquiry-view input[type="search"],
  #inquiry-view select,
  #inquiry-view textarea {
    font-size: 16px !important;
    /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
    /* Ensure consistent appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  /* Specifically target pickup dropdowns */
  .booking-widget-instant #pickup-location,
  .booking-widget-instant #pickup-time,
  #inquiry-view #pickup-location,
  #inquiry-view #pickup-time {
    font-size: 16px !important;
  }
  
  /* Tom Select mobile zoom prevention */
  .booking-widget-instant .ts-control,
  .booking-widget-instant .ts-dropdown,
  #inquiry-view .ts-control,
  #inquiry-view .ts-dropdown {
    font-size: 16px !important;
    line-height: var(--lh-head, 1.25);
  }
}

/* --- Responsive Design --- */
@media (max-width: 576px) {
  .booking-widget-instant {
    margin: var(--space-md, 1rem) auto;
    max-width: none;
  }
  
  .widget-section {
    padding: var(--space-md, 1rem);
  }
  
  .section-toggle {
    padding: var(--space-md, 1rem);
  }
  
  .section-content {
    padding: 0 var(--space-md, 1rem) var(--space-md, 1rem);
  }
  
  .counter-row {
    padding: var(--space-sm, 0.75rem);
  }
  
  .counter-btn {
    width: 36px;
    height: 36px;
  }

  .counter-display {
    min-width: 36px;
    font-size: var(--fs-sm, 14px);
  }
  
  /* Mobile: stack naturally */
  .booking-widget-instant .booking-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .booking-widget-instant .booking-actions .action-buttons {
    width: 100%;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Specific override for progress animation */
  .progress-fill {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .widget-card {
    border: 2px solid var(--color-heading, #000000) !important;
  }

  .section-toggle:focus {
    outline: 3px solid var(--color-heading, #000000) !important;
  }

  .btn-primary-cta:focus,
  .btn-secondary-cta:focus,
  .sticky-book-btn:focus {
    outline: 3px solid var(--color-heading, #000000) !important;
  }
}

/* --- Multiday Tour Styles --- */
.multiday-activities-container {
  margin-top: 1rem;
}

.multiday-activity-section {
  background: white;
  border: 1px solid var(--multiday-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.multiday-activity-section:hover {
  box-shadow: var(--shadow-lg);
}

.multiday-toggle {
  background: var(--multiday-bg);
  border: none;
  font-weight: var(--weight-medium, 500);
  transition: background-color 0.2s ease;
}

.multiday-toggle:hover {
  background: var(--color-border, #e5e7eb);
}

/* LEGACY: Multiday toggle heading - non-typography properties only */
@layer legacy {
  .multiday-toggle h5 {
      color: var(--text-dark);
      /* font-size: 1.125rem; - REMOVED: Now handled by unified typography */
      /* font-weight: 600; - REMOVED: Now handled by unified typography */
  }
}

.custom-date-selected {
  color: var(--text-muted);
  font-size: var(--fs-sm, 14px);
  margin-top: var(--space-xs, 0.25rem);
}

.multiday-content {
  border-top: 1px solid var(--multiday-border);
}

.activity-date-picker {
  width: 100%;
  padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--color-background, #ffffff);
  color: var(--text-dark);
  font-size: var(--fs-body, 16px);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: var(--space-xs, 0.5rem);
}

.activity-date-picker:hover {
  border-color: var(--primary-blue);
  background: var(--bg-light);
}

.activity-guests {
  margin-top: var(--space-md, 1rem);
}

.activity-counter {
  cursor: pointer;
}

/* Price breakdown CSS removed - no longer needed */

/* Activity-specific form fields */
.activity-pickup-location,
.activity-pickup-time {
  width: 100%;
}

/* Multiday progress bar adjustment */
.booking-widget-instant.multiday .progress-message {
  font-size: var(--fs-sm, 14px);
}

/* Responsive adjustments for multiday */
@media (max-width: 767px) {
  /* LEGACY: Multiday toggle heading responsive - typography removed */
  .multiday-toggle h5 {
      /* font-size: 1rem; - REMOVED: Now handled by unified typography */
  }
  
  .custom-date-selected {
    font-size: var(--fs-xs, 12px);
  }
}

/* Activity calendar styling */
.activity-calendar {
  z-index: 1060;
}

.activity-calendar.flatpickr-calendar {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

/* Fix for activity calendars positioning */
.multiday-activity-section .date-selection-container {
  position: relative;
}

/* Ensure flatpickr hidden inputs don't interfere */
.activity-flatpickr-input {
  position: absolute;
  width: 0;
  height: 0;
  visibility: hidden;
}


/* ============================================
   Pickup Component
   ============================================ 
   NOTE: Pickup styles have been moved to assets/css/pickup.css
   and are now scoped to [data-component="pickup"] for better isolation.
   */
