@import "tailwindcss";
@import "tw-animate-css";
@import "../vendor/shadcn-tailwind-4.13.0.css";

@font-face {
  font-family: "Decondol";
  src: url("/fonts/Decondol-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green-950: #052825;
  --green-900: #082e2b;
  --green-800: #10443e;
  --green-100: #dce9e4;
  --gold: #d8b75f;
  --gold-soft: #f3e8c5;
  --canvas: #f2f5f1;
  --surface: #fffdf8;
  --text: #11231f;
  --text-soft: #60706b;
  --line: #d9e0dc;
  --background: var(--canvas);
  --foreground: var(--text);
  --card: var(--surface);
  --card-foreground: var(--text);
  --popover: #ffffff;
  --popover-foreground: var(--text);
  --primary: var(--green-900);
  --primary-foreground: #ffffff;
  --secondary: #e7eeea;
  --secondary-foreground: var(--green-900);
  --muted: #e7eeea;
  --muted-foreground: var(--text-soft);
  --accent: var(--gold-soft);
  --accent-foreground: var(--green-900);
  --destructive: #a9382f;
  --border: var(--line);
  --input: #cbd5d0;
  --ring: #c49d39;
  --radius: 0.875rem;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 6px);
  --radius-md: calc(var(--radius) - 3px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 6px);
  --font-sans: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-shell { min-height: 100vh; overflow: hidden; }

.loading-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-950);
  color: white;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loading-screen.is-leaving { visibility: hidden; opacity: 0; }
.loading-content { display: grid; width: min(86vw, 48rem); justify-items: center; text-align: center; }
.loading-kicker { margin-bottom: 1.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.loading-content p {
  margin: 0;
  font-family: "Decondol", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}
.loading-year { margin-top: 1rem; font-family: "Decondol", Inter, "Helvetica Neue", Arial, sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: 0.1em; }
.loading-line { width: min(15rem, 58vw); height: 2px; margin-top: 2rem; overflow: hidden; background: rgba(255,255,255,0.22); }
.loading-line i { display: block; width: 100%; height: 100%; background: white; transform-origin: left; animation: loading-progress 1.15s cubic-bezier(.65,0,.35,1) both; }
@keyframes loading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .loading-screen { transition-duration: 0.01ms; }
  .loading-line i { animation: none; }
}
h1,
h2,
h3,
.event-name,
.form-block legend,
.question-title,
.hero-caption strong,
.event-mini-card strong,
footer > p {
  font-family: "Decondol", Inter, "Helvetica Neue", Arial, sans-serif;
}

.topbar {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  align-items: center;
  justify-content: space-between;
}
.event-name {
  color: var(--green-950);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
}
.nav-cta {
  padding: 0.75rem 1rem;
  border: 1px solid #c9d2cd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-cta:hover { border-color: var(--green-900); background: white; }
.nav-cta:focus-visible,
.primary-cta:focus-visible { outline: 3px solid rgba(216, 183, 95, 0.45); outline-offset: 3px; }

.hero {
  position: relative;
  height: clamp(31rem, 66vw, 52rem);
  overflow: hidden;
  background: var(--green-950);
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 40, 37, 0.12);
}
.hero-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(92%, 13ch);
  margin: 0;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 0.84;
  text-align: center;
  text-shadow: 0 6px 32px rgba(2, 20, 18, 0.46);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-details { background: var(--canvas); color: var(--text); }
