/* ==========================================================================
   Curability Test v2 — STANDALONE isolated styles
   Prefixed ctv2- throughout, cannot collide with any existing theme CSS
   or the live #curability-test widget.
   ========================================================================== */

.ctv2-section {
  --ctv2-orange: #ee9a1b;
  --ctv2-brown: #8c451b;
  --ctv2-cream: #fbf5ea;
  --ctv2-bg: #f3ece0;
  --ctv2-white: #ffffff;
  --ctv2-text: #262422;
  --ctv2-text-muted: #6d6a65;
  --ctv2-border: #ded8cc;
  --ctv2-radius: 16px;
  --ctv2-radius-sm: 10px;

  background: var(--ctv2-bg);
  padding: 56px 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ctv2-text);
  box-sizing: border-box;
}
.ctv2-section, .ctv2-section *, .ctv2-section *::before, .ctv2-section *::after { box-sizing: inherit; }

.ctv2-container { max-width: 1160px; margin: 0 auto; }

.ctv2-panel {
  background: var(--ctv2-cream);
  border: 1px solid var(--ctv2-border);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 20px 50px rgba(20,15,10,.09);
  padding: 22px 40px 30px;
}
.ctv2-panel-title-wrap { text-align: center; }
.ctv2-panel-title {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-size: 17px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ctv2-brown); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 30px; margin: 0 auto 26px; box-shadow: 0 10px 26px rgba(140,69,27,.28);
}
.ctv2-panel-title svg { width: 20px; height: 20px; }

.ctv2-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: stretch;
  transition: grid-template-columns 1.1s cubic-bezier(.25,.75,.25,1), gap 1.1s cubic-bezier(.25,.75,.25,1); }
@media (max-width: 960px) { .ctv2-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Collapse the video/heading column once the quiz starts, so the
   question card takes the full width instead of sitting next to an
   empty column. */
.ctv2-section.ctv2-started .ctv2-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
.ctv2-section.ctv2-started .ctv2-card-wrap { max-width: 780px; margin: 0 auto; }
.ctv2-intro.ctv2-vanish {
  opacity: 0 !important; transform: translateX(-40px) !important; pointer-events: none;
  transition: opacity .5s ease, transform .8s cubic-bezier(.25,.75,.25,1);
}
.ctv2-intro.ctv2-gone { display: none !important; }

.ctv2-intro { display: flex; flex-direction: column; min-width: 0; }
.ctv2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #fdf1de; color: var(--ctv2-orange);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
}
.ctv2-eyebrow svg { width: 14px; height: 14px; }
.ctv2-heading { font-size: 29px; line-height: 1.16; font-weight: 700; color: #1c1a17; margin: 0 0 16px; letter-spacing: -.02em; }
.ctv2-video { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--ctv2-border); background: #000; box-shadow: 0 12px 30px rgba(20,15,10,.12); }
.ctv2-video video { width: 100%; height: 100%; display: block; object-fit: cover; }

.ctv2-card-wrap { display: flex; flex-direction: column; }
.ctv2-card {
  background: var(--ctv2-white); border: 1px solid var(--ctv2-border);
  border-radius: var(--ctv2-radius); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(20,15,10,.08);
  padding: 22px 26px 18px; position: relative; overflow: hidden;
  flex: 1 1 auto; display: flex; flex-direction: column;
}
.ctv2-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ctv2-orange), var(--ctv2-brown)); }

