/* =====================================
   CSS Custom Properties (Design Tokens)
   ===================================== */
:root .tour-finder {
  /* Colors - Grand Canyon Theme */
  --color-primary: #e25822;
  --color-primary-dark: #c25a3a;
  --color-secondary: #995239;
  --color-secondary-dark: #734b45;
  --color-success: #4a9b7f;
  --color-warning: #e8b547;
  --color-neutral-100: #f7f7f7;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #cccccc;
  --color-neutral-700: #444444;
  --color-neutral-900: #1a1a1a;
  --color-white: #ffffff;

  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --line-height-base: 1.5;
  --line-height-tight: 1.25;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 400ms ease;
}

/* =====================================
   Reset & Base Styles
   ===================================== */

/* Custom Modal Styles */
.gctf-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.gctf-modal.is-open {
  display: flex; /* Shown when active */
}

.gctf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.gctf-modal-content {
  position: relative;
  z-index: 100;
  max-width: min(1200px, 95%);
  max-height: 85vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 8px;
  animation: modalEntrance 0.3s ease-out;
}

.gctf-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 2rem;
  font-weight: bold;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1004; /* Ensure it's above all other elements */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================
   Grand Canyon Animation Keyframes
   ===================================== */

/* Helicopter Flying Animation */
@keyframes helicopterFly {
  0% {
    transform: translateX(-100px) translateY(20px) rotate(-5deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(50vw) translateY(-10px) rotate(2deg);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(15px) rotate(-3deg);
    opacity: 0;
  }
}

/* Grand Canyon Montage Reveal - Instant Display */
@keyframes canyonReveal {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

/* Adventure Family Silhouette */
@keyframes familyAdventure {
  0% {
    transform: translateX(-50px) scale(0.9);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  50% {
    transform: translateX(0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Parallax Background Layers */
@keyframes parallaxLayer1 {
  0% {
    transform: translateX(-20px) translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.3;
  }
}

@keyframes parallaxLayer2 {
  0% {
    transform: translateX(20px) translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.2;
  }
}

@keyframes parallaxLayer3 {
  0% {
    transform: translateX(-10px) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.1;
  }
}

/* Floating Elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sparkle Effect */
@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Entrance Animation */
@keyframes modalEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    filter: blur(10px);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95) translateY(10px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* =====================================
   Animation Elements
   ===================================== */

/* Animation Container */
.animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

/* Flying Vehicles */
.flying-helicopter-lottie {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 100px;
  height: 100px;
  animation: helicopterFly 4s ease-in-out;
  z-index: 10000002;
}

/* =====================================
   Keyboard Navigation Enhancements
   ===================================== */

/* Keyboard hints */
.keyboard-hint {
  margin-top: var(--spacing-lg);
  color: var(--color-neutral-700);
  font-size: var(--font-size-sm);
  text-align: center;
  opacity: 0.8;
}

.keyboard-hints {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-neutral-200);
  text-align: center;
}

.tour-finder.tour-finder--plain {
  height: 100%;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 10px;
  min-height: 848px;
  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  margin: auto;
}
.tour-finder.tour-finder--plain .question {
  background-color: none;
  flex: 1 1 0%;
}
.tour-finder.tour-finder--plain .tour-finder__quiz {
  flex: 1 1 0%;
}
.tour-finder.tour-finder--plain .progress {
  margin-bottom: 16px;
}

/* Hide all keyboard tips in plain mode */
.tour-finder--plain .keyboard-hint,
.tour-finder--plain .keyboard-hints,
.tour-finder--plain .option-radio__kbd,
.tour-finder--plain .option-checkbox__kbd {
  display: none !important;
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-200);
  border: 1px solid var(--color-neutral-300);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  line-height: 1.4;
}

/* Keyboard shortcut badges in options */
.option-radio__kbd,
.option-checkbox__kbd {
  margin-right: var(--spacing-sm);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.option-radio:hover .option-radio__kbd,
.option-checkbox:hover .option-checkbox__kbd,
.option-radio:focus-within .option-radio__kbd,
.option-checkbox:focus-within .option-checkbox__kbd {
  opacity: 1;
}

/* Keyboard focus animation */
.option--keyboard-focused {
  animation: keyboard-pulse 300ms ease-out;
  border-color: var(--color-primary);
  background-color: var(--color-neutral-100);
}

@keyframes keyboard-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(217, 119, 87, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 87, 0);
  }
}

/* Hide keyboard hints on mobile */
@media (max-width: 767px) {
  .keyboard-hint,
  .keyboard-hints {
    display: none;
  }

  .option-radio__kbd,
  .option-checkbox__kbd {
    display: none;
  }
}

/* Grand Canyon Background Layers - Always Visible */
.canyon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(219, 110, 60, 0.1) 0%,
    rgba(153, 82, 57, 0.1) 25%,
    rgba(44, 95, 119, 0.1) 50%,
    rgba(232, 181, 71, 0.1) 75%,
    rgba(74, 155, 127, 0.1) 100%
  );
  z-index: 999;
  opacity: 1;
}

.canyon-layer-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><path d="M0,400 Q200,300 400,350 T800,320 L1000,400 L1000,600 L0,600 Z" fill="rgba(153,82,57,0.1)"/></svg>')
    no-repeat center center;
  background-size: cover;
  z-index: 998;
  opacity: 0.3;
}

