/* ============================================================
   Songle Gift — 8-step quiz (Georgian)
   Layout mirrors the ForeverSongs quiz screens.
   ============================================================ */

:root {
  --blue:      #027ab8;
  --blue-dark: #01669a;
  --navy:      #1d3a5f;
  --ink:       #16304f;
  --body:      #4a5a6a;
  --muted:     #7b8894;
  --bg:        #eef5fc;
  --line:      #d6e2ee;
  --disabled:  #cfd4d9;
  --disabled-ink: #7d848b;

  --wrap: 430px;
  --pad: 20px;

  --serif: 'Noto Serif Georgian', Georgia, serif;
  --sans: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ── Top bar ──────────────────────────────────────────────── */
.topbar { padding: 18px 0 0; }

.back-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
  color: var(--blue); padding: 4px 0;
}

.meter { margin: 18px 0 0; }
.meter-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 9px;
}
.meter-step { font-size: 0.9rem; color: var(--ink); }
.meter-pct { font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.meter-track { height: 8px; border-radius: 99px; background: #e4e4e6; overflow: hidden; }
.meter-fill {
  height: 100%; width: 13%; border-radius: 99px;
  background: var(--blue); transition: width 0.32s cubic-bezier(.4,0,.2,1);
}

/* ── Screens ──────────────────────────────────────────────── */
.screen { display: none; padding: 26px 0 40px; }
.screen.active { display: block; animation: fade 0.22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.screen h1 {
  font-family: var(--serif);
  font-size: 1.95rem; font-weight: 700; line-height: 1.25;
  color: var(--navy); text-align: center; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.screen .sub { text-align: center; font-size: 1.02rem; color: var(--body); }
.screen .note {
  text-align: center; font-style: italic; font-size: 0.95rem;
  color: var(--ink); margin-top: 10px;
}

/* ── Chips ────────────────────────────────────────────────── */
.chips {
  display: flex; flex-wrap: wrap; gap: 11px;
  justify-content: center; margin-top: 26px;
}
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 12px 18px; font-family: var(--sans); font-size: 0.94rem;
  color: var(--navy); cursor: pointer; line-height: 1.2;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.chip:active { transform: scale(0.97); }
.chip.selected {
  border-color: var(--blue); background: rgba(2, 122, 184, 0.08);
  font-weight: 600; box-shadow: inset 0 0 0 1px var(--blue);
}

.group-label {
  text-align: center; font-size: 1.06rem; font-weight: 600;
  color: var(--navy); margin-top: 30px;
}

/* ── Fields ───────────────────────────────────────────────── */
.field { margin-top: 26px; }
.field-label {
  display: block; font-size: 1.02rem; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}

.input, .textarea {
  width: 100%; background: #fff;
  border: 2px solid var(--blue); border-radius: 14px;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  padding: 17px 18px; outline: none;
}
.textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #9aa7b3; }
.input.idle, .textarea.idle { border-color: var(--line); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 700; text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-continue {
  width: 100%; background: var(--blue); color: #fff;
  padding: 19px 24px; font-size: 1.12rem; margin-top: 30px;
  box-shadow: 0 8px 22px rgba(2, 122, 184, 0.28);
}
.btn-continue[hidden] { display: none; }

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 26px;
}
.btn-back-round {
  background: #fff; color: var(--blue);
  border: 2px solid var(--blue); padding: 14px 26px; font-size: 1.02rem;
}
.btn-next {
  background: var(--blue); color: #fff;
  padding: 15px 30px; font-size: 1.02rem;
  box-shadow: 0 6px 18px rgba(2, 122, 184, 0.28);
}
.btn-next:disabled {
  background: var(--disabled); color: var(--disabled-ink);
  box-shadow: none; cursor: not-allowed;
}

/* ── Step 8: contact ──────────────────────────────────────── */
.price-anchor {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; margin-top: 22px;
  font-size: 1rem; color: var(--navy);
}
.price-anchor strong { color: var(--blue); font-size: 1.1rem; }

.form-card {
  background: #fff; border-radius: 20px; padding: 22px 20px;
  margin-top: 16px; box-shadow: 0 4px 18px rgba(29, 58, 95, 0.07);
}
.form-title {
  text-align: center; font-size: 1rem; font-weight: 600;
  color: var(--navy); margin-bottom: 18px;
}
.form-card .field:first-of-type { margin-top: 0; }

.btn-submit {
  width: 100%; background: var(--blue); color: #fff;
  padding: 19px 24px; font-size: 1.08rem; margin-top: 26px;
  box-shadow: 0 8px 22px rgba(2, 122, 184, 0.30);
}
.btn-submit:disabled { background: var(--disabled); color: var(--disabled-ink); box-shadow: none; }
@keyframes blink { 0%,100% { box-shadow: 0 8px 22px rgba(2,122,184,0.30); } 50% { box-shadow: 0 8px 30px rgba(2,122,184,0.60); } }
.btn-submit:not(:disabled) { animation: blink 1.8s ease-in-out infinite; }

.err { color: #c0392b; font-size: 0.88rem; margin-top: 8px; min-height: 1.2em; }

/* ── Urgency ──────────────────────────────────────────────── */
.urgency {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin-top: 20px;
}
.urgency-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; margin-bottom: 9px;
}
.urgency-live { display: inline-flex; align-items: center; gap: 7px; color: #c0392b; font-weight: 600; }
.urgency-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #c0392b;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.urgency-left { color: var(--navy); font-weight: 600; }
.urgency p { font-size: 0.88rem; color: var(--body); line-height: 1.5; }
.urgency-track { height: 6px; border-radius: 99px; background: #eceff2; margin: 11px 0 8px; overflow: hidden; }
.urgency-track i { display: block; height: 100%; width: 62.5%; background: #c0392b; border-radius: 99px; }
.urgency-note { font-size: 0.8rem; color: var(--muted); }

/* ── Sending overlay ──────────────────────────────────────── */
.sending {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(238, 245, 252, 0.97);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 30px;
}
.sending.show { display: flex; }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(2, 122, 184, 0.2); border-top-color: var(--blue);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sending h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.sending p { font-size: 0.95rem; color: var(--body); }
