:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --line: #dce3ea;
  --text: #18324b;
  --muted: #6f7f91;
  --navy: #113b70;
  --accent: #2d7f86;
  --accent-soft: #eef7f7;
  --danger: #c13d2f;
  --shadow: 0 16px 40px rgba(15, 30, 60, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button, label, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
[hidden] { display: none !important; }

.site-wrap {
  width: 100%;
  padding: 20px 16px 44px;
}
.main {
  width: min(100%, 860px);
  margin: 0 auto;
}
.hero-card, .form-card, .success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 32px;
  margin-bottom: 18px;
}
.form-card {
  padding: 32px;
}
.success-card {
  margin-top: 18px;
  padding: 44px 32px;
  text-align: center;
}
.footer {
  width: min(100%, 860px);
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-card h1,
.section-head h2,
.success-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.meta-item {
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.meta-item .meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.meta-item strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}
.meta-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 14px;
}

.section-head {
  margin-bottom: 22px;
}
.section-head.compact {
  margin: 10px 0 18px;
}
.section-subtext {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

fieldset { min-width: 0; padding: 0; border: 0; }
.field { margin: 0 0 22px; }
label, legend {
  color: var(--navy);
  font-weight: 800;
}
label > span, legend > span { color: var(--danger); }
.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  margin-top: 10px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 127, 134, 0.10);
}
input.invalid, textarea.invalid, select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(193, 61, 47, 0.10);
}
::placeholder { color: #9aa7b4; }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.choice:hover {
  border-color: #c4d4dc;
  transform: translateY(-1px);
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(45, 127, 134, 0.08);
}
.choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  accent-color: var(--accent);
}
.choice-body strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}
.choice-body small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.participants-list {
  display: grid;
  gap: 16px;
}
.participant-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}
.participant-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.participant-card-title > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.participant-card-title h4 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
}
.participant-subfield {
  margin-top: 16px;
}
.inline-options,
.days-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.inline-options.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inline-options.center-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.days-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inline-options label,
.day-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.inline-options label:has(input:checked),
.day-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(45, 127, 134, 0.08);
}
.inline-options input,
.day-option input {
  accent-color: var(--accent);
}
.inline-options span,
.day-option span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.day-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.partial-days {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 20px;
  accent-color: var(--accent);
}
.consent span { color: inherit; }

.error {
  min-height: 0;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
}
.submit-button {
  position: relative;
  min-height: 58px;
  margin-top: 22px;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 12px 26px rgba(17, 59, 112, 0.18);
}
.submit-button:disabled {
  opacity: .72;
  cursor: wait;
}
.button-loader {
  display: none;
  width: 22px;
  height: 22px;
  margin: auto;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.submit-button.loading .button-text { display: none; }
.submit-button.loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.submit-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.config-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #efc68a;
  border-radius: 14px;
  background: #fff6e7;
  color: #7a3e00;
  font-size: 14px;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}
.secondary-button {
  margin-top: 22px;
  padding: 15px 18px;
  color: var(--navy);
  background: #f3f7fb;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-wrap { padding: 12px 12px 28px; }
  .hero-card, .form-card, .success-card { border-radius: 22px; }
  .hero-card, .form-card { padding: 22px 18px; }
  .success-card { padding: 38px 22px; }
  .meta-grid { grid-template-columns: 1fr; }
  .inline-options.two-col,
  .inline-options.center-options,
  .days-options {
    grid-template-columns: 1fr;
  }
  .choice {
    align-items: flex-start;
    padding: 15px 14px;
  }
  .choice-body strong { font-size: 17px; }
  .participant-card {
    padding: 16px 14px;
  }
  .participant-card-title h4 {
    font-size: 22px;
  }
  .inline-options span,
  .day-option span {
    font-size: 16px;
  }
  .footer {
    margin-top: 18px;
    font-size: 13px;
  }
}

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