:root {
  --brand: #2f5597;
  --brand-dark: #234278;
  --brand-light: #4b9bcd;
  --accent: #fbae02;
  --accent-dark: #d99500;
  --text: #313131;
  --muted: #777;
  --bg: #f5f5f5;
  --card: #fff;
  --border: #e3e6ec;
  --error: #fa4e3c;
  --success: #2ea44f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand-logo { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-line1 { font-weight: 700; font-size: 1.05rem; color: var(--brand); }
.brand-line2 { font-size: .78rem; color: var(--muted); }
.header-link { font-size: .9rem; color: var(--brand); text-decoration: none; }
.header-link:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 90% 20%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(ellipse at 10% 80%, rgba(251,174,2,.18), transparent 40%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hero h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; }
.hero-year { color: var(--accent); }
.hero-sub { font-size: 1.05rem; max-width: 720px; margin: 0 0 1.5rem; opacity: .95; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; font-size: .95rem; }
.meta-item { display: flex; align-items: center; gap: .5rem; }
.meta-icon { font-size: 1.2rem; }

/* ===== Main ===== */
.main {
  max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.card {
  background: var(--card); border-radius: 12px; padding: 1.75rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(47,85,151,.06);
  border: 1px solid var(--border);
}
.card h2 { color: var(--brand); margin: 0 0 .8rem; font-size: 1.25rem; font-weight: 600; }
.section-title { margin-top: 1.8rem !important; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.section-title:first-of-type { border-top: none; padding-top: 0; }

.info-list { margin: .5rem 0 0; padding-left: 1.2rem; }
.info-list li { margin-bottom: .35rem; }
.muted { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.small { font-size: .82rem; }

/* ===== Camp cards ===== */
.camp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin: 1rem 0 .5rem;
}
.camp-option {
  position: relative; border: 2px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.2rem 1rem; cursor: pointer; background: #fff;
  transition: all .15s ease;
}
.camp-option:hover { border-color: var(--brand-light); }
.camp-option.selected { border-color: var(--brand); background: #f4f8fd; box-shadow: 0 0 0 4px rgba(47,85,151,.08); }
.camp-option.full { opacity: .55; cursor: not-allowed; }
.camp-option input { position: absolute; opacity: 0; pointer-events: none; }
.camp-title { font-weight: 600; color: var(--brand); margin-bottom: .2rem; font-size: 1rem; }
.camp-dates { font-size: .9rem; color: var(--text); margin-bottom: .8rem; }
.camp-spots {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; margin-bottom: .4rem;
}
.spot-bar { flex: 1; height: 6px; background: #e8edf4; border-radius: 3px; overflow: hidden; }
.spot-fill { height: 100%; background: var(--brand); transition: width .3s; }
.spot-fill.warn { background: var(--accent); }
.spot-fill.full { background: var(--error); }
.camp-status {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .03em;
}
.camp-status.tentative { background: #fff4d6; color: #8a6800; border: 1px solid #fbae02; }
.camp-status.confirmed { background: #e3f3e8; color: #1d6d35; border: 1px solid #2ea44f; }
.camp-status.full { background: #fde2df; color: #b03a2e; border: 1px solid var(--error); }
.camp-status.waitlist { background: #fff4d6; color: #8a6800; border: 1px solid var(--accent); }
.camp-option.full-with-wl { border-style: dashed; }
.camp-option.closed { opacity: .55; cursor: not-allowed; }
.tentative-note {
  font-size: .82rem; color: #8a6800; background: #fff8e1;
  padding: .5rem .7rem; border-radius: 6px; margin-top: .6rem;
  border-left: 3px solid var(--accent);
}

/* ===== Form fields ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: .9rem; font-weight: 500; }
.field em { color: var(--error); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; padding: .65rem .8rem;
  border: 1.5px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47,85,151,.15);
}
.field textarea { resize: vertical; min-height: 60px; font-family: inherit; }

.field.checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; margin-top: 1rem; }
.field.checkbox input { width: 18px; height: 18px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--brand); }
.field.checkbox span { font-weight: 400; font-size: .92rem; }
.field.checkbox.terms { background: #f8fafd; padding: .9rem 1rem; border-radius: 7px; border: 1px solid var(--border); }

/* ===== Day grid ===== */
.day-grid { margin-bottom: .5rem; }
.day-grid-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem; margin-top: .8rem;
}
.day-option {
  position: relative;
  display: block; text-align: center; padding: .7rem .5rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: .9rem; background: #fff;
  transition: all .15s;
}
.day-option:hover:not(.full) { border-color: var(--brand-light); }
.day-option.selected { border-color: var(--brand); background: #f4f8fd; box-shadow: 0 0 0 3px rgba(47,85,151,.1); }
.day-option.selected .day-name { color: var(--brand); font-weight: 600; }
.day-option input {
  position: absolute; top: .4rem; right: .4rem; width: 16px; height: 16px;
  accent-color: var(--brand);
}
.day-name { font-weight: 500; margin-bottom: .25rem; }
.day-count { font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.day-bar { height: 4px; background: #eef2f9; border-radius: 2px; overflow: hidden; }
.day-bar-fill { height: 100%; background: var(--brand-light); transition: width .3s; }
.day-option.has-helpers .day-bar-fill { background: var(--brand); }
.day-option.full {
  opacity: .55; cursor: not-allowed;
  background: #fff5f4; border-color: #f5c8c2;
}
.day-option.full .day-bar-fill { background: var(--error); }
.day-vol-note {
  position: absolute; top: .4rem; left: .4rem;
  font-size: .68rem; font-weight: 600; color: var(--error);
  background: #fde2df; padding: .1rem .4rem; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .03em;
}
.hint { font-size: .78rem; color: var(--muted); margin-top: -.15rem; }

/* ===== Submit button ===== */
.submit-btn {
  background: var(--accent); color: var(--text); font: inherit; font-weight: 600;
  border: none; padding: .9rem 2rem; border-radius: 8px; cursor: pointer;
  font-size: 1.05rem; margin-top: 1.5rem; transition: background .15s, transform .05s;
  box-shadow: 0 2px 6px rgba(251,174,2,.3);
}
.submit-btn:hover:not(:disabled) { background: var(--accent-dark); }
.submit-btn:active:not(:disabled) { transform: translateY(1px); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }

/* ===== Status messages ===== */
.form-status {
  margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 8px;
  font-size: .95rem;
}
.form-status.error { background: #fde2df; color: #8a2418; border-left: 4px solid var(--error); }
.form-status.success { background: #e3f3e8; color: #1d6d35; border-left: 4px solid var(--success); }
.form-status ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--brand); color: #fff; margin-top: 3rem;
  padding: 1.5rem 1.25rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-inner p { margin: .25rem 0; }
.footer-inner a { color: var(--accent); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