.hero-inner {
  display: flex;
  width: min(100%, 1304px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 2rem);
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero-content { width: min(100%, 48rem); }
.status-pill,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill { padding: 0.58rem 0.8rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.status-pill span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 183, 95, 0.18); }
.hero-details h2 {
  max-width: 11ch;
  margin: 1.6rem 0 1.5rem;
  color: var(--green-950);
  font-size: clamp(4rem, 7.5vw, 7.75rem);
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 0.9;
  text-wrap: balance;
}
.hero-copy { max-width: 39rem; margin: 0; color: var(--text-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.event-summary {
  display: grid;
  max-width: 38rem;
  margin-top: 2.25rem;
  padding: 1rem;
  grid-template-columns: 6.25rem 1fr;
  gap: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 45px rgba(6, 40, 37, 0.06);
  backdrop-filter: blur(12px);
}
.date-badge { display: grid; padding: 0.85rem; place-items: center; border-radius: 1rem; background: var(--green-900); color: white; }
.date-badge span { color: rgba(255,255,255,0.64); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.date-badge strong { color: var(--gold); font-size: 2.8rem; line-height: 1; }
.event-meta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.event-meta > div { display: grid; gap: 0.35rem; padding: 0.25rem 1rem; }
.event-meta > div + div { border-left: 1px solid var(--line); }
.event-meta span { color: var(--text-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.event-meta strong { font-size: 0.94rem; line-height: 1.3; }
.hero-actions { display: flex; margin-top: 1.5rem; align-items: center; gap: 1rem; }
.hero-actions p { margin: 0; color: var(--text-soft); font-size: 0.8rem; }
.primary-cta {
  display: inline-flex;
  min-height: 3.45rem;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-900);
  color: white;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(6, 40, 37, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}
.primary-cta:hover { background: var(--green-800); transform: translateY(-2px); }
.hero-caption { display: grid; flex: 0 0 auto; max-width: 18rem; gap: 0.25rem; padding: 1rem 1.15rem; border-radius: 1rem; background: var(--green-900); color: white; box-shadow: 0 18px 45px rgba(6,40,37,0.14); }
.hero-caption span { color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-caption strong { font-size: 0.9rem; }

.response-section {
  display: grid;
  max-width: 1304px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(7rem, 11vw, 11rem);
  grid-template-columns: minmax(16rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}
.section-intro { position: sticky; top: 2rem; }
.section-kicker { color: #8b6d20; }
.section-intro h2 { max-width: 9ch; margin: 1rem 0 1.2rem; color: var(--green-950); font-size: clamp(2.7rem, 5vw, 4.7rem); font-weight: 740; letter-spacing: 0.015em; line-height: 0.98; }
.section-intro > p { max-width: 26rem; margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.event-mini-card { display: flex; max-width: 22rem; margin-top: 2rem; padding: 1rem; align-items: center; gap: 1rem; border-radius: 1.15rem; background: var(--green-900); color: white; box-shadow: 0 20px 45px rgba(6,40,37,0.14); }
.mini-date { display: grid; width: 3.6rem; height: 3.6rem; place-items: center; border-radius: 0.85rem; background: var(--gold); color: var(--green-950); font-size: 1.45rem; font-weight: 800; }
.event-mini-card div { display: grid; gap: 0.2rem; }
.event-mini-card strong { font-size: 0.95rem; }
.event-mini-card div span { color: rgba(255,255,255,0.62); font-size: 0.78rem; }

.response-form {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(6, 40, 37, 0.08);
}
.form-block { min-width: 0; margin: 0; padding: 2.25rem 0; border: 0; }
.form-block:first-child { padding-top: 0; }
.form-block:last-of-type { border-bottom: 0; }
.form-block legend { display: flex; margin: 0 0 0.4rem; padding: 0; align-items: center; gap: 0.75rem; color: var(--text); font-size: clamp(1.3rem, 2.5vw, 1.65rem); font-weight: 730; letter-spacing: 0.02em; }
.form-block legend span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 0.65rem; background: var(--green-100); color: var(--green-800); font-size: 0.68rem; font-weight: 800; letter-spacing: 0; }
.form-grid { display: grid; margin-top: 1.4rem; gap: 1.1rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-field { grid-column: 1 / -1; max-width: calc(50% - 0.55rem); }
.field-label { display: grid; min-width: 0; gap: 0.55rem; color: #34443f; font-size: 0.79rem; font-weight: 700; }
.field-label > svg { display: none; }
.field-label b, .question-title b { color: #b23e34; }
.field-label [data-slot="native-select-wrapper"] { width: 100%; }
.field-label [data-slot="input"],
.field-label [data-slot="textarea"],
.field-label [data-slot="native-select"] {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid #cfd8d3;
  border-radius: 0.85rem;
  background: #fbfcfa;
  box-shadow: none;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
}
.field-label [data-slot="native-select"] { padding-inline: 0.9rem 2.5rem; }
.field-label [data-slot="textarea"] { min-height: 7.5rem; padding: 0.9rem; resize: vertical; }
.field-label [data-slot="input"]:focus-visible,
.field-label [data-slot="textarea"]:focus-visible,
.field-label [data-slot="native-select"]:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216,183,95,0.19); }
.field-label [data-slot="input"]::placeholder,
.field-label [data-slot="textarea"]::placeholder { color: #94a29c; }

.choice-grid { display: grid; margin-top: 1.2rem; gap: 0.75rem; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.travel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.accommodation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; display: grid; min-height: 5.4rem; padding: 1.1rem 1rem 1rem 2.8rem; align-content: center; border: 1px solid #d2dad6; border-radius: 1rem; background: #fbfcfa; cursor: pointer; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.choice-card:hover { border-color: #9bb0a7; transform: translateY(-1px); }
.choice-card.is-selected { border-color: var(--gold); background: #fffbef; box-shadow: 0 0 0 3px rgba(216,183,95,0.15); }
.choice-card input[type="radio"] { position: absolute; top: 1.2rem; left: 1rem; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--green-900); }
.choice-card input[type="radio"]:focus-visible { outline: 3px solid rgba(216,183,95,0.4); outline-offset: 3px; }
.choice-card strong { color: var(--text); font-size: 0.9rem; line-height: 1.3; }
.choice-card > span:not([data-slot]) { margin-top: 0.28rem; color: var(--text-soft); font-size: 0.76rem; line-height: 1.45; }
.travel-question + .travel-question { margin-top: 2rem; padding-top: 2rem; }
.question-title { display: flex; margin: 1.45rem 0 0; align-items: center; gap: 0.55rem; color: #34443f; font-size: 0.86rem; font-weight: 750; }
.question-title svg { width: 1.1rem; color: #9b7a24; }
.form-error { margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: 0.8rem; background: #fff0ee; color: #8e2c24; font-size: 0.84rem; }
.submit-row { display: flex; padding-top: 1.75rem; align-items: center; gap: 1.25rem; }
.form-button { min-height: 3.4rem; border-radius: 999px; background: var(--green-900); padding-inline: 1.5rem; color: white; font-size: 0.8rem; font-weight: 750; box-shadow: 0 10px 24px rgba(6,40,37,0.16); }
.form-button:hover { background: var(--green-800); }
.secondary-button { margin-top: 1rem; border-color: var(--green-900); background: transparent; color: var(--green-900); box-shadow: none; }
.secondary-button:hover { background: var(--green-100); color: var(--green-900); }

.success-card { padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); text-align: center; box-shadow: 0 24px 70px rgba(6,40,37,0.08); }
.success-mark { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1.5rem; place-items: center; border-radius: 1.2rem; background: var(--green-100); color: var(--green-800); }
.success-card h3 { margin: 0 0 0.8rem; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 750; letter-spacing: 0.015em; }
.success-card > p:not(.eyebrow) { max-width: 31rem; margin: 0.65rem auto; color: var(--text-soft); line-height: 1.6; }
.success-card .success-note { padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; }
.eyebrow.dark { color: #8b6d20; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

footer { display: grid; min-height: 22rem; padding: 5rem 1.5rem; place-items: center; align-content: center; background: var(--green-950); color: white; text-align: center; }
footer > p { margin: 0; color: white; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 720; letter-spacing: 0.015em; }
footer > small { margin-top: 1rem; color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .hero-inner { align-items: flex-start; }
  .hero-details h2 { font-size: clamp(3.7rem, 8vw, 6rem); }
  .event-meta { grid-template-columns: 1fr; }
  .event-meta > div { padding-block: 0.4rem; }
  .event-meta > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .hero-caption { display: none; }
  .response-section { grid-template-columns: 0.42fr minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 760px) {
  .topbar { padding-block: 1rem; }
  .event-name { max-width: 11rem; font-size: 0.7rem; line-height: 1.35; }
  .nav-cta { padding: 0.68rem 0.85rem; font-size: 0.72rem; }
  .hero { height: clamp(27rem, 72vh, 40rem); }
  .hero-background { object-position: center; }
  .hero-title { width: min(90%, 10ch); font-size: clamp(3.6rem, 18vw, 5.8rem); }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-details h2 { max-width: none; margin-top: 1.25rem; font-size: clamp(3.65rem, 17vw, 5.7rem); }
  .hero-copy { font-size: 1rem; }
  .event-summary { grid-template-columns: 5.5rem 1fr; }
  .event-meta { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .primary-cta { width: 100%; }
  .response-section { grid-template-columns: 1fr; }
  .section-intro { position: static; }
  .section-intro h2 { max-width: none; }
  .event-mini-card { max-width: none; }
  .two-columns,
  .choice-grid.two,
  .choice-grid.travel,
  .choice-grid.accommodation { grid-template-columns: 1fr; }
  .company-field { max-width: none; }
  .form-button { width: 100%; }
}

@media (max-width: 420px) {
  .hero-details h2 { font-size: 3.5rem; }
  .event-summary { grid-template-columns: 4.8rem 1fr; padding: 0.75rem; }
  .date-badge { padding-inline: 0.55rem; }
  .date-badge strong { font-size: 2.35rem; }
  .event-meta > div { padding-inline: 0.55rem; }
  .response-form { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
