/* Reuse Library Survey - inherits .eg-app design system from job-application.css */

:root {
  --eg-gap: 1rem;
  --eg-gap-lg: 1.25rem;
  --eg-field-gap: .375rem;
  --eg-br: 6px;
  --eg-success-bg: var(--global--color-notice-success-bg, #d1fae5);
  --eg-success-border: var(--global--color-notice-success-border, #15803d);
  --eg-success-accent: var(--global--color-notice-success-accent, #16a34a);
  --eg-success-text: var(--global--color-notice-success-text, #14532d);
}

/* Layout */
.rls-survey.eg-app { max-width: 720px; margin-inline: auto; padding: 1rem; padding-top: 1.5rem; }

.eg-h2 { font-size: 1.25rem; margin: 1.25rem 0 .75rem; }
.eg-section { margin-block: 1.25rem; }
.eg-hidden { display: none; }

/* Section headers with gradient background */
.rls-section-header {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  padding: .75rem 1.25rem;
  margin: 1.5rem -1rem .75rem;
  border-radius: var(--eg-br);
  color: #2c5e54;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-left: 3px solid #8aa79d;
}

/* Phone verify row */
.rls-phone-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}

.rls-phone-row .eg-input {
  flex: 1;
}

.rls-verify-btn {
  padding: .625rem 1.25rem;
  background: linear-gradient(135deg, #bfe2dc 0%, #d0ddd8 100%);
  color: #1f1f1f;
  border: 1px solid #a5ccbc;
  border-radius: var(--eg-br);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.rls-verify-btn:hover {
  background: linear-gradient(135deg, #a5ccbc 0%, #bfe2dc 100%);
}

.eg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--eg-gap-lg) var(--eg-gap);
}

.eg-field { display: flex; flex-direction: column; gap: var(--eg-field-gap); min-width: 0; }
.eg-span-2 { grid-column: 1 / -1; }
.eg-req { color: #b91c1c; margin-left: .25rem; }

.eg-input, .eg-textarea {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid #d3d6da;
  border-radius: var(--eg-br);
  background: #fff;
  font: inherit;
}

.eg-textarea { min-height: 5rem; resize: vertical; }

.eg-input::placeholder,
.eg-textarea::placeholder {
  color: #aaa;
  font-style: italic;
  opacity: 1;
}

/* ──────────── Card-style choices ──────────── */
.eg-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem;
}
.eg-choices-vertical {
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .eg-choices { grid-template-columns: 1fr; }
}

.eg-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
  background: #f8fafb;
  border: 1.5px solid #d3d6da;
  border-radius: var(--eg-br);
  cursor: pointer;
  line-height: 1.4;
  transition: background .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.eg-choice:hover {
  border-color: #a5ccbc;
  background: #f0f7f5;
}

.eg-choice:active {
  transform: scale(.98);
}

/* Hide native checkbox input (card style) */
.eg-choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Show native radio input as visible circle on the left */
.eg-choice input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #2c5e54;
  margin: 0;
  cursor: pointer;
}

/* Selected state */
.eg-choice:has(input:checked) {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  border-color: #2c5e54;
  box-shadow: 0 0 0 2px #bfe2dc;
}

/* Selection indicator — checkmark for checkboxes, dot for radios */
.eg-choice::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  color: transparent;
  font-weight: 700;
  transition: color .2s;
}

.eg-choice:has(input[type="checkbox"]:checked)::after {
  content: '\2713';
  color: #2c5e54;
}

/* No extra indicator for radios — native circle is visible */

.eg-choice span {
  font-size: .95rem;
}

.eg-note {
  font-size: .875rem;
  font-weight: 400;
  color: #555;
  display: inline;
}

/* ──────────── Range slider (blue-to-green ombre) ──────────── */
.rls-slider { padding-top: .25rem; }

.rls-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d7edf7, #d3eeea, #bfe2dc, #1f7a73);
  outline: none;
  cursor: pointer;
  margin: .5rem 0 .625rem;
}

/* Thumb */
.rls-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c5e54;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: grab;
  transition: transform .15s, box-shadow .15s;
}

.rls-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c5e54;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: grab;
}

.rls-range:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 2px 8px rgba(44,94,84,.35); }
.rls-range:active::-moz-range-thumb { transform: scale(1.15); box-shadow: 0 2px 8px rgba(44,94,84,.35); }

