/* ============================================================
   OWN THE WAY RUN — Halaman Pendaftaran
   Tema: putih polos, aksen pink (sesuai logo)
   Responsif: mobile-first, kolom terpusat maks 520px
   ============================================================ */

:root {
  --pink:       #E30B6C;
  --pink-dark:  #C0095C;
  --pink-soft:  #FDEDF4;
  --ink:        #17161A;
  --muted:      #6E6D76;
  --line:       #ECECF1;
  --card:       #FAFAFC;
  --green:      #12A150;
  --green-soft: #E9F8EF;
  --radius:     16px;
  --shadow:     0 10px 30px rgba(23, 22, 26, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: #FFFFFF;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Kolom aplikasi terpusat (seperti tampilan mobile di referensi) */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #FFFFFF;
  position: relative;
}

@media (min-width: 600px) {
  .app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------- Navbar (ala Goers) ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .back {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: background .15s ease;
}
.topbar .back:hover { background: var(--card); }
.topbar .back svg { width: 18px; height: 18px; }

/* Brand: logo G + GOERS */
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-right: auto;
}
.brand img { height: 25px; width: auto; }
.brand .brand-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #17161A;
}

/* Pill tombol navbar */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F5F5F7;
  border: none;
  border-radius: 999px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .15s ease;
}
.pill:hover { background: #EFEFF2; }
.pill svg { width: 14px; height: 14px; }

/* Bendera Indonesia + chevron */
.flag {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #E0393E 50%, #FFFFFF 50%);
  border: 1px solid #E7E7EC;
  flex: 0 0 21px;
}

/* Badge NEW di tombol Jelajahi */
.new-badge {
  position: absolute;
  top: -9px;
  right: -4px;
  background: #A21CAF;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .6px;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(162, 28, 175, .35);
}

/* Tombol avatar user */
.avatar-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #55545C;
  cursor: pointer;
  transition: background .15s ease;
}
.avatar-btn:hover { background: var(--card); }
.avatar-btn svg { width: 19px; height: 19px; }

/* Navbar versi ringkas di layar kecil (muat walau ada tombol back) */
@media (max-width: 430px) {
  .topbar { gap: 7px; padding: 10px 12px; }
  .brand img { height: 22px; }
  .brand .brand-name { font-size: 14.5px; letter-spacing: 2.5px; }
  .pill { padding: 9px 11px; font-size: 12.5px; gap: 5px; }
  .flag { width: 19px; height: 19px; flex-basis: 19px; }
  .avatar-btn { width: 36px; height: 36px; flex-basis: 36px; }
  .topbar .back { width: 34px; height: 34px; flex-basis: 34px; }
}

/* ---------------- Stepper ---------------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.step .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.step.active { color: var(--pink); font-weight: 600; }
.step.active .dot {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.step.done .dot {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}
.step-line { width: 26px; height: 1.5px; background: var(--line); }
@media (max-width: 380px) { .step span.lbl { display: none; } }

/* ---------------- Konten ---------------- */
.content { padding: 18px 18px 120px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 12px;
}
.section-title:first-child { margin-top: 4px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------------- Landing ---------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #101010;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

.landing-body { padding: 20px 18px 120px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--pink);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

.event-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 14px;
}

.organizer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
}
.organizer .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.organizer .avatar-img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.organizer .org-label { font-size: 11.5px; color: var(--muted); }
.organizer .org-name { font-size: 14px; font-weight: 600; }
.organizer .verified {
  margin-left: auto;
  color: var(--pink);
  display: grid;
  place-items: center;
}

.info-list { display: grid; gap: 10px; margin-bottom: 14px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.info-item .ic {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--pink);
  display: grid;
  place-items: center;
}
.info-item .ic svg { width: 18px; height: 18px; }
.info-item .t1 { font-size: 13.5px; font-weight: 600; }
.info-item .t2 { font-size: 12.5px; color: var(--muted); }

.desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.kategori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.kat-card .kat-name { font-weight: 700; font-size: 16px; }
.kat-card .kat-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kat-card .kat-price { font-size: 14.5px; font-weight: 700; color: var(--pink); }
.kat-card .kat-price small { font-size: 11px; font-weight: 500; color: var(--muted); display: block; }

/* ---------------- Form ---------------- */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field > label .req { color: var(--pink); }

.input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #B4B3BC; }
.input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
.input.err { border-color: #E11D48; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  transition: all .15s ease;
  user-select: none;
}
.chip:hover { border-color: #D9D9E0; }

input[type="radio"], input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }

.chip input:checked + span,
.chip:has(input:checked) {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: var(--pink-dark);
  font-weight: 600;
}

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all .15s ease;
  background: #fff;
}
.radio-card:hover { border-color: #D9D9E0; }
.radio-card:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(227, 11, 108, .08);
}
.radio-card .rc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.radio-card .rc-name { font-weight: 700; font-size: 16px; }
.radio-card .rc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 11px;
  transition: all .15s ease;
}
.radio-card:has(input:checked) .rc-check {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.radio-card .rc-sub { font-size: 12px; color: var(--muted); }
.radio-card .rc-price { margin-top: 10px; font-weight: 700; color: var(--pink); font-size: 15px; }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.agree .box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 11px;
  margin-top: 1px;
  transition: all .15s ease;
}
.agree:has(input:checked) .box {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.agree a { color: var(--pink); font-weight: 500; }

.field-error {
  display: none;
  font-size: 12px;
  color: #E11D48;
  margin-top: 6px;
}
.field-error.show { display: block; }

/* ---------------- Pembayaran QRIS ---------------- */
.qris-wrap {
  display: grid;
  place-items: center;
  padding: 18px 0 6px;
}
.qris-img {
  width: min(100%, 340px);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 13.5px;
}
.timer.warn { background: #FEF2F2; color: #E11D48; }

.howto { counter-reset: step; display: grid; gap: 12px; }
.howto-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
}
.howto-item::before {
  counter-increment: step;
  content: counter(step);
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  padding: 7px 0;
}
.order-line .k { color: var(--muted); flex: 0 0 auto; }
.order-line .v { font-weight: 600; text-align: right; }
.order-total {
  border-top: 1.5px dashed var(--line);
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-total .k { font-size: 13.5px; color: var(--muted); }
.order-total .v { font-size: 18px; font-weight: 700; color: var(--pink); }

.badge-qris {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 10px;
}
.badge-qris .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

/* ---------------- Sukses ---------------- */
.success-hero { text-align: center; padding: 46px 0 10px; }
.check-big {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.check-big svg { width: 44px; height: 44px; color: var(--green); }
@keyframes pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-hero h2 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.success-hero p { font-size: 13.5px; color: var(--muted); }

.reg-number {
  text-align: center;
  margin: 18px 0;
  padding: 14px;
  border: 1.5px dashed var(--pink);
  border-radius: 14px;
  background: var(--pink-soft);
}
.reg-number .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.reg-number .num { font-size: 19px; font-weight: 700; letter-spacing: 1px; color: var(--pink-dark); }

.status-lunas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------------- Bar bawah (sticky CTA) ---------------- */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.cta-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
}
.cta-price .lbl { font-size: 11px; color: var(--muted); }
.cta-price .val { font-size: 17px; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 13px;
  padding: 14px 22px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--pink-dark); }
.btn:active { transform: scale(.985); }
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { background: var(--card); }
.btn.green { background: var(--green); }
.btn.green:hover { background: #0E8A43; }

/* ---------------- Footer ---------------- */
.footer {
  text-align: center;
  font-size: 11.5px;
  color: #B4B3BC;
  padding: 0 18px 28px;
}
.footer img { height: 20px; width: auto; margin: 0 auto 8px; opacity: .85; }

/* Util */
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
