/*
 * Lakelaw Chapter Quiz — "Which Chapter Is Right for Me?"
 * Version: 1.0.0 — Converted from lakelaw-chapter-quiz.jsx
 *
 * Red/black brand scheme. Green for Ch7-favorable factors, blue for Ch13-favorable.
 * All rules scoped under .llcq-wrap to prevent theme bleed.
 */

/* ── CSS Variables ───────────────────────────────────────────────── */
.llcq-wrap {
  --red:        #cc0000;
  --red-dark:   #990000;
  --red-pale:   #ffe6e6;
  --red-border: #ffcccc;
  --black:      #222222;
  --bg:         #ffffff;
  --green:      #2d6a4f;
  --green-pale: #e8ffe8;
  --blue:       #4a7dff;
  --amber:      #d97706;
  --gray-800:   #333333;
  --gray-600:   #4a4a4a;
  --gray-500:   #666666;
  --gray-400:   #888888;
  --gray-300:   #999999;
  --gray-200:   #bbbbbb;
  --gray-100:   #dddddd;
  --gray-50:    #eeeeee;
  --white:      #ffffff;

  --sans: 'Open Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius:    6px;
  --radius-lg: 8px;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);

  font-family: var(--sans);
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── Box-sizing reset (scoped) ───────────────────────────────────── */
.llcq-wrap *,
.llcq-wrap *::before,
.llcq-wrap *::after {
  box-sizing: border-box;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.llcq-wrap .llcq-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Header bar ──────────────────────────────────────────────────── */
.llcq-wrap .llcq-header {
  background: var(--black);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 4px solid var(--red);
}
.llcq-wrap .llcq-header-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.llcq-wrap .llcq-header-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  font-family: var(--sans);
}
.llcq-wrap .llcq-header-tagline {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 14px;
  letter-spacing: 0.5px;
}

/* ── Title ───────────────────────────────────────────────────────── */
.llcq-wrap .llcq-title-block {
  text-align: center;
  margin-bottom: 20px;
}
.llcq-wrap .llcq-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
  margin: 0 0 6px;
}
.llcq-wrap .llcq-title-rule {
  width: 50px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto 8px;
}
.llcq-wrap .llcq-tagline {
  font-size: 13px;
  color: var(--gray-400);
  max-width: 440px;
  margin: 0 auto;
}

/* ── Progress bar ────────────────────────────────────────────────── */
.llcq-wrap .llcq-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.llcq-wrap .llcq-progress-seg {
  flex: 1;
  text-align: center;
}
.llcq-wrap .llcq-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-50);
  margin-bottom: 4px;
  transition: background 0.3s;
}
.llcq-wrap .llcq-progress-seg.llcq-active .llcq-progress-bar {
  background: var(--red);
}
.llcq-wrap .llcq-progress-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-100);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  font-family: var(--sans);
}
.llcq-wrap .llcq-progress-seg.llcq-active .llcq-progress-label {
  color: var(--red-dark);
}

/* ── Cards ───────────────────────────────────────────────────────── */
.llcq-wrap .llcq-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  border-top: 3px solid var(--red);
}
.llcq-wrap .llcq-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  font-family: var(--sans);
}

/* ── Question labels ─────────────────────────────────────────────── */
.llcq-wrap .llcq-question {
  margin-bottom: 18px;
}
.llcq-wrap .llcq-question-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  font-family: var(--sans);
}
.llcq-wrap .llcq-question-note {
  font-size: 11px;
  color: var(--gray-200);
  margin-top: 4px;
  font-family: var(--sans);
}

/* ── Option buttons ──────────────────────────────────────────────── */
.llcq-wrap .llcq-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid var(--gray-50);
  background: var(--white);
  transition: all 0.15s;
  margin-bottom: 8px;
  font-family: var(--sans);
}
.llcq-wrap .llcq-option-btn:last-child { margin-bottom: 0; }
.llcq-wrap .llcq-option-btn.llcq-active {
  border-color: var(--red);
  background: var(--red-pale);
}
.llcq-wrap .llcq-option-btn-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  display: block;
}
.llcq-wrap .llcq-option-btn.llcq-active .llcq-option-btn-label {
  color: var(--red-dark);
}
.llcq-wrap .llcq-option-btn-desc {
  font-size: 11px;
  color: var(--gray-300);
  margin-top: 2px;
  display: block;
}

/* ── Inline button group (row of options) ────────────────────────── */
.llcq-wrap .llcq-btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.llcq-wrap .llcq-btn-group .llcq-option-btn {
  flex: 1;
  text-align: center;
  margin-bottom: 0;
}

/* ── Date input ──────────────────────────────────────────────────── */
.llcq-wrap .llcq-date-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-50);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}
.llcq-wrap .llcq-date-input:focus {
  border-color: var(--red);
}

