:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #111114;
  --muted: #686b76;
  --line: #e3e7ed;
  --line-strong: #cdd3dc;
  --blue: #0678fd;
  --blue-dark: #075cc0;
  --blue-soft: #eaf3ff;
  --coral: #ff6b5b;
  --coral-soft: #fff0ed;
  --green: #16a34a;
  --green-soft: #eaf8ef;
  --accent: var(--blue);
  --accent-dark: var(--blue-dark);
  --accent-soft: var(--blue-soft);
  --danger: #c33d35;
  --shadow: 0 26px 80px rgba(12, 30, 61, 0.09);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body[data-form="bug"] {
  --accent: var(--coral);
  --accent-dark: #e44f40;
  --accent-soft: var(--coral-soft);
}
body[data-form="feature"] {
  --accent: var(--blue);
  --accent-dark: var(--blue-dark);
  --accent-soft: var(--blue-soft);
}
body[data-form="feedback"] {
  --accent: var(--green);
  --accent-dark: #12833d;
  --accent-soft: var(--green-soft);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.topbar {
  width: min(calc(100% - 32px), 1120px);
  min-height: 72px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 44px rgba(12, 30, 61, .08);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 126px; height: auto; }
.back-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #333640;
  font-size: .86rem;
  font-weight: 700;
  transition: transform 200ms var(--ease), background 200ms ease;
}
.back-link:hover { transform: translateY(-1px); background: #e9edf3; }
.back-link svg { width: 16px; height: 16px; }

.page { width: min(calc(100% - 32px), 1120px); margin: 0 auto; padding: 76px 0 72px; }
.hero { max-width: 820px; margin: 0 auto 42px; text-align: center; }
.eyebrow {
  margin: 0 0 17px;
  color: var(--accent-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .94;
}
.hero h1 .accent { color: var(--accent); }
.hero-copy { max-width: 650px; margin: 22px auto 0; color: var(--muted); font-size: 1.05rem; }
.hero-meta { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}

.form-switcher {
  width: min(100%, 680px);
  margin: 30px auto 0;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}
.form-switcher a {
  min-height: 44px;
  padding: 8px 12px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}
.form-switcher a:hover { color: var(--text); background: var(--surface-soft); }
.form-switcher a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }

.form-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-aside {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}
.aside-sticky { position: sticky; top: 28px; }
.aside-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.form-aside h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 1.3rem; line-height: 1.12; letter-spacing: -.03em; }
.form-aside p { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.progress-wrap { margin-top: 30px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .73rem; font-weight: 600; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(17, 17, 20, .08); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 250ms var(--ease); }
.aside-list { margin: 28px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.aside-list li { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: center; color: var(--muted); font-size: .78rem; }
.aside-list span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(17, 17, 20, .1); border-radius: 8px; background: rgba(255,255,255,.7); color: var(--accent-dark); font-family: 'IBM Plex Mono', monospace; font-size: .62rem; font-weight: 600; }

.form-main { min-width: 0; padding: 0 42px 42px; }
.form-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.section-head { margin-bottom: 24px; }
.section-number { display: block; margin-bottom: 8px; color: var(--accent-dark); font-family: 'IBM Plex Mono', monospace; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.035em; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-group { min-width: 0; }
.field-label, .question-title { display: block; margin: 0 0 8px; color: #25272e; font-size: .88rem; font-weight: 700; }
.required::after { content: ' *'; color: var(--accent-dark); }
.field-note { display: block; margin-top: 7px; color: #878a94; font-size: .72rem; line-height: 1.45; }
.field, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field, .select { min-height: 49px; padding: 0 13px; }
.textarea { min-height: 120px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.textarea.large { min-height: 156px; }
.field:hover, .select:hover, .textarea:hover { border-color: #aeb6c1; }
.field:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.field::placeholder, .textarea::placeholder { color: #a2a6af; }
.file-input { padding: 12px; background: var(--surface-soft); }
.file-input::file-selector-button { margin-right: 11px; padding: 8px 10px; border: 0; border-radius: 7px; background: #e6eaf0; color: #333640; font-weight: 700; cursor: pointer; }

.question + .question { margin-top: 24px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #4f525c;
  background: #fff;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms var(--ease);
}
.choice label:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-dark); }
.choice input:checked + label { border-color: color-mix(in srgb, var(--accent) 48%, white); color: var(--accent-dark); background: var(--accent-soft); }
.choice input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); outline-offset: 2px; }
.choice.wide { flex: 1 1 180px; }
.choice.wide label { width: 100%; }

.rating-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-grid .choice label { width: 100%; min-height: 54px; flex-direction: column; gap: 1px; }
.rating-grid strong { font-size: .95rem; }
.rating-grid small { font-size: .6rem; font-weight: 600; }

.score-matrix { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.score-row { min-width: 0; margin: 0; padding: 15px 16px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; border: 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-label { width: 150px; margin: 0; color: #25272e; font-size: .84rem; font-weight: 800; }
.score-options { display: grid; grid-template-columns: repeat(10, minmax(30px, 1fr)); gap: 5px; }
.score-options input { position: absolute; opacity: 0; pointer-events: none; }
.score-options label { min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: #555963; background: #fff; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; font-weight: 600; transition: transform 160ms var(--ease), border-color 160ms ease, color 160ms ease, background 160ms ease; }
.score-options label:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-dark); }
.score-options input:checked + label { border-color: color-mix(in srgb, var(--accent) 50%, white); color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.score-options input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); outline-offset: 2px; }
.matrix-note { margin: 9px 2px 0; display: flex; justify-content: space-between; gap: 16px; color: #878a94; font-size: .7rem; font-weight: 600; }

.conditional { display: none; margin-top: 18px; }
.conditional.is-open { display: block; animation: reveal 260ms var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.info-box { margin-top: 18px; padding: 14px 15px; display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.info-box svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--accent-dark); }
.privacy-check { position: relative; }
.privacy-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.privacy-check label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .76rem; cursor: pointer; }

.submit-area { padding-top: 34px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.submit-note { max-width: 440px; margin: 0; color: var(--muted); font-size: .76rem; }
.submit-button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent) 24%, transparent);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 800;
  transition: transform 180ms var(--ease), background 180ms ease, opacity 180ms ease;
}
.submit-button:hover { transform: translateY(-2px); background: var(--accent-dark); }
.submit-button:disabled { transform: none; cursor: wait; opacity: .6; }
.submit-button svg { width: 17px; height: 17px; }
.form-message { min-height: 20px; margin: 13px 0 0; color: var(--danger); font-size: .78rem; font-weight: 700; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.success-screen { min-height: 650px; padding: 70px 36px; display: none; place-items: center; text-align: center; }
.success-screen.is-visible { display: grid; }
.success-inner { max-width: 560px; }
.success-mark { width: 66px; height: 66px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 22px; color: var(--accent-dark); background: var(--accent-soft); font-size: 1.8rem; }
.success-screen h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.success-screen p { margin: 16px 0 0; color: var(--muted); }
.success-screen .success-reference { display: inline-block; padding: 9px 12px; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-family: 'IBM Plex Mono', monospace; font-size: .78rem; font-weight: 600; }
.success-screen .success-reference[hidden] { display: none; }
.success-actions { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.secondary-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; color: #333640; font-weight: 700; }
.success-home { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; color: #fff; background: var(--accent); font-size: .84rem; font-weight: 800; }

.footer { padding: 28px 16px 38px; color: #858892; text-align: center; font-size: .72rem; }
.footer a { color: #555862; font-weight: 700; }

.thank-page { width: min(calc(100% - 32px), 960px); min-height: calc(100vh - 170px); margin: 0 auto; padding: 72px 0; display: grid; place-items: center; }
.thank-card { position: relative; overflow: hidden; width: 100%; padding: clamp(42px, 8vw, 82px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); text-align: center; }
.thank-card::before, .thank-card::after { content: ''; position: absolute; border-radius: 999px; pointer-events: none; }
.thank-card::before { width: 260px; height: 260px; top: -150px; left: -90px; background: var(--accent-soft); }
.thank-card::after { width: 190px; height: 190px; right: -95px; bottom: -105px; background: color-mix(in srgb, var(--accent) 10%, white); }
.thank-glow { position: relative; z-index: 1; width: 82px; height: 82px; margin: 0 auto 25px; display: grid; place-items: center; border-radius: 26px; color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 18%, transparent); transform: rotate(-4deg); }
.thank-glow span { font-size: 2.2rem; font-weight: 800; transform: rotate(4deg); }
.thank-card .eyebrow { position: relative; z-index: 1; }
.thank-card h1 { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; font-family: 'Montserrat', sans-serif; font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -.065em; line-height: .9; }
.thank-card h1 .accent { color: var(--accent); }
.thank-copy { position: relative; z-index: 1; max-width: 610px; margin: 24px auto 0; color: var(--muted); font-size: 1.02rem; }
.thank-reference { position: relative; z-index: 1; display: inline-block; margin: 20px 0 0; padding: 9px 12px; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-family: 'IBM Plex Mono', monospace; font-size: .77rem; font-weight: 600; }
.thank-reference[hidden] { display: none; }
.thank-steps { position: relative; z-index: 1; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.thank-steps div { min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.thank-steps strong { display: block; margin-bottom: 9px; color: var(--accent-dark); font-family: 'IBM Plex Mono', monospace; font-size: .7rem; }
.thank-steps span { color: #484b55; font-size: .8rem; font-weight: 700; line-height: 1.4; }
.thank-actions { position: relative; z-index: 1; margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.thank-secondary { display: inline-flex; align-items: center; }

@media (max-width: 820px) {
  .page { padding-top: 54px; }
  .form-card { grid-template-columns: 1fr; }
  .form-aside { padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .aside-sticky { position: static; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px 30px; align-items: end; }
  .form-aside p { max-width: 450px; }
  .progress-wrap { margin-top: 0; }
  .aside-list { display: none; }
}

@media (max-width: 620px) {
  .topbar { width: calc(100% - 20px); min-height: 62px; margin-top: 10px; padding-left: 14px; }
  .brand img { width: 112px; }
  .back-link { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .back-link span { display: none; }
  .page { width: calc(100% - 20px); padding: 44px 0 50px; }
  .hero { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(2.45rem, 14vw, 3.7rem); }
  .hero-copy { margin-top: 17px; font-size: .95rem; }
  .form-switcher { margin-top: 23px; }
  .form-switcher a { min-height: 42px; padding: 7px 4px; font-size: .72rem; }
  .form-card { border-radius: 16px; }
  .form-aside { padding: 21px 18px; }
  .aside-sticky { grid-template-columns: 1fr; gap: 16px; }
  .form-aside p { margin-top: 7px; }
  .progress-wrap { margin-top: 0; }
  .form-main { padding: 0 18px 30px; }
  .form-section { padding: 30px 0; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.35rem; }
  .rating-grid { gap: 5px; }
  .rating-grid .choice label { min-height: 50px; padding: 0 4px; }
  .rating-grid small { display: none; }
  .score-row { padding: 16px 12px; grid-template-columns: 1fr; gap: 9px; }
  .score-label { width: auto; }
  .score-options { gap: 3px; }
  .score-options label { min-height: 36px; border-radius: 7px; font-size: .68rem; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-button { width: 100%; }
  .success-screen { min-height: 560px; padding: 55px 22px; }
  .thank-page { width: calc(100% - 20px); padding: 44px 0; }
  .thank-card { padding: 42px 20px; border-radius: 18px; }
  .thank-steps { grid-template-columns: 1fr; }
  .thank-steps div { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