.ctv2-screen[hidden] { display: none !important; }
.ctv2-screen { animation: ctv2Fade .4s ease; }
@keyframes ctv2Fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* intro cover */
.ctv2-introcover { text-align: center; padding: 30px 14px 20px; }
.ctv2-introcover-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fdf1de; color: var(--ctv2-brown);
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.ctv2-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ctv2-orange); }
.ctv2-introcover h3 { font-size: 26px; font-weight: 700; color: #1c1a17; margin: 0 0 12px; line-height: 1.22; letter-spacing: -.025em; }
.ctv2-introcover p { font-size: 14.5px; color: var(--ctv2-text-muted); line-height: 1.6; margin: 0 auto 30px; max-width: 420px; }
.ctv2-introcover-stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 30px; }
.ctv2-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 110px; max-width: 170px; padding: 0 18px; }
.ctv2-stat + .ctv2-stat { border-left: 1px solid var(--ctv2-border); }
.ctv2-stat b { font-size: 27px; font-weight: 700; letter-spacing: -.03em; color: var(--ctv2-brown); }
.ctv2-stat > span:last-child { font-size: 11.5px; font-weight: 700; color: var(--ctv2-text-muted); letter-spacing: .07em; text-transform: uppercase; }
.ctv2-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, var(--ctv2-orange), var(--ctv2-brown));
  border: 0; border-radius: 999px; padding: 14px 32px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(238,154,27,.32); transition: transform .2s ease, box-shadow .2s ease;
}
.ctv2-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(238,154,27,.4); }
.ctv2-cta svg { width: 17px; height: 17px; }
.ctv2-sheen { position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-18deg); animation: ctv2Sheen 3.4s ease-in-out 1.2s infinite; }
@keyframes ctv2Sheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.ctv2-introcover-foot { font-size: 12px; color: var(--ctv2-text-muted); margin-top: 16px; }

