:root {
  --tf-ink: #172f3b;
  --tf-paper: #fffaf3;
  --tf-gold: #b18a4f;
  --tf-muted: #746b5d;
}

/* HOLIDAYTRI-52: hidden by default. wizard.js creates the section structurally
   on every render with no knowledge of TRIP_FEEDBACK_ENABLED; trip-feedback.js
   probes /api/trip-feedback/status per button instance and only then adds
   .trip-finish--visible. Feature disabled (404) => the button never appears. */
.trip-finish { display: none; margin: 28px 0; text-align: center; }
.trip-finish--visible { display: block; }
.trip-finish-btn {
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #1b1b1f;
  color: #fff;
  font: 700 15px/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}
.trip-finish-btn:focus-visible { outline: 3px solid rgba(31, 107, 122, .35); outline-offset: 3px; }

.trip-feedback-scrim {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 5vh 16px 28px;
  background: transparent;
  backdrop-filter: blur(7px);
}
.trip-feedback-scrim[open] { display: flex; }
.trip-feedback-scrim::backdrop { background: rgba(12, 21, 29, .76); backdrop-filter: blur(7px); }
.trip-feedback-dialog {
  position: relative;
  width: min(100%, 620px);
  padding: 30px;
  border-radius: 24px;
  background: var(--tf-paper);
  color: var(--tf-ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.trip-feedback-dialog h2 { margin: 2px 38px 10px 0; font: 700 26px/1.1 "Fraunces", serif; }
.trip-feedback-dialog h3 { margin: 0 0 8px; font: 700 22px/1.2 "Fraunces", serif; }
.trip-feedback-eyebrow { margin: 0; color: #8a7a5f; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.trip-feedback-close { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: #766a58; font-size: 24px; cursor: pointer; }
.trip-feedback-intro, .trip-feedback-saved p { color: var(--tf-muted); line-height: 1.55; }
.trip-feedback-question { margin: 18px 0; padding: 0; border: 0; }
.trip-feedback-question legend { margin-bottom: 9px; font-weight: 700; line-height: 1.4; }
.trip-feedback-stars { display: flex; gap: 6px; }
.trip-feedback-stars label { cursor: pointer; }
.trip-feedback-stars input { position: absolute; opacity: 0; pointer-events: none; }
.trip-feedback-stars span { display: grid; width: 44px; height: 44px; place-items: center; border: 1.5px solid #ded2bd; border-radius: 10px; background: #fff; font-size: 22px; line-height: 1; color: #ded2bd; }
.trip-feedback-stars input:checked + span { border-color: var(--tf-gold); background: #f2e5cd; color: var(--tf-gold); box-shadow: 0 0 0 2px rgba(177, 138, 79, .2); }
.trip-feedback-stars label:hover span { color: var(--tf-gold); }
.trip-feedback-stars input:focus-visible + span { outline: 3px solid rgba(31, 107, 122, .35); outline-offset: 2px; }
.trip-feedback-text { display: block; margin: 18px 0; }
.trip-feedback-text span { display: block; margin-bottom: 6px; font-weight: 700; line-height: 1.4; }
.trip-feedback-text textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1.5px solid #ded2bd; border-radius: 10px; font: inherit; resize: vertical; }
.trip-feedback-notice { margin: 22px 0 14px; padding: 14px; border-radius: 12px; background: #f3ead9; font-size: 13px; line-height: 1.45; }
.trip-feedback-notice p { margin: 5px 0 0; }
.trip-feedback-check { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; line-height: 1.4; }
.trip-feedback-check input { margin-top: 3px; }
.trip-feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trip-feedback-actions button { min-height: 44px; padding: 10px 16px; border-radius: 999px; font: 700 13px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.trip-feedback-primary { border: 0; background: #1b1b1f; color: #fff; }
.trip-feedback-secondary { border: 1px solid #cfbea2; background: #fffaf3; color: var(--tf-ink); }
.trip-feedback-danger { border: 1px solid #d49b91; background: #fff5f2; color: #9a3027; }
.trip-feedback-actions button:disabled { opacity: .55; cursor: wait; }
.trip-feedback-message { min-height: 20px; color: #9a3027; font-size: 13px; }

@media (max-width: 640px) {
  .trip-feedback-dialog { padding: 26px 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .trip-feedback-scrim { backdrop-filter: none; }
}
