.tenq-rater {
  --tenq-primary: #2364aa;
  --tenq-accent: #2f9c95;
  --tenq-bg: #f6f8fb;
  --tenq-surface: #ffffff;
  --tenq-text: #172033;
  --tenq-cta-bg: #2364aa;
  --tenq-cta-text: #ffffff;
  --tenq-cta-hover-bg: #174271;
  --tenq-cta-hover-text: #ffffff;
  background: var(--tenq-bg);
  color: var(--tenq-text);
  font-family: inherit;
  padding: clamp(24px, 4vw, 44px);
}

.tenq-rater *,
.tenq-rater *::before,
.tenq-rater *::after {
  box-sizing: border-box;
}

.tenq-rater__inner {
  margin: 0 auto;
  max-width: 920px;
}

.tenq-rater__header {
  margin-bottom: 24px;
}

.tenq-rater__eyebrow {
  color: var(--tenq-primary);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tenq-rater h2,
.tenq-rater h3,
.tenq-rater h4,
.tenq-rater p {
  margin-top: 0;
}

.tenq-rater h2 {
  color: var(--tenq-text);
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.tenq-rater--title-small h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
}

.tenq-rater--title-large h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tenq-rater__header p:last-child {
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 780px;
}

.tenq-rater__form,
.tenq-rater__results {
  display: grid;
  gap: 16px;
}

.tenq-rater__questions {
  display: grid;
  gap: 14px;
}

.tenq-rater__group-heading {
  color: var(--tenq-primary);
  font-size: 0.8rem;
  font-weight: 800;
  margin: 16px 0 0;
  text-transform: uppercase;
}

.tenq-rater--category-heading-small .tenq-rater__group-heading {
  font-size: 0.75rem;
}

.tenq-rater--category-heading-large .tenq-rater__group-heading {
  font-size: 0.95rem;
}

.tenq-rater__group-heading:first-child {
  margin-top: 0;
}

.tenq-rater__question,
.tenq-rater__score-card,
.tenq-rater__next-step {
  background: var(--tenq-surface);
  border: 1px solid color-mix(in srgb, var(--tenq-text) 10%, transparent);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  padding: clamp(16px, 2.5vw, 24px);
}

.tenq-rater__question-head {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
}

.tenq-rater__question-number {
  align-items: center;
  background: color-mix(in srgb, var(--tenq-primary) 13%, transparent);
  border-radius: 999px;
  color: var(--tenq-primary);
  display: inline-flex;
  font-weight: 750;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.tenq-rater__question h3 {
  color: var(--tenq-text);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.tenq-rater__help,
.tenq-rater__scale {
  color: color-mix(in srgb, var(--tenq-text) 68%, transparent);
  font-size: 0.88rem;
}

.tenq-rater__help {
  margin: 8px 0 0;
}

.tenq-rater__value {
  align-items: center;
  background: var(--tenq-text);
  border-radius: 8px;
  color: var(--tenq-surface);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  min-width: 42px;
}

.tenq-rater input[type='range'] {
  accent-color: var(--tenq-primary);
  margin: 18px 0 8px;
  width: 100%;
}

.tenq-rater__scale {
  display: flex;
  justify-content: space-between;
}

.tenq-rater__button {
  align-items: center;
  background: var(--tenq-primary);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
  width: fit-content;
}

.tenq-rater__button:hover,
.tenq-rater__button:focus {
  background: color-mix(in srgb, var(--tenq-primary) 86%, #000000);
  color: #ffffff;
}

.tenq-rater .tenq-rater__cta-button,
.tenq-rater .tenq-rater__cta-button:visited {
  background: var(--tenq-cta-bg);
  color: var(--tenq-cta-text);
}

.tenq-rater .tenq-rater__cta-button:hover,
.tenq-rater .tenq-rater__cta-button:focus {
  background: var(--tenq-cta-hover-bg);
  color: var(--tenq-cta-hover-text);
}

.tenq-rater__cta {
  display: flex;
  justify-content: flex-start;
}

.tenq-rater__cta--center {
  justify-content: center;
}

.tenq-rater__cta--right {
  justify-content: flex-end;
}

.tenq-rater__results {
  margin-top: 22px;
}

.tenq-rater__score-card {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
}

.tenq-rater__score-ring {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--tenq-surface) 57%, transparent 58%),
    conic-gradient(var(--tenq-accent), var(--tenq-primary));
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 136px;
}

.tenq-rater__score-ring strong {
  font-size: 2.6rem;
  line-height: 1;
}

.tenq-rater__score-ring span {
  font-weight: 750;
}

.tenq-rater__score-card h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.tenq-rater__focus {
  background: color-mix(in srgb, var(--tenq-accent) 12%, transparent);
  border-left: 4px solid var(--tenq-accent);
  border-radius: 8px;
  margin-top: 14px;
  padding: 12px 14px;
}

.tenq-rater__focus span {
  color: color-mix(in srgb, var(--tenq-text) 62%, transparent);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.tenq-rater__focus strong {
  color: var(--tenq-text);
  display: block;
}

.tenq-rater__metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tenq-rater__metric {
  background: var(--tenq-surface);
  border: 1px solid color-mix(in srgb, var(--tenq-text) 10%, transparent);
  border-radius: 8px;
  padding: 14px 16px;
}

.tenq-rater__metric span {
  color: color-mix(in srgb, var(--tenq-text) 62%, transparent);
  display: block;
  font-size: 0.88rem;
}

.tenq-rater__metric strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 4px;
}

.tenq-rater__bars {
  background: var(--tenq-surface);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 24px);
}

.tenq-rater__bar-row > div:first-child {
  display: flex;
  font-size: 0.95rem;
  justify-content: space-between;
  margin-bottom: 7px;
}

.tenq-rater__bar {
  background: color-mix(in srgb, var(--tenq-text) 10%, transparent);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.tenq-rater__bar i {
  background: linear-gradient(90deg, var(--tenq-primary), var(--tenq-accent));
  display: block;
  height: 100%;
}

.tenq-rater__next-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tenq-rater__next-step h4:not(:first-child) {
  margin-top: 24px;
}

@media (max-width: 680px) {
  .tenq-rater {
    padding: 20px 14px;
  }

  .tenq-rater__question-head,
  .tenq-rater__score-card {
    grid-template-columns: 1fr;
  }

  .tenq-rater__value {
    justify-self: start;
  }
}
