/* Jordon Murphy Health - shared quote application styles.
   The token block below provides defaults; page-level styles that load
   later override them, so each page keeps its own palette. */
:root{
  --bg:#ffffff; --bg-soft:#faf8fd; --bg-soft-2:#f4eefb; --line:rgba(76,29,149,0.10);
  --ink:#1d1730; --body:#4a4458; --muted:#6f6582; --muted-2:#9b91ad;
  --purple-deep:#4c1d95; --purple:#7c3aed; --violet:#8b5cf6; --violet-blue:#6366f1;
  --purple-light:#a78bfa; --magenta:#d6286f; --pink:#ec4899;
  --brand-gradient:linear-gradient(120deg, var(--purple-deep) 0%, var(--purple) 32%, var(--violet) 58%, var(--violet-blue) 88%, var(--pink) 100%);
  --radius-sm:12px; --radius-md:18px; --radius-lg:28px;
}
  /* ============================================
     18. QUOTE FORM MODAL
  ============================================ */
  .quote-overlay{
    position:fixed; inset:0; z-index:200;
    background: rgba(29,23,48,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display:flex; align-items:center; justify-content:center;
    padding:20px;
    opacity:0; visibility:hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .quote-overlay.is-open{ opacity:1; visibility:visible; }

  .quote-modal{
    position:relative;
    background:#fff;
    width:100%; max-width:480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(28px, 5vw, 40px);
    max-height: 90vh;
    overflow-y:auto;
    transform: translateY(18px) scale(.98);
    opacity:0;
    transition: transform .35s ease, opacity .35s ease;
  }
  .quote-overlay.is-open .quote-modal{ transform: translateY(0) scale(1); opacity:1; }

  .quote-modal__close{
    position:absolute; top:18px; right:18px;
    width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:1px solid var(--line); background:#fff; color: var(--ink);
    transition: background .2s ease, color .2s ease;
  }
  .quote-modal__close:hover{ background: var(--bg-soft-2); color: var(--purple-deep); }

  .quote-modal__head{ margin-bottom: 24px; padding-right:36px; }
  .quote-modal__eyebrow{
    font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
    color: var(--purple-deep); margin-bottom:8px;
  }
  .quote-modal__title{ font-size:1.4rem; margin-bottom:6px; }
  .quote-modal__sub{ font-size:.9rem; color: var(--muted); }

  .quote-progress{ position:relative; display:flex; justify-content:space-between; margin-bottom:30px; }
  .quote-progress__track{
    position:absolute; top:15px; left:12.5%; right:12.5%; height:2px;
    background: var(--bg-soft-2); border-radius:2px; z-index:0; overflow:hidden;
  }
  .quote-progress__fill{
    position:absolute; inset:0 auto 0 0; width:0;
    background: linear-gradient(90deg, var(--purple), var(--violet) 60%, var(--violet-blue));
    border-radius:2px; transition: width .5s cubic-bezier(.2,.7,.2,1);
  }
  .quote-progress__seg{
    position:relative; z-index:1; flex:1;
    display:flex; flex-direction:column; align-items:center; gap:8px;
  }
  .quote-progress__num{
    width:31px; height:31px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:#fff; border:2px solid var(--bg-soft-2);
    color: var(--muted); font-weight:700; font-size:.82rem; font-family:'Sora';
    transition: all .4s cubic-bezier(.2,.7,.2,1);
  }
  .quote-progress__seg em{
    font-style:normal; font-size:.66rem; font-weight:600; letter-spacing:.05em;
    text-transform:uppercase; color: var(--muted); transition: color .3s ease;
  }
  .quote-progress__seg.is-filled .quote-progress__num{
    background: linear-gradient(135deg, var(--purple), var(--violet));
    border-color:transparent; color:#fff;
    box-shadow: 0 6px 16px -6px rgba(124,58,237,.6);
  }
  .quote-progress__seg.is-filled em{ color: var(--ink); }
  .quote-progress__seg.is-current .quote-progress__num{
    transform: scale(1.12);
    box-shadow: 0 0 0 5px rgba(124,58,237,.14), 0 6px 16px -6px rgba(124,58,237,.6);
    animation: step-pulse 2.4s ease-in-out infinite;
  }
  @keyframes step-pulse{
    0%,100%{ box-shadow: 0 0 0 5px rgba(124,58,237,.14), 0 6px 16px -6px rgba(124,58,237,.6); }
    50%{ box-shadow: 0 0 0 8px rgba(124,58,237,.05), 0 6px 16px -6px rgba(124,58,237,.6); }
  }

  .quote-step{ display:none; }
  .quote-step.is-active{ display:block; animation: quote-fade-in .4s ease; }
  @keyframes quote-fade-in{
    from{ opacity:0; transform: translateX(14px); }
    to{ opacity:1; transform: translateX(0); }
  }

  .quote-step h3{ font-size:1.15rem; margin-bottom:8px; }
  .quote-step__hint{ font-size:.88rem; color: var(--muted); margin-bottom:20px; }

  .quote-field{ margin-bottom:18px; }
  .quote-field label{
    display:block; font-size:.85rem; font-weight:600; color: var(--ink);
    margin-bottom:8px; font-family:'Sora';
  }
  .quote-field input[type="text"],
  .quote-field input[type="date"],
  .quote-field input[type="tel"],
  .quote-field input[type="email"],
  .quote-field select,
  .quote-field textarea{
    width:100%; padding:14px 16px;
    border:1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family:'Inter'; font-size:1rem; color: var(--ink);
    background: var(--bg-soft); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus{
    outline:none; border-color: var(--purple); background:#fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.13);
  }
  .quote-field select{ appearance:none; -webkit-appearance:none;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center; padding-right:42px; cursor:pointer;
  }
  .quote-field.has-error select{ border-color: var(--magenta); }

  /* Household member cards (dynamic) */
  .quote-people{ margin-top:4px; }
  .quote-people__note{
    font-size:.82rem; color: var(--muted); line-height:1.55;
    background: var(--bg-soft); border:1px solid var(--line);
    border-radius: var(--radius-sm); padding:12px 14px; margin-bottom:16px;
  }
  .quote-house-counts{ display:flex; gap:14px; }
  .quote-house-counts .quote-field{ flex:1; }
  .quote-person{
    background:#fff; border:1.5px solid var(--line); border-radius: var(--radius-md);
    padding:18px 18px 6px; margin-bottom:14px;
    box-shadow: 0 8px 22px -16px rgba(76,29,149,.35);
  }
  .quote-person__head{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:14px;
  }
  .quote-person__title{
    font-family:'Sora'; font-weight:700; font-size:.92rem; color: var(--ink);
    display:flex; align-items:center; gap:10px;
  }
  .quote-person__title::before{
    content:""; width:8px; height:8px; border-radius:50%;
    background: var(--brand-gradient); flex-shrink:0;
  }
  .quote-person__remove{
    background:none; border:none; cursor:pointer;
    font-family:'Sora'; font-size:.8rem; font-weight:600; color: var(--muted);
    padding:6px 10px; border-radius:999px; transition: color .2s ease, background .2s ease;
  }
  .quote-person__remove:hover{ color: var(--magenta); background: rgba(214,40,111,.07); }
  .quote-person__grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
  .quote-person__grid .quote-field--full{ grid-column:1 / -1; }
  .quote-add-person{
    display:inline-flex; align-items:center; gap:8px;
    background:none; border:1.5px dashed rgba(124,58,237,.45); border-radius:999px;
    padding:11px 20px; cursor:pointer; margin-bottom:16px;
    font-family:'Sora'; font-size:.86rem; font-weight:600; color: var(--purple-deep);
    transition: border-color .2s ease, background .2s ease;
  }
  .quote-add-person:hover{ border-color: var(--purple); background: rgba(124,58,237,.05); }

  /* Business hand-off panel */
  .quote-biz-redirect{
    background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(124,58,237,.02));
    border:1.5px solid rgba(124,58,237,.3); border-radius: var(--radius-md);
    padding:22px 20px; margin-bottom:18px;
  }
  .quote-biz-redirect p{ font-size:.92rem; color: var(--ink); line-height:1.6; margin-bottom:16px; }
  .quote-biz-redirect .btn{ width:100%; justify-content:center; }
  @media (max-width: 560px){
    .quote-person__grid{ grid-template-columns:1fr; gap:0; }
    .quote-house-counts{ flex-direction:column; gap:0; }
  }
  .quote-field textarea{ resize:vertical; min-height:90px; font-family:inherit; }
  .quote-field__error{
    font-size:.8rem; color: var(--magenta); margin-top:6px; display:none;
  }
  .quote-field.has-error input, .quote-field.has-error textarea{ border-color: var(--magenta); }
  .quote-field.has-error .quote-field__error{ display:block; }

  .quote-options{ display:flex; flex-direction:column; gap:10px; }
  .quote-options.quote-options--row{ flex-direction:row; flex-wrap:wrap; }
  .quote-option{
    display:flex; align-items:center; gap:12px;
    padding:15px 16px; border:1.5px solid var(--line); border-radius: var(--radius-md);
    cursor:pointer;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease, box-shadow .25s ease;
    font-size:.95rem; color: var(--ink); flex:1;
  }
  .quote-options--row .quote-option{ flex:1 1 calc(50% - 5px); min-width:130px; }
  .quote-option:hover{ transform: translateY(-2px); border-color: rgba(124,58,237,.45); background:#fff; box-shadow: 0 10px 24px -14px rgba(76,29,149,.5); }
  .quote-option input{ accent-color: var(--purple); width:18px; height:18px; flex-shrink:0; }
  .quote-option.is-selected{ border-color: var(--purple); background: linear-gradient(180deg, rgba(124,58,237,.07), rgba(124,58,237,.02)); box-shadow: 0 10px 24px -14px rgba(124,58,237,.55); }

  .quote-consent{
    display:flex; gap:12px; align-items:flex-start;
    padding:16px; border-radius: var(--radius-sm);
    background: var(--bg-soft); border:1px solid var(--line);
    margin-top:8px; margin-bottom:8px;
    font-size:.82rem; color: var(--muted); line-height:1.55;
  }
  .quote-consent input{ accent-color: var(--purple); width:18px; height:18px; flex-shrink:0; margin-top:2px; }
  .quote-consent.has-error{ border-color: var(--magenta); }

  .quote-submit-error{
    margin-top:14px; padding:14px 16px; border-radius: var(--radius-sm);
    background: rgba(214,40,111,.06); border:1px solid rgba(214,40,111,.25);
    font-size:.85rem; color: var(--ink); line-height:1.55;
  }
  .quote-submit-error a{ color: var(--purple-deep); font-weight:600; }

  .quote-step__loading{
    display:flex; align-items:center; gap:10px;
    font-size:.85rem; color: var(--muted); margin-top:14px;
  }
  .quote-spinner{
    width:16px; height:16px; border-radius:50%;
    border:2px solid var(--line); border-top-color: var(--purple);
    animation: quote-spin .7s linear infinite;
  }
  @keyframes quote-spin{ to{ transform: rotate(360deg); } }

  .quote-nav{ display:flex; gap:12px; margin-top:24px; }
  .quote-nav .btn{ flex:1; }
  .quote-nav .btn--ghost{ flex:0 0 auto; padding-left:24px; padding-right:24px; }

  .quote-success{ text-align:center; padding: 12px 0 4px; }
  .quote-success__icon{
    position:relative;
    width:64px; height:64px; border-radius:50%; margin:0 auto 20px;
    background: linear-gradient(120deg, var(--purple), var(--violet), var(--violet-blue));
    display:flex; align-items:center; justify-content:center; color:#fff;
  }
  .quote-step[data-step="5"].is-active .quote-success__icon{ animation: success-pop .55s cubic-bezier(.2,.8,.2,1.2) both; }
  .quote-step[data-step="5"].is-active .quote-success__icon::before{
    content:''; position:absolute; inset:-6px; border-radius:50%;
    border:2px solid rgba(124,58,237,.5); animation: success-ring 1.1s ease-out .25s both;
  }
  @keyframes success-pop{ 0%{ transform:scale(0); opacity:0; } 60%{ transform:scale(1.18); } 100%{ transform:scale(1); opacity:1; } }
  @keyframes success-ring{ 0%{ transform:scale(.7); opacity:.85; } 100%{ transform:scale(1.55); opacity:0; } }
  .quote-success h3{ font-size:1.3rem; margin-bottom:10px; }
  .quote-success p{ color: var(--muted); font-size:.95rem; margin-bottom: 24px; }

/* ============================================
   SHARE WIDGET (guide + article pages)
============================================ */
.share-widget{
  display:flex; align-items:center; flex-wrap:wrap; gap:16px;
  margin-top:36px; padding:20px 22px;
  background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-md);
}
.share-widget__label{
  font-family:'Sora'; font-weight:700; font-size:.86rem; color: var(--ink);
  white-space:nowrap;
}
.share-widget__buttons{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.share-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:#fff; border:1.5px solid rgba(124,58,237,.22); color: var(--purple-deep);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  cursor:pointer; position:relative;
}
.share-btn:hover{ transform: translateY(-2px); border-color: rgba(124,58,237,.5); box-shadow: 0 10px 22px -12px rgba(76,29,149,.4); }
.share-btn svg{ width:18px; height:18px; }
.share-btn--copy.is-copied{ background: var(--brand-gradient); border-color:transparent; color:#fff; }
.share-btn__tip{
  position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(4px);
  background: var(--ink); color:#fff; font-size:.72rem; font-weight:600; font-family:'Sora';
  padding:5px 10px; border-radius:8px; white-space:nowrap;
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease;
}
.share-btn--copy.is-copied .share-btn__tip{ opacity:1; transform:translateX(-50%) translateY(0); }
@media (max-width:480px){
  .share-widget{ padding:16px 16px; gap:12px; }
  .share-btn{ width:38px; height:38px; }
}

/* ============================================
   ARTICLE META (Learn pages: last-updated + related)
============================================ */
.article-meta{
  display:flex; align-items:center; gap:8px; margin:-6px 0 26px;
  font-size:.85rem; color: var(--muted); font-family:'Inter';
}
.article-meta svg{ width:15px; height:15px; color: var(--purple); flex-shrink:0; }

.related-articles{ margin-top:44px; }
.related-articles h2{ font-size:1.3rem; margin-bottom:20px; }
.related-articles__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-articles__card{
  display:block; background:#fff; border:1px solid var(--line); border-radius: var(--radius-md);
  padding:20px 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-articles__card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(124,58,237,.35); }
.related-articles__eyebrow{
  font-family:'Sora'; font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color: var(--purple); margin-bottom:8px; display:block;
}
.related-articles__card h3{ font-size:1rem; margin-bottom:6px; }
.related-articles__card p{ font-size:.86rem; color: var(--muted); margin:0; }
@media (max-width:820px){
  .related-articles__grid{ grid-template-columns:1fr; }
}

/* ============================================
   PRINT STYLES (guide pages)
============================================ */
@media print{
  .nav, .mobile-cta-bar, .to-top, .scroll-progress, #mobileMenu,
  .quote-overlay, .share-widget, .cta-band, footer,
  .btn-row, .trust-badges{ display:none !important; }
  body{ background:#fff !important; }
  .page-hero{ padding:20px 0 !important; }
  .page-hero::before{ display:none !important; }
  .hero-image{ display:none !important; }
  .prose, .container{ max-width:100% !important; }
  a{ color: var(--purple-deep) !important; text-decoration:underline; }
  .related-articles{ display:none !important; }
  * { box-shadow:none !important; }
}

/* Fix: .btn-row is a flex container with no justify-content, so inside a
   centered CTA band (.cta-band__inner{ text-align:center }) the buttons sat
   flush left instead of centered under the centered heading/paragraph.
   text-align doesn't affect flex children, only real text, hence the gap. */
.cta-band__inner .btn-row{ justify-content:center !important; }

/* Nav dropdown secondary-category label (e.g. "Additional Coverage" above Life Insurance) */
.nav__dropdown-label{
  display:block; padding:10px 18px 4px; margin-top:4px;
  border-top:1px solid rgba(76,29,149,.08);
  font-family:'Sora'; font-size:.68rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted-2, #9b91ad); pointer-events:none;
}