/* Inactive (unanswered) state */
.rls-slider--inactive .rls-range { background: linear-gradient(90deg, #e8eef2, #e0eef0, #dce8e4); }
.rls-slider--inactive .rls-range::-webkit-slider-thumb {
  background: #a5ccbc;
  border-color: #fff;
  box-shadow: 0 0 0 0 rgba(138,167,157,.5);
  animation: rls-pulse 2s ease-in-out infinite;
}
.rls-slider--inactive .rls-range::-moz-range-thumb {
  background: #a5ccbc;
  border-color: #fff;
  box-shadow: 0 0 0 0 rgba(138,167,157,.5);
  animation: rls-pulse 2s ease-in-out infinite;
}
.rls-slider--inactive .rls-slider-labels span { color: #a5ccbc; }


@keyframes rls-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138,167,157,.4); }
  50% { box-shadow: 0 0 0 8px rgba(138,167,157,0); }
}

/* Labels row */
.rls-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: #555;
  line-height: 1.3;
  gap: .25rem;
}

.rls-slider-labels span {
  flex: 1;
  text-align: center;
  transition: color .15s, font-weight .15s;
}

.rls-slider-labels span:first-child { text-align: left; }
.rls-slider-labels span:last-child { text-align: right; }

.rls-slider-labels span.rls-label-active {
  color: #2c5e54;
  font-weight: 600;
}


/* Intro card */
.rls-intro {
  background: #f8fafb;
  border: 1px solid #d3d6da;
  border-radius: var(--eg-br);
  padding: 0 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.rls-intro h2 {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  padding: 1rem 1.5rem;
  margin: 0 -1.5rem 1rem;
  border-radius: var(--eg-br) var(--eg-br) 0 0;
  border-left: 3px solid #8aa79d;
  color: #2c5e54;
  font-size: 1.4rem;
  text-align: center;
}

.rls-intro p {
  margin: 0 0 .75rem;
  line-height: 1.6;
}

.rls-intro p:last-child { margin-bottom: 0; }

/* Quick-scan highlight pills */
.rls-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 1rem 0;
}

