/* =========================================
   RAIN DRY EYE QUIZ – NEW DESIGN
   ========================================= */

/* Wrap & layout */
.secone {
    /* FIX: was 720px (too narrow -> makes quiz feel tall/elongated) */
    max-width: 740px;
    margin: 0 auto 48px;
    padding: 0 16px;
    width: 100%;
}

.secone .container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Quiz card */
.s1box {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px 26px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid #e5e7eb;
}

/* Heading + subheading */
.s1box-hding {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin: 0 0 6px;
    text-transform: none;
}

.s1box-sub {
    font-size: 14px;
    text-align: center;
    color: #4b5563;
    margin: 0 0 18px;
}

/* Inner container */
.s1innerbox {
    margin-top: 8px;

    /* FIX: allow inner quiz to take full available width */
    width: 100%;
    max-width: 900px;   /* keeps it from becoming too wide on desktop */
    margin-left: auto;
    margin-right: auto;
}

/* Each slide */
.s1innerbox .slide {
    /* JS controls display; no global display rule here */
}

/* Step label */
.stephding {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    text-align: center;
    margin: 0 0 6px;
}

/* Question text */
.qtn-one {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    margin: 0 0 14px;
}

.qtn-note {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

/* Answer lists */
.s1innerbox ul.step-list,
.s1innerbox ul.step1-list,
.s1innerbox ul.step2-list {
    list-style: none;
    margin: 0 auto 10px;
    padding: 0;

    /* You can bump this if you want the answers wider */
    max-width: 420px;
}

.s1innerbox ul.step-list li,
.s1innerbox ul.step1-list li,
.s1innerbox ul.step2-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Label & input styling */
.s1innerbox ul.step-list li label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Hover state */
.s1innerbox ul.step-list li label:hover {
    border-color: #fb7185;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.5);
    background: #fef2f2;
}

/* Radio / checkbox styling */
.chkbx {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #9ca3af;
    background: #ffffff;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

/* Checkbox vs radio visual tweak */
input[type="checkbox"].chkbx {
    border-radius: 6px;
}

/* Checked state */
.chkbx:checked {
    border-color: #b91c1c;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
}

/* Little inner dot/check using pseudo-element */
.chkbx:checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: #fee2e2;
}

/* Skip this step link */
.skiptxt {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    text-decoration: underline;
    margin: 8px 0 0;
    cursor: pointer;
}

.skiptxt:hover {
    color: #374151;
    text-decoration: none;
}

/* Primary button – big red/orange conversion button */
.s1innerbox .step-btn,
.s1innerbox .finish-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 18px auto 4px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(220, 38, 38, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.s1innerbox .step-btn:hover,
.s1innerbox .finish-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 40px rgba(185, 28, 28, 0.6);
}

.s1innerbox .step-btn:active,
.s1innerbox .finish-btn:active {
    transform: translateY(0px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.5);
}

/* Optional arrow icon in button */
.btnarrow {
    width: 18px;
    height: auto;
    margin-left: 6px;
}

/* Analyzing step */
.step4-txt1 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    margin: 20px 0 12px;
}

.step4-mid {
    max-width: 420px;
    margin: 12px auto 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.step4-midlft {
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step4-midrgt {
    flex: 1;
}

.loader {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid #e5e7eb;
    border-top-color: #ef4444;
    animation: spin 0.7s linear infinite;
}

.loader-txt {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.greencheck {
    width: 40px;
    height: auto;
}

ul.step4-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.step4-list li {
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

ul.step4-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4444;
}

/* Extra text after analyzing */
.step4-txt2 {
    font-size: 13px;
    color: #111827;
    text-align: center;
    margin-top: 14px;
}

.sl4-btm {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.sl4-btm a {
    color: #ef4444;
    text-decoration: underline;
}

/* After-quiz copy */
.after-quiz-copy {
    margin-top: 22px;
    text-align: center;
}

.after-quiz-copy h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}

.after-quiz-copy p {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

/* Utility */
.clearall {
    clear: both;
    height: 0;
}

/* Simple spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .s1box {
        border-radius: 18px;
        padding: 20px 16px 22px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    }
    .s1box-hding {
        font-size: 20px;
    }
    .qtn-one {
        font-size: 17px;
    }
    .s1innerbox ul.step-list,
    .s1innerbox ul.step1-list,
    .s1innerbox ul.step2-list {
        max-width: 100%;
    }
    .step4-mid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- CENTER THE QUIZ BUTTON TEXT PERFECTLY --- */
.s1innerbox .step-btn,
.s1innerbox .finish-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 56px;
    padding: 0 22px;

    width: 100%;
    max-width: 280px;
    margin: 18px auto 4px;

    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;

    line-height: 1;
    box-shadow: 0 14px 32px rgba(220, 38, 38, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.s1innerbox .step-btn:hover,
.s1innerbox .finish-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 40px rgba(185, 28, 28, 0.6);
}

.s1innerbox .step-btn:active,
.s1innerbox .finish-btn:active {
    transform: translateY(0px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.5);
}

/* Make sure the arrow icon is centered with text */
.btnarrow {
    display: inline-block;
    margin-left: 8px;
    height: 18px;
    width: auto;
    vertical-align: middle;
}

/* =========================================
   Vision Health Daily – Footer Styles
   ========================================= */

.vh-footer {
    margin-top: 60px;
    padding: 32px 16px 40px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.vh-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Nav links */
.vh-footer-nav {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 18px;
}

.vh-footer-nav a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 4px;
}

.vh-footer-nav a:hover {
    text-decoration: underline;
}

/* Logo */
.vh-footer-logo {
    margin: 10px 0 10px;
}

.vh-footer-logo img {
    max-width: 200px;
    height: auto;
}

/* Text + tagline */
.vh-footer-text h5 {
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    color: #374151;
    margin: 8px 0 4px;
}

.vh-footer-meta {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px;
}

/* Light medical note */
.vh-footer-note {
    max-width: 720px;
    margin: 10px auto 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 640px) {
    .vh-footer-note {
        text-align: center;
    }
}

/* =========================================
   QUIZ SECTION WRAPPER (on the page)
   ========================================= */

/* Keep quiz section consistent with the page rhythm */
#quiz-section.quiz-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 0;
}

/* Center the header text + tighten spacing */
#quiz-section .quiz-header {
  text-align: center;
  margin: 0 auto 18px;
  padding: 0 15px;
  max-width: 900px;
}

#quiz-section .quiz-header h1 {
  margin: 0 0 8px;
  line-height: 1.15;
}

#quiz-section .quiz-header p {
  margin: 0;
}

