/* Frosty Coatings review funnel.
   One screen, one decision. Brand lifted from their own funnel: blue #188bf6,
   Montserrat headlines, Lato body, the yeti logo. Stars stay gold on purpose,
   because a blue star does not read as a rating anywhere on the internet. */

:root {
  --blue: #188bf6;
  --blue-deep: #1069c9;
  --blue-tint: #eaf4fe;
  --blue-line: rgba(24, 139, 246, 0.34);
  --gold: #f5b301;
  --gold-lit: #ffc531;
  --ink: #101828;
  --ink-2: #344054;
  --mute: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --ok: #12b76a;
  --err: #d92d20;
  --head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

body.fr {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--blue-tint) 0%, #fff 62%);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.fr-card { width: 100%; max-width: 520px; }

.fr h1 {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.022em;
  font-size: clamp(28px, 7.4vw, 38px); line-height: 1.14; margin: 0 0 10px;
}
.fr p { margin: 0; }

.fr-step { text-align: center; }
/* The asset is 562x444, very close to square, so it needs real height to read
   as a brand mark rather than a stray icon. The sibling hiring site sets 38px
   because there it sits in a nav bar; here it is the only branding on screen. */
.fr-logo { display: block; height: 74px; width: auto; margin: 0 auto 22px; }
.fr-sub { color: var(--mute); font-size: 16.5px; line-height: 1.5; margin: 0 auto; max-width: 24em; }

/* ---------------- the stars ---------------- */
/* The row is sized by the container, not by a vw clamp. Each star takes an
   equal share of whatever width exists and the SVG fills its button, so the
   row cannot overflow at any viewport. A clamp() here did fit a 390px phone
   with 5px to spare and then overflowed a 320px one. */
.fr-stars {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(5px, 2vw, 12px);
  width: 100%; margin: 30px 0 10px;
}
.fr-star {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; margin: 0; cursor: pointer;
  flex: 1 1 0; min-width: 0; max-width: 68px;
  padding: 5px; line-height: 0; border-radius: 12px;
  transition: transform 120ms ease;
}
.fr-star svg {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  display: block;
  fill: #dfe4ea;
  transition: fill 120ms ease, filter 160ms ease;
}
/* `.lit` is driven by JS on hover, focus and touch, not by :hover alone.
   A CSS-only ~ sibling fill cannot express "fill 1 through 3", and on touch
   :hover sticks after the tap, leaving a phantom rating on screen. */
.fr-star.lit svg { fill: var(--gold); filter: drop-shadow(0 4px 10px rgba(245, 179, 1, 0.34)); }
.fr-star:hover { transform: translateY(-2px); }
.fr-star:active { transform: scale(0.92); }
.fr-star:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fr-star.picked svg { fill: var(--gold-lit); }

@media (prefers-reduced-motion: reduce) {
  .fr-star, .fr-star svg, .fr-step { transition: none !important; animation: none !important; }
}

/* Full width, so the two labels sit flush with the ends of the star row.
   A fixed max-width inset them by a few pixels against a row that is sized by
   the container. */
.fr-scale {
  display: flex; justify-content: space-between;
  width: 100%; margin: 0 auto; padding: 0 5px;
  font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #98a2b3; font-weight: 700;
}
.fr-going {
  margin-top: 22px; color: var(--blue); font-weight: 700; font-size: 15.5px;
}

/* ---------------- the feedback form ---------------- */
.fr-rated {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px auto 22px; padding: 8px 15px;
  background: #fff8e6; border: 1px solid #f7dfa5; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #7a5b00;
}
.fr-rated svg { width: 15px; height: 15px; fill: var(--gold); }

#form { text-align: left; margin-top: 4px; }

.fr-field { display: block; margin-bottom: 16px; }
.fr-label {
  display: block; margin-bottom: 7px;
  font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink-2);
}
.fr-label em { font-style: normal; font-weight: 400; color: var(--mute); }

.fr-field input, .fr-field textarea {
  width: 100%; display: block;
  padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  font-family: var(--body); font-size: 16px; /* never below 16px, or iOS zooms the page on focus */
  line-height: 1.45; resize: vertical;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
.fr-field input:focus, .fr-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24, 139, 246, 0.14);
}
.fr-field input.bad, .fr-field textarea.bad { border-color: var(--err); }
.fr-field textarea { min-height: 118px; }

.fr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fr-err {
  margin: 0 0 14px; padding: 11px 14px; border-radius: 10px;
  background: #fef3f2; border: 1px solid #fecdc9; color: #912018;
  font-size: 14.5px; font-weight: 700;
}

.fr-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 4px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 55%, #4aa6f9);
  color: #fff; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 17px;
  padding: 17px 26px;
  box-shadow: 0 10px 26px rgba(24, 139, 246, 0.30);
  transition: transform 140ms, filter 140ms, box-shadow 140ms;
}
.fr-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fr-btn:active { transform: translateY(0); }
.fr-btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.fr-btn[disabled] { opacity: 0.6; cursor: default; transform: none; filter: none; box-shadow: none; }

.fr-back {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 15px; color: var(--mute);
  text-decoration: underline; text-underline-offset: 3px;
}
.fr-back:hover { color: var(--ink-2); }

/* ---------------- the thank you ---------------- */
.fr-tick {
  width: 68px; height: 68px; margin: 6px auto 22px; border-radius: 50%;
  background: #e8faf1; display: flex; align-items: center; justify-content: center;
}
.fr-tick svg { width: 32px; height: 32px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* A step becoming visible gets one short rise. Nothing else animates. */
.fr-step[data-enter] { animation: frRise 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes frRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
