/* Rating Component Styles */

/* ── Stars: Display & Picker ─────────────────────────────────────── */
.starsRow {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.starFilled {
  color: #f5a623;
}

.starEmpty {
  color: #dde3df;
}

.starsPicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.starBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: inherit;
  transition: transform 0.12s ease;
}

.starBtn:hover {
  transform: scale(1.12);
}

.starsPickerWithLabel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.starsPickerLabel {
  font-size: 13px;
  font-weight: 700;
  color: #269436;
  min-height: 18px;
}

/* ── Testimonial Card ────────────────────────────────────────────── */
.testimonialCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(20, 40, 30, 0.03);
  height: 100%;
  box-sizing: border-box;
}

.testimonialTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonialQuoteIcon {
  color: #e5e9e6;
}

.testimonialText {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
  flex: 1;
}

.testimonialFooter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f2;
}

.testimonialAvatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #eef8ef;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.testimonialIdentity {
  min-width: 0;
}

.testimonialName {
  font-size: 14px;
  font-weight: 700;
  color: #17232f;
  margin: 0;
}

.testimonialMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

/* ── Summary Panel ───────────────────────────────────────────────── */
.summaryPanel {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 4px 18px rgba(20, 40, 30, 0.035);
}

.summaryHeadline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.summaryAverage {
  font-size: 48px;
  font-weight: 800;
  color: #17232f;
  line-height: 1;
  letter-spacing: -0.02em;
}

.summaryHeadlineText {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summaryTotal {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.summaryBreakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.breakdownRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breakdownLabel {
  width: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.breakdownTrack {
  flex: 1;
  height: 7px;
  background: #edf1ee;
  border-radius: 4px;
  overflow: hidden;
}

.breakdownFill {
  height: 100%;
  background: #f5a623;
  border-radius: 4px;
}

.breakdownCount {
  width: 28px;
  text-align: right;
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
}

/* ── Submit Card (single centered card, mirrors crew-exam identify card) ── */
.ratingCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 8px 28px rgba(20, 40, 30, 0.05);
  box-sizing: border-box;
}

.topIconHeader {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.iconBadgeWrapper {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border: 2px solid #e5e9e6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #269436;
  box-shadow: 0 4px 14px rgba(38, 148, 54, 0.08);
}

.cardTitle {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  color: #17232f;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cardTitleHighlight {
  color: #269436;
}

.cardDesc {
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: #52616b;
  max-width: 480px;
  margin: 0 auto 28px;
}

.ratingForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.starsPickerWrapper {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.questionsList {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.questionBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fafcfa;
  border: 1px solid #eef1ee;
  border-radius: 14px;
  text-align: center;
}

.questionText {
  font-size: 14px;
  font-weight: 700;
  color: #17232f;
  margin: 0;
}

.answerSummaryRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f2;
  text-align: left;
}

.answerSummaryRow:last-child {
  border-bottom: none;
}

.answerSummaryQuestion {
  font-size: 13px;
  color: #52616b;
  flex: 1;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inputLabel {
  font-size: 13px;
  font-weight: 700;
  color: #17232f;
}

.textArea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 12px;
  outline: none;
  min-height: 110px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.textArea:focus {
  border-color: #269436;
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.12);
}

.errorBanner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 13px;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
}

.btnStart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  background: #269436;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btnStart:hover:not(:disabled) {
  background: #1f7f2e;
}

.btnStart:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.submittedSummary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  text-align: center;
}

.submittedSummary .testimonialText {
  max-width: 460px;
}

.submittedAnswersList {
  width: 100%;
  max-width: 460px;
}

/* ── List Page Hero ──────────────────────────────────────────────── */
.listHero {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  background: #fafcfa;
}

.listHeroBgDecoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.listHeroBgSvg {
  width: 100%;
  height: 100%;
}

.listHeroInner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.listHeroContent {
  max-width: 640px;
}

.eyebrowWrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #269436;
}

.eyebrowLine {
  width: 32px;
  height: 2px;
  background: #269436;
  opacity: 0.7;
}

.listHeroTitle {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: #17232f;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.listHeroTitleAccent {
  color: #269436;
}

.listHeroDesc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #52616b;
  margin: 0;
  max-width: 480px;
}

.listHeroBadge {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a623 0%, #e5890a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}

.listHeroBadgeIcon {
  color: #ffffff;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .summaryPanel {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .summaryHeadline {
    justify-content: center;
  }
  .listHeroInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .ratingCard {
    padding: 28px 20px;
  }
  .cardTitle {
    font-size: 26px;
  }
  .listHero {
    padding: 40px 0;
  }
  .listHeroTitle {
    font-size: 30px;
  }
  .listHeroBadge {
    width: 64px;
    height: 64px;
  }
}
