/* Feedback — Listening desk (home theme) */

.page-feedback {
  --gold: #ffc745;
  --gold-deep: #c79402;
  --ink: #121212;
  --muted: #5c5c5c;
  --line: rgba(18, 18, 18, 0.1);
  --surface: #f6f4ef;
  background: #fff;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}

.page-feedback .muted.small {
  font-size: 0.78em;
  font-weight: 500;
  color: var(--muted);
}

/* —— Hero —— */
.fb-desk-hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.fb-desk-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fb-desk-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.fb-desk-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.4) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.7) 0%, transparent 50%);
}

.fb-desk-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6.5rem 0 2.75rem;
}

.fb-desk-hero__crumb {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.fb-desk-hero__crumb a {
  color: inherit;
  text-decoration: none;
}

.fb-desk-hero__crumb a:hover { color: var(--gold); }

.fb-desk-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.fb-desk-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.fb-desk-hero__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* —— Shared —— */
.fb-block {
  padding: 3.25rem 0;
}

.fb-block__inner {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.fb-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.fb-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.fb-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.fb-head {
  margin-bottom: 1.5rem;
}

.fb-head--center {
  text-align: center;
}

.fb-head--center .fb-sub {
  margin-left: auto;
  margin-right: auto;
}

/* —— Listening desk (form + ratings) —— */
.fb-desk {
  background: var(--surface);
}

.fb-desk__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.fb-pulse {
  background: #121212;
  color: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.4rem;
}

.fb-pulse__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.fb-pulse__note {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.fb-pulse__note strong {
  color: var(--gold);
  font-weight: 650;
}

.fb-pulse__rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fb-pulse__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-pulse__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fb-pulse__label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.fb-quick-stars {
  display: inline-flex;
  gap: 0.15rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.fb-qstar {
  transition: color 0.15s ease, transform 0.12s ease;
}

.fb-qstar:hover { transform: scale(1.08); }
.fb-qstar.active { color: var(--gold); }

.fb-quick-rating-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(220, 60, 60, 0.16);
  border: 1px solid rgba(255, 120, 120, 0.3);
  color: #ffb4b4;
  font-size: 0.82rem;
  line-height: 1.4;
}

.fb-quick-rating-error-icon {
  flex-shrink: 0;
}

.fb-compose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.45rem;
}

.fb-compose__intro {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.fb-compose__intro .fb-heading {
  font-size: 1.25rem;
}

.fb-compose__intro .fb-sub {
  font-size: 0.88rem;
}

.fb-success-inline,
.fb-error-inline {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.fb-success-inline {
  background: rgba(255, 199, 69, 0.12);
  border: 1px solid rgba(199, 148, 2, 0.3);
  text-align: left;
}

.fb-success-title {
  margin: 0 0 0.3rem;
  font-weight: 750;
  color: var(--gold-deep);
}

.fb-success-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.fb-error-inline {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c;
  font-size: 0.88rem;
}

.fb-form-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.fb-form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.fb-form-field input:not([type="checkbox"]):not([type="file"]),
.fb-form-field select,
.fb-form-field textarea {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fb-form-field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.fb-form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c79402' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.fb-form-field input:not([type="checkbox"]):not([type="file"]):focus,
.fb-form-field select:focus,
.fb-form-field textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(255, 199, 69, 0.28);
}

.fb-stars {
  display: inline-flex;
  gap: 0.2rem;
  font-size: 1.45rem;
  color: rgba(18, 18, 18, 0.12);
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.fb-stars:focus { outline: none; }
.fb-star { transition: color 0.15s ease, transform 0.12s ease; }
.fb-star:hover { transform: scale(1.1); }
.fb-star.active { color: var(--gold-deep); }

.fb-file-wrap { position: relative; }

.fb-file-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
  padding: 0;
  border: 0;
}

.fb-file-label {
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px dashed rgba(199, 148, 2, 0.45);
  font-size: 0.86rem;
  color: var(--muted);
  background: rgba(255, 199, 69, 0.05);
}

.fb-form-checkbox-wrap {
  margin-top: 0.15rem;
}

.fb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.4;
}

.fb-checkbox-label input[type="checkbox"] {
  appearance: auto;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(18, 18, 18, 0.35);
  border-radius: 3px;
  background: #fff;
  accent-color: var(--gold-deep);
  cursor: pointer;
  box-shadow: none;
}

.fb-checkbox-text {
  flex: 1;
  min-width: 0;
}

.fb-form-footer { margin-top: 0.15rem; }

.fb-form-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #121212;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.fb-form-footer .btn-primary:hover {
  background: #ffd56a;
}

/* —— Reviews —— */
.fb-reviews {
  background: #fff;
}

.fb-reviews-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.fb-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fb-tab:hover {
  border-color: rgba(199, 148, 2, 0.4);
  color: var(--ink);
}

.fb-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.fb-review-card {
  padding: 1rem 1.05rem 0.95rem;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}

.fb-review-stars {
  margin-bottom: 0.45rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.fb-review-text {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.fb-review-footer {
  font-size: 0.8rem;
  color: var(--muted);
}

.fb-review-footer strong {
  color: var(--ink);
}

/* —— FAQ —— */
.fb-faq {
  background: var(--surface);
  padding: 3rem 0;
}

.fb-faq .fb-head { margin-bottom: 1.15rem; }

.fb-faq .fb-heading {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.fb-faq__list {
  max-width: 38rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.fb-faq__item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.fb-faq__item[open] {
  border-color: var(--line);
  background: transparent;
}

.fb-faq__item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.fb-faq__item summary::-webkit-details-marker,
.fb-faq__item summary::marker {
  display: none;
  content: "";
}

.fb-faq__item summary::after {
  content: "";
  float: none;
  width: 16px;
  height: 16px;
  opacity: 1;
  font-size: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 8px 1.5px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1.5px 8px no-repeat,
    rgba(255, 199, 69, 0.16);
}

.fb-faq__item[open] summary {
  color: var(--gold-deep);
  padding-bottom: 0.3rem;
}

.fb-faq__item[open] summary::after {
  content: "";
  background:
    linear-gradient(#fff, #fff) center / 8px 1.5px no-repeat,
    var(--gold-deep);
}

.fb-faq__answer {
  padding: 0 1.5rem 0.7rem 0;
}

.fb-faq__answer p,
.fb-faq__item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.fb-faq__answer a {
  color: var(--gold-deep);
  text-underline-offset: 2px;
}

/* —— CTA —— */
.fb-cta {
  background: #121212;
  color: #fff;
  padding: 2.75rem 0;
  text-align: center;
}

.fb-cta .fb-kicker { color: var(--gold); }
.fb-cta .fb-heading { color: #fff; }
.fb-cta .fb-sub {
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.fb-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: #121212;
  font-weight: 750;
  text-decoration: none;
}

/* —— Motion —— */
.page-feedback [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-feedback [data-animate].in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .fb-desk__grid {
    grid-template-columns: 1fr;
  }

  .fb-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fb-form-row {
    grid-template-columns: 1fr;
  }

  .fb-reviews-grid {
    grid-template-columns: 1fr;
  }

  .fb-desk-hero {
    min-height: 0;
  }

  .fb-desk-hero__inner {
    padding: 5.5rem 0 2.25rem;
  }
}
