:root {
  --ink: #f8f3dc;
  --ink-strong: #fffbe8;
  --muted: #d5d2b6;
  --green-black: #09231f;
  --green-deep: #123c35;
  --green-dark: #18553e;
  --green: #2f7b52;
  --green-bright: #5fbf7a;
  --gold: #e6bf45;
  --gold-soft: #fff0ba;
  --cream: #fff8df;
  --paper: #fbf5e1;
  --blue-soft: #dbeef2;
  --panel: #102b28;
  --panel-2: #173832;
  --line: rgba(255, 248, 223, 0.24);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.30);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  font-family: "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(230,191,69,.20), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(95,191,122,.16), transparent 28rem),
    linear-gradient(135deg, #09231f 0%, #103c37 52%, #0b2926 100%);
  min-height: 100vh;
  font-size: 1rem;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff8df' stroke-opacity='.30' stroke-width='1.2'%3E%3Cpath d='M12 18l4 8 9 1-7 6 2 9-8-5-8 5 2-9-7-6 9-1z'/%3E%3Cpath d='M50 46c4-9 17-2 6 8-4 4-6 5-6 5s-2-1-6-5c-11-10 2-17 6-8z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.card {
  background: linear-gradient(180deg, rgba(18, 60, 53, .98), rgba(16, 43, 40, .98));
  border: 2px solid rgba(230,191,69,.58);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "✦";
  position: absolute;
  right: 28px;
  top: 20px;
  color: var(--gold);
  font-size: 58px;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-black);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: .96;
  margin: 0 0 20px;
  color: var(--ink-strong);
  letter-spacing: -.045em;
  max-width: 880px;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ink-strong);
}

p { line-height: 1.58; }
.lead { font-size: 1.28rem; max-width: 800px; font-weight: 700; color: var(--ink-strong); }

.form-card { padding: clamp(22px, 4vw, 38px); }
.progress-wrap { margin-bottom: 28px; }
.progress-bar {
  height: 14px;
  background: rgba(255, 248, 223, .22);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--green-bright), var(--gold));
  transition: width .25s ease;
}
#stepLabel { margin: 9px 0 0; color: var(--gold-soft); font-weight: 900; font-size: 1.02rem; }

.step { display: none; animation: fadeIn .18s ease; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.choice-grid, .checkbox-grid, .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.choice-grid.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

label, legend { font-weight: 900; }
.choice-grid label, .checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,248,223,.08);
  border: 2px solid rgba(255,248,223,.25);
  border-radius: 18px;
  padding: 18px 18px;
  cursor: pointer;
  min-height: 72px;
  color: var(--ink-strong);
  font-size: 1.08rem;
}
.choice-grid label:hover, .checkbox-grid label:hover {
  border-color: rgba(230,191,69,.78);
  background: rgba(255,248,223,.13);
}
.choice-grid label:has(input:checked), .checkbox-grid label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(230,191,69,.18);
}
input[type="radio"], input[type="checkbox"] {
  transform: scale(1.35);
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink-strong);
  font-size: 1.05rem;
}
.field.full { margin-top: 18px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  border: 3px solid rgba(255,248,223,.34);
  background: #fffef6;
  color: #12302c;
  border-radius: 16px;
  padding: 16px 17px;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 650;
}
textarea { resize: vertical; min-height: 118px; }
input:focus, textarea:focus {
  outline: 4px solid rgba(230,191,69,.38);
  border-color: var(--gold);
}
::placeholder { color: rgba(18,48,44,.58); }

.mini-fieldset {
  border: 3px dashed rgba(230,191,69,.48);
  border-radius: 20px;
  padding: 18px;
  margin: 22px 0 0;
  background: rgba(255,248,223,.06);
}
.mini-fieldset legend { padding: 0 10px; color: var(--gold-soft); font-size: 1.08rem; }

.note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(230,191,69,.16);
  border: 2px solid rgba(230,191,69,.62);
  color: var(--ink-strong);
  font-size: 1.05rem;
}
.note[hidden] { display: none; }
.cheeky { background: rgba(151, 49, 43, .20); border-color: rgba(255, 139, 118, .48); }

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(219,238,242,.13);
  border: 2px solid rgba(219,238,242,.28);
  border-radius: 18px;
  padding: 18px;
  margin-top: 22px;
  line-height: 1.48;
  color: var(--ink-strong);
  font-size: 1.02rem;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 17px 28px;
  background: var(--gold);
  color: var(--green-black);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
