:root {
  --background: #fff9e3;
  --primary: #081126;
  --accent: #ea7a53;
  --accent-dark: #d96a44;
  --muted-fg: #5a6478;
  --border: #ebe4c6;
  --card: #fffceb;
  --green: #1f8a4c;
  --red: #c0392b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand a { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-link {
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active { color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 56px 96px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}
h1 .accent { color: var(--accent); }
.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted-fg);
  font-weight: 600;
  text-wrap: pretty;
}

footer {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: 30px 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-fg);
  border-top: 1px solid var(--border);
}
footer .links { display: flex; gap: 18px; }
footer .links a {
  color: var(--muted-fg);
  text-decoration: none;
  font-weight: 700;
}
footer .links a:hover { color: var(--primary); }

/* ---------- REVIEW FORM ---------- */
.review {
  margin-top: 36px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: none; min-width: 0; }
.field-label {
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: 0.8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { margin: 0; font-size: 12px; color: var(--muted-fg); font-weight: 600; }

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--background);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--muted-fg); font-weight: 500; }
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted-fg) 50%), linear-gradient(135deg, var(--muted-fg) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

/* Stars: fill the checked star and every star before it; on hover, preview up to the hovered one. */
.stars { display: flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  font-size: 38px;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}
.stars label:hover { transform: scale(1.08); }
.stars input:checked + label,
.stars label:has(~ input:checked) { color: var(--accent); }
.stars:hover label { color: var(--accent); }
.stars label:hover ~ label { color: var(--border); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check > span { display: flex; flex-direction: column; gap: 4px; }
.check-title { font-size: 14px; font-weight: 700; color: var(--primary); line-height: 1.4; }

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

.review-btn { width: 100%; padding: 14px 20px; font-size: 15px; min-height: 50px; }
.review-btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.review-msg { margin: -10px 0 0; font-size: 13px; font-weight: 700; }
.review-msg:empty { display: none; }
.review-msg.ok { color: var(--green); }
.review-msg.err { color: var(--red); }

.thanks h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.thanks p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-fg); }
.thanks a { color: var(--accent); font-weight: 700; text-decoration: none; }

@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.55s linear infinite;
  flex-shrink: 0;
}
.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; }

@media (max-width: 1024px) {
  .nav { padding: 18px 28px; }
  main { padding: 40px 28px 72px; }
  footer { padding: 26px 28px 36px; }
}
@media (max-width: 700px) {
  .nav { padding: 14px 18px; }
  .nav-link { display: none; }
  .nav-actions { gap: 8px; }
  .btn { padding: 10px 14px; font-size: 13px; }
  main { padding: 32px 18px 56px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .lede { font-size: 15px; }
  .review { padding: 20px; margin-top: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .stars label { font-size: 34px; }
  footer { padding: 22px 18px 28px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  footer .links { flex-wrap: wrap; gap: 14px; }
}
