:root {
  --ink: #151515;
  --paper: #fffef9;
  --paper-shadow: #d4c9b4;
  --yellow: #ffda69;
  --yellow-deep: #f5bd2b;
  --teal: #189b99;
  --teal-dark: #0d6f70;
  --teal-wash: #dff3ef;
  --coral: #f26f5f;
  --muted: #605f59;
  --line: #c9c5ba;
  --error: #a83232;
  --success: #18754d;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(72, 56, 26, 0.15), 0 4px 12px rgba(72, 56, 26, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #dff1ee;
  color: var(--ink);
  font-family: "Nunito Sans", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  background-color: var(--paper);
  background-image: url("/assets/paper-texture.png");
  background-size: 512px 512px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 470px;
  padding: max(20px, env(safe-area-inset-top)) 22px 88px;
  background-color: var(--yellow);
  background-image: url("/assets/paper-texture.png");
  background-size: 512px 512px;
  background-blend-mode: multiply;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -72px;
  width: 122%;
  height: 150px;
  background: var(--paper);
  transform: rotate(-7deg);
  transform-origin: center;
  box-shadow: 0 -8px 20px rgba(88, 65, 18, 0.08);
}

.hero__topline,
.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  width: 132px;
  height: 130px;
  flex: 0 0 auto;
  background-image: url("/assets/event-flyer.jpeg");
  background-repeat: no-repeat;
  background-size: 756px 967px;
  background-position: -28px -27px;
  border-radius: 50% 50% 42% 42%;
}

.language-switch {
  display: inline-flex;
  margin-top: 2px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.8);
}

.language-switch__button {
  min-width: 44px;
  min-height: 38px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.language-switch__button.is-active {
  background: var(--ink);
  color: white;
}

.language-switch__button:focus-visible,
.submit-button:focus-visible,
input:focus-visible,
summary:focus-visible,
.choice-chip:has(input:focus-visible),
.tag-choice:has(input:focus-visible),
.consent-row:has(input:focus-visible) {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal-dark);
}

.hero__copy {
  margin-top: 12px;
  max-width: 620px;
}

.hero h1 {
  max-width: 600px;
  margin: 0;
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: clamp(2.5rem, 10vw, 4.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 540px;
  margin: 16px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}

.hero__time,
.hero__response {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero__time {
  background: var(--paper);
}

.hero__time svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero__response {
  border: 1.5px dashed var(--ink);
}

.hero__confetti {
  position: absolute;
  z-index: 1;
  width: 125px;
  height: 125px;
  border-radius: 38% 62% 66% 34% / 45% 34% 66% 55%;
  opacity: 0.78;
}

.hero__confetti--teal {
  top: -62px;
  left: -66px;
  background: var(--teal);
  transform: rotate(28deg);
}

.hero__confetti--coral {
  right: -74px;
  bottom: 76px;
  background: var(--coral);
  transform: rotate(-18deg);
}

.form-sheet {
  position: relative;
  z-index: 3;
  margin-top: -74px;
  padding: 0 18px 32px;
  background-color: var(--paper);
  background-image: url("/assets/paper-texture.png");
  background-size: 512px 512px;
}

.form-sheet__fold {
  position: absolute;
  top: 0;
  right: 18px;
  width: 74px;
  height: 50px;
  background: linear-gradient(150deg, #e9e3d8 0 48%, transparent 49%);
  opacity: 0.8;
  pointer-events: none;
}

.form-section {
  position: relative;
  padding: 34px 2px 10px;
}

.form-section + .form-section {
  margin-top: 18px;
  border-top: 2px dashed #ddd3c1;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading__mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 1.65rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  margin-top: 18px;
}

.field label,
.development-fieldset legend {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1.5px solid #817e76;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder {
  color: #77736b;
}

input[aria-invalid="true"] {
  border-color: var(--error);
  background: #fff7f5;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.phone-field__prefix {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 62px;
  padding: 0 10px;
  border: 1.5px solid #817e76;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #f2eee5;
  font-weight: 800;
}

.phone-field input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 12px;
}

.field-help,
.field-error {
  margin: 6px 0 0;
  font-size: 0.84rem;
}

.field-help {
  color: var(--muted);
}

.field-error {
  min-height: 0;
  color: var(--error);
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.recommendation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 2px solid var(--yellow-deep);
  border-radius: var(--radius);
  background: #fff7d8;
  box-shadow: 0 7px 14px rgba(96, 70, 7, 0.08);
}

.recommendation__icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recommendation__label {
  display: block;
  color: #65500b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommendation strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.recommendation p {
  margin: 3px 0 0;
  color: #4f4937;
  font-size: 0.9rem;
}

.choice-grid,
.development-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-chip,
.tag-choice,
.consent-row {
  cursor: pointer;
}

.choice-chip {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.choice-chip:has(input:checked) {
  border-color: var(--teal-dark);
  background: var(--teal-wash);
}

.choice-chip input,
.consent-row input,
.tag-choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal-dark);
}

.choice-chip strong,
.choice-chip small {
  display: block;
}

.choice-chip strong {
  font-size: 0.98rem;
}

.choice-chip small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.25;
}

