:root {
  --bg: #edf3ef;
  --card: #ffffff;
  --ink: #173a25;
  --muted: #5f7165;
  --line: #d5e0d7;
  --accent: #f39a1f;
  --accent-dark: #d98112;
  --shadow: 0 18px 40px rgba(23, 58, 37, 0.09);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, #f8fbf8 0%, var(--bg) 55%, #e6eee8 100%);
}

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

.page-shell {
  width: min(960px, calc(100% - 24px));
  margin: 24px auto 40px;
}

.hero-card,
.form-card,
.success-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(213, 224, 215, 0.8);
}

.hero-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.hero-logo-wrap {
  background: linear-gradient(180deg, #f4faf6 0%, #edf5ef 100%);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--line);
}

.hero-logo {
  width: 100%;
  height: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.event-meta {
  margin: 12px 0 10px;
  font-size: 1.05rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.intro-text,
.section-heading p,
.required-note,
.success-card p,
.waiver-box p {
  color: var(--muted);
  line-height: 1.55;
}

.form-card,
.success-card {
  padding: 28px;
}

.section-heading {
  margin: 8px 0 16px;
}

.section-heading h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.section-heading p {
  margin: 0;
}

.camp-form {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.field label span,
.required-note span {
  color: #c05030;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfefd;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(243, 154, 31, 0.18);
  border-color: var(--accent);
}

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

.waiver-box {
  border: 1px solid #f0dbc0;
  background: #fff9f2;
  padding: 18px;
  border-radius: 16px;
}

.waiver-box p {
  margin: 0 0 12px;
}

.waiver-box p:last-child {
  margin-bottom: 0;
}

.checkbox-stack {
  display: grid;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfb;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  flex-wrap: wrap;
}

button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(243, 154, 31, 0.23);
}

button:hover,
.back-link:hover {
  filter: brightness(1.03);
}

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

.success-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.success-card {
  max-width: 680px;
  text-align: center;
}

.success-card h1 {
  margin-bottom: 12px;
}

.success-card .hero-logo {
  max-width: 320px;
  margin: 0 auto 18px;
}

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    max-width: 430px;
    margin: 0 auto;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 14px, 960px);
    margin: 10px auto 20px;
  }

  .hero-card,
  .form-card,
  .success-card {
    padding: 18px;
    border-radius: 18px;
  }

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

  .submit-row {
    align-items: stretch;
  }

  button,
  .back-link {
    width: 100%;
  }
}
