/* Dark theme: black page, green + blue accents (matches the green nebula hero). */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #050908;
  --card: #0b1211;
  --field: #0f1917;
  --line: rgba(126, 232, 208, 0.14);
  --line-strong: rgba(126, 232, 208, 0.32);
  --ink: #e6f2ee;
  --head: #fff;
  --muted: #8ea39c;
  --green: #4ac881;
  --mint: #7ee8d0;
  --blue: #19c3e6;
  --grad: linear-gradient(135deg, var(--green), var(--blue));
  --ok: #7ee8d0;
  --warn: #f2b548;
  --bad: #ff6b6b;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mint); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--head); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.t-loading body { visibility: hidden; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--head); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--mint); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 26px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #00140f;
  box-shadow: 0 8px 24px rgba(74, 200, 129, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(25, 195, 230, 0.35); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mint); }
.btn.white { background: #fff; color: #000; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12); }
.btn.sm { padding: 7px 14px; font-size: 0.9rem; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: none; }
.nav .btn, .nav .btn:hover { padding: 8px 18px; color: #00140f; }

/* ---------- hero ---------- */
/* The noeris.bio nebula in green (hero.js). */
.hero {
  position: relative; color: #fff; overflow: hidden; background: #000;
  min-height: min(92vh, 900px); display: flex; align-items: center;
  padding: 90px 0 160px; text-align: center;
}
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 640px; opacity: 0.92; margin: 0 0 28px; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(126, 232, 208, 0.1); border: 1px solid rgba(126, 232, 208, 0.35);
  font-size: 0.9rem; margin-bottom: 18px;
}
.nebula {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1600px, 160vw); height: max(1200px, 100vh + 240px);
  pointer-events: none; z-index: 1;
}
.nebula-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula-sky {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  aspect-ratio: 1; height: 1800px; opacity: 0.45;
  background: url("/watermidburn2026/hero/nebula-sky.webp") center / cover;
  mask-image: radial-gradient(circle at center, #000 45%, transparent 70%);
}
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), transparent 65%); }
@media (max-width: 809px) { .nebula { width: 820px; height: max(700px, 100svh + 200px); } }

/* green/blue water lines, the last one is the page color */
.waves { position: absolute; inset: auto 0 -1px 0; height: 120px; width: 100%; z-index: 3; }
.waves path { fill: var(--bg); }
.waves .w1 { fill: var(--blue); opacity: 0.22; animation: drift 14s ease-in-out infinite alternate; }
.waves .w2 { fill: var(--green); opacity: 0.32; animation: drift 10s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) { .waves path { animation: none !important; } html { scroll-behavior: auto; } }

.meter { width: min(460px, 100%); text-align: start; margin-top: 34px; }
.meter .bar { height: 10px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
.meter .fill { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1s ease; }
.meter .label { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 8px; opacity: 0.95; }

/* ---------- sections ---------- */
section { padding: 70px 0; }
section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin: 0; }

.notice {
  background: rgba(242, 181, 72, 0.1); border: 1px solid rgba(242, 181, 72, 0.4); color: #ffd58a;
  padding: 14px 18px; border-radius: 12px; margin: 24px auto 0;
}

.panel, .about, .step, .faq details {
  background: linear-gradient(180deg, rgba(126, 232, 208, 0.035), transparent 60%), var(--card);
  border: 1px solid var(--line);
}
.about {
  margin-top: -90px; position: relative; z-index: 4;
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.about .icon { font-size: 2.6rem; line-height: 1; }
.about h2 { font-size: 1.5rem; }
.about p { margin: 0 0 8px; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; padding: 24px; } }

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #00140f; font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.date {
  border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(74, 200, 129, 0.14), rgba(25, 195, 230, 0.1));
}
.date b { display: block; font-size: 1.4rem; color: var(--mint); }
.date span { color: var(--ink); opacity: 0.85; font-size: 0.95rem; }
.date small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ---------- form ---------- */
.order-section {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(74, 200, 129, 0.08), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgba(25, 195, 230, 0.07), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 1.2rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.95rem; }
label.f .req { color: var(--bad); }
input, textarea, select {
  font: inherit; color: var(--ink); padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--field); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #5f716b; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(126, 232, 208, 0.12); }
input[type="tel"], input[type="email"], input[type="url"] { direction: ltr; text-align: right; }
input[type="checkbox"] { accent-color: var(--green); }
select option { background: var(--card); color: var(--ink); }
select.ltr-select { direction: ltr; text-align: right; }
textarea { min-height: 80px; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip-path: inset(50%); }

