.feedback-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.feedback-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feedback-form__fields label {
  display: grid;
  align-content: start;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 700;
}

.feedback-form__message {
  grid-column: 1 / -1;
}

.feedback-form__hint {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.4;
}

.feedback-form__noscript {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.feedback-form__fields :is(input, textarea) {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.5 Manrope, "Segoe UI", sans-serif;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .65rem;
  margin-block: 1.15rem;
  font-size: .85rem;
}

.feedback-form__consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin: .2rem 0 0;
  accent-color: var(--forest);
}

.feedback-form__consent p {
  margin-top: .18rem;
}

.feedback-form__consent a {
  color: var(--dark-gold);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.feedback-form button:disabled {
  opacity: .65;
  cursor: wait;
}

.feedback-form__status:not(:empty) {
  margin-top: .8rem;
  color: var(--forest);
  font-size: .88rem;
}

.feedback-form__status[data-error] {
  color: #8b3027;
}

@media (max-width: 560px) {
  .feedback-form__fields {
    grid-template-columns: 1fr;
  }
}

.feedback-dialog {
  position: fixed;
  width: min(100% - 2rem, 38rem);
  max-width: none;
  max-height: min(90dvh, 48rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-dark);
}

.feedback-dialog::backdrop {
  background: rgb(10 20 15 / .78);
}

.feedback-dialog__panel {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.feedback-dialog h2 {
  margin: 0 2.6rem 1.25rem 0;
  color: var(--forest);
  font-size: clamp(1.4rem, 4.5vw, 2.15rem);
  line-height: 1.12;
  text-wrap: pretty;
}

.feedback-dialog h2:focus {
  outline: none;
}

.feedback-dialog__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  font: 600 1.5rem/1 Manrope, "Segoe UI", sans-serif;
  cursor: pointer;
}

.feedback-dialog__close:hover {
  background: var(--soft-paper);
}

.feedback-dialog .feedback-form {
  padding: 0;
  border: 0;
  background: transparent;
}