.canyon-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><path d="M0,450 Q300,350 600,380 T1000,350 L1000,600 L0,600 Z" fill="rgba(44,95,119,0.08)"/></svg>')
    no-repeat center center;
  background-size: cover;
  z-index: 997;
  opacity: 0.2;
}

.canyon-layer-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><path d="M0,500 Q400,400 700,420 T1000,400 L1000,600 L0,600 Z" fill="rgba(232,181,71,0.06)"/></svg>')
    no-repeat center center;
  background-size: cover;
  z-index: 996;
  opacity: 0.1;
}

/* Adventure Family Silhouette */
.adventure-family {
  position: absolute;
  bottom: 10%;
  right: 10%;
  font-size: 4rem;
  animation: familyAdventure 2s ease-out 0.5s both;
  z-index: 1001;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 10%;
  font-size: 2rem;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 30%;
  right: 15%;
  font-size: 1.5rem;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  font-size: 1.8rem;
  animation-delay: 2s;
}

/* Sparkle Effects */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0.5s;
}

.sparkle:nth-child(2) {
  top: 40%;
  right: 25%;
  animation-delay: 1.5s;
}

.sparkle:nth-child(3) {
  bottom: 25%;
  left: 40%;
  animation-delay: 2.5s;
}

/* Animation Classes for Content */
.animate-canyon-reveal {
  /* Remove animation - just keep the class for styling */
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   Tour Finder Container
   ===================================== */
.tour-finder {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1003;
}

/* =====================================
   Start Screen
   ===================================== */
.tour-finder__start {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tour-finder__start-content {
  background: var(--color-white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
}

.tour-finder__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  opacity: 0; /* Start hidden, will be animated in */
}

.tour-finder__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-xl);
  opacity: 0; /* Start hidden, will be animated in */
}

.tour-finder__start-content .btn {
  opacity: 0; /* Start hidden, will be animated in */
}

/* =====================================
   Quiz Screen
   ===================================== */
.tour-finder__quiz {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Progress Bar */
.progress {
  margin-bottom: var(--spacing-xl);
}

.progress__track {
  width: 100%;
  height: 8px;
  background-color: var(--color-neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #e8cb82);
  border-radius: var(--radius-md);
  transition: width var(--transition-base);
  width: 14.28%; /* Default: Question 1 of 7 */
}

.progress__text {
  text-align: center;
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-700);
}

/* Question Container */
.question {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  min-height: 400px;
}

.question__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-tight);
}