/* ── Tip / info boxes ────────────────────────────────────────────── */
.llcq-wrap .llcq-tip {
  background: #f7f7f7;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 14px;
}
.llcq-wrap .llcq-tip a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.llcq-wrap .llcq-tip a:hover { text-decoration: underline; }
.llcq-wrap .llcq-tip-green {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--green);
  line-height: 1.5;
  margin-top: 8px;
}

/* ── Navigation buttons ──────────────────────────────────────────── */
.llcq-wrap .llcq-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.llcq-wrap #llcqContinueBtn {
  flex: 2;
  padding: 12px 0;
  border-radius: var(--radius);
  border: none;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.llcq-wrap #llcqContinueBtn:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}
.llcq-wrap #llcqBackBtn {
  flex: 1;
  padding: 12px 0;
  border-radius: var(--radius);
  border: 2px solid var(--gray-50);
  background: var(--white);
  color: var(--gray-500);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.llcq-wrap #llcqBackBtn:hover { border-color: var(--gray-200); }

/* ── Results: verdict banner ─────────────────────────────────────── */
.llcq-wrap .llcq-verdict {
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
  border: 2px solid transparent;
}
.llcq-wrap .llcq-verdict-icon { font-size: 36px; margin-bottom: 6px; }
.llcq-wrap .llcq-verdict-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 8px;
}
.llcq-wrap .llcq-verdict-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Factor items ────────────────────────────────────────────────── */
.llcq-wrap .llcq-factor {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.llcq-wrap .llcq-factor:last-child { margin-bottom: 0; }
.llcq-wrap .llcq-factor-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.llcq-wrap .llcq-factor-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}
.llcq-wrap .llcq-no-factors {
  font-size: 13px;
  color: var(--gray-400);
}

/* ── Badges ──────────────────────────────────────────────────────── */
.llcq-wrap .llcq-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: var(--sans);
}
.llcq-wrap .llcq-badge-ch7   { background: var(--green); }
.llcq-wrap .llcq-badge-ch13  { background: var(--blue); }
.llcq-wrap .llcq-badge-wait  { background: var(--red); }

/* ── Chapter comparison grid ─────────────────────────────────────── */
.llcq-wrap .llcq-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.llcq-wrap .llcq-compare-ch7,
.llcq-wrap .llcq-compare-ch13 {
  border-radius: var(--radius);
  padding: 16px;
}
.llcq-wrap .llcq-compare-ch7  { background: var(--green-pale); }
.llcq-wrap .llcq-compare-ch13 { background: #f0f4ff; }
.llcq-wrap .llcq-compare-head {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: var(--sans);
}
.llcq-wrap .llcq-compare-ch7  .llcq-compare-head { color: var(--green); }
.llcq-wrap .llcq-compare-ch13 .llcq-compare-head { color: var(--blue); }
.llcq-wrap .llcq-compare-body {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.7;
  font-family: var(--sans);
}

/* ── CTA card ────────────────────────────────────────────────────── */
.llcq-wrap .llcq-cta {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
}
.llcq-wrap .llcq-cta h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.llcq-wrap .llcq-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  line-height: 1.6;
}
.llcq-wrap .llcq-cta a {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
}
.llcq-wrap .llcq-cta a:hover { background: var(--red-dark); }
.llcq-wrap .llcq-cta-phone {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: var(--sans);
}

/* ── Reset button ────────────────────────────────────────────────── */
.llcq-wrap .llcq-reset-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: var(--radius);
  border: 2px solid var(--gray-50);
  background: var(--white);
  color: var(--gray-500);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.llcq-wrap .llcq-reset-btn:hover { border-color: var(--gray-200); }

/* ── Disclaimer ──────────────────────────────────────────────────── */
.llcq-wrap .llcq-disclaimer {
  font-family: var(--sans);
  font-size: 10px;
  color: #bbb;
  text-align: center;
  line-height: 1.6;
  margin-top: 24px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .llcq-wrap .llcq-compare-grid  { grid-template-columns: 1fr; }
  .llcq-wrap .llcq-header-tagline { display: none; }
  .llcq-wrap .llcq-card { padding: 16px; }
  .llcq-wrap .llcq-title { font-size: 18px; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  .llcq-wrap { background: #fff; }
  .llcq-wrap .llcq-header    { display: none; }
  .llcq-wrap .llcq-nav       { display: none !important; }
  .llcq-wrap .llcq-progress  { display: none; }
  .llcq-wrap .llcq-reset-btn { display: none; }
  .llcq-wrap .llcq-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Step animation ──────────────────────────────────────────────── */
@keyframes llcqFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.llcq-wrap .llcq-step { animation: llcqFadeIn 0.3s ease; }
