.feedback-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: var(--ink-soft);
  color: var(--white);
  box-shadow: var(--shadow);
}

.feedback-dialog::backdrop {
  background: rgba(2, 8, 17, 0.78);
  backdrop-filter: blur(7px);
}

.feedback-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 0;
}

.feedback-eyebrow {
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feedback-dialog h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 5vw, 36px);
  line-height: 1.05;
}

.feedback-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.feedback-close:hover,
.feedback-close:focus-visible {
  border-color: rgba(255, 205, 47, 0.5);
  color: var(--yellow);
}

.feedback-intro {
  margin: 14px 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: 24px 28px 28px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field > span {
  font-size: 12px;
  font-weight: 800;
}

.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 15px;
}

.feedback-field select {
  min-height: 48px;
  padding: 0 13px;
}

.feedback-field textarea {
  min-height: 132px;
  padding: 13px;
  resize: vertical;
}

.feedback-field select:focus-visible,
.feedback-field textarea:focus-visible,
.feedback-consent input:focus-visible {
  outline: 3px solid rgba(246, 201, 69, 0.24);
  outline-offset: 2px;
  border-color: var(--yellow);
}

.feedback-field small {
  color: var(--muted);
  font-size: 10px;
}

.feedback-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.feedback-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
}

.feedback-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-status {
  min-height: 20px;
  margin: -2px 0;
  color: var(--muted);
  font-size: 12px;
}

.feedback-status.is-success {
  color: var(--mint);
}

.feedback-status.is-error {
  color: #ff9da8;
}

.feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.feedback-actions button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.feedback-cancel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
}

.feedback-submit {
  border: 0;
  background: var(--yellow);
  color: var(--ink);
}

.feedback-submit:hover,
.feedback-submit:focus-visible {
  background: var(--yellow-bright);
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.footer-actions {
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .feedback-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .feedback-dialog-header {
    padding: 22px 18px 0;
  }

  .feedback-intro {
    margin: 12px 18px 0;
  }

  .feedback-form {
    gap: 16px;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .feedback-actions {
    grid-template-columns: 1fr;
  }

  .feedback-submit {
    grid-row: 1;
  }
}
