.feedback-open-button {
  appearance: none;
  cursor: pointer;
}

.footer-links .footer-feedback-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

.footer-links .footer-feedback-link:hover {
  color: #fff;
}

.calendar-feedback-inline {
  margin: 0.85rem 0 0;
  color: var(--color-text, #334155);
  font-size: 0.9rem;
  line-height: 1.5;
}

.calendar-feedback-inline-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary, #0f766e);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.calendar-feedback-inline-link:hover {
  text-decoration-thickness: 2px;
}

.calendar-feedback-inline-link:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(13, 148, 136, 0.2);
  outline-offset: 3px;
}

.feedback-dialog {
  width: min(92vw, 560px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--color-text-dark, #1f2937);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.feedback-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}

.feedback-dialog-panel {
  padding: 1.5rem;
  background: #fff;
}

.feedback-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feedback-dialog-header h2,
.feedback-eyebrow {
  margin: 0;
}

.feedback-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--color-primary, #0f766e);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.feedback-close:hover,
.feedback-close:focus-visible {
  background: #e2e8f0;
}

.feedback-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feedback-field small {
  color: #64748b;
  font-weight: 500;
}

.feedback-field-hint {
  margin-top: -0.15rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.feedback-field textarea,
.feedback-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.feedback-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.feedback-field textarea:focus,
.feedback-field input:focus {
  border-color: var(--color-primary, #0f766e);
  outline: 3px solid rgba(13, 148, 136, 0.16);
}

.feedback-turnstile {
  min-height: 65px;
  margin: 0.25rem 0 0.75rem;
}

.feedback-status {
  min-height: 1.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.feedback-status[data-kind="success"] {
  color: #047857;
}

.feedback-status[data-kind="error"],
.feedback-status[data-kind="verification"] {
  color: #b91c1c;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.feedback-button {
  min-width: 6.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

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

.feedback-button-primary {
  background: var(--color-primary, #0f766e);
  color: #fff;
}

.feedback-button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

@media (max-width: 480px) {
  .feedback-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .feedback-dialog-panel {
    padding: 1.1rem;
  }

  .feedback-actions {
    flex-direction: column-reverse;
  }

  .feedback-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-dialog {
    scroll-behavior: auto;
  }
}
