/* ============================================================
   Review Kit: standalone styles for the /review page.
   Self-contained on purpose: this page does NOT load the main
   site stylesheet. It is a QR landing page, so it must paint in
   one round trip. Copy the token block below from the client's
   styles.css :root so it matches the brand.
   All classes prefixed .rk- so nothing collides if this is ever
   pasted into GoHighLevel.
   ============================================================ */

:root {
  /* ---- EDIT PER CLIENT: copy these from the site's styles.css ---- */
  --rk-ink:        #1C1D21;   /* page background (brand black) */
  --rk-panel:      #26282D;   /* lifted dark panel */
  --rk-brand:      #C52D2F;   /* accent / primary button */
  --rk-brand-lift: #D9484A;   /* accent hover */
  --rk-silver:     #ECEDEF;
  --rk-silver-mid: #B6B8BD;
  --rk-chrome:     linear-gradient(180deg,#FFFFFF 0%,#D6DADF 42%,#9097A0 56%,#EDEFF2 100%);
  --rk-font-head:  "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --rk-font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* ---- end per-client block ---- */

  --rk-card:   #FFFFFF;
  --rk-text:   #15171C;
  --rk-muted:  #5B616C;
  --rk-line:   #E6E8EC;
  --rk-star:   #F5A623;
  --rk-star-off: #D5D9DF;
  --rk-ok:     #15803D;
  --rk-ok-bg:  #E7F6EC;
  --rk-bad:    #B42318;
  --rk-bad-bg: #FDE8E8;
  --rk-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: var(--rk-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rk-text);
  background:
    radial-gradient(760px 420px at 50% -10%, rgba(62,105,174,.22), transparent 62%),
    var(--rk-ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
svg { display: block; }

/* ---------- shell ---------- */
.rk-shell { width: 100%; max-width: 480px; }

/* Brand bar. Use a mark with a TRANSPARENT background plus a text
   lockup. A flat logo export with a baked-in black rectangle reads as
   a hard-edged box against this dark page. */
.rk-brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.35rem;
}
.rk-brandbar__mark { height: 56px; width: auto; flex: none; }
.rk-brandbar__lockup { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.rk-brandbar__lockup b {
  font-family: var(--rk-font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: .04em;
  background: var(--rk-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rk-brandbar__lockup i {
  font-family: var(--rk-font-head);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .62rem;
  letter-spacing: .4em;
  color: var(--rk-silver-mid);
  margin-top: 3px;
}

.rk-card {
  background: var(--rk-card);
  border-radius: var(--rk-radius);
  padding: 1.85rem 1.5rem 1.65rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.rk-card h1 {
  font-family: var(--rk-font-head);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .005em;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  text-align: center;
  text-wrap: balance;
  color: var(--rk-ink);
}
.rk-sub {
  text-align: center;
  text-wrap: balance;
  color: var(--rk-muted);
  margin-top: .6rem;
  font-size: 1rem;
}

/* ---------- star picker ---------- */
.rk-stars {
  display: flex;
  justify-content: center;
  gap: .35rem;
  margin: 1.6rem 0 .35rem;
}
.rk-star {
  appearance: none;
  border: 0;
  background: none;
  padding: .3rem;
  cursor: pointer;
  border-radius: 10px;
  line-height: 0;
  transition: transform .12s ease;
  /* manipulation kills the 300ms tap delay and double-tap zoom on iOS;
     without user-select, fast repeated taps select the row as text. */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rk-star svg { width: 46px; height: 46px; fill: var(--rk-star-off); transition: fill .12s ease; }
/* Stars fill cumulatively: choosing or hovering the 4th lights 1 through 4.
   Both states are driven from JS: a bare :hover only ever matches the single
   element under the pointer, which lights the 4th star alone and reads as
   broken. Do not add a :hover fill rule back in. */
.rk-star.is-on svg,
.rk-star.is-hover svg { fill: var(--rk-star); }
.rk-star:active { transform: scale(.9); }
.rk-star:focus-visible { outline: 3px solid var(--rk-brand); outline-offset: 2px; }
.rk-stars__hint {
  text-align: center;
  font-size: .875rem;
  color: var(--rk-muted);
  min-height: 1.4em;
}

/* ---------- step 2 ---------- */
.rk-js .rk-step2 { display: none; }
.rk-js .rk-step2.is-open { display: block; }
.rk-step2, .rk-step3 { margin-top: 1.5rem; }
.rk-sub--tight { margin-top: .35rem; margin-bottom: 1.15rem; font-size: .95rem; }

.rk-divider { height: 1px; background: var(--rk-line); border: 0; margin: 1.5rem 0; }

.rk-lead { text-align: center; font-weight: 600; margin-bottom: 1.15rem; }

/* Buttons. The Google button and the direct-feedback button are the same
   size and weight on purpose, at every star rating. Routing people by
   sentiment is review gating: prohibited by Google policy, Canada's
   Competition Act and the US FTC review rule. Do not restyle one to
   out-shout the other. */
.rk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 58px;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--rk-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
}
.rk-btn + .rk-btn { margin-top: .7rem; }
.rk-btn:active { transform: translateY(1px); }
.rk-btn:focus-visible { outline: 3px solid var(--rk-brand); outline-offset: 3px; }
.rk-btn svg { width: 22px; height: 22px; flex: none; }

.rk-btn--google { background: var(--rk-brand); color: #fff; }
.rk-btn--google:hover { background: var(--rk-brand-lift); color: #fff; }

.rk-btn--direct {
  background: #fff;
  color: var(--rk-text);
  border-color: var(--rk-line);
}
.rk-btn--direct:hover { border-color: var(--rk-brand); }

.rk-btn--submit { background: var(--rk-ink); color: #fff; }
.rk-btn--submit:hover { background: var(--rk-panel); color: #fff; }
.rk-btn[disabled] { opacity: .6; cursor: default; }

.rk-or {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: .95rem 0;
  color: var(--rk-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.rk-or::before, .rk-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rk-line);
}

/* ---------- direct feedback form ---------- */
.rk-form { margin-top: .8rem; }
.rk-form .rk-btn--submit { margin-top: 1.1rem; }
.rk-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rk-muted);
  margin-bottom: .35rem;
}
.rk-form textarea,
.rk-form input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--rk-text);
  padding: .8rem .9rem;
  border: 1px solid var(--rk-line);
  border-radius: 8px;
  background: #fff;
}
.rk-form textarea { min-height: 118px; resize: vertical; }
.rk-form textarea:focus, .rk-form input:focus {
  outline: none;
  border-color: var(--rk-brand);
  box-shadow: 0 0 0 3px rgba(62,105,174,.18);
}
.rk-form__row + .rk-form__row { margin-top: .85rem; }
.rk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rk-note {
  margin-top: .9rem;
  padding: .8rem .9rem;
  border-radius: 8px;
  font-size: .95rem;
  background: var(--rk-ok-bg);
  color: var(--rk-ok);
}
.rk-note.is-bad { background: var(--rk-bad-bg); color: var(--rk-bad); }

/* ---------- help expander ---------- */
.rk-help { margin-top: 1.75rem; }
.rk-help summary {
  cursor: pointer;
  font-size: .92rem;
  color: var(--rk-muted);
  text-align: center;
  list-style: none;
}
.rk-help summary::-webkit-details-marker { display: none; }
.rk-help summary:hover { color: var(--rk-brand); }
.rk-help__body {
  margin-top: .8rem;
  font-size: .95rem;
  color: var(--rk-muted);
  background: #F5F6F8;
  border-radius: 8px;
  padding: .9rem 1rem;
}
.rk-help__body ol { margin: 0; padding-left: 1.15rem; }
.rk-help__body li + li { margin-top: .4rem; }

/* ---------- footer ---------- */
.rk-foot {
  margin-top: 1.4rem;
  text-align: center;
  font-size: .85rem;
  color: var(--rk-silver-mid);
}
.rk-foot a { color: var(--rk-silver-mid); text-decoration: underline; }
.rk-foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.rk-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- copy-to-clipboard helper on the post step ---------- */
.rk-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: .7rem;
  padding: .8rem 1rem;
  background: none;
  border: 1px dashed var(--rk-line-strong, #D5D9DF);
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  color: var(--rk-muted);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.rk-copy svg { width: 17px; height: 17px; flex: none; }
.rk-copy:hover { border-color: var(--rk-brand); color: var(--rk-brand); }
.rk-copy:focus-visible { outline: 3px solid var(--rk-brand); outline-offset: 3px; }
.rk-copy.is-done { border-style: solid; border-color: var(--rk-ok); color: var(--rk-ok); }

/* Shown only when the clipboard is refused, so there is real text to select. */
.rk-fallback { margin-top: .9rem; }
.rk-fallback label {
  display: block;
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--rk-muted); margin-bottom: .35rem;
}
.rk-fallback textarea {
  width: 100%; font: inherit; font-size: .95rem;
  color: var(--rk-text); background: #F5F6F8;
  padding: .75rem .85rem;
  border: 1px solid var(--rk-line); border-radius: 8px;
  resize: vertical;
}

/* ---------- locked state: the review has been sent ---------- */
/* Stars stay legible at full contrast. This is a record of what they gave,
   not a disabled control to grey out. It simply cannot be changed. */
.rk-stars.is-locked .rk-star {
  cursor: default;
  pointer-events: none;
}
.rk-stars.is-locked .rk-star:active { transform: none; }

/* Shown only when JavaScript is off. See the <noscript> block in the HTML. */
.rk-nojs {
  display: none;
  text-align: center;
  color: var(--rk-muted);
  margin-bottom: 1.15rem;
}

/* ---------- small helper text under a field ---------- */
.rk-help-text { margin-top: .4rem; font-size: .85rem; color: var(--rk-muted); }

/* ---------- service-recovery panel ----------
   Shown on the outcome screen below five stars. This is ADDITIVE: it sits
   above the Google button, it never replaces it and never shrinks it. The
   recovery promise is ours to make; the decision to post stays theirs. */
.rk-recover {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rk-line);
  border-left: 3px solid var(--rk-brand);
  border-radius: 10px;
  background: #F5F7FB;
  text-align: left;
}
.rk-recover svg { width: 20px; height: 20px; flex: none; color: var(--rk-brand); margin-top: .18rem; }
.rk-recover b { display: block; color: var(--rk-text); font-weight: 600; margin-bottom: .2rem; }
.rk-recover span { display: block; color: var(--rk-muted); font-size: .93rem; line-height: 1.55; }
