/* ============================================================
   REGISTER.CSS — register.html only
   Layout · Steps · Chips · Day buttons · Summary · Success
   ============================================================ */

/* ── Page layout ─────────────────────────────────────────────── */
html, body { height: 100%; }
body { display: flex; flex-direction: column; background: #fff; }

.page { display: flex; min-height: 100vh; }

/* ── Left panel (desktop only) ───────────────────────────────── */
.left {
  width: 340px; flex-shrink: 0;
  background: var(--navy);
  padding: 44px 36px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.left-logo {
  font-family: var(--font-d); font-size: 17px; font-weight: 700;
  color: var(--offwhite); letter-spacing: -0.3px;
  display: block; margin-bottom: 36px;
}
.left-logo span { color: var(--gold); }

/* Today badge */
.left-badge {
  background: rgba(200,150,44,0.1); border: 1px solid rgba(200,150,44,0.22);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 28px;
}
.left-badge-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.left-badge-text  { font-size: 13px; color: var(--offwhite); line-height: 1.55; }

/* Benefits */
.left-benefits { flex: 1; }
.left-ben {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px;
  opacity: 1; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.left-ben-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(200,150,44,0.1); border: 1px solid rgba(200,150,44,0.18);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.left-ben-icon svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.left-ben-title { font-size: 13px; font-weight: 700; color: var(--offwhite); margin-bottom: 2px; }
.left-ben-body  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Step-specific benefit blocks (hidden by default, shown via JS) */
.step-context { display: none; }
.step-context.active { display: block; }
.step-context-text { font-size: 14px; color: var(--muted); line-height: 1.65; padding: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--bd-dark); border-radius: 8px; }
.step-context-text strong { color: var(--offwhite); display: block; margin-bottom: 6px; font-size: 15px; }

.left-footer { font-size: 11px; color: #2e4060; line-height: 1.6; margin-top: auto; padding-top: 20px; }
.left-glow {
  position: absolute; bottom: -80px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(200,150,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Right panel ─────────────────────────────────────────────── */
.right { flex: 1; display: flex; flex-direction: column; }

.right-inner {
  padding: 40px 44px 28px;
  max-width: 560px; width: 100%;
}

/* ── Form header ─────────────────────────────────────────────── */
.form-title {
  font-family: var(--font-d); font-size: 26px; font-weight: 700;
  color: var(--dark); letter-spacing: -0.5px; margin-bottom: 4px;
}
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.form-sub span { color: var(--gold); font-weight: 600; }

/* ── Progress dots ────────────────────────────────────────────── */
.prog-track { display: flex; gap: 5px; margin-bottom: 32px; }
.prog-dot {
  height: 3px; flex: 1; border-radius: 2px;
  background: #e8e4de; position: relative; overflow: hidden;
}
.prog-dot.done::after, .prog-dot.active::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
}
.prog-dot.active::after {
  animation: progFill 0.4s var(--ease) forwards;
}
@keyframes progFill { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }

/* ── Steps ───────────────────────────────────────────────────── */
.steps-wrap { position: relative; overflow: hidden; }
.step {
  display: none; opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.step.active { display: block; opacity: 1; transform: translateX(0); }

/* Step title word-reveal */
.step-title {
  font-family: var(--font-d); font-size: 19px; font-weight: 700;
  color: var(--dark); margin-bottom: 18px; min-height: 26px;
}
.step-title .word {
  display: inline-block;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.step-title .word.show { opacity: 1; transform: translateY(0); }

/* ── Field elements ──────────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field-row.full { grid-template-columns: 1fr; }
.field-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #6b7a8d; margin-bottom: 6px;
}
.field-input, .field-select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid #e4e0d8; border-radius: var(--r);
  font-family: var(--font-b); font-size: 15px; color: var(--dark);
  background: #fff; outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field-input:focus, .field-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,44,0.1);
}
.field-input::placeholder { color: #b8b0a4; }
.field-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.field-hint { font-size: 12px; color: #9a9080; margin-top: -8px; margin-bottom: 14px; line-height: 1.5; }
.upgrade-note { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: -10px; margin-bottom: 14px; }

/* ── Chips ───────────────────────────────────────────────────── */
.chips-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #6b7a8d; margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  padding: 8px 14px; min-height: 36px;
  border: 1.5px solid #e4e0d8; border-radius: var(--r);
  font-family: var(--font-b); font-size: 13px; font-weight: 500; color: #5a6a7a;
  background: #fff; cursor: pointer; user-select: none;
  display: flex; align-items: center;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease),
              background 0.16s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.12s var(--ease);
}
.chip:hover { border-color: rgba(200,150,44,0.5); color: var(--dark); }
.chip:active { transform: scale(0.95); box-shadow: inset 2px 2px 5px rgba(0,0,0,0.08); }
.chip.selected {
  border-color: var(--gold); background: rgba(200,150,44,0.09);
  color: var(--dark); font-weight: 700;
  transform: scale(0.97);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.06);
}

.loc-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #a0a8b0; margin: 8px 0 5px;
}

/* ── Day buttons ─────────────────────────────────────────────── */
.days-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-bottom: 20px; }
.day-btn {
  padding: 8px 4px; min-height: 46px;
  border: 1.5px solid #e4e0d8; border-radius: var(--r);
  font-family: var(--font-b); font-size: 12px; font-weight: 600; color: #5a6a7a;
  background: #fff; cursor: pointer; user-select: none; text-align: center;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.16s var(--ease);
}
.day-btn:hover { border-color: rgba(200,150,44,0.5); color: var(--dark); }
.day-btn:active { transform: translateY(2px); box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1); }
.day-btn.selected {
  border-color: var(--gold); background: var(--gold);
  color: var(--navy); font-weight: 800;
  transform: translateY(2px);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.12);
}

