/* Scoped to this page; reuse the site's fonts, palette, navigation and footer. */
.feedback-page [hidden] { display: none !important; }
.fb-main { max-width: 620px; margin: 0 auto; padding: 40px 24px 72px; padding-bottom: max(72px, env(safe-area-inset-bottom)); }
.fb-home { font-size: 12px; color: var(--text-sec); min-height: 44px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Intro */
.fb-intro { margin-bottom: 28px; }
.fb-intro .eyebrow { color: var(--primary-lt); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; }
.fb-intro h1, .fb-success h1 { font-family: var(--font-display); font-size: clamp(38px, 9vw, 58px); font-weight: 800; line-height: .96; letter-spacing: -.01em; margin: 12px 0 14px; }
.fb-intro h1 span, .fb-success h1 span { color: var(--primary); }
.fb-intro p { color: var(--text-sec); font-size: 14px; }

/* Layout blocks */
.feedback-page fieldset { border: 0; min-width: 0; padding: 0; }
.fb-types, .fb-block { margin-bottom: 20px; }
.fb-step { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .01em; margin-bottom: 10px; color: var(--text); }
.fb-step::before { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-card-alt); border: 1px solid var(--border); color: var(--primary-lt); font: 700 11px var(--font-mono); }
.fb-step-1::before { content: "1"; }
.fb-step-2::before { content: "2"; }
.fb-help { color: var(--text-sec); font-size: 12px; margin-bottom: 10px; }

/* Step 1 — type chips */
.fb-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-type { position: relative; cursor: pointer; }
.fb-type input, .fb-star input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fb-type-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 6px; border: 1px solid #534032; border-radius: 10px; background: var(--bg-card); font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .02em; transition: border-color .15s var(--ease), background .15s var(--ease); }
.fb-symbol { font: 24px/1 var(--font-mono); color: var(--primary); }
.fb-type:hover .fb-type-content { border-color: var(--primary-lt); }
.fb-type input:checked + .fb-type-content { border-color: var(--primary); background: #25170f; box-shadow: inset 0 0 0 1px var(--primary); }
.fb-type input:checked + .fb-type-content::after { content: "✓"; position: absolute; top: 6px; right: 8px; color: var(--primary); font-size: 12px; line-height: 1; }
.fb-type input:focus-visible + .fb-type-content, .fb-star:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }

/* Step 2 — message + email */
.feedback-page textarea, .feedback-page input[type="email"] { width: 100%; border: 1px solid #534032; border-radius: 10px; background: var(--bg-card); color: var(--text); font: 16px/1.6 var(--font-sans); padding: 14px 16px; }
.feedback-page textarea { resize: vertical; min-height: 120px; }
.feedback-page textarea:focus, .feedback-page input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.feedback-page ::placeholder { color: var(--text-dim); opacity: 1; }
.feedback-page [aria-invalid="true"] { border-color: #ff9b80; }

/* Ratings */
.fb-rate-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
#overall-rating { margin-left: auto; }
.fb-rate-label { font-size: 13px; color: var(--text); }
.fb-rate-label small { color: var(--text-dim); font-size: 11px; margin-left: 5px; }
.fb-rating { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: -8px; }
.fb-stars { display: flex; }
.fb-star { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 4px; }
.fb-star svg { width: 28px; height: 28px; fill: transparent; stroke: var(--text-dim); stroke-width: 1.4; transition: fill .1s linear, stroke .1s linear; }
.fb-star.is-filled svg { fill: var(--primary); stroke: var(--primary); }
.fb-clear { order: -1; visibility: hidden; min-height: 36px; padding: 0 8px; background: none; border: 0; color: var(--text-dim); font: 11px var(--font-sans); text-decoration: underline; cursor: pointer; }
.fb-rating:has(input:checked) .fb-clear { visibility: visible; }
.fb-rating-output { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fb-detail-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; border-top: 1px solid var(--border-soft); padding: 4px 0; }
.fb-detail-row h3 { font-size: 13px; font-weight: 400; color: var(--text-sec); }

/* Optional extras */
.fb-more { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 22px; }
.fb-more summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; min-height: 52px; font-size: 13px; color: var(--text-sec); }
.fb-more summary::-webkit-details-marker { display: none; }
.fb-more summary:hover, .fb-more[open] summary { color: var(--text); }
.fb-expand { color: var(--primary); font: 22px var(--font-mono); padding: 4px 2px; transition: transform .15s var(--ease); }
.fb-more[open] .fb-expand { transform: rotate(45deg); }
.fb-more-body { padding-bottom: 18px; }
.fb-label-sm { display: block; font-size: 12px; color: var(--text-sec); margin: 20px 0 8px; }

/* Submit + states */
.fb-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; border-radius: 10px; background: var(--primary); color: var(--bg); padding: 16px 22px; font: 700 24px var(--font-display); letter-spacing: .02em; cursor: pointer; min-height: 60px; }
.fb-submit:hover { background: var(--primary-lt); text-decoration: none; }
.feedback-page fieldset:disabled { opacity: .6; }
.feedback-page fieldset:disabled label, .feedback-page fieldset:disabled button { cursor: wait; }
.fb-privacy { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 12px; }
.fb-privacy a { color: var(--text-dim); text-decoration: underline; }
.fb-field-error { color: #ffad95; margin-top: 8px; font-size: 13px; }
.fb-error { color: #ffb39c; background: #2a1711; border: 1px solid #90503a; padding: 14px 16px; border-radius: 10px; margin: 16px 0; font-size: 14px; }

/* Success */
.fb-success { text-align: center; padding: 32px 0; }
.fb-success-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--primary); background: #25170f; border: 1px solid var(--primary); border-radius: 50%; margin-bottom: 24px; font-size: 26px; }
.fb-success p { color: var(--text-sec); font-size: 14px; }
.fb-success .fb-submit { max-width: 360px; margin: 30px auto 22px; }
.fb-success .fb-tagline { font: 700 20px var(--font-display); letter-spacing: .08em; }
.fb-skip { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px; background: var(--bg); }
.fb-skip:focus { top: 8px; }

@media (max-width: 600px) {
  .fb-main { padding: 28px 20px 56px; }
  .fb-home { font-size: 11px; }
  .fb-type-content { min-height: 76px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .feedback-page { scroll-behavior: auto; } .fb-type-content, .fb-star svg, .fb-expand { transition: none; } }