.development-fieldset {
  margin-top: 30px;
}

.development-fieldset legend {
  padding: 0;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-choice {
  position: relative;
}

.tag-choice input {
  position: absolute;
  opacity: 0;
}

.tag-choice span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border: 1.5px dashed #827f78;
  border-radius: 12px;
  background: white;
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-choice:has(input:checked) span {
  border-style: solid;
  border-color: var(--teal-dark);
  background: var(--teal-wash);
  color: #064e4f;
}

.tag-choice:has(input:disabled) {
  opacity: 0.45;
}

.preferred-time {
  margin-top: 28px;
}

.form-section--consent {
  padding-bottom: 0;
}

.consent-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1.5px solid #c8c4bb;
  border-radius: var(--radius);
  background: white;
  font-size: 0.92rem;
}

.consent-row--optional {
  margin-top: 10px;
  background: #f8f6ef;
}

.privacy-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0eee7;
  color: #373631;
}

.privacy-note summary {
  font-weight: 800;
  cursor: pointer;
}

.privacy-note p {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.submit-zone {
  position: relative;
  margin: 32px -18px -32px;
  padding: 22px 18px calc(26px + env(safe-area-inset-bottom));
  background: var(--yellow);
}

.submit-zone__note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.submit-zone__note svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--teal);
  fill: none;
  stroke: white;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  box-shadow: 0 9px 22px rgba(35, 27, 9, 0.23);
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(35, 27, 9, 0.26);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.submit-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.submit-status.is-error {
  color: var(--error);
}

.submit-status.is-success {
  color: #095535;
}

.page-footer {
  padding: 32px 22px 42px;
  background: #102f30;
  color: #e7f5f3;
  font-size: 0.88rem;
  text-align: center;
}

.page-footer a {
  color: white;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-footer p {
  max-width: 560px;
  margin: 12px auto 0;
  color: #c9e2de;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  body {
    padding: 40px 0;
  }

  .page-shell {
    border-radius: 24px;
  }

  .hero {
    min-height: 510px;
    padding: 34px 46px 110px;
  }

  .brand-logo {
    width: 132px;
    height: 130px;
    background-size: 756px 967px;
    background-position: -28px -27px;
  }

  .hero__copy {
    margin-top: 4px;
  }

  .form-sheet {
    margin-top: -92px;
    padding: 0 54px 40px;
  }

  .form-section {
    padding-top: 44px;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .submit-zone {
    margin-right: -54px;
    margin-bottom: -40px;
    margin-left: -54px;
    padding-right: 54px;
    padding-left: 54px;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 490px;
  }

  .brand-logo {
    width: 115px;
    height: 118px;
    background-size: 680px 870px;
    background-position: -25px -24px;
  }

  .language-switch__button {
    min-width: 39px;
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
