/* Reader feedback card on book and booklet pages */
.reader-feedback-card {
  margin: 3.5rem auto 2.5rem;
  padding: 1.8rem clamp(1.2rem, 3.5vw, 2.4rem);
  border: 1px solid #dfd5c2;
  border-radius: 8px;
  background: #faf6ee;
  color: #28302c;
  box-sizing: border-box;
  max-width: 44rem;
}

.reader-feedback-card[hidden] {
  display: none !important;
}

.reader-feedback-card.is-revealed {
  animation: feedbackFadeIn 0.35s ease-out;
}

@keyframes feedbackFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-stage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e5dcce;
  padding-bottom: 0.65rem;
}

.stage-tab {
  background: transparent;
  border: none;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font: 500 0.8rem/1.3 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #6a6f68;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-tab:hover {
  color: #1f2723;
  background: #f0e9dc;
}

.stage-tab.is-active {
  color: #1f2723;
  font-weight: 600;
  background: #ede4d5;
}

.feedback-header {
  margin-bottom: 1.25rem;
}

.feedback-header .eyebrow {
  margin: 0 0 0.25rem;
  font: 600 0.72rem/1.2 var(--font-ui, "EB Garamond", Georgia, serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6e56;
}

.feedback-title {
  margin: 0 0 0.35rem;
  font: 400 clamp(1.35rem, 3.5vw, 1.7rem)/1.2 var(--font-display, "EB Garamond", Georgia, serif);
  color: #1f2723;
}

.feedback-lead {
  margin: 0;
  font: 400 0.88rem/1.5 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #5d635d;
}

.feedback-field {
  margin: 1.1rem 0;
}

.feedback-label {
  display: block;
  margin-bottom: 0.5rem;
  font: 600 0.85rem/1.4 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #2f3732;
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feedback-option {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.feedback-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid #d4c7b0;
  border-radius: 20px;
  background: #fffdf9;
  font: 500 0.82rem/1.3 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #38423d;
  transition: all 0.15s ease;
}

.feedback-option:hover .option-pill {
  border-color: #8c6a32;
  background: #fdfaf3;
}

.feedback-option input:checked + .option-pill {
  border-color: #293d39;
  background: #293d39;
  color: #fffaf0;
}

.feedback-option input:focus-visible + .option-pill {
  outline: 2px solid #8c6a32;
  outline-offset: 2px;
}

.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4c7b0;
  border-radius: 5px;
  background: #fffdf9;
  font: 400 0.88rem/1.5 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #222a26;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: 2px solid #8c6a32;
  border-color: #8c6a32;
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.feedback-submit {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  font: 600 0.88rem/1.3 var(--font-ui, "EB Garamond", Georgia, serif);
  background: #293d39;
  color: #fffaf0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-status {
  font: 400 0.82rem/1.4 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #555e58;
}

.feedback-success {
  padding: 1rem 0 0.25rem;
  font: 400 0.95rem/1.5 var(--font-body, "EB Garamond", Georgia, serif);
  color: #234f42;
}

/* Warm 1-click letter invitation in post-checkout */
.feedback-letter-invite {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e3d9c7;
}

.feedback-letter-invite h4 {
  margin: 0 0 0.35rem;
  font: 600 0.95rem/1.3 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #202722;
}

.feedback-letter-invite p {
  margin: 0 0 0.85rem;
  font: 400 0.82rem/1.4 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #606760;
}

.feedback-letter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.feedback-letter-input {
  flex: 1 1 200px;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d4c7b0;
  border-radius: 4px;
  background: #fffdf9;
  font: 400 0.85rem/1.4 var(--font-ui, "EB Garamond", Georgia, serif);
  color: #222a26;
}

.feedback-letter-button {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font: 600 0.82rem/1.3 var(--font-ui, "EB Garamond", Georgia, serif);
  background: #78371f;
  color: #fffaf0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-letter-success {
  font: 400 0.88rem/1.5 var(--font-body, "EB Garamond", Georgia, serif);
  color: #234f42;
}