/* =========================================
   FIX: Step 4 (Analyzing/Done) layout breaking
   Scoped to the quiz section only
   ========================================= */

#quiz-section .s1innerbox,
#quiz-section .s1innerbox .slide {
  /* prevents float-collapse / overlap from other theme rules */
  overflow: hidden;
}

/* The two-column area (checkmark left, list right) */
#quiz-section .step4-mid {
  display: flex;
  flex-wrap: wrap;              /* allows wrap instead of overlapping */
  align-items: flex-start;
  justify-content: center;
  gap: 16px;

  max-width: 720px;             /* prevents it from getting too wide */
  margin-left: auto;
  margin-right: auto;
}

/* Left column */
#quiz-section .step4-midlft {
  flex: 0 0 120px;              /* stable width for icon/spinner */
  width: 120px;
}

/* Right column */
#quiz-section .step4-midrgt {
  flex: 1 1 320px;              /* grows but won’t crush */
  min-width: 260px;             /* prevents text from stacking weirdly */
}

/* Prevent long text from spilling outside its column */
#quiz-section .step4-midrgt,
#quiz-section .step4-midrgt * {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Force normal document flow for final text blocks */
#quiz-section .step4-txt2,
#quiz-section .sl4-btm,
#quiz-section .step4-txt2 *,
#quiz-section .sl4-btm * {
  position: static !important;
  float: none !important;
  clear: both !important;
}

/* Make the "Done" / redirect line center nicely */
#quiz-section .step4-txt2,
#quiz-section .sl4-btm {
  margin: 12px auto 0;
  text-align: center;
  max-width: 520px;
}

/* ===== FIX ANALYZING / DONE STEP LAYOUT ===== */

#quiz-section .slide-analyzing {
  width: 100%;
}

#quiz-section .step4-mid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;

  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap; /* prevents overlap on smaller widths */
}

/* =========================================
   QUIZ VISUAL EMPHASIS (BLUE BORDER)
   ========================================= */

#quiz-section .s1box {
  border: 4px solid #2da8ff;          /* bright clean blue */
  border-radius: 18px;
  background: #ffffff;

  /* subtle lift so it pops off the gray */
  box-shadow: 0 12px 30px rgba(45, 168, 255, 0.18);

  /* spacing harmony */
  padding: 28px 22px 30px;
}

/* =========================================
   QUIZ HEADER – TIGHTER WIDTH / BETTER RHYTHM
   ========================================= */

#quiz-section .quiz-header {
  max-width: 620px;        /* ← controls line length */
  margin: 0 auto 22px;    /* center + spacing from quiz */
  text-align: center;
}

#quiz-section .quiz-header h1 {
  margin-bottom: 10px;
}

#quiz-section .quiz-header p {
  margin: 0;
}

/* =========================================
   QUIZ TEASER BETWEEN RANKINGS
   ========================================= */

.quiz-teaser {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
}

.quiz-teaser-inner {
  display: block;
  background: #f8fbff;
  border: 2px dashed #2da8ff;
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-teaser-inner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(45, 168, 255, 0.18);
}

.quiz-teaser-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2da8ff;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.quiz-teaser h4 {
  font-size: 20px;
  margin: 6px 0 8px;
}

.quiz-teaser p {
  font-size: 15px;
  margin: 0 0 10px;
  color: #374151;
}

.quiz-teaser-cta {
  font-weight: 700;
  color: #2da8ff;
}

/* =========================================
   MATCH QUESTION TEXT TO QUIZ BLUE
   ========================================= */

#quiz-section .qtn-one {
  color: #2da8ff;        /* same blue as quiz border */
}

#quiz-section .stephding {
  color: #2da8ff;
}

/* =========================================
   ANALYZING TEXT – MATCH QUIZ BLUE
   ========================================= */

#quiz-section .step4-txt1 {
  color: #2da8ff;   /* same blue as quiz border */
}

#quiz-section .loader-txt {
  color: #2da8ff;
}

/* =========================================
   LAST CHANGES: TIGHTER DONE GAP + BIGGER DONE TEXT
   ========================================= */

/* Pull "Done!" closer to the list above */
#quiz-section ul.step4-list {
  margin-bottom: 6px;
}

/* Bigger + tighter "Done!" line */
#quiz-section .step4-txt2 {
  margin-top: 4px !important;     /* less gap from bullets */
  margin-bottom: 6px !important;
  font-size: 22px;                /* bigger */
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

/* Slightly tighter spacing before the fallback line */
#quiz-section .sl4-btm {
  margin-top: 2px;
  font-size: 12px;                /* your markup sets 12px inline; this keeps it consistent */
}