/* Oakley Revive — service feedback
   Design language lifted from oakley.com/en-us/lp/oakley-revive-services:
   white ground, near-black ink (#222), Avenir Next, uppercase 900 headlines with
   1px tracking, black pill CTAs, one red accent (#C83430). Mobile-first (QR traffic). */

:root {
  --ink: #222222;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #d7d7d7;
  --line-soft: #eeeeee;
  --ground: #ffffff;
  --ground-2: #f6f6f6;
  --red: #c83430;
  --red-deep: #a8281f;
  --font: "Avenir Next", "AvenirNext", "Avenir", "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --track: 1px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
button, label, a, select, input { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Top bar ===== */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ground);
}
.topbar .mark { display: flex; align-items: center; color: var(--ink); }
.topbar .mark svg { width: 46px; height: 23px; display: block; }
.topbar .crumb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: end center;
  text-align: center;
  color: #fff;
  padding: 96px 24px 36px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  /* Drop the store's Revive creative at public/img/hero.jpg and it takes over; the
     gradient below is the fallback so the page never ships with a blank hero. */
  background:
    linear-gradient(180deg, rgba(20, 22, 18, 0) 30%, rgba(20, 22, 18, 0.72) 100%),
    radial-gradient(120% 90% at 20% 10%, #8a6f4c 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 20%, #9a4a35 0%, transparent 50%),
    linear-gradient(160deg, #5f6a52 0%, #3f4636 45%, #2b2f27 100%);
}
.hero.has-photo {
  background:
    linear-gradient(180deg, rgba(20, 22, 18, 0) 35%, rgba(20, 22, 18, 0.62) 100%),
    url("/img/hero.jpg") center 40% / cover no-repeat;
}
.hero.has-photo::after { display: none; }
.hero::after {
  /* subtle grain so the fallback reads as material, not flat gradient */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero .kicker {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero h1 {
  font-size: clamp(27px, 8vw, 48px);
  font-weight: 900;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.08;
  text-wrap: balance;
}
.hero .tagline { margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; }
.hero .tags {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.92;
}
.hero .tags span { padding: 0 6px; opacity: 0.6; }

/* ===== Layout ===== */
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 20px 40px;
}
.intro { text-align: center; margin-bottom: 28px; }
.intro h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
}
.intro p { color: var(--ink-2); font-size: 15px; max-width: 42ch; margin: 0 auto; }

/* ===== Fields ===== */
.field { margin-bottom: 22px; }
label, legend {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.hint, .optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-3);
  font-size: 12.5px;
}
.optional { margin-left: 6px; }

input[type="date"], select, textarea, input[type="password"], input[type="text"] {
  width: 100%;
  min-height: 50px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px; /* ≥16px prevents iOS zoom-on-focus */
  padding: 12px 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}
input[type="date"] { color-scheme: light; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
select:invalid, select.placeholder { color: var(--ink-3); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
textarea::placeholder { color: #9a9a9a; }

/* ===== Star rating ===== */
.rating-field { border: none; }
.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; }
.stars { display: flex; gap: 8px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  flex: 1;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  background: var(--ground);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.stars label:active { transform: scale(0.95); }
.stars svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; transition: fill 0.12s ease, stroke 0.12s ease; }
.stars label.lit { border-color: var(--red); background: #fff7f6; }
.stars label.lit svg { fill: var(--red); stroke: var(--red); }
.stars input:focus-visible + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.rating-readout { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--red); min-height: 1.4em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ground-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

.form-error {
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}
.privacy {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ===== Success ===== */
.success { text-align: center; padding: 28px 0 8px; }
.success-mark {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
}
.success-mark svg { width: 34px; height: 34px; }
.success h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: var(--track);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.success p { color: var(--ink-2); max-width: 34ch; margin: 0 auto; }
.success .sub { margin-top: 10px; font-weight: 700; color: var(--ink); }

/* ===== Footer ===== */
.foot {
  background: var(--ground-2);
  border-top: 1px solid var(--line-soft);
  padding: 26px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
}
.foot strong { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11.5px; display: block; margin-bottom: 4px; }
.foot .fine { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (min-width: 720px) {
  .hero { min-height: 460px; padding-bottom: 52px; }
  .wrap { padding-top: 44px; }
}