.question__instruction {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.question__options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Radio Options */
.option-radio {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.option-radio:hover {
  border-color: var(--color-primary);
  background-color: var(--color-neutral-100);
}

.option-radio:has(.option-radio__input:checked) {
  border-color: var(--color-primary);
  background-color: rgba(217, 119, 87, 0.1);
}

.option-radio:has(.option-radio__input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.option-radio__input {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-md);
  cursor: pointer;
  accent-color: var(--color-primary);
}

.option-radio__label {
  flex: 1;
  cursor: pointer;
  font-size: var(--font-size-base);
}

/* Checkbox Options */
.option-checkbox {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.option-checkbox:hover {
  border-color: var(--color-primary);
  background-color: var(--color-neutral-100);
}

.option-checkbox:has(.option-checkbox__input:checked) {
  border-color: var(--color-primary);
  background-color: rgba(44, 95, 119, 0.1);
}

.option-checkbox:has(.option-checkbox__input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.option-checkbox__input {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-md);
  cursor: pointer;
  accent-color: var(--color-primary);
}

.option-checkbox__label {
  flex: 1;
  cursor: pointer;
  font-size: var(--font-size-base);
}

/* Quiz Navigation */
.quiz-navigation {
  display: flex;
  gap: var(--spacing-md);
  justify-content: space-between;
}

/* =====================================
   Buttons
   ===================================== */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--primary:disabled {
  background-color: var(--color-neutral-300);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

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

.btn--large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn--small {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
}

/* =====================================
   Results Screen
   ===================================== */
.tour-finder__results {
  width: 100%;
}

.results-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  align-items: center;
  text-align: center;
}

.results-header__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-secondary);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Tour Card */
.tour-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tour-card__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6;
  overflow: hidden;
}

.tour-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.tour-card:hover .tour-card__image {
  transform: scale(1.05);
}

.tour-card__content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card__header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.tour-card__icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.tour-card__icon svg,
.tour-card__icon img {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.tour-card__match {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  min-width: 70px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.tour-card__match--high {
  background: rgba(74, 155, 127, 0.9);
  color: var(--color-white);
}

.tour-card__match--medium {
  background: rgba(232, 181, 71, 0.9);
  color: var(--color-neutral-900);
}

.tour-card__match-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.tour-card__match-label {
  font-size: 14px;
  font-weight: 500;
}

.tour-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.tour-card__title:hover {
  color: var(--color-primary-dark);
}

.tour-card__description {
  color: var(--color-neutral-700);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-base);
  margin-top: 0;
}

.tour-card__features {
  list-style: none;
  padding-left: 10px;
  margin-bottom: var(--spacing-md);
  margin-top: 0;
}

.tour-card__features li {
  padding-left: 20px;
  margin-bottom: var(--spacing-xs);
  position: relative;
  color: var(--color-neutral-700);
  font-size: var(--font-size-sm);
}

.tour-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.tour-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-top: 1px solid var(--color-neutral-200);
}

.tour-card__price {
  font-weight: 600;
  color: var(--color-primary);
}

.tour-card__duration {
  color: var(--color-neutral-700);
  font-size: var(--font-size-sm);
}

.tour-card__actions {
  display: flex;
  gap: var(--spacing-sm);
}

.tour-card__actions .btn {
  flex: 1;
}

/* Results Extras */
.results-extras {
  margin: 0 auto;
}

.results-explanation {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.results-explanation__toggle {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-secondary);
  list-style: none;
  user-select: none;
}

.results-explanation__toggle::-webkit-details-marker {
  display: none;
}

.results-explanation__content {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
}

.results-actions {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.results-actions__text {
  margin-bottom: var(--spacing-sm);
  color: var(--color-neutral-700);
}

.results-email {
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.results-email__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.results-email__form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.results-email__input {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
}

.results-email__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.results-email__loading {
  text-align: center;
  padding: var(--spacing-lg);
}

.results-email__loading p {
  margin-top: var(--spacing-md);
  color: var(--color-neutral-700);
}

.results-email__message {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  display: none;
}

.results-email__message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.results-email__message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =====================================
   Loading Screen
   ===================================== */
.tour-finder__loading {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-neutral-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-md);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--color-neutral-700);
  font-size: var(--font-size-lg);
}

/* =====================================
   Responsive Design
   ===================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .tour-finder {
    padding: 40px;
  }

  .tour-finder__quiz {
    min-width: 500px;
  }

  .tour-finder__title {
    font-size: 2.5rem;
  }

  .results-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .question {
    min-height: 450px;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .tour-finder__title {
    font-size: 3rem;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .tour-card__actions {
    flex-direction: row;
  }
}

/* =====================================
   Accessibility
   ===================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .tour-card {
    border: 2px solid var(--color-neutral-700);
  }
}
