/* OwnCoverage Assessment v2 — scoped under .oca-shell; theme via CSS vars injected per instance */

.oca-shell {
  --oca-primary: #18988a;
  --oca-primary-dark: #137a6e;
  --oca-primary-soft: #e9f6f4;
  --oca-primary-disabled: #9bcfc8;
  --oca-accent: #d98324;
  --oca-accent-soft: #fbf1e4;
  --oca-ink: #16314f;
  --oca-ink-soft: #3f5163;
  --oca-bg: #f4f6f7;
  --oca-card: #ffffff;
  --oca-muted: #97a3ad;
  --oca-line: #e4e8eb;
  --oca-line-strong: #d3dade;
  --oca-radius: 16px;
  --oca-maxw: 720px;
  --oca-head-font: "Playfair Display", Georgia, serif;
  --oca-body-font: "Inter", system-ui, -apple-system, sans-serif;

  max-width: var(--oca-maxw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  background: var(--oca-bg);
  border-radius: calc(var(--oca-radius) + 4px);
  color: var(--oca-ink-soft);
  font-family: var(--oca-body-font);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.oca-shell *, .oca-shell *::before, .oca-shell *::after { box-sizing: border-box; }
.oca-shell h2, .oca-shell h3, .oca-shell .oca-q {
  font-family: var(--oca-head-font);
  color: var(--oca-ink);
  line-height: 1.18;
  margin: 0; padding: 0;
}

/* Progress */
.oca-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.oca-dots { display: flex; align-items: center; gap: 8px; }
.oca-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--oca-line-strong); transition: all .35s ease; }
.oca-dot.oca-done { background: var(--oca-primary); }
.oca-dot.oca-active-dot { width: 26px; background: var(--oca-primary); }
.oca-label { font-size: 13.5px; font-weight: 500; color: var(--oca-ink-soft); }
.oca-label b { color: var(--oca-ink); font-weight: 700; }

/* Steps */
.oca-step { display: none; animation: oca-rise .4s ease; }
.oca-step.oca-active { display: block; }
@keyframes oca-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.oca-card { background: var(--oca-card); border-radius: var(--oca-radius); box-shadow: 0 1px 3px rgba(22,49,79,.05), 0 8px 24px rgba(22,49,79,.05); padding: 34px 36px; overflow-wrap: break-word; }
.oca-card + .oca-card { margin-top: 22px; }

.oca-intro { border-left: 4px solid var(--oca-primary); padding: 28px 32px; margin-bottom: 22px; }
.oca-intro h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.oca-intro p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.oca-intro p:last-child { margin-bottom: 0; }
.oca-dim { color: var(--oca-ink-soft); }

.oca-q { font-size: 23px; font-weight: 700; line-height: 1.25; margin-bottom: 20px; }
.oca-hint { color: var(--oca-primary); font-size: 13.5px; font-weight: 600; margin: -8px 0 16px; }
.oca-hint-soft { color: var(--oca-muted); font-weight: 500; }

/* Options */
.oca-options { display: flex; flex-direction: column; gap: 12px; }
.oca-opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--oca-line-strong); border-radius: 12px; padding: 16px 18px; cursor: pointer; font-size: 15.5px; color: var(--oca-ink); background: #fff; user-select: none; position: relative; transition: border-color .18s, background .18s, box-shadow .18s; }
.oca-opt:hover { border-color: var(--oca-primary-disabled); }
.oca-opt .oca-mark { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--oca-line-strong); border-radius: 50%; display: grid; place-items: center; transition: all .18s; background: #fff; }
.oca-opt[data-type="checkbox"] .oca-mark { border-radius: 6px; }
.oca-opt .oca-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--oca-primary); transform: scale(0); transition: transform .18s; }
.oca-opt[data-type="checkbox"] .oca-mark::after { width: 11px; height: 11px; border-radius: 2px; background: transparent; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) scale(0); margin-top: -2px; }
.oca-opt.oca-selected { border-color: var(--oca-primary); background: var(--oca-primary-soft); box-shadow: 0 0 0 1px var(--oca-primary) inset; }
.oca-opt.oca-selected .oca-mark { border-color: var(--oca-primary); }
.oca-opt[data-type="radio"].oca-selected .oca-mark::after { transform: scale(1); }
.oca-opt[data-type="checkbox"].oca-selected .oca-mark { background: var(--oca-primary); border-color: var(--oca-primary); }
.oca-opt[data-type="checkbox"].oca-selected .oca-mark::after { transform: rotate(45deg) scale(1); }
.oca-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.oca-opt:focus-within { outline: 2px solid var(--oca-primary); outline-offset: 2px; }