/* disease picker */
.ctv2-cover-head { margin-bottom: 14px; }
.ctv2-cover-head h3 { font-size: 20px; font-weight: 700; color: #1c1a17; margin: 0 0 4px; }
.ctv2-cover-head p { font-size: 13.5px; color: var(--ctv2-text-muted); margin: 0; }
.ctv2-search { display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--ctv2-border); border-radius: 999px; padding: 9px 16px; margin-bottom: 16px; background: #fff; }
.ctv2-search svg { width: 16px; height: 16px; color: var(--ctv2-text-muted); flex: 0 0 auto; }
.ctv2-search input { border: 0; outline: 0; font: inherit; font-size: 14px; width: 100%; background: transparent; }
.ctv2-search:focus-within { border-color: var(--ctv2-orange); }
.ctv2-cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 420px; overflow-y: auto; }
@media (max-width: 620px) { .ctv2-cond-grid { grid-template-columns: 1fr; } }
.ctv2-cond {
  display: flex; align-items: center; gap: 11px; text-align: left; font: inherit;
  border: 1.5px solid var(--ctv2-border); border-radius: var(--ctv2-radius-sm);
  padding: 10px 14px; background: #fff; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ctv2-cond:hover { border-color: var(--ctv2-orange); background: #fdf6ea; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(238,154,27,.12); }
.ctv2-cond.active { border-color: var(--ctv2-orange); background: linear-gradient(135deg, #fff6e8, #ffe9c7); box-shadow: 0 6px 18px rgba(238,154,27,.16); }
.ctv2-cond-nm { font-size: 14px; font-weight: 700; color: #1c1a17; }
.ctv2-cond-ar { margin-left: auto; color: var(--ctv2-text-muted); }
.ctv2-empty { font-size: 13.5px; color: var(--ctv2-text-muted); padding: 14px 2px; grid-column: 1 / -1; }

/* quiz header */
.ctv2-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ctv2-step-label { font-size: 16px; font-weight: 700; color: #1c1a17; }
.ctv2-time-est { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ctv2-text-muted); }
.ctv2-time-est svg { width: 15px; height: 15px; }
.ctv2-progress-track { height: 6px; width: 100%; background: var(--ctv2-bg); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.ctv2-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ctv2-orange), var(--ctv2-brown)); border-radius: 999px; transition: width .4s ease; }

/* question tabs (JS-generated) */
.ctv2-loading { text-align: center; padding: 40px 10px; font-size: 14.5px; color: var(--ctv2-text-muted); }
.ctv2-loading-error { color: #b3401f; }
.ctv2-tab { display: flex; align-items: flex-start; gap: 28px; }
.ctv2-tab-question { flex: 1 1 55%; min-width: 0; }
.ctv2-tab-image { flex: 0 0 40%; max-width: 40%; }
.ctv2-tab-image img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--ctv2-radius-sm); border: 1px solid var(--ctv2-border); display: block; }
@media (max-width: 700px) {
  .ctv2-tab { flex-direction: column; gap: 16px; }
  .ctv2-tab-image { max-width: 100%; }
  .ctv2-tab-image img { height: 180px; }
}
.ctv2-question-text { font-size: 19px; font-weight: 700; color: #1c1a17; line-height: 1.3; margin: 0 0 14px; }
.ctv2-options { display: flex; flex-direction: column; gap: 9px; }
.ctv2-option {
  border: 1.5px solid var(--ctv2-border); border-radius: var(--ctv2-radius-sm);
  background: var(--ctv2-white); position: relative;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ctv2-option:hover { border-color: var(--ctv2-orange); background: #fdf6ea; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(238,154,27,.12); }
.ctv2-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctv2-option label { display: flex; align-items: center; gap: 13px; padding: 12px 16px; cursor: pointer; }
.ctv2-option-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9ea4a8; flex: 0 0 auto; position: relative; }
.ctv2-option-dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ctv2-orange); transform: scale(0); transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.ctv2-option-text { font-size: 14.5px; font-weight: 600; color: var(--ctv2-text); }
.ctv2-option.ctv2-selected { border-color: var(--ctv2-orange); background: linear-gradient(135deg, #fff6e8, #ffe9c7); box-shadow: 0 6px 18px rgba(238,154,27,.16); }
.ctv2-option.ctv2-selected .ctv2-option-dot { border-color: var(--ctv2-orange); }
.ctv2-option.ctv2-selected .ctv2-option-dot::after { transform: scale(1); }
.ctv2-option.ctv2-selected .ctv2-option-text { color: var(--ctv2-brown); }

/* contact tab */
.ctv2-tab-contact { display: block; }
.ctv2-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 6px; }
.ctv2-field-full { grid-column: 1 / -1; }
.ctv2-field { display: flex; flex-direction: column; gap: 6px; }
.ctv2-field > span { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ctv2-text-muted); }
.ctv2-input {
  font: inherit; font-size: 14.5px; color: var(--ctv2-text); background: #fff;
  border: 1.5px solid var(--ctv2-border); border-radius: 12px; padding: 12px 15px; outline: 0; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ctv2-input:focus { border-color: var(--ctv2-orange); box-shadow: 0 0 0 3px rgba(238,154,27,.16); }
.ctv2-input.ctv2-invalid { border-color: #c4553a; background: #fbeee9; }
@media (max-width: 620px) { .ctv2-fields { grid-template-columns: 1fr; } }

/* Mobile: turn the 3-column intro stats into stacked full-width cards
   (number left, label right) instead of cramming 3 columns onto one line. */
@media (max-width: 560px) {
  .ctv2-introcover-stats { gap: 14px; margin-bottom: 34px; }
  .ctv2-stat {
    flex: 1 1 100%; max-width: none; padding: 12px 16px;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1.5px solid var(--ctv2-border); border-radius: 14px;
    box-shadow: 0 4px 12px rgba(20,15,10,.05);
  }
  .ctv2-stat + .ctv2-stat { border-left: 1.5px solid var(--ctv2-border); margin-top: 2px; }
  .ctv2-stat b { font-size: 23px; }
  .ctv2-stat > span:last-child { text-align: right; }
}

.ctv2-error { font-size: 13px; color: #b3401f; background: #fbeee9; border: 1px solid #f0c9ba; border-radius: var(--ctv2-radius-sm); padding: 9px 13px; margin: 14px 0 0; }
.ctv2-error[hidden] { display: none; }

.ctv2-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ctv2-border); }
.ctv2-btn { font: inherit; font-size: 14px; font-weight: 700; border-radius: 9px; padding: 10px 20px; cursor: pointer; border: 1.5px solid transparent; display: inline-flex; align-items: center; gap: 8px; transition: all .15s ease; }
.ctv2-btn svg { width: 16px; height: 16px; }
.ctv2-btn-prev { background: #fff; border-color: var(--ctv2-border); color: var(--ctv2-text); }
.ctv2-btn-prev:disabled { opacity: .4; cursor: not-allowed; }
.ctv2-btn-next { background: var(--ctv2-orange); color: #fff; margin-left: auto; box-shadow: 0 6px 16px rgba(238,154,27,.28); }
.ctv2-btn-next:hover { background: var(--ctv2-brown); transform: translateY(-1px); }

/* result */
.ctv2-result-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.ctv2-score { position: relative; width: 128px; height: 128px; flex: 0 0 auto; }
.ctv2-score-ring { width: 100%; height: 100%; display: block; }
#ctv2ScoreArc { transition: stroke-dashoffset 1.4s ease; }
.ctv2-score-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; }
.ctv2-score-val b { font-size: 34px; font-weight: 700; color: #1c1a17; }
.ctv2-score-val span { font-size: 20px; font-weight: 700; color: #1c1a17; }
.ctv2-result-head { flex: 1 1 280px; min-width: 0; }
.ctv2-result-head h3 { font-size: 19px; font-weight: 700; color: #1c1a17; margin: 0 0 8px; }
.ctv2-result-head p { font-size: 15px; line-height: 1.55; color: var(--ctv2-text); margin: 0 0 14px; }
.ctv2-band { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4a6b3d; background: #eaf2e2; border-radius: 999px; padding: 6px 14px; }
.ctv2-band-low { color: #b3401f; background: #fbeee9; }
.ctv2-result-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctv2-btn-download {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--ctv2-brown); background: #fff; border: 1.5px solid var(--ctv2-border);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: all .18s ease;
}
.ctv2-btn-download svg { width: 15px; height: 15px; }
.ctv2-btn-download:hover { border-color: var(--ctv2-orange); background: #fff8ed; }
.ctv2-findings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ctv2-finding { background: #faf6ee; border-left: 3px solid var(--ctv2-orange); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.ctv2-finding a { color: var(--ctv2-brown); text-decoration: underline; word-break: break-all; }
.ctv2-resvideo { margin-bottom: 20px; position: relative; aspect-ratio: 16/9; border-radius: var(--ctv2-radius); overflow: hidden; border: 1px solid var(--ctv2-border); }
.ctv2-resvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ctv2-result-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ctv2-treat-cta {
  display: inline-flex; align-items: center; font: inherit; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(100deg, var(--ctv2-orange), var(--ctv2-brown)); border: 0; border-radius: 999px; padding: 14px 32px;
  box-shadow: 0 10px 26px rgba(238,154,27,.3); transition: transform .2s ease;
}
.ctv2-treat-cta:hover { transform: translateY(-2px); color: #fff; }
.ctv2-textlink { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ctv2-brown); cursor: pointer; }

.ctv2-disclaimer { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; color: var(--ctv2-text-muted); line-height: 1.5; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ctv2-border); }
.ctv2-disclaimer-icon { width: 30px; height: 30px; border-radius: 50%; background: #fdf1de; color: var(--ctv2-brown); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ctv2-disclaimer-icon svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .ctv2-section { padding: 40px 16px; }
  .ctv2-panel { padding: 24px 18px 28px; }
  .ctv2-heading { font-size: 25px; }
  .ctv2-nav { flex-wrap: wrap; gap: 10px; }
  .ctv2-btn-next { margin-left: 0; width: 100%; justify-content: center; }
  .ctv2-btn-prev { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ctv2-section * { transition: none !important; animation: none !important; } }
