/* Formulir pendaftaran acara Festival 365 IMMG — palet & huruf sesuai brand. */
:root {
  --brown: #4a2e22;
  --brown-soft: #6b4636;
  --gold: #c9a56a;
  --cream: #f8ede0;
  --paper: #fffaf3;
  --terracotta: #b0533f;
  --sage: #5e7a5f;
  --ink: #3a2a22;
  --muted: #7a685d;
  --line: #e6d6c2;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--cream); }
img { max-width: 100%; }

.hero {
  background: var(--brown);
  color: var(--cream);
  padding: 30px 18px 74px;
  text-align: center;
}
.hero img { width: 132px; height: auto; }
.eyebrow {
  margin: 14px 0 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); text-wrap: balance;
}
.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600; font-size: clamp(30px, 7vw, 44px); line-height: 1.12;
}
.hero p { margin: 10px auto 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: #ecdcc6; }

.wrap { max-width: 640px; margin: -50px auto 0; padding: 0 14px 48px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 26px;
}
.card + .card { margin-top: 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.fact { background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.fact small {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.fact b { display: block; margin-top: 3px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; color: var(--brown); }
.meter { height: 8px; margin-top: 14px; border-radius: 99px; background: #ecdcc6; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--gold)); }
.meter-note { margin: 7px 0 0; font-size: 13px; color: var(--muted); }

.step { display: flex; align-items: center; gap: 10px; margin: 26px 0 4px; }
.step:first-child { margin-top: 0; }
.step i {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px;
  background: var(--brown); color: var(--gold);
}
.step h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 21px; color: var(--brown); }

label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--brown-soft); }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 13px; min-height: 48px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201,165,106,.45); border-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .two { grid-template-columns: 1fr; gap: 0; } }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sub {
  margin-top: 18px; padding: 4px 16px 18px;
  background: var(--cream); border-radius: 14px; border-left: 4px solid var(--gold);
}
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }

.pay { margin-top: 14px; padding: 18px; text-align: center; background: var(--cream); border-radius: 16px; }
.pay .amount { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 32px; color: var(--terracotta); }
.pay img {
  display: block; width: min(280px, 100%); margin: 14px auto 0;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.pay p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); white-space: pre-line; }

.drop {
  display: block; margin-top: 8px; padding: 20px 14px; text-align: center; cursor: pointer;
  font-weight: 500; color: var(--muted);
  background: #fff; border: 2px dashed var(--gold); border-radius: 14px;
}
.drop b { display: block; margin-bottom: 3px; color: var(--brown); }
.drop.has { border-style: solid; border-color: var(--sage); background: #f1f6f0; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid rgba(201,165,106,.45); }

.check { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin-top: 1px; accent-color: var(--brown); }

button.send, a.send {
  width: 100%; min-height: 54px; margin-top: 22px; padding: 14px;
  font: inherit; font-weight: 600; font-size: 16px; letter-spacing: .02em;
  color: var(--cream); background: var(--brown); border: 0; border-radius: 13px; cursor: pointer;
}
button.send:hover { background: var(--brown-soft); }
button.send:disabled { opacity: .6; cursor: wait; }

.alert { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert.err { background: #fbe9e4; color: #8a2f20; }
.alert.info { background: #eef3ee; color: #36523a; }

.state { text-align: center; padding: 16px 6px 6px; }
.state h2 { margin: 0 0 8px; font-family: "Playfair Display", Georgia, serif; font-size: 25px; color: var(--brown); }
.state p { margin: 0 auto; max-width: 440px; line-height: 1.6; color: var(--muted); }
.ticket {
  margin: 20px auto 6px; max-width: 340px; padding: 18px;
  background: var(--brown); color: var(--cream); border-radius: 16px;
  border: 2px dashed var(--gold);
}
.ticket small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ticket b { display: block; margin: 6px 0 4px; font-family: "Playfair Display", Georgia, serif; font-size: 38px; letter-spacing: .04em; }
.ticket span { font-size: 14px; color: #ecdcc6; }

footer { margin-top: 22px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .45s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

.age {
  margin: 8px 0 0; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--sage); background: #eef3ee;
}
.age.minor { color: #8a4a1c; background: #fbefdf; }
.rule { margin: 14px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rule b { display: block; margin-bottom: 2px; color: var(--terracotta); }
textarea { resize: vertical; line-height: 1.5; }
.qlabel { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--brown-soft); }
.radios { display: grid; gap: 8px; }
.radio {
  display: flex; gap: 11px; align-items: center; margin: 0; padding: 12px 14px; cursor: pointer;
  font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 11px;
}
.radio input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--brown); }
.radio:has(input:checked) { border-color: var(--gold); background: #fdf6ea; }
.rules { margin-top: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.rules summary { padding: 13px 14px; cursor: pointer; font-weight: 600; color: var(--brown); }
.rules-body { padding: 0 14px 14px; font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-line; }

.guide { margin-top: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.guide summary { padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--brown); }
.guide-body { padding: 0 14px 14px; }
table.sizes { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
table.sizes th { padding: 9px 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); background: var(--brown); }
table.sizes th:first-child { border-radius: 9px 0 0 0; }
table.sizes th:last-child { border-radius: 0 9px 0 0; }
table.sizes td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.sizes td:first-child { font-weight: 700; color: var(--brown); }
table.sizes tr:nth-child(even) td { background: #fbf5ec; }
table.sizes tr.on td { background: #f3e2c4; font-weight: 700; }
.measure { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.measure .shirt { width: 120px; height: auto; }
.measure p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.measure b.a { color: var(--terracotta); }
.measure b.b { color: var(--sage); }
@media (max-width: 360px) { .measure { grid-template-columns: 1fr; } .measure .shirt { margin: 0 auto; } }

.ticket-qr{margin-top:16px;text-align:center}
.ticket-qr-art{width:220px;max-width:70vw;margin:0 auto;background:#fff;border-radius:12px;padding:6px;box-shadow:0 1px 6px rgba(74,46,34,.15)}
.ticket-qr-art svg{display:block;width:100%;height:auto}
.ticket-qr p{font-size:14px;margin:10px auto 0;max-width:320px}

/* Pilihan jenis pendaftaran Wirokerten Trace (personal / anggota / ketua komunitas). */
.card .qlabel:first-child { margin-top: 0; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  width: 100%; margin: 0; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; min-height: 0;
}
.mode b { font-size: 14px; color: var(--brown); }
.mode .mode-price { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 17px; color: var(--terracotta); }
.mode small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.mode.on { border-color: var(--gold); background: #fdf6ea; box-shadow: 0 0 0 2px rgba(201,165,106,.35); }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } .mode { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; } .mode small { flex-basis: 100%; } }
a.send { display: block; text-align: center; text-decoration: none; }
a.send.wa:hover { background: #17633e; }
.send.wa { background: #1f7a4d; margin-top: 10px; }