button.secondary { background: #fff8df; color: var(--green-dark); border: 2px solid rgba(230,191,69,.6); }

.error {
  background: #fff1f0;
  color: #8a2b26;
  border: 2px solid rgba(138,43,38,.22);
  border-radius: 18px;
  padding: 16px;
  margin-top: 20px;
  font-weight: 900;
}

.thanks { padding: clamp(30px, 5vw, 54px); text-align: center; }
.big-icon { font-size: 78px; color: var(--gold); line-height: 1; }

.admin-layout { padding-top: 20px; }
.admin-header { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:18px; }
.table-wrap { overflow:auto; border-radius:18px; border:1px solid var(--line); background:#fff; }
table { border-collapse: collapse; width: 100%; min-width: 1180px; font-size: 16px; color: #12302c; }
th, td { text-align:left; vertical-align:top; padding: 13px 14px; border-bottom:1px solid #e4ddc8; }
th { background: var(--green-dark); color:#fff8df; position: sticky; top: 0; }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; margin: 18px 0; }
.toolbar input { max-width: 360px; }
.status { font-weight:900; color: var(--gold-soft); }

@media (max-width: 640px) {
  html { font-size: 17px; }
  .page-shell { width: min(100% - 18px, 1040px); padding-top: 10px; }
  .hero, .form-card { border-radius: 20px; }
  .choice-grid, .checkbox-grid, .field-grid { grid-template-columns: 1fr; }
  .button-row { position: sticky; bottom: 8px; background: rgba(9,35,31,.84); padding: 10px; border-radius: 999px; backdrop-filter: blur(10px); }
  button { padding: 15px 20px; }
}

/* Update: logo area, share link and more compact checkbox groups */
.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  width: 100%;
}
.hero-logo {
  width: min(620px, 78vw);
  max-height: 300px;
  object-fit: contain;
  background: rgba(255, 248, 223, .08);
  border: 2px solid rgba(230,191,69,.34);
  border-radius: 24px;
  padding: 16px;
  display: block;
}
.reassurance {
  display: inline-block;
  background: rgba(230,191,69,.18);
  border: 2px solid rgba(230,191,69,.50);
  color: var(--ink-strong);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
}
.checkbox-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.checkbox-grid.compact label {
  min-height: 60px;
  padding: 14px 16px;
}
.share-box {
  margin: 24px auto;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: rgba(255,248,223,.09);
  border: 2px solid rgba(230,191,69,.42);
  border-radius: 18px;
  padding: 14px;
}
#shareLink {
  word-break: break-all;
  font-weight: 900;
  color: var(--ink-strong);
}
@media (max-width: 640px) {
  .hero-logo { width: min(92vw, 360px); max-height: 190px; padding: 12px; }
  .share-box { align-items: stretch; }
  .share-box button { width: 100%; }
}


/* Mobile/title-screen polish: keep landing view on logo/title, remove logo box, remove decorative star */
.hero { text-align: center; }
.hero:after { content: none !important; display: none !important; }
.hero-logo-wrap { justify-content: center; margin-bottom: 28px; }
.hero-logo {
  width: min(744px, 94vw);
  max-height: 360px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto;
  box-shadow: none !important;
}
.scroll-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 2px solid rgba(230,191,69,.72);
  background: rgba(230,191,69,.18);
  color: var(--ink-strong);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.scroll-prompt:hover { background: rgba(230,191,69,.28); transform: translateY(-1px); }

@media (max-width: 640px) {
  .hero {
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 34px;
  }
  .hero-logo {
    width: min(96vw, 432px);
    max-height: 228px;
  }
  .hero h1 { font-size: clamp(2.45rem, 12.5vw, 4.2rem); }
  .scroll-prompt { width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
}


/* Update: make subtitle plain text and strengthen multi-select guidance */
.badge {
  display: block;
  background: transparent !important;
  color: var(--gold-soft) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .025em;
  margin: 6px auto 22px;
  text-align: center;
}
.tick-instruction {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(230,191,69,.22);
  border: 2px solid rgba(230,191,69,.72);
  color: var(--ink-strong);
  font-size: 1.34rem;
  line-height: 1.25;
  font-weight: 900;
}
.tick-instruction strong {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .badge { font-size: 1.32rem; margin-bottom: 20px; }
  .tick-instruction { font-size: 1.22rem; display: block; }
}


/* Update: multi-select guidance as clear text only, no button/outline styling */
.tick-instruction {
  display: block !important;
  margin: 10px 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--gold-soft) !important;
  font-size: 1.42rem !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}
.tick-instruction strong {
  color: var(--gold-soft) !important;
  text-transform: uppercase;
  letter-spacing: .025em;
}
@media (max-width: 640px) {
  .tick-instruction { font-size: 1.28rem !important; }
}

/* Final questionnaire polish: plain guidance, privacy note and admin priority follow-up */
.helper-note {
  margin: 4px 0 18px;
  color: var(--ink-strong);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 850;
  background: rgba(255,248,223,.08);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
}
.privacy-note {
  background: rgba(219,238,242,.13);
  border: 2px solid rgba(219,238,242,.28);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--ink-strong);
  font-weight: 800;
}
.contact-ok {
  margin-top: 18px;
  background: rgba(230,191,69,.16);
  border-color: rgba(230,191,69,.50);
  font-size: 1.14rem;
}
.legend-note {
  display: block;
  color: var(--gold-soft);
  font-size: .95rem;
  margin-top: 4px;
}
.priority-select {
  min-width: 170px;
  border: 2px solid #cbbf9a;
  background: #fffef6;
  color: #12302c;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-weight: 800;
}
.priority-select:disabled { opacity: .55; }