/* Contact fields */
.oca-fields { display: flex; flex-direction: column; gap: 12px; }
.oca-input { border: 1.5px solid var(--oca-line-strong); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; font-family: inherit; color: var(--oca-ink); width: 100%; background: #fff; transition: border-color .18s; }
.oca-input:focus { outline: none; border-color: var(--oca-primary); box-shadow: 0 0 0 1px var(--oca-primary) inset; }

/* honeypot — visually hidden without affecting layout/scroll */
.oca-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Nav */
.oca-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.oca-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--oca-ink-soft); font-size: 15px; font-weight: 500; cursor: pointer; padding: 8px 4px; font-family: inherit; }
.oca-back:hover { color: var(--oca-ink); }
.oca-back svg { width: 16px; height: 16px; }
.oca-back[hidden] { visibility: hidden; }

.oca-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--oca-primary); color: #fff; border: 0; border-radius: 11px; padding: 14px 26px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .18s, transform .12s, box-shadow .18s; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.oca-btn:hover:not(:disabled) { background: var(--oca-primary-dark); }
.oca-btn:active:not(:disabled) { transform: translateY(1px); }
.oca-btn:disabled { background: var(--oca-primary-disabled); cursor: not-allowed; box-shadow: none; }
.oca-btn svg { width: 16px; height: 16px; }

.oca-disclaimer { text-align: center; color: var(--oca-muted); font-size: 12.5px; line-height: 1.5; margin-top: 28px; }

/* Results */
.oca-results { display: none; }
.oca-results.oca-active { display: block; animation: oca-rise .4s ease; }

.oca-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--oca-accent-soft); color: var(--oca-accent); border: 1px solid rgba(0,0,0,.06); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; margin-bottom: 18px; }
.oca-badge svg { width: 14px; height: 14px; }
.oca-result-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.oca-result-head p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.oca-result-head p:last-child { margin-bottom: 0; }

.oca-clarify h3 { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.oca-clarify ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.oca-clarify li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--oca-ink-soft); }
.oca-clarify li svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--oca-primary); margin-top: 1px; }

.oca-schedule { border-top: 3px solid var(--oca-primary); }
.oca-sched-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.oca-sched-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--oca-primary-soft); color: var(--oca-primary); display: grid; place-items: center; }
.oca-sched-icon svg { width: 20px; height: 20px; }
.oca-sched-head h3 { font-size: 19px; font-weight: 700; }
.oca-sub { font-size: 13px; color: var(--oca-muted); margin-top: 3px; font-weight: 500; }
.oca-schedule > p { font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.oca-shell .calendly-inline-widget { min-width: 0; width: 100%; height: 640px; border: 1px solid var(--oca-line); border-radius: 12px; overflow: hidden; }
.oca-embed { border-radius: 12px; overflow: hidden; }
.oca-embed iframe, .oca-embed img, .oca-shell img { max-width: 100%; }
.oca-embed iframe { width: 100%; border: 0; }

/* only one scored tier is visible at a time — keep it flush to the top */
.oca-results .oca-tier { margin-top: 0; }

.oca-cta-btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; background: var(--oca-primary); color: #fff; text-decoration: none; border-radius: 11px; padding: 15px 28px; font-size: 15.5px; font-weight: 600; transition: background .18s; }
.oca-cta-btn:hover { background: var(--oca-primary-dark); color: #fff; }
.oca-cta-btn svg { width: 16px; height: 16px; }

.oca-foot-note { background: rgba(0,0,0,.035); border-radius: 12px; padding: 20px 26px; text-align: center; color: var(--oca-muted); font-size: 12.5px; line-height: 1.6; margin-top: 24px; }
.oca-retake { display: block; text-align: center; margin-top: 24px; color: var(--oca-ink-soft); font-size: 14px; cursor: pointer; background: none; border: 0; width: 100%; font-family: inherit; }
.oca-retake:hover { color: var(--oca-ink); text-decoration: underline; }

@media (max-width: 560px) {
  .oca-card { padding: 26px 22px; }
  .oca-intro { padding: 22px 20px; }
  .oca-intro h2, .oca-result-head h2 { font-size: 25px; }
  .oca-q { font-size: 20px; }
  .oca-btn { padding: 13px 20px; }
  .oca-nav .oca-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 400px) {
  .oca-card { padding: 22px 16px; }
  .oca-intro { padding: 20px 16px; }
  .oca-intro h2, .oca-result-head h2 { font-size: 23px; }
  .oca-opt { padding: 14px 14px; font-size: 15px; gap: 12px; }
  .oca-foot-note { padding: 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .oca-shell *, .oca-results { animation: none !important; transition: none !important; }
}
