:root {
  --brand: #1a365d;
  --brand-contrast: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --bg: #fafafa;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}

/* ── Brand header ─────────────────────────────────────────────────────────── */

.brand { margin-bottom: 2rem; }

.logo {
  max-width: 140px;
  max-height: 80px;
  margin: 0 auto 0.75rem;
  display: block;
}

.business-name {
  font-size: 1.5rem;
  color: var(--brand);
  margin: 0;
  font-weight: 700;
}

.prompt {
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

/* ── Contact form ─────────────────────────────────────────────────────────── */

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-fields input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.form-fields input::placeholder { color: var(--muted); }

.form-fields input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.form-fields input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent);
}

/* ── Star rating ──────────────────────────────────────────────────────────── */

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.star {
  background: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  transition: color 80ms ease, transform 80ms ease;
}

.star:focus-visible { outline: 2px solid var(--brand); border-radius: 4px; }
.star:active { transform: scale(0.92); }
.star.hovered,
.star.selected { color: #f59e0b; }

/* ── Outcome section ──────────────────────────────────────────────────────── */

#outcome {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.outcome-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand);
}

.outcome-msg {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink);
}

.redirect-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── CTA buttons ──────────────────────────────────────────────────────────── */

.cta {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-contrast);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 1.0625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  min-width: 240px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta.whatsapp { background: #25d366; color: #062e1c; }

/* Outlined secondary — used for the direct-call button */
.cta.call {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.cta.glow {
  animation: glow 1.6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ── Stealth Google link ──────────────────────────────────────────────────── */

.stealth-link {
  opacity: 0.4;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: underline;
}
.stealth-link:hover { opacity: 0.6; }

/* ── Error ────────────────────────────────────────────────────────────────── */

.error {
  color: var(--danger);
  padding: 2rem 1rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (min-width: 600px) {
  main { padding-top: 3rem; }
  .business-name { font-size: 1.875rem; }
  .star { font-size: 3rem; }
  .outcome-title { font-size: 1.625rem; }
}