/* ── Summary card ────────────────────────────────────────────── */
.summary-card {
  background: var(--ivory); border: 1px solid #e0dcd4;
  border-radius: 10px; padding: 20px; margin-bottom: 22px;
}
.summary-card-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8a9aaa; margin-bottom: 12px;
}
.sum-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.sum-key { font-size: 12px; color: #8a9aaa; font-weight: 500; min-width: 72px; flex-shrink: 0; }
.sum-val { font-size: 13px; color: var(--dark); font-weight: 600; line-height: 1.5; }

/* ── Referral ────────────────────────────────────────────────── */
.referral-row { margin-bottom: 20px; }

/* ── Error ───────────────────────────────────────────────────── */
.err { font-size: 12px; color: #c0392b; margin-top: 4px; margin-bottom: 8px; display: none; }
.err.show { display: block; }

/* ── Button row ──────────────────────────────────────────────── */
.btn-row { display: flex; gap: 10px; margin-top: 6px; align-items: stretch; }
.btn-next {
  flex: 1; height: 44px;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-b); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r); border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-next::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 3.5s ease infinite;
}
.btn-next:hover:not(:disabled) { background: var(--amber); transform: translateY(-1px); box-shadow: 0 0 16px rgba(200,150,44,0.28); }
.btn-next:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-back {
  background: transparent; color: #6b7a8d;
  font-family: var(--font-b); font-size: 13px; font-weight: 600;
  border: 1.5px solid #e4e0d8; border-radius: var(--r);
  padding: 0 20px; height: 44px; white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-back:hover:not(:disabled) { border-color: #b0aaa0; color: var(--dark); }
.btn-back:disabled { opacity: 0.3; pointer-events: none; }

/* ── Trust strip ─────────────────────────────────────────────── */
.trust-row {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 16px 44px; border-top: 1px solid #f0ece4;
}
.trust-item { display: flex; gap: 7px; align-items: center; font-size: 12px; color: #9a9080; font-weight: 500; }
.trust-item svg { width: 14px; height: 14px; stroke: #c0b8b0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Success screen ──────────────────────────────────────────── */
.success {
  display: none; text-align: center;
  padding: 52px 24px; max-width: 460px; margin: 0 auto;
  flex: 1; flex-direction: column; align-items: center; justify-content: center;
}
.success.show { display: flex; }
.success-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(200,150,44,0.1); border: 2px solid rgba(200,150,44,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  animation: popIn 0.55s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
@keyframes popIn { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-title { font-family: var(--font-d); font-size: 28px; font-weight: 700; color: var(--dark); letter-spacing: -0.5px; margin-bottom: 10px; }
.success-sub { font-size: 16px; color: #5a6a7a; line-height: 1.7; margin-bottom: 20px; }
.success-day { font-weight: 800; color: var(--gold); }
.success-spam { font-size: 13px; color: #8a9aaa; background: var(--ivory); border-radius: 8px; padding: 14px; line-height: 1.65; margin-bottom: 20px; text-align: left; }
.success-tg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--offwhite);
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  border-radius: var(--r); padding: 13px 24px;
  transition: background 0.2s var(--ease);
}
.success-tg:hover { background: var(--slate); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .left { display: none; }

  .right-inner {
    padding: 20px 18px 24px;
    max-width: 100%;
  }

  .form-title { font-size: 20px; margin-bottom: 2px; }
  .form-sub   { margin-bottom: 14px; }
  .prog-track { margin-bottom: 20px; }

  .step-title { font-size: 16px; margin-bottom: 14px; }

  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .field-input, .field-select { height: 46px; font-size: 14px; }

  .chip { font-size: 12px; padding: 7px 11px; min-height: 34px; }

  .days-grid { gap: 4px; }
  .day-btn { font-size: 11px; padding: 6px 2px; min-height: 42px; }

  .summary-card { padding: 16px; }
  .sum-key { min-width: 66px; }

  .btn-row { flex-direction: column-reverse; gap: 8px; }
  .btn-back { width: 100%; text-align: center; height: 44px; }
  .btn-next { height: 44px; }

  .trust-row { padding: 14px 18px; gap: 14px; }
  .success { padding: 40px 18px; }
}