.rls-highlight {
  padding: .35rem .75rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rls-highlight:nth-child(1) {
  background: #e8f5f3;
  border: 1px solid #bfe2dc;
  color: #2c5e54;
}

.rls-highlight:nth-child(2) {
  background: #d3eeea;
  border: 1px solid #a5ccbc;
  color: #1f7a73;
}

.rls-highlight:nth-child(3) {
  background: #d7edf7;
  border: 1px solid #b0d4e8;
  color: #1f6d86;
}

.rls-incentive {
  background: #e8f5f3;
  border: 1px solid #bfe2dc;
  border-radius: var(--eg-br);
  padding: .75rem 1rem;
  margin-top: 1rem !important;
}

.rls-footnote {
  font-size: .8rem;
  color: #777;
  font-style: italic;
  margin-top: auto !important;
  padding-top: 1.5rem;
  line-height: 1.4;
}

/* Deadline note */
.rls-deadline-note {
  text-align: center;
  font-size: 1.05rem;
  color: #2c5e54;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

/* Closed notice */
.rls-closed-notice {
  text-align: center;
  padding: 3rem 1.5rem;
}
.rls-closed-notice h2 {
  color: #2c5e54;
  margin-bottom: 1rem;
}
.rls-closed-notice p {
  font-size: 1.05rem;
  color: #555;
  max-width: 480px;
  margin-inline: auto;
}

/* Start button */
.rls-start-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.rls-start-btn {
  display: inline-block;
  padding: .875rem 3rem;
  background: linear-gradient(135deg, #2c5e54 0%, #3a7a6d 100%);
  color: #fff;
  border: none;
  border-radius: var(--eg-br);
  font: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
}

.rls-start-btn:hover {
  background: linear-gradient(135deg, #245249 0%, #2c5e54 100%);
  box-shadow: 0 4px 12px rgba(44,94,84,.25);
  transform: translateY(-1px);
}

/* Form hidden until Start is clicked */
#rls-form { display: none; }
#rls-form.rls-form--started { display: block; }

/* Phone step hints */
/* Section break (replaced by .rls-section-header gradient headers) */

/* Questions */
.rls-question {
  padding: .875rem 1rem;
  margin: .5rem 0;
  background: #fafbfb;
  border: 1px solid #eceae6;
  border-radius: var(--eg-br);
  transition: border-color .3s, box-shadow .3s;
}

.rls-question-group {
  border: 1px solid #d5d3cd;
  border-radius: var(--eg-br);
  padding: .5rem;
  margin: .5rem 0;
  background: #f5f5f3;
}
.rls-question-group .rls-question {
  border-color: #eceae6;
  background: #fafbfb;
}
.rls-question-group .rls-q10-intro {
  border: none;
  background: transparent;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rls-question--highlight {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,.15);
}

.rls-q-label {
  font-weight: 500;
  margin-bottom: .5rem;
  display: block;
  line-height: 1.5;
}

.rls-q-sublabel {
  font-size: .9rem;
  color: #444;
}

/* Brand accent on radio & checkbox */
/* (native inputs hidden — card style handles selection) */

/* Phone status indicator */
.rls-phone-status {
  font-size: .9rem;
  line-height: 1.5;
  min-height: 1.25em;
  display: block;
  border-radius: var(--eg-br);
  margin-top: .5rem;
}

.rls-phone-status.status-found {
  background: #e8f5f3;
  border: 1px solid #bfe2dc;
  color: #2c5e54;
  padding: .625rem .875rem;
}

.rls-phone-status.status-no-account {
  background: #fef9ee;
  border: 1px solid #f0d9a0;
  color: #6b5a2e;
  padding: .625rem .875rem;
}

.rls-phone-status.status-duplicate {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: .625rem .875rem;
}

.rls-phone-status.status-checking { color: #6b7280; }

.rls-question:has(.rls-step-heading) {
  padding-top: 0;
  overflow: hidden;
}

.rls-step-heading {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  padding: .75rem 1.25rem;
  margin: 0 -1rem .75rem;
  border-left: 3px solid #8aa79d;
  font-size: 1.2rem;
  color: #2c5e54;
  font-weight: 700;
}

.rls-phone-hint {
  font-size: .95rem;
  color: #555;
  margin-top: .25rem !important;
  margin-bottom: .75rem !important;
  line-height: 1.5;
}

/* Submit button */
.rls-submit-section { text-align: center; padding-top: .5rem; }

.rls-submit-btn {
  display: inline-block;
  padding: .75rem 2.5rem;
  background: linear-gradient(135deg, #bfe2dc 0%, #d0ddd8 100%);
  color: #1f1f1f;
  border: 1px solid #a5ccbc;
  border-radius: var(--eg-br);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.rls-submit-btn:hover {
  background: linear-gradient(135deg, #a5ccbc 0%, #bfe2dc 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rls-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Status messages */
.rls-status {
  padding: 0.75rem 1rem;
  border-radius: var(--eg-br);
  margin-bottom: 1rem;
  font-weight: 500;
  display: none;
}

.rls-status:not(:empty) { display: block; }

.rls-status.eg-error {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* Success wrap (notice + personal message) */
.rls-success-wrap {
  display: none;
}
.rls-success-wrap.show { display: block; }

.rls-success-notice {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  border: 1px solid #bfe2dc;
  border-left: 3px solid #8aa79d;
  color: #2c5e54;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 540px;
  border-radius: var(--eg-br);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
}

.rls-success-message { font-weight: 600; font-size: 1.15rem; }

.rls-success-personal {
  max-width: 540px;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.rls-success-personal p { margin: 0 0 .75rem; }

.rls-success-personal a {
  color: #1f7a73;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rls-success-personal a:hover { color: #2c5e54; }

.rls-success-signature {
  font-weight: 600;
  color: #2c5e54;
  margin-top: .5rem;
}

/* CTA banner */
.rls-cta-card {
  background: linear-gradient(135deg, #e8f5f3 0%, #f8fafb 100%);
  border: 1px solid #bfe2dc;
  border-radius: var(--eg-br);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.rls-cta-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: #2c5e54;
}

.rls-cta-card p { margin: 0 0 .75rem; line-height: 1.5; }

.rls-cta-link {
  display: inline-block;
  padding: .5rem 1.5rem;
  background: linear-gradient(135deg, #bfe2dc 0%, #d0ddd8 100%);
  color: #1f1f1f;
  border: 1px solid #a5ccbc;
  border-radius: var(--eg-br);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.rls-cta-link:hover {
  background: linear-gradient(135deg, #a5ccbc 0%, #bfe2dc 100%);
  color: #1f1f1f;
  text-decoration: none;
}

.rls-cta-compact { font-size: .95rem; }
.rls-cta-compact .rls-cta-link { padding: .375rem 1rem; font-size: .875rem; }

/* Survey page: unified background — force everything to match */
body.rls-survey-page,
.rls-survey-page .site-container,
.rls-survey-page .site-inner,
.rls-survey-page .wrap,
.rls-survey-page .content-sidebar-wrap,
.rls-survey-page .content,
.rls-survey-page .entry,
.rls-survey-page .entry-content,
.rls-survey-page .footer-widgets,
.rls-survey-page .site-footer {
  background: #f0f5f3 !important;
}

.rls-survey-page .top-bar,
.rls-survey-page .cce-header-toggle-bar,
.rls-survey-page .breadcrumb,
.rls-survey-page .entry-header { display: none !important; }

/* Slim footer: keep only copyright line */
/* Hide entire theme footer on survey page */
.rls-survey-page .footer-extended,
.rls-survey-page .site-footer { display: none !important; }

/* Footer removed — copyright implied, sticky header has branding */

/* ──────────── Step pagination ──────────── */

/* Section label + progress bar wrapper */
.rls-progress-section {
  margin-bottom: 1.25rem;
}

.rls-section-label {
  display: block;
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  padding: .6rem 1rem;
  margin: 0 -1rem .75rem;
  border-radius: var(--eg-br);
  border-left: 3px solid #8aa79d;
  color: #2c5e54;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity .3s ease;
}

.rls-section-label:empty {
  display: none;
}

/* Progress bar */
.rls-progress {
  height: 4px;
  background: #eceae6;
  border-radius: 2px;
  overflow: hidden;
}

.rls-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #bfe2dc, #2c5e54);
  border-radius: 2px;
  transition: width .4s ease;
}

/* Steps */
.rls-step {
  display: none;
  animation: rls-fadeIn .35s ease both;
}

.rls-step--active {
  display: block;
  padding-top: 1.5rem;
}

/* Transition classes */
.rls-step--exit-left {
  animation: rls-fadeOutLeft .25s ease both;
}

.rls-step--exit-right {
  animation: rls-fadeOutRight .25s ease both;
}

.rls-step--enter-right {
  animation: rls-fadeInRight .35s ease both;
}

.rls-step--enter-left {
  animation: rls-fadeInLeft .35s ease both;
}

@keyframes rls-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rls-fadeOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

@keyframes rls-fadeOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

@keyframes rls-fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rls-fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Section header inside steps -- tighter top margin */
.rls-step .rls-section-header {
  margin-top: 0;
}

/* Step navigation */
.rls-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 .5rem;
  gap: .75rem;
}

.rls-nav-btn {
  padding: .625rem 1.5rem;
  border-radius: var(--eg-br);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.rls-nav-back {
  background: transparent;
  color: #555;
  border: 1px solid #d3d6da;
}

.rls-nav-back:hover {
  background: #f5f5f5;
}

.rls-nav-next {
  background: #d3d6da;
  color: #999;
  border: 1px solid #c5c8cc;
  margin-left: auto;
  cursor: default;
  transition: background .3s, color .3s, border-color .3s;
}

.rls-nav-next.rls-nav--ready {
  background: linear-gradient(135deg, #bfe2dc 0%, #d0ddd8 100%);
  color: #1f1f1f;
  border: 1px solid #a5ccbc;
  cursor: pointer;
}

.rls-nav-next.rls-nav--ready:hover {
  background: linear-gradient(135deg, #a5ccbc 0%, #bfe2dc 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rls-step-nav .rls-submit-btn {
  margin-left: auto;
}

/* ──────────────── Responsive ──────────────── */

/* Tablet */
@media (max-width: 768px) {
  .rls-survey.eg-app { max-width: 100%; padding: 1rem; }
  .rls-intro { padding: 1rem 1.25rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .rls-survey.eg-app { padding: .75rem; }
  .rls-intro { padding: .875rem 1rem; }
  .rls-intro h2 { font-size: 1.15rem; }
  .rls-intro p { font-size: .925rem; }
  .eg-grid { grid-template-columns: 1fr; }
  .eg-choices { gap: .5rem; }
  .rls-q-label { font-size: .95rem; }
  .rls-question { padding: .75rem .75rem; }
  .rls-submit-btn { width: 100%; padding: .875rem 1rem; }
  .rls-start-btn { width: 100%; padding: .875rem 1rem; }
  .rls-section-header { margin: 1.25rem -.75rem .75rem; padding: .625rem 1rem; font-size: 1.05rem; }
  .rls-incentive { padding: .625rem .875rem; font-size: .925rem; }
  .rls-phone-row { flex-wrap: wrap; }
  .rls-verify-btn { padding: .75rem 1.25rem; }
  .rls-slider-labels { font-size: .7rem; }
  .rls-range::-webkit-slider-thumb { width: 26px; height: 26px; }
  .rls-range::-moz-range-thumb { width: 26px; height: 26px; }
  .rls-nav-btn { padding: .75rem 1.25rem; }
}

/* Small mobile */
@media (max-width: 380px) {
  .rls-survey.eg-app { padding: .5rem; }
  .rls-intro { padding: .75rem; }
  .eg-input, .eg-textarea { padding: .5rem .625rem; font-size: .925rem; }
  .eg-choice span { font-size: .9rem; }
}

/* ═════════════════════════════════════════════════════════════════
 * Results-mode styles (published state)
 * Scoped to [data-mode="results"] so they never collide with form mode.
 * ═════════════════════════════════════════════════════════════════ */

.rls-survey[data-mode="results"] .rls-welcome-subtle {
  color: #4a6b62;
  font-size: .95rem;
  margin-top: 1rem;
}

.rls-result-chart {
  background: #ffffff;
  border: 1px solid #d9e8e0;
  border-radius: 10px;
  padding: 1rem 1rem .75rem;
  margin: .75rem 0 1rem;
  min-height: 280px;
  position: relative;
}

.rls-result-chart canvas {
  max-height: 260px;
}

.rls-result-chart[data-chart-type="doughnut"] {
  min-height: 340px;
}

.rls-result-chart[data-chart-type="doughnut"] canvas {
  max-height: 300px;
}

.rls-result-chart .rls-chart-n {
  margin: .5rem 0 0;
  font-size: .8125rem;
  color: #6a7f78;
  text-align: right;
}

.rls-decision {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 100%);
  border-left: 4px solid #7cb9a0;
  border-radius: 6px;
  padding: .875rem 1rem;
  margin: .5rem 0 1.25rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: #2c5e54;
}

.rls-decision-label {
  display: inline-block;
  font-weight: 700;
  margin-right: .4rem;
  color: #1e4a42;
}

.rls-decision-text {
  color: #2c5e54;
}

/* Grant credit block — small and subtle at the bottom of each step */
.rls-grant-credit {
  background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
  border: 1px solid #a5ccbc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 .5rem;
  text-align: center;
}

.rls-grant-credit p {
  margin: 0;
  font-size: .875rem;
  color: #2c5e54;
  line-height: 1.55;
}

/* Quote rotator — reuses the homepage .eg-testimonials markup so rotators.js
 * picks it up automatically (pause-on-hover, 7s interval, reduced-motion aware).
 * Styles are mirrored from homepage-controlling-styles.css section 12 so the
 * survey page does not depend on that file being loaded. */
.rls-quotes-intro {
  color: #4a6b62;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.rls-quotes-rotator-wrap.eg-testimonials {
  max-width: 680px;
  margin: 1rem auto;
  padding: 1.75rem 1rem 1.5rem;
  background: #f4faf7;
  border: 1px solid #d9e8e0;
  border-radius: 10px;
  text-align: center;
}

.rls-quotes-rotator-wrap .eg-testimonials__rotator {
  position: relative;
  min-height: 180px;
}

.rls-quotes-rotator-wrap .eg-testimonials__item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.rls-quotes-rotator-wrap .eg-testimonials__item.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.rls-quotes-rotator-wrap .eg-testimonials__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #2c5e54;
  font-style: italic;
  max-width: 580px;
}

.rls-quotes-rotator-wrap .eg-testimonials__cite {
  font-size: .8125rem;
  color: #6a7f78;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rls-quotes-rotator-wrap .eg-testimonials__author {
  font-weight: 600;
  color: #4a6b62;
}

.rls-quotes-rotator-wrap .eg-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
}

.rls-quotes-rotator-wrap .eg-testimonials__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfe1d9;
  transition: background 250ms ease, transform 250ms ease;
}

.rls-quotes-rotator-wrap .eg-testimonials__dot.is-active {
  background: #2c5e54;
  transform: scale(1.15);
}

.rls-quote-placeholder {
  color: #6a7f78;
  font-size: .9rem;
  padding: 1rem;
  background: #f4faf7;
  border: 1px dashed #a5ccbc;
  border-radius: 8px;
}

.rls-final-cta {
  margin: 2rem 0 1rem;
  text-align: center;
}

.rls-final-cta .rls-submit-btn {
  display: inline-block;
  text-decoration: none;
  padding: .875rem 1.5rem;
  background: linear-gradient(135deg, #9cc9b4 0%, #7cb9a0 100%);
  color: #1e4a42;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #7cb9a0;
  transition: opacity .2s ease;
}

.rls-final-cta .rls-submit-btn:hover {
  opacity: .9;
}

/* Question sublabels in the return-window group stay tight */
.rls-survey[data-mode="results"] .rls-q-sublabel {
  margin-bottom: .25rem;
}
