/**
 * LOAD OFF CO. — Customer Feedback page styles
 * Loaded after /assets/blog/blog.css, which supplies the shared
 * header/footer shell and brand variables (--navy, --gold, --charcoal,
 * --offwhite, --white, --muted, --line, --radius, --shadow).
 * This file only styles /feedback/ and /feedback-thank-you/.
 */

.feedback-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 193, 7, 0.16), transparent 28%),
    var(--navy);
  padding: 48px 0 40px;
  text-align: center;
}

.feedback-hero-inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.feedback-hero .eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feedback-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 6vw, 52px);
}

.feedback-hero p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #e6eaf0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.feedback-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
}

.feedback-stars svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

/* ---------- Choice layout ---------- */

.feedback-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 70px;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.feedback-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
}

.feedback-card h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 26px);
  color: var(--navy);
}

.feedback-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.feedback-card .button {
  width: 100%;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feedback-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fff8da;
  color: #4a3d00;
  font-size: 12.5px;
  line-height: 1.5;
}

.feedback-note.private {
  border-left-color: var(--navy);
  background: var(--offwhite);
  color: var(--muted);
}

.feedback-card--google {
  border-top: 4px solid var(--gold);
}

.feedback-card--private {
  border-top: 4px solid var(--navy);
}

/* ---------- Form ---------- */

.feedback-field {
  margin-bottom: 18px;
}

.feedback-field label,
.feedback-field legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  padding: 0;
}

.feedback-field .field-help {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.feedback-field input[type="text"],
.feedback-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dcdfe4;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px; /* prevents iOS input zoom */
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  min-height: 48px;
}

.feedback-field textarea {
  min-height: 140px;
  resize: vertical;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  outline: 3px solid rgba(255, 193, 7, 0.55);
  outline-offset: 1px;
  border-color: var(--gold);
}

.rating-group {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-option {
  position: relative;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rating-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  padding: 10px 4px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  transition: border-color 150ms ease, background 150ms ease;
}

.rating-option .r-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: var(--navy);
}

.rating-option input:checked + label {
  border-color: var(--gold);
  background: #fffaf0;
}

.rating-option input:checked + label .r-num {
  color: var(--navy);
}

.rating-option input:focus-visible + label {
  outline: 3px solid rgba(255, 193, 7, 0.6);
  outline-offset: 2px;
}

.feedback-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 4px 0 6px;
}

.feedback-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.feedback-checkbox label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.feedback-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  margin-top: 6px;
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(255, 193, 7, 0.23);
}

.feedback-submit:hover { background: #ffd044; }

.feedback-submit:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Thank-you page ---------- */

.feedback-ty-shell {
  width: min(680px, calc(100% - 32px));
  margin: -26px auto 80px;
  position: relative;
  z-index: 2;
}

.feedback-ty-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  text-align: center;
}

.feedback-ty-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 26px;
}

.feedback-ty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.feedback-ty-actions .button {
  min-height: 48px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feedback-ty-actions .button-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.feedback-ty-actions .button-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

@media (max-width: 660px) {
  .feedback-hero { padding: 38px 0 32px; }
  .feedback-shell { width: min(100% - 24px, 1040px); }
  .feedback-card { padding: 24px 18px 26px; }
  .rating-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .rating-option label { min-height: 56px; font-size: 11px; padding: 8px 2px; }
  .rating-option .r-num { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .rating-option label,
  .feedback-card .button {
    transition: none;
  }
}
