:root {
  --green-deep: #1e3314;
  --green: #2d4c1e;
  --green-mid: #3d6a2a;
  --sand: #b48c48;
  --sand-hover: #9a7538;
  --cream: #f7f4ef;
  --paper: #ffffff;
  --ink: #1a2e12;
  --muted: #5c6b55;
  --line: #d9e0d4;
  --danger: #9b2c2c;
  --ok: #1f6b3a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(30, 51, 20, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(180, 140, 72, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 20%, rgba(45, 76, 30, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3ea 0%, var(--cream) 40%, #ebe6dc 100%);
}

/* Header — brand first */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 0.75rem;
  animation: fadeDown 0.7s ease both;
}

.brand {
  display: block;
  transition: transform 0.35s ease;
}

.brand:hover {
  transform: scale(1.03);
}

.brand-logo {
  width: min(200px, 52vw);
  height: auto;
}

.brand-tagline {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: 0.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 51, 20, 0.15) 0%, rgba(30, 51, 20, 0.55) 55%, rgba(30, 51, 20, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
}

.hero-title,
#hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  color: #f3e6c8;
}

.hero-destination {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.95;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
}

.wave-hero {
  bottom: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f4ef' d='M0,24 C240,48 480,0 720,18 C960,36 1200,48 1440,18 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

/* Form section */
.form-section {
  position: relative;
  padding: 2.5rem 1.25rem 4rem;
  overflow: hidden;
}

.form-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(45, 76, 30, 0.08);
  animation: fadeUp 0.8s 0.25s ease both;
}

.form-intro {
  margin-bottom: 1.75rem;
  text-align: center;
}

.form-intro h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--green);
  font-weight: 700;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

fieldset.block {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

fieldset.block legend {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.85rem;
  padding: 0;
  width: 100%;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 0.35rem;
}

.hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green);
}

label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fafbf8;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 76, 30, 0.12);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger);
}

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

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: span 2;
  }
}

.travelers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.traveler {
  padding: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #f4f7f1 0%, #faf9f5 100%);
  border: 1px solid var(--line);
  animation: fadeUp 0.35s ease both;
}

.traveler-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.traveler-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.02em;
}

.btn-remove {
  border: none;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
}

.consent {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.mt {
  margin-top: 1rem;
}

.form-actions {
  display: flex;
  justify-content: center;
}

.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--sand);
  color: #fff;
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(180, 140, 72, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: var(--sand-hover);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary.is-sending {
  position: relative;
  letter-spacing: 0.08em;
}

.success-panel {
  text-align: center;
  padding: 2rem 0.5rem 1.5rem;
  animation: fadeUp 0.45s ease both;
}

.success-panel[hidden] {
  display: none !important;
}

.success-panel.is-leaving {
  animation: fadeOut 0.28s ease both;
}

.success-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  animation: popIn 0.5s 0.1s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.success-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--green);
}

.success-panel p {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.success-hint {
  margin-top: 1.25rem !important;
  font-size: 0.88rem !important;
  color: var(--sand) !important;
  font-weight: 500;
}

#form-panel.is-returning {
  animation: fadeUp 0.45s ease both;
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px dashed var(--green-mid);
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  width: 100%;
}

.btn-ghost:hover {
  background: rgba(45, 76, 30, 0.06);
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: center;
}

.form-status.ok {
  background: #e8f5ec;
  color: var(--ok);
  border: 1px solid #b7dfc4;
}

.form-status.err {
  background: #fceaea;
  color: var(--danger);
  border: 1px solid #f0c0c0;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Oxcart accents */
.oxcart {
  position: absolute;
  width: min(160px, 28vw);
  height: min(160px, 28vw);
  opacity: 0.18;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    #c0392b,
    #f1c40f,
    #2980b9,
    #e67e22,
    #8e44ad,
    #27ae60,
    #c0392b
  );
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 28%, #000 29%, #000 38%, transparent 39%, transparent 48%, #000 49%, #000 58%, transparent 59%, transparent 68%, #000 69%, #000 78%, transparent 79%);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%, #000 38%, transparent 39%, transparent 48%, #000 49%, #000 58%, transparent 59%, transparent 68%, #000 69%, #000 78%, transparent 79%);
  animation: spinSlow 48s linear infinite;
}

.oxcart-left {
  top: 4rem;
  left: -2rem;
}

.oxcart-right {
  bottom: 6rem;
  right: -2rem;
  animation-direction: reverse;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.wave-footer {
  top: -47px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%231e3314' d='M0,24 C240,0 480,48 720,30 C960,12 1200,0 1440,30 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center top / 100% 100% no-repeat;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 88px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

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

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

@keyframes kenBurns {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-image {
    transform: none;
  }
}
