:root {
  --brown: #564138;
  --blue: #88b1e7;
  --cream: #fffcf9;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.highlight {
  background-image: linear-gradient(to top, rgba(136, 177, 231, 0.52) 42%, transparent 42%);
  border-radius: 3px;
}

.hero-glow {
  position: absolute;
  top: 120px;
  left: -180px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(136, 177, 231, 0.82) 0%, rgba(136, 177, 231, 0.55) 30%, rgba(136, 177, 231, 0.2) 56%, transparent 72%);
  filter: blur(24px);
  animation: glowTraverse 18s ease-in-out infinite alternate, glowBreath 10s ease-in-out infinite;
}

.hero-section {
  position: relative;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-glow {
  z-index: 0;
}

@keyframes glowTraverse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(48vw, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(92vw, 6px, 0) scale(0.98);
  }
}

@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.72;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: var(--blue);
  letter-spacing: 0.22em;
  font-size: 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.form-row input,
.form-row textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 252, 249, 0.28);
  color: var(--cream);
  font-size: 18px;
  line-height: 1.3;
  padding-bottom: 8px;
  outline: none;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 252, 249, 0.5);
}

.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: rgba(255, 252, 249, 0.7);
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-bottom-color: rgba(136, 177, 231, 0.9);
}

.field-error {
  min-height: 14px;
  color: rgba(136, 177, 231, 0.95);
  font-size: 11px;
  line-height: 1.2;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.car-pill {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--blue);
  color: var(--brown);
  min-width: 124px;
  height: 50px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car-track {
  width: 100%;
  display: flex;
  align-items: center;
}

.car-emoji {
  display: inline-block;
  transform: scaleX(-1);
  font-size: 15px;
}

.car-motion {
  display: inline-block;
  transform: translateX(0);
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.car-pill:hover .car-motion,
.car-pill:focus-visible .car-motion {
  transform: translateX(70px);
}

.car-pill:focus-visible {
  outline: 2px solid rgba(255, 252, 249, 0.7);
  outline-offset: 2px;
}

.car-pill[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.status-message {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(136, 177, 231, 0.45);
  background: rgba(136, 177, 231, 0.12);
  color: rgba(255, 252, 249, 0.94);
  font-size: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.35;
}

.status-message.hidden {
  display: none;
}

@media (max-width: 768px) {
  .form-row input,
  .form-row textarea {
    font-size: 16px;
  }
}

.nav-cta {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease, padding 200ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: rgba(136, 177, 231, 0.18);
  color: var(--brown);
  padding: 10px 22px;
  transform: translateY(-1px);
}

.nav-cta:focus-visible {
  outline: 2px solid rgba(136, 177, 231, 0.6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow {
    animation: none;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.46;
  }

  .car-motion {
    transition: none;
  }
}
