/* Mobile-first, minimal, no framework. Warm palette to fit the Favelin brand;
   replace with brand-approved tokens once design hands them over. */

:root {
  --bg:         #fff8f4;
  --surface:    #ffffff;
  --text:       #1a1a1a;
  --text-soft:  #6b6b6b;
  --border:     #e0d4c8;
  --accent:     #8d6c4f;
  --accent-bg:  #f3e9dd;
  --radius:     12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.intro {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 28px;
}

.question {
  margin-bottom: 28px;
}

.question h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
}

.question .subtext {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 14px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
  min-height: 56px;          /* generous touch target */
}

.option:hover,
.option:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.option:active,
.option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.progress {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  margin: 24px 0 0;
  letter-spacing: 0.04em;
}

.thanks,
.error,
.loading {
  text-align: center;
  padding: 64px 20px 24px;
}

.thanks h1,
.error  h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.thanks p,
.error  p,
.loading {
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .option { transition: none; }
}

/* ── Product rating step (dissatisfied follow-up) ──────────────────────────── */

.pr-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.pr-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}

.pr-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}

.pr-stars {
  display: flex;
  gap: 6px;
}

.pr-star {
  flex: 1 1 0;
  min-height: 48px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.1s ease, transform 0.05s ease;
}

.pr-star.on { color: #e8a13a; }               /* warm gold for selected stars */
.pr-star:active { transform: scale(0.9); }

.pr-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.pr-send {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.pr-send:hover,
.pr-send:focus-visible { background: #7a5c42; border-color: #7a5c42; }

.pr-skip {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 12px;
}

/* RTL for Arabic orders — flip alignment; stars stay natural row order. */
#app[dir="rtl"] { text-align: right; }
#app[dir="rtl"] .option { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .pr-star { transition: none; }
}
