/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #F2C4D8;
  --pink-dark:  #E8A0C0;
  --pink-light: #FAE5F0;
  --black:      #1A1A1A;
  --yellow:     #FFD84D;
  --yellow-dark:#F0C430;
  --orange:     #FF7A35;
  --white:      #FFFFFF;
  --gray:       #6B6B6B;
  --radius:     20px;
  --shadow:     0 8px 32px rgba(26,26,26,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--pink);
  color: var(--black);
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 900; }
h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 700; }
p  { line-height: 1.6; }

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Card ─────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
  padding: 16px 36px;
  width: 100%;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 0 var(--yellow-dark);
}
.btn-primary:hover { box-shadow: 0 6px 0 var(--yellow-dark); transform: translateY(-2px); }

.btn-secondary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 0 #444;
}
.btn-secondary:hover { box-shadow: 0 6px 0 #444; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2.5px solid var(--black);
  box-shadow: none;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ── Form fields ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2.5px solid var(--black);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--pink-light);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,53,.2);
}

/* OTP input */
.otp-input {
  text-align: center;
  font-size: 2rem !important;
  letter-spacing: .5em;
  font-weight: 900 !important;
}

/* ── Alert / Error ────────────────────────────────────────────── */
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 18px;
}
.alert-error   { background: #FFE5E5; color: #C0392B; border: 2px solid #C0392B; }
.alert-success { background: #E5FFED; color: #1A7A3C; border: 2px solid #1A7A3C; }
.alert-info    { background: #FFF9E0; color: #7A5C00; border: 2px solid #F0C430; }

/* ── Page structure ───────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 0 48px;
}

/* ── Hero banner ──────────────────────────────────────────────── */
.hero-banner {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ── QR block ─────────────────────────────────────────────────── */
.qr-wrapper {
  background: var(--white);
  border: 4px solid var(--black);
  border-radius: 20px;
  padding: 20px;
  display: table;
  margin: 20px auto;
}
.qr-wrapper img { display: block; width: 220px; height: 220px; }

/* ── Steps ────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--black);
}
.step-text { font-size: .92rem; padding-top: 7px; }

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 2.5px dashed var(--pink-dark);
  margin: 24px 0;
}

/* ── Back link ────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--black); }

/* ── Loading spinner ──────────────────────────────────────────── */
.spinner {
  display: none;
  width: 22px; height: 22px;
  border: 3px solid rgba(26,26,26,.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Inactive promo banner ────────────────────────────────────── */
.inactive-banner {
  text-align: center;
  padding: 32px 20px;
}
.inactive-banner .emoji { font-size: 3.5rem; margin-bottom: 16px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  .qr-wrapper img { width: 180px; height: 180px; }
}
