/* ============================================================
   Pagina Review UZD — stiluri
   Reconstruit din designul Claude (un singur fisier -> HTML/CSS/JS separat)
   Paleta si valorile sunt preluate exact din designul original.
   ============================================================ */

:root {
  --cream:      #F2EFE8;
  --cream-2:    #FBFAF6;
  --field:      #F7F6F1;
  --field-2:    #F1EFEA;

  --ink:        #2A2725;
  --muted:      #8A857E;
  --muted-2:    #B4AFA7;
  --muted-3:    #6b665f;

  --green:        #8CC56E;
  --green-dk:     #244016;
  --green-deep:   #2A6E14;
  --green-soft:   #EAF4E1;
  --green-pastel: #E3F1D2;
  --green-line:   #A9D588;
  --mint:         #CDE6B8;

  --border:     #E7E4DC;
  --empty:      #DAD5CC;
  --disabled:   #D8D3CA;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

@keyframes uzdPop  { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes uzdFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tranzitie lina intre ecrane (View Transitions API). */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
  background: radial-gradient(120% 80% at 50% 0%, var(--cream-2) 0%, var(--cream) 70%);
}
.shell { width: 100%; max-width: 412px; }

/* ---------- Card ---------- */
.card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(42, 39, 37, .10);
  animation: uzdFade .3s ease;
}
.card--rating { padding: 30px 26px 36px; text-align: center; }
.card--thanks { padding: 46px 30px;     text-align: center; }
.card--form   { padding: 26px 24px 30px; }
.card--high   { padding: 38px 28px 30px; text-align: center; }
.card--claim  { padding: 30px 26px 30px; }
.card--reward { padding: 34px 26px 30px; text-align: center; }

/* ---------- Brand / headings ---------- */
.logo { height: 160px; object-fit: contain; margin: -18px auto -6px; display: block; }

.eyebrow {
  font-weight: 700; font-size: 12.5px; letter-spacing: .05em;
  color: var(--muted-2); margin-bottom: 10px;
}

.title { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--ink); }
.title--xl { font-size: 25px; line-height: 1.18; }
.title--lg { font-size: 24px; }
.title--md { font-size: 23px; }
.title--sm { font-size: 22px; line-height: 1.2; }

