:root {
  --red: #c4161c;
  --red-dark: #a11217;
  --ink: #161412;
  --muted: #5f5852;
  --line: #e6e0d8;
  --stone: #f6f3ee;
  --card: #ffffff;
  --gold: #f2a900;
  --gold-off: #d9d3cb;
  --green: #1f7a3d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--stone);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.demo-strip {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .02em;
}
.demo-strip a { color: #fff; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand { text-align: center; margin: 8px 0 18px; }
.brand img { width: 150px; height: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}
.card + .card { margin-top: 16px; }

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -.01em;
}
h2 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }

/* Stars */
.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 6px;
}
.star {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px;
  font-size: 46px;
  line-height: 1;
  color: var(--gold-off);
  transition: transform .12s ease, color .12s ease;
}
.star.on { color: var(--gold); }
.star:hover { transform: scale(1.08); }
.star:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.star-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto;
}
.rating-shown { font-size: 28px; color: var(--gold); letter-spacing: 2px; }

/* Meal callout */
.meal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8ec;
  border: 1px solid #f3dfb8;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0 4px;
  text-align: left;
}
.meal .icon { font-size: 28px; line-height: 1; }
.meal strong { display: block; margin-bottom: 2px; }
.meal span { font-size: 14.5px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-google { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-google:hover { background: var(--stone); }
.btn-google svg { width: 22px; height: 22px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-review { min-height: 60px; font-size: 18px; margin-top: 6px; box-shadow: 0 6px 16px rgba(196,22,28,.25); }
.g-badge {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; flex: none;
}
.g-badge svg { width: 20px; height: 20px; }
.tip { margin: 12px 0 0; }

.quiet-meal {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 8px 0;
}
.quiet-meal span { color: var(--green); font-weight: 700; margin-right: 4px; }

.link-quiet {
  color: var(--muted);
  font-size: 14px;
}

/* Forms */
label, legend { font-weight: 600; display: block; margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
textarea, input[type="tel"], input[type="text"], select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,22,28,.12); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
}
.chip input:checked + span { border-color: var(--red); background: #fdeeee; color: var(--red-dark); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.yesno { display: flex; gap: 10px; }
.yesno .chip { flex: 1; }
.yesno .chip span { display: block; text-align: center; }

.field { margin-bottom: 20px; }
.hidden { display: none !important; }

.done-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-size: 32px;
  background: #e9f5ee; color: var(--green);
}

.signoff { margin-top: 18px; }
.signoff b { display: block; }

footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}

@media (min-width: 520px) {
  .card { padding: 34px 34px; }
  h1 { font-size: 28px; }
  .star { font-size: 52px; }
}
