/* GRiN post-visit survey — brand tokens from GRiNside live CSS */
:root {
  --brand: #049ec3;
  --brand-dark: #037691;
  --brand-light: #96d9f2;
  --brand-yellow: #efc829;
  --ink: #13242b;
  --ink-soft: #5b6676;
  --paper: #eef8fb;
  --paper-deep: #e7eef0;
  --line: #d5dee2;
  --card: #ffffff;
  --warn: #bb0a0a;
  --good: #1f7a46;
  --shadow: 0 5px 25px #33333326;
  --radius: 14px;
  --tap: 48px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background-color: #fff;
  background-image:
    radial-gradient(55% 32% at 0 -6%, #96d9f273, transparent 62%),
    radial-gradient(32% 22% at 100% 0, #efc82947, transparent 58%);
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.mock-banner {
  background: #fff8de;
  border-bottom: 2px solid var(--brand-yellow);
  color: var(--ink);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.wrap {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.brand img { height: 52px; width: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.15rem 1.5rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  line-height: 1.25;
}
.lede {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.field { margin-bottom: 1.35rem; }
.field:last-child { margin-bottom: 0; }

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.label-row label, .q-label {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.badge {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.badge.optional { color: var(--ink-soft); background: var(--paper-deep); }
.badge.required { color: var(--teal, #037691); background: rgba(3,118,145,0.08); }

.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.3rem;
}
@media (max-width: 420px) {
  .nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.nps-btn {
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.nps-btn:hover { border-color: var(--brand); }
.nps-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}
.nps-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}
.rating-btn {
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rating-btn .num { font-weight: 700; font-size: 1.1rem; line-height: 1; }
.rating-btn .hint {
  font-size: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.1;
}
.rating-btn:hover { border-color: var(--brand); }
.rating-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}
.rating-btn[aria-pressed="true"] .hint { color: #e5f6fa; }

textarea, input[type="text"] {
  width: 100%;
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  resize: vertical;
}
textarea { min-height: 5.5rem; }
textarea:focus, input[type="text"]:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px #96d9f259;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.choice-btn {
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}
.choice-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-row { margin-top: 1.5rem; }
.submit-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px #049ec340;
}
.submit-btn:hover { background: var(--brand-dark); }
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.error {
  margin-top: 0.75rem;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.error.show { display: block; }

/* Completion */
.done { text-align: center; padding: 0.5rem 0.25rem 0.75rem; }
.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
}
.done.excellent .done-icon { background: #e5f6fa; color: var(--brand-dark); }
.done.okay .done-icon { background: #fff8de; color: #a68600; }
.done.negative .done-icon { background: #fdecec; color: var(--warn); }

.done h2 {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.done p {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: var(--brand-yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 14px #efc82966;
}
.review-btn:hover { background: #e6bc12; }

.review-link-quiet {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.review-link-quiet:hover { color: var(--brand-dark); }

.review-link-small {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hidden { display: none !important; }

@media (min-width: 720px) {
  .wrap { padding-top: 2rem; }
  .brand img { height: 64px; }
  .card { padding: 1.75rem 1.75rem 1.85rem; }
  h1 { font-size: 1.55rem; }
}

.review-inline {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--ink-soft) 55%, transparent);
}
.review-inline:hover {
  color: inherit;
  text-decoration-color: var(--ink-soft);
}

.site-footer {
  margin-top: 1.75rem;
  padding: 0.25rem 0 0.5rem;
  text-align: center;
}
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #9aa5ab;
  transition: color 0.15s, background 0.15s, transform 0.1s;
}
.social-link svg {
  width: 22px;
  height: 22px;
  display: block;
}
.social-link:hover,
.social-link:focus-visible {
  color: #5b6676;
  background: #e7eef0;
}
