:root {
  --blue-deep: #04203f;
  --blue: #0c5ca8;
  --blue-bright: #1c7fd6;
  --blue-pale: #eaf3fb;
  --gold: #d99a2b;
  --paper: #f7f9fc;
  --ink: #10182b;
  --ink-soft: #4c5670;
  --line: #d8e1ee;
  --error: #b3261e;
  --radius: 14px;
  --font-display: "Kanit", "Anuphan", sans-serif;
  --font-body: "Anuphan", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.pitch-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--blue-deep);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 62%, var(--blue-bright) 100%);
  padding: 2.4rem 1.25rem 3.2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero__logo {
  display: block;
  margin: 0 auto 1.4rem;
  height: 34px;
  width: auto;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.hero__logo-fallback {
  display: inline-block;
  margin: 0 auto 1.4rem;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
}

.hero__partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 1.6rem;
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
}

.hero__title-shop, .hero__title-get {
  display: block;
  color: #fff;
}

.hero__title-get {
  color: var(--gold);
}

.hero__subtitle {
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.1rem 0 0.35rem;
}

.hero__dates {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- LAYOUT ---------- */

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---------- TIER CARDS ---------- */

.tiers {
  display: grid;
  gap: 0.9rem;
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}

.tier-card {
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 18px 30px -18px rgba(4,32,63,0.55);
}

.tier-card__label {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 0.7rem;
}

.tier-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.tier-card__amount {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}

.tier-card__gift {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.4;
}

/* ---------- RULES ---------- */

.rules {
  margin-top: 1.4rem;
}

.rules__toggle {
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.rules__chevron { transition: transform 0.2s ease; color: var(--blue); }
.rules__toggle[aria-expanded="true"] .rules__chevron { transform: rotate(180deg); }

.rules__body {
  padding: 1rem 0.2rem 0.2rem 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.rules__body li { margin-bottom: 0.5rem; }

/* ---------- FORM ---------- */

.form { margin-top: 2.2rem; }

.form-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  margin-bottom: 1.1rem;
}

.form-section__eyebrow {
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1.3rem;
  color: var(--blue-deep);
}

.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }

.field > label, .field--choice legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field--choice legend a {
  color: var(--blue);
}

.field__hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.req { color: var(--error); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--blue-pale);
  color: var(--ink);
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12,92,168,0.15);
}

.field--other { margin-top: 0.6rem; }
.field--other-inline { margin-top: 0.5rem; margin-left: 1.7rem; width: calc(100% - 1.7rem); }

.field--choice { border: none; padding: 0; margin: 0 0 1.3rem; }
.field--choice.field--wrap { display: block; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.choice input { width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.choice--other { flex-wrap: wrap; }

.field__error {
  color: var(--error);
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
  min-height: 0;
}

/* ---------- SUBMIT ---------- */

.form-submit { text-align: center; margin-top: 0.4rem; }

.btn-submit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2.6rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-submit:hover { background: var(--blue-deep); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-submit__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-submit__note {
  margin-top: 0.9rem;
  color: var(--error);
  font-size: 0.86rem;
  min-height: 0;
}

/* ---------- DONE SCREEN ---------- */

.done {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 1.5rem;
  margin-top: 2.2rem;
}

.done__badge {
  width: 56px; height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.done h2 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin: 0 0 0.6rem;
}

.done p {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 0.6rem;
}

.done__ref {
  font-weight: 700;
  color: var(--ink);
  margin-top: 1rem !important;
}

.btn-secondary {
  margin-top: 1.4rem;
  background: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */

.footer {
  margin-top: 2.2rem;
  text-align: center;
}

.footer__logo {
  height: 22px;
  width: auto;
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.footer p {
  font-size: 0.72rem;
  color: rgba(16,24,43,0.5);
  line-height: 1.6;
}

.footer a {
  color: var(--blue);
}

@media (max-width: 400px) {
  .tier-card__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- BROCHURE ---------- */

.brochure {
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}

.brochure__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--blue-deep);
  position: relative;
  box-shadow: 0 18px 34px -18px rgba(4,32,63,0.6);
}

.brochure__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  object-position: top center;
}

.brochure__badge {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  background: rgba(4,32,63,0.82);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin: 1.6rem 0 0.9rem;
  text-align: center;
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2,14,28,0.94);
  display: flex;
}

.lightbox__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3.4rem 0.6rem 1.4rem;
}

.lightbox__scroll img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.lightbox__close {
  position: fixed;
  top: 0.7rem;
  right: 0.9rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(4,32,63,0.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- WIZARD ---------- */

.form-submit--split {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}
.form-submit--split .btn-submit { flex: 1; justify-content: center; }
.form-submit--split .btn-secondary { margin-top: 0; }

#purchaseDate { cursor: pointer; }