/* ---------- Text blocks ---------- */
.lead       { font-size: 14.5px; color: var(--muted); margin-top: 9px; }
.thanks-text{ font-size: 14.5px; color: var(--muted); margin: 10px 0 22px; line-height: 1.5; }
.form-sub   { font-size: 13.5px; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }
.high-text  { font-size: 14px;   color: var(--muted); margin: 9px 0 18px;  line-height: 1.5; }
.claim-intro{ font-size: 13.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.reward-text{ font-size: 14px;   color: var(--muted); margin: 8px 0 22px;  line-height: 1.5; }

.footnote   { text-align: center; font-size: 12px;   color: var(--muted-2); margin-top: 18px; line-height: 1.5; }
.privacy-note { text-align: center; font-size: 11.5px; color: var(--muted-2); margin-top: 12px; }
.fineprint  { font-size: 11.5px; color: var(--muted-2); margin-top: 16px; line-height: 1.5; }

.strong-muted { color: var(--muted); }
.strong-deep  { color: var(--green-deep); }
.strong-ink   { color: var(--ink); font-weight: 800; }

/* ---------- Divider ---------- */
.divider { height: 1px; border: 0; background: var(--border); margin: 18px 0; }

/* ---------- Location chips ---------- */
.loc-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.loc-chip {
  font-weight: 700; font-size: 14.5px; padding: 12px 20px;
  border-radius: 999px; cursor: pointer; transition: all .15s;
  background: var(--field-2); color: var(--muted);
  border: 2px solid transparent;
}
.loc-chip.is-active {
  background: var(--green); color: var(--green-dk);
  border-color: var(--green-deep);
}

/* ---------- Stars ---------- */
.stars { display: flex; gap: 4px; justify-content: space-between; margin: 18px 2px 12px; }
.star {
  font-size: 62px; line-height: 1; cursor: pointer;
  color: var(--empty); transform: scale(1);
  transition: transform .12s, color .12s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.star.is-on { color: var(--green); transform: scale(1.06); }

/* Demo la incarcare: stelele se umplu pe rand, apoi se golesc in ordine
   inversa, ca sa arate vizual ce are de facut vizitatorul.
   Secventa e condusa din JS (playStarDemo) si se opreste la prima atingere. */
.stars.is-demo .star { transition: color .22s ease, transform .22s ease; }
.stars.is-demo .star.is-demo-on { color: var(--green); transform: scale(1.06); }

.rating-label { font-weight: 700; font-size: 15px; color: var(--green); min-height: 22px; }
.rating-label.is-hint { color: var(--muted-2); }

.mini-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.mini-star  { font-size: 20px; line-height: 1; color: var(--empty); }
.mini-star.is-on { color: var(--green); }

.high-stars { display: flex; gap: 3px; justify-content: center; margin-bottom: 12px; }
.high-star  { font-size: 23px; line-height: 1; color: var(--green); }

/* ---------- Discount banner (reutilizat) ---------- */
.discount {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-pastel); border: 1.5px solid var(--green-line);
  border-radius: 16px; padding: 14px 16px; text-align: left;
}
.discount--rating { margin: 0; }
.discount--mb16   { margin-bottom: 16px; }
.discount--mb18   { margin-bottom: 18px; }
.discount--mt18   { margin-top: 18px; }
.discount__pct { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 26px; color: var(--green-deep); line-height: 1; }
.discount__txt { font-size: 12.5px; color: var(--green-dk); line-height: 1.35; }

/* banner cu inputuri (nume + telefon) — direct deasupra butonului */
.discount--form { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
.discount__head { display: flex; align-items: center; gap: 12px; }
.discount__fields { display: flex; flex-direction: column; gap: 8px; }
.discount__fields .input { background: #fff; border-color: var(--green-line); margin: 0; }

/* ---------- Category chips ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.cat-chip {
  font-weight: 700; font-size: 12.5px; padding: 9px 15px;
  border-radius: 999px; cursor: pointer; transition: all .15s;
  background: var(--field-2); color: var(--muted); border: 0;
}
.cat-chip.is-active { background: var(--green); color: var(--green-dk); }

/* ---------- Inputs ---------- */
.textarea {
  width: 100%; resize: none; min-height: 88px;
  background: var(--field); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 13px 15px;
  font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--ink); outline: none;
}
.field-label { font-weight: 700; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field-opt   { font-weight: 600; color: var(--muted-2); }
.input {
  width: 100%; background: var(--field); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 15px;
  font-family: 'Nunito', sans-serif; font-size: 15px; color: var(--ink); outline: none;
}
.input--mb16 { margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; width: 100%; border-radius: 16px; text-align: center;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn--green { background: var(--green); color: var(--green-dk); padding: 15px; }
.btn--dark  { background: var(--ink); color: #fff; padding: 16px; margin-top: 18px; transition: background .15s; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn--google {
  background: var(--ink); color: #fff; padding: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.gbadge {
  display: inline-flex; width: 26px; height: 26px; border-radius: 999px;
  background: #fff; align-items: center; justify-content: center;
}
.gbadge svg { width: 17px; height: 17px; display: block; }

/* ---------- Secondary links ---------- */
.back-top {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; cursor: pointer;
}
.link-again { font-weight: 700; font-size: 13.5px; color: var(--green); margin-top: 16px; cursor: pointer; }
.link-back  { font-weight: 600; font-size: 12.5px; color: var(--muted-2); cursor: pointer; }
.link-back--high  { margin-top: 12px; text-align: center; }
.link-back--claim { margin-top: 14px; text-align: center; }

/* ---------- Success circle ---------- */
.check-circle {
  border-radius: 999px; background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; animation: uzdPop .4s ease;
}
.check-circle--lg { width: 80px; height: 80px; margin-bottom: 22px; }
.check-circle--sm { width: 74px; height: 74px; margin-bottom: 18px; }
.check-mark    { color: var(--green); line-height: 1; }
.check-mark--lg { font-size: 42px; }
.check-mark--sm { font-size: 38px; }

/* ---------- Claim head ---------- */
.claim-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.claim-emoji { font-size: 22px; }

/* ---------- Voucher ---------- */
.voucher {
  position: relative; background: var(--green); border-radius: 20px;
  padding: 26px 22px; color: var(--green-dk); overflow: hidden;
}
.voucher__label { font-weight: 800; font-size: 12px; letter-spacing: .12em; opacity: .75; }
.voucher__pct   { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 52px; line-height: 1; margin: 6px 0 2px; }
.voucher__sub   { font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 16px; }
.voucher__rule  { height: 1px; background: rgba(36, 64, 22, .25); margin: 16px -22px 14px; }
.voucher__note  { font-weight: 700; font-size: 13.5px; line-height: 1.5; }