.items { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field);
  transition: border-color 0.15s, background 0.15s;
}
.item.on { border-color: var(--mint); background: rgba(126, 232, 208, 0.07); }
.item .t { font-weight: 600; color: var(--head); }
.item .d { color: var(--muted); font-size: 0.88rem; }
.item .p { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.tag-inline { color: var(--green); font-weight: 600; }
.group-label { font-weight: 700; color: var(--mint); font-size: 0.82rem; letter-spacing: 0.02em; margin: 10px 2px 0; }
.stepper { display: flex; align-items: center; gap: 4px; direction: ltr; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); cursor: pointer;
  background: transparent; color: var(--mint); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.stepper button:hover { background: rgba(126, 232, 208, 0.12); }
.stepper input { width: 56px; text-align: center; padding: 6px; direction: ltr; }

.summary { position: sticky; top: 84px; }
.summary .row, .summary-static .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary .row.total, .summary-static .row.total { border-top: 1px solid var(--line-strong); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.2rem; color: var(--head); }
.summary .row.dep, .summary-static .row.dep { color: var(--green); font-weight: 600; }
.summary .lines .row, .summary-static .lines .row { font-size: 0.93rem; color: var(--muted); }
.summary .empty { color: var(--muted); font-size: 0.95rem; }

.drop {
  border: 2px dashed var(--line-strong); border-radius: 14px; padding: 22px; text-align: center;
  cursor: pointer; color: var(--muted); transition: border-color 0.15s, background 0.15s; display: block;
}
.drop b { color: var(--head); }
.drop:hover, .drop.over { border-color: var(--mint); background: rgba(126, 232, 208, 0.06); }
.drop input { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs a, .thumbs .th {
  width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--field); font-size: 0.75rem; color: var(--muted); text-decoration: none; position: relative;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 2px; left: 2px; background: rgba(0, 0, 0, 0.7); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }

.msg { padding: 12px 16px; border-radius: 12px; margin-top: 14px; font-weight: 500; }
.msg.err { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.msg.info { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--ink); }
.msg.ok { background: rgba(126, 232, 208, 0.08); border: 1px solid rgba(126, 232, 208, 0.3); color: var(--mint); }
.warn-text { color: var(--warn); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; padding: 4px 20px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); padding: 40px 0; font-size: 0.92rem; }
footer strong { color: var(--head); }
footer p { margin: 0 0 8px; max-width: 760px; }

/* ---------- status pills (pay page, admin) ---------- */
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; }
.status.new { background: rgba(242, 181, 72, 0.12); color: var(--warn); }
.status.confirmed { background: rgba(126, 232, 208, 0.12); color: var(--mint); }
.status.cancelled { background: rgba(255, 107, 107, 0.12); color: var(--bad); }

/* ---------- pay page ---------- */
.page-top {
  background: radial-gradient(800px 300px at 50% 0%, rgba(74, 200, 129, 0.25), transparent 70%), radial-gradient(600px 260px at 20% 0%, rgba(25, 195, 230, 0.14), transparent 70%), #000;
  color: #fff; padding: 40px 0 70px; position: relative; overflow: hidden;
}
.page-top .waves { height: 60px; }
.page-top h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-body { margin-top: -40px; position: relative; z-index: 4; padding-bottom: 60px; }
.narrow { max-width: 620px; }
.big-icon { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.state-fail { border-color: rgba(255, 107, 107, 0.45); }
.state-fail h3 { color: #ffb3b3; }
.state-ok { border-color: var(--line-strong); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- fake checkout (local test mode only) ---------- */
.test-banner { background: rgba(242, 181, 72, 0.12); border: 1px dashed var(--warn); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-bottom: 18px; }
.card-mock { display: grid; gap: 12px; }
.card-mock .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* camp's own location box on the order page */
#loc.loc-missing { border-color: rgba(242, 181, 72, 0.5); background: rgba(242, 181, 72, 0.06); }
.loc-now { font-size: 1.15rem; }
select:disabled { opacity: 0.35; cursor: not-allowed; }

/* hide the badge/toolbar Netlify injects on published sites */
iframe#nl-badge-frame, iframe#nl-hud-frame { display: none !important; }

/* bank transfer checkout */
.methods { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bank-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bank-box h4 { margin: 0 0 6px; color: var(--head); }
.bank { background: var(--field); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 12px; margin: 8px 0 12px; }
.bank-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.bank-row:last-child { border-bottom: 0; }
.bank-row b { color: var(--head); font-variant-numeric: tabular-nums; }
.copy { border: 1px solid var(--line-strong); background: none; color: var(--mint); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.copy:hover { background: rgba(126, 232, 208, 0.08); }
.problems { color: var(--warn); margin-top: 0; }
/* "checking" spinner: a ring with a bright arc and a soft pulse; small variant inline before a status line */
.spinner { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid rgba(126, 232, 208, 0.14);
  border-top-color: var(--mint); border-right-color: var(--blue); animation: spin 0.9s linear infinite, glow 1.8s ease-in-out infinite; }
.spinner.sm { display: inline-block; width: 13px; height: 13px; margin: 0 0 0 7px; border-width: 2px; vertical-align: -2px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 50% { box-shadow: 0 0 22px rgba(126, 232, 208, 0.35); } }
@media (prefers-reduced-motion: reduce) { .spinner, .spinner.sm { animation-duration: 2.4s; } }

/* fill day, free camp */
#fill-box h4 { margin: 0 0 4px; color: var(--head); }
.fill-days { display: flex; gap: 10px; flex-wrap: wrap; }
.fill-days .day { cursor: pointer; position: relative; }
.fill-days .day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.fill-days .day span { display: inline-block; padding: 10px 22px; border-radius: 99px; border: 1px solid var(--line-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.fill-days .day input:checked + span { background: var(--grad); color: #00140f; border-color: transparent; }
.fill-days .day input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.free-box { background: rgba(242, 181, 72, 0.07); border: 1px solid rgba(242, 181, 72, 0.4); border-radius: 12px; padding: 12px 16px; font-size: 0.93rem; }
.free-box p { margin: 0 0 6px; }
.free-box ul { margin: 0 0 12px; padding-inline-start: 20px; }
.free-box li { margin-bottom: 4px; }
.thumbs .pf { display: flex; align-items: center; gap: 12px; flex-basis: 100%; }
.thumbs .pf .th { flex: none; }
.pst { font-size: 0.88rem; line-height: 1.45; }
.pst.checking, .pst.later { color: var(--muted); }
.pst.ok { color: var(--ok); font-weight: 600; }
.pst.problem { color: var(--warn); }
