:root {
  --ink: #101217;
  --night: #070910;
  --paper: #f5f4ef;
  --muted: #667085;
  --line: rgba(16, 18, 23, .13);
  --prism: linear-gradient(90deg, #00cfff, #3278ff 22%, #8a2be2 43%, #ff00ff 61%, #ff375f 76%, #ff8a00 89%, #ffe500);
}

* { box-sizing: border-box; }

html { background: var(--night); }

body.tool-feedback-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 8%, rgba(0, 207, 255, .12), transparent 28rem),
    radial-gradient(circle at 88% 17%, rgba(138, 43, 226, .15), transparent 30rem),
    var(--night);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.prism-rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 4px;
  background: var(--prism);
  background-size: 260% 100%;
  animation: prism-shift 12s ease infinite alternate;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.tool-feedback-header,
.tool-feedback-main,
.tool-feedback-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.tool-feedback-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25));
}

.brand strong {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.15rem;
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 9px 15px;
  color: rgba(255, 255, 255, .74);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  transform: translateY(-1px);
}

.tool-feedback-main { padding: clamp(54px, 7vw, 94px) 0 clamp(72px, 9vw, 118px); }

.tool-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
}

.editorial-copy {
  position: sticky;
  top: 28px;
  padding-top: 12px;
}

.eyebrow,
.tool-selector-label,
[data-panel-kicker] {
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.editorial-copy h1 {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(3rem, 5.35vw, 5.25rem);
  font-weight: 730;
  letter-spacing: -.074em;
  line-height: .91;
  text-wrap: balance;
}

.editorial-copy h1 span {
  background: var(--prism);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: prism-shift 12s ease infinite alternate;
}

.intro {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: .96rem;
  line-height: 1.65;
}

.tool-selector-label {
  margin-top: 28px;
  color: rgba(255, 255, 255, .48);
}

.tool-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tool-lineup button {
  appearance: none;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  padding: 6px 13px 6px 7px;
  color: rgba(255, 255, 255, .58);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tool-lineup button:hover,
.tool-lineup button:focus-visible {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.tool-lineup button:focus-visible {
  outline: 3px solid rgba(50, 120, 255, .34);
  outline-offset: 3px;
}

.tool-lineup button.is-active {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .11);
  color: #fff;
  transform: translateY(-1px);
}

.tool-mark,
.selected-tool-mark {
  display: inline-grid;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(14, 18, 36, .16);
}

.tool-mark {
  width: 32px;
  height: 32px;
}

.selected-tool-mark {
  width: 54px;
  height: 54px;
}

.tool-mark img,
.selected-tool-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  transform-origin: center;
}

.route-note {
  max-width: 540px;
  margin-top: 28px;
  border-left: 2px solid transparent;
  border-image: var(--prism) 1;
  padding: 3px 0 3px 18px;
}

.route-note strong { font-size: .82rem; }
.route-note p { margin: 7px 0 0; color: rgba(255, 255, 255, .48); font-size: .78rem; line-height: 1.6; }

.form-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 34px;
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .28);
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--prism);
  background-size: 260% 100%;
  animation: prism-shift 12s ease infinite alternate;
}

.panel-tool-context {
  display: flex;
  align-items: center;
  gap: 14px;
}

[data-panel-kicker] { color: #737987; }

.panel-heading h2 {
  margin: 13px 0 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 760;
  letter-spacing: -.058em;
  line-height: .98;
}

.panel-heading > p:last-child { margin: 12px 0 0; color: #747b89; font-size: .86rem; }

.tool-feedback-page .form-panel .dc-form-field input,
.tool-feedback-page .form-panel .dc-form-field textarea,
.tool-feedback-page .form-panel .dc-form-field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
  padding: 13px 15px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.tool-feedback-page .form-panel .dc-form-field textarea {
  min-height: 142px;
  resize: vertical;
  line-height: 1.55;
}

.tool-feedback-page .form-panel .dc-form-field input:focus,
.tool-feedback-page .form-panel .dc-form-field textarea:focus,
.tool-feedback-page .form-panel .dc-form-field select:focus {
  border-color: #3278ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(50, 120, 255, .12);
}

.tool-feedback-page .form-panel .dc-form-grid { display: grid; gap: 18px; margin-top: 24px; }

.tool-feedback-page .form-panel .dc-form-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tool-feedback-page .form-panel .dc-form-field > label:not(.dc-form-check) {
  color: #343a46;
  font-size: .78rem;
  font-weight: 780;
}

.tool-feedback-page .form-panel .dc-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .5);
  padding: 14px;
  color: #535a68;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.45;
}

.tool-feedback-page .form-panel .dc-form-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #3278ff; }
.tool-feedback-page .form-panel .dc-form-actions { margin-top: 22px; }

.tool-feedback-page .form-panel .dc-form-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--prism);
  background-size: 260% 100%;
  padding: 14px 20px;
  color: #fff;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .01em;
  box-shadow: 0 16px 34px rgba(50, 90, 220, .2);
  cursor: pointer;
  animation: prism-shift 12s ease infinite alternate;
}

.tool-feedback-page .form-panel .dc-form-submit:hover { transform: translateY(-1px); }
.tool-feedback-page .form-panel .dc-form-submit:disabled { opacity: .56; cursor: wait; }
.tool-feedback-page .form-panel .dc-form-honeypot { position: absolute; left: -9999px; }

.tool-feedback-page .form-panel .dc-form-status {
  min-height: 22px;
  margin-top: 14px;
  color: #29704b;
  font-size: .79rem;
  font-weight: 750;
  line-height: 1.5;
}

.tool-feedback-page .form-panel .dc-form-status[data-state="error"] { color: #b42318; }

.tool-feedback-footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .42);
  font-size: .74rem;
}

.tool-feedback-footer a { color: rgba(255, 255, 255, .7); font-weight: 700; text-decoration: none; }

@keyframes prism-shift { to { background-position: 100% 50%; } }

@media (max-width: 900px) {
  .tool-feedback-layout { grid-template-columns: 1fr; }
  .editorial-copy { position: static; }
  .editorial-copy h1 { max-width: 760px; }
}

@media (max-width: 560px) {
  .tool-feedback-header,
  .tool-feedback-main,
  .tool-feedback-footer { width: min(100% - 28px, 1180px); }
  .tool-feedback-header { min-height: 82px; }
  .brand span { font-size: .78rem; }
  .brand img { width: 40px; height: 40px; }
  .back-link { min-height: 38px; padding: 8px 12px; font-size: .7rem; }
  .tool-feedback-main { padding-top: 44px; }
  .editorial-copy h1 { font-size: clamp(2.85rem, 15vw, 4.2rem); }
  .intro { font-size: .94rem; }
  .form-panel { border-radius: 26px; padding: 28px 20px; }
  .tool-feedback-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
