.testimonials-page {
  --max-width: 1100px;
  --text: #0f1720;
  --emphasis: #0b1220;
  --testimonial-star-size: 2.55rem;
}

.testimonials-page .page-shell {
  display: grid;
  gap: 1.5rem;
  padding: 0.75rem 0 3rem;
}

.testimonials-page .page-nav {
  display: flex;
  justify-content: flex-start;
}

.testimonials-page .page-hero,
.testimonials-page .testimonial-panel,
.testimonials-page .testimonial-side-card,
.testimonials-page .page-footer-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(213, 220, 229, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.testimonials-page .page-hero {
  gap: 0.9rem;
}

.testimonials-page .eyebrow {
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  justify-self: start;
}

.testimonials-page h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.1rem, 4.8vw, 3.85rem);
  line-height: 1.04;
  color: var(--emphasis);
}

.testimonials-page .page-hero p,
.testimonials-page .testimonial-panel > p,
.testimonials-page .testimonial-side-card p,
.testimonials-page .page-footer-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.testimonials-page .testimonial-layout {
  display: grid;
  gap: 1rem;
}

.testimonials-page .testimonial-form {
  display: grid;
  gap: 1rem;
}

.testimonials-page .testimonial-form-grid {
  display: grid;
  gap: 1rem;
}

.testimonials-page .field select {
  width: 100%;
  border: 1px solid rgba(213, 220, 229, 0.95);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.9rem 1rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(var(--accent-rgb), 0.9) 50%),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) calc(50% - 0.15rem),
    calc(100% - 0.75rem) calc(50% - 0.15rem);
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
}

.testimonials-page .field select:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.18);
  border-color: var(--accent);
}

.testimonials-page .field-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(71, 85, 105, 0.86);
}

.testimonials-page .rating-fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonials-page .rating-legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--emphasis);
}

.testimonials-page .rating-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
}

.testimonials-page .rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.testimonials-page .rating-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--testimonial-star-size);
  height: var(--testimonial-star-size);
  border-radius: 999px;
  border: 1px solid rgba(213, 220, 229, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: #c6d1dd;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.testimonials-page .rating-options label::before {
  content: "\2605";
  font-size: 1.4rem;
  line-height: 1;
}

.testimonials-page .rating-options label:hover,
.testimonials-page .rating-options label:hover ~ label,
.testimonials-page .rating-options input:checked ~ label {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
}

.testimonials-page .rating-options label:hover,
.testimonials-page .rating-options input:focus-visible + label {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(var(--accent-rgb), 0.12);
}

.testimonials-page .testimonial-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(71, 85, 105, 0.9);
}

.testimonials-page .testimonial-note svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.testimonials-page .testimonial-submit {
  box-shadow: var(--button-shadow-primary);
}

.testimonials-page .testimonial-submit.is-loading {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
}

.testimonials-page .testimonial-submit-note {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(71, 85, 105, 0.82);
}

.testimonials-page .testimonial-confirmation,
.testimonials-page .testimonial-error {
  display: none;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.testimonials-page .testimonial-confirmation {
  color: var(--accent-dark);
}

.testimonials-page .testimonial-error {
  color: #b42318;
}

.testimonials-page .testimonial-confirmation.is-visible,
.testimonials-page .testimonial-error.is-visible {
  display: block;
}

.testimonials-page .testimonial-side-card h2,
.testimonials-page .page-footer-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--emphasis);
}

.testimonials-page .testimonial-points {
  display: grid;
  gap: 0.75rem;
}

.testimonials-page .testimonial-point {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
}

.testimonials-page .testimonial-point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.testimonials-page .page-footer-card {
  justify-items: start;
}

@media (min-width: 700px) {
  .testimonials-page .testimonial-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .testimonials-page .testimonial-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.88fr);
    align-items: start;
    gap: 1.5rem;
  }

  .testimonials-page .page-hero,
  .testimonials-page .testimonial-panel,
  .testimonials-page .testimonial-side-card,
  .testimonials-page .page-footer-card {
    padding: 2rem;
  }
}
