/*
Theme Name: I Know Medicare
Theme URI: https://iknowmedicare.net/
Author: I Know Medicare / Medicare Trusted Agents
Description: Custom editorial theme for I Know Medicare - a local, veteran-owned Medicare agency in Winchester, VA. Built from approved page designs.
Version: 1.0.29
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary - all rights reserved by I Know Medicare
Text Domain: ikm
*/

:root{
  --indigo:#1e1451; --indigo-2:#2a1d6e;
  --red:#c8102e; --red-2:#dc2626;
  --navy:#002E6D;
  --ink:#16141f; --muted:#585563;
  --paper:#ffffff; --wash:#f5f4f9; --line:#e2e0ec;
  --serif:"Newsreader",Georgia,serif;
  --sans:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);font-size:19px;line-height:1.65;-webkit-font-smoothing:antialiased;}
.wrap{max-width:1120px;margin:0 auto;padding:0 26px;}
.narrow{max-width:840px;}
img{max-width:100%;}
.ico{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.overline{font-size:13px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;}

.pulse{display:block;width:130px;height:26px;color:var(--red);}
.pulse path{stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:600;stroke-dashoffset:600;animation:draw 2.2s ease forwards;}
@keyframes draw{to{stroke-dashoffset:0;}}
@media (prefers-reduced-motion:reduce){.pulse path{animation:none;stroke-dashoffset:0;}}

/* top bar */
.topbar{background:var(--indigo);color:#fff;font-size:15px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 26px;flex-wrap:wrap;}
.topbar a{color:#fff;text-decoration:none;font-weight:700;}
.topbar .dot{opacity:.5;margin:0 8px;}

/* header + nav */
header.site{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:60;}
header.site .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 26px;}
.brand-logo{height:54px;width:auto;display:block;}
nav.main{display:flex;align-items:center;gap:4px;}
nav.main > .item > a,nav.main > .item > button{font-family:var(--sans);font-size:16px;font-weight:700;color:var(--indigo);background:none;border:none;cursor:pointer;text-decoration:none;padding:10px 13px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;}
nav.main > .item > a:hover,nav.main > .item > button:hover,nav.main > .item > a.active{background:var(--wash);color:var(--red);}
.item{position:relative;}
.caret{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s;}
.item:hover .caret{transform:rotate(180deg);}
.menu{position:absolute;top:calc(100% + 6px);left:0;min-width:255px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px rgba(30,20,81,.16);padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);transition:.16s;}
.item:hover .menu,.item:focus-within .menu,.menu.open{opacity:1;visibility:visible;transform:translateY(0);}
.menu a{display:flex;flex-direction:column;padding:11px 14px;border-radius:9px;text-decoration:none;color:var(--ink);}
.menu a:hover{background:var(--wash);}
.menu a strong{font-size:16px;color:var(--indigo);font-weight:700;}
.menu a span{font-size:13.5px;color:var(--muted);}
.header-call{background:var(--red) !important;background-color:var(--red) !important;color:#fff !important;text-decoration:none;font-weight:800;font-size:17px;padding:12px 20px;border-radius:10px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;}
.header-call:visited{color:#fff !important;}
.header-call .ico{width:19px;height:19px;stroke:#fff;}
.nav-toggle{display:none;background:none;border:1.5px solid var(--indigo);border-radius:9px;color:var(--indigo);padding:8px 12px;cursor:pointer;}
.nav-toggle .ico{stroke:var(--indigo);display:block;}

/* buttons */
.btn{font-family:var(--sans);display:inline-flex;align-items:center;gap:9px;justify-content:center;text-align:center;font-weight:800;font-size:18px;text-decoration:none;padding:16px 26px;border-radius:11px;transition:.15s;cursor:pointer;border:none;}
.btn .ico{width:20px;height:20px;}
.btn-red{background:var(--red) !important;background-color:var(--red) !important;color:#fff !important;}
.btn-red:visited{color:#fff !important;}
.btn-red:hover{background:var(--red-2) !important;transform:translateY(-1px);}
.btn-ghost{background:transparent;color:#fff !important;border:1.5px solid rgba(255,255,255,.5);}
.btn-ghost:hover{background:rgba(255,255,255,.1);}
.btn-outline{background:#fff;color:var(--indigo) !important;border:1.5px solid var(--indigo);}
.btn-outline:hover{background:var(--wash);}

/* hero */
.hero{background:linear-gradient(160deg,var(--indigo) 0%,var(--indigo-2) 100%);color:#fff;padding:66px 0 60px;position:relative;overflow:hidden;}
.hero .overline{color:#c7bff0;margin-bottom:20px;}
.hero h1{font-family:var(--serif);font-weight:600;font-size:58px;line-height:1.06;letter-spacing:-.02em;margin-bottom:22px;max-width:15ch;}
.hero h1 em{font-style:italic;color:#ffd0d6;}
.hero p.lead{font-size:21px;line-height:1.6;max-width:640px;color:#e7e4f5;margin-bottom:30px;}
.hero .actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
.hero .pulse{margin-top:34px;color:#ff6b7d;}
.hero.slim{padding:52px 0 48px;}
.hero.slim h1{font-size:44px;max-width:20ch;}
.breadcrumb{font-size:14px;color:#c7bff0;margin-bottom:16px;}
.breadcrumb a{color:#c7bff0;text-decoration:none;}
.breadcrumb a:hover{text-decoration:underline;}

/* sections */
section{padding:64px 0;}
.wash{background:var(--wash);}
.head{max-width:760px;margin-bottom:40px;}
.head.center{margin-left:auto;margin-right:auto;text-align:center;}
.head .overline{color:var(--red);margin-bottom:12px;}
h2{font-family:var(--serif);font-weight:600;font-size:40px;line-height:1.12;letter-spacing:-.02em;color:var(--indigo);}
.head p{font-size:19px;color:var(--muted);margin-top:12px;}

/* two-path & cards */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.pathcard{border:1px solid var(--line);border-radius:18px;padding:36px 32px;background:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden;}
.pathcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--red);}
.pathcard .tag{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:10px;}
.pathcard h3{font-family:var(--serif);font-weight:600;font-size:28px;color:var(--indigo);margin-bottom:18px;}
.pathcard ul{list-style:none;margin:0 0 26px;padding:0;}
.pathcard li{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;font-size:17.5px;color:#2c2a36;}
.pathcard li .ico{flex:0 0 auto;width:22px;height:22px;stroke:var(--red);margin-top:3px;}
.pathcard .btn{margin-top:auto;align-self:flex-start;}

/* phone strip */
.phonestrip{background:var(--indigo);color:#fff;text-align:center;}
.phonestrip h2{color:#fff;margin-bottom:10px;}
.phonestrip p{color:#cfc9ea;font-size:19px;margin-bottom:26px;}
.bignum{display:inline-flex;align-items:center;gap:12px;background:#fff !important;color:var(--indigo) !important;text-decoration:none;font-size:30px;font-weight:800;padding:16px 36px;border-radius:14px;}
.bignum:visited{color:var(--indigo) !important;}
.bignum .ico{width:28px;height:28px;stroke:var(--red);}

/* tiles */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.tile{display:flex;flex-direction:column;gap:10px;text-decoration:none;border:1px solid var(--line);border-radius:16px;padding:28px;background:#fff;transition:.16s;}
.tile:hover{border-color:var(--red);box-shadow:0 14px 34px rgba(30,20,81,.09);transform:translateY(-3px);}
.tile .badge{width:52px;height:52px;border-radius:13px;background:var(--wash);display:flex;align-items:center;justify-content:center;color:var(--indigo);}
.tile .badge .ico{width:26px;height:26px;stroke:var(--indigo);}
.tile h3{font-family:var(--serif);font-weight:600;font-size:21px;color:var(--indigo);}
.tile p{font-size:15.5px;color:var(--muted);}
.tile .go{margin-top:auto;font-size:14px;font-weight:800;color:var(--red);display:inline-flex;align-items:center;gap:6px;}
.tile .go .ico{width:15px;height:15px;stroke:var(--red);}
.tile-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;object-position:center top;border:4px solid var(--wash);box-shadow:0 6px 18px rgba(30,20,81,.12);}

/* why */
.why{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;}
.why-item .badge{width:56px;height:56px;border-radius:14px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--red);margin-bottom:16px;}
.why-item .badge .ico{width:28px;height:28px;stroke:var(--red);}
.why-item h3{font-family:var(--serif);font-weight:600;font-size:23px;color:var(--indigo);margin-bottom:8px;}
.why-item p{font-size:17px;color:var(--muted);}

/* stat band */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px 26px;border-top:4px solid var(--red);}
.stat .num{font-family:var(--serif);font-weight:700;font-size:42px;line-height:1;color:var(--indigo);margin-bottom:10px;}
.stat p{font-size:16.5px;color:var(--muted);}

/* prose */
.prose{max-width:840px;}
.prose h3{font-family:var(--serif);font-weight:600;font-size:26px;color:var(--indigo);margin:30px 0 12px;}
.prose p{font-size:18.5px;margin-bottom:16px;color:#26232f;}
.prose ul{list-style:none;margin:0 0 20px;padding:0;}
.prose li{display:flex;gap:12px;align-items:flex-start;font-size:18px;margin-bottom:11px;color:#26232f;}
.prose li .ico{flex:0 0 auto;width:22px;height:22px;stroke:var(--red);margin-top:3px;}
.notice{background:var(--wash);border-left:4px solid var(--navy);border-radius:0 12px 12px 0;padding:20px 24px;margin-top:26px;font-size:15px;color:#3a3745;}
.notice strong{color:var(--indigo);}
.notice ul{margin:8px 0 0 18px;}
.notice li{font-size:15px;margin-bottom:5px;}
.sources{font-size:13px;color:#8a8796;margin-top:20px;}

/* agent */
.agent-hero{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:center;}
.agent-photo{width:300px;height:380px;border-radius:18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(255,255,255,.72);font-size:14px;padding:16px;overflow:hidden;}
.agent-photo img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:18px;}
.agent-meta{font-size:15px;color:#c7bff0;margin-bottom:8px;font-weight:700;letter-spacing:.02em;}
.cred-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0;}
.cred{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:7px 15px;font-size:14px;font-weight:700;}

/* reviews / embed slots */
.embed-wrap{max-width:1000px;margin:0 auto;}
.embed-note{background:#fff;border:1px dashed var(--red);border-radius:16px;padding:30px;text-align:center;color:#333;font-size:16px;line-height:1.6;}
.embed-note strong{color:var(--indigo);display:block;font-size:18px;margin-bottom:8px;font-family:var(--serif);font-weight:600;}
.embed-note code{background:var(--wash);padding:3px 8px;border-radius:6px;font-size:14px;color:var(--indigo);}

/* calendar */
.cal-frame{max-width:840px;margin:0 auto;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;}
.cal-frame iframe{display:block;border:0;width:100%;height:600px;}

/* branded booking module (wraps the scheduler in our chrome) */
.booking{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:.85fr 1.15fr;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 18px 44px rgba(30,20,81,.08);background:#fff;}
.booking-side{background:linear-gradient(160deg,var(--indigo) 0%,var(--indigo-2) 100%);color:#fff;padding:36px 32px;display:flex;flex-direction:column;}
.booking-side h3{font-family:var(--serif);font-weight:600;font-size:27px;line-height:1.15;margin-bottom:12px;}
.booking-side p{color:#ffffff;font-size:16.5px;margin-bottom:20px;}
.booking-side ul{list-style:none;margin:0 0 24px;padding:0;}
.booking-side li{display:flex;gap:11px;align-items:flex-start;font-size:16px;margin-bottom:12px;color:#efedfa;}
.booking-side li .ico{flex:0 0 auto;width:20px;height:20px;stroke:#ff9aa6;margin-top:3px;}
.booking-side .btn{margin-top:auto;align-self:flex-start;}
.booking-main{display:flex;flex-direction:column;background:#fff;min-height:520px;}
.booking-bar{background:var(--wash);border-bottom:1px solid var(--line);padding:14px 20px;font-weight:800;color:var(--indigo);font-size:15px;display:flex;align-items:center;gap:9px;}
.booking-main iframe{flex:1;width:100%;min-height:520px;border:0;display:block;}
@media (max-width:820px){.booking{grid-template-columns:1fr;}.booking-side .btn{align-self:stretch;}}

/* trustindex shortcode placeholder (renders as live reviews in WordPress) */
.ti-shortcode{max-width:560px;margin:0 auto;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;color:var(--indigo);background:var(--wash);border:1px dashed var(--line);border-radius:12px;padding:22px;}

/* schedule */
.schedule{text-align:center;}
.schedule p{font-size:20px;color:var(--muted);max-width:620px;margin:0 auto 30px;}

/* CTA band */
.ctaband{background:var(--indigo);color:#fff;text-align:center;}
.ctaband h2{color:#fff;margin-bottom:14px;}
.ctaband p{color:#cfc9ea;font-size:19px;max-width:620px;margin:0 auto 20px;}
.ctaband .trust{color:#c7bff0;font-size:15px;font-weight:700;margin-bottom:26px;}
.ctaband .actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* faq */
.faq-list{max-width:840px;margin:0 auto;}
.acc{border:1px solid var(--line);border-radius:14px;margin-bottom:14px;overflow:hidden;background:#fff;}
.acc.open{border-color:var(--navy);}
.acc button{width:100%;text-align:left;background:#fff;border:none;cursor:pointer;padding:22px 24px;font-family:var(--sans);font-size:18.5px;font-weight:700;color:var(--indigo);display:flex;justify-content:space-between;align-items:center;gap:16px;}
.acc .ind{flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:2px solid var(--navy);color:var(--navy);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;transition:.15s;}
.acc.open .ind{border-color:var(--red);color:var(--red);}
.acc .panel{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.acc .panel-in{padding:0 24px 24px;font-size:17.5px;color:#333;}
.acc .panel-in ul{margin:8px 0 0 18px;}
.acc.open .panel{max-height:640px;}

/* footer */
footer.site{background:var(--indigo);color:#fff;padding:52px 0 110px;font-size:16px;}
footer.site .grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:28px;}
footer.site .foot-logo{height:46px;width:auto;max-width:220px;margin-bottom:16px;display:block;}
footer.site h4{font-family:var(--serif);font-weight:600;font-size:18px;margin-bottom:12px;}
footer.site a{color:#e7e4f5;text-decoration:none;display:block;margin-bottom:8px;}
footer.site a:hover{color:#fff;text-decoration:underline;}
footer.site p{color:#cfc9ea;}
.disclaimer{border-top:1px solid rgba(255,255,255,.18);margin-top:30px;padding-top:20px;font-size:12.5px;color:#b3abd9;line-height:1.55;}

/* sticky call bar */
.callbar{position:fixed;bottom:0;left:0;right:0;z-index:70;display:none;background:#fff;border-top:4px solid var(--red);padding:11px 14px;box-shadow:0 -4px 18px rgba(0,0,0,.14);}
.callbar a{display:flex;justify-content:center;align-items:center;gap:10px;color:var(--indigo);text-decoration:none;font-weight:800;font-size:20px;}
.callbar .ico{width:22px;height:22px;stroke:var(--red);}

@media (max-width:1024px){
  body{padding-bottom:74px;}
  .hero h1{font-size:38px;}
  .hero.slim h1{font-size:32px;}
  .hero p.lead{font-size:19px;}
  h2{font-size:30px;}
  .grid-2,.tiles,.why,.stats{grid-template-columns:1fr;}
  .agent-hero{grid-template-columns:1fr;text-align:center;}
  .agent-photo{margin:0 auto;}
  .cred-row{justify-content:center;}
  footer.site .grid{grid-template-columns:1fr 1fr;}
  .header-call{display:none;}
  .callbar{display:block;}
  .nav-toggle{display:inline-flex;}
  nav.main{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:10px 16px 18px;gap:2px;box-shadow:0 18px 30px rgba(30,20,81,.1);}
  nav.main.open{display:flex;}
  nav.main > .item{width:100%;}
  nav.main > .item > a,nav.main > .item > button{width:100%;justify-content:space-between;font-size:18px;}
  .menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;padding:0 0 6px 10px;min-width:0;display:none;}
  .menu.open{display:block;}
  header.site .wrap{position:relative;flex-wrap:wrap;}
}
@media (max-width:560px){footer.site .grid{grid-template-columns:1fr;}}

/* blog */
.tile .post-thumb{margin:-28px -28px 6px;border-radius:16px 16px 0 0;overflow:hidden;}
.tile .post-thumb img{width:100%;height:184px;object-fit:cover;display:block;}
.post-date{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--red);}
.pagination{margin-top:38px;text-align:center;}
.pagination .page-numbers{display:inline-block;padding:10px 16px;margin:0 4px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--indigo);font-weight:700;}
.pagination .page-numbers.current{background:var(--indigo);color:#fff;border-color:var(--indigo);}
.pagination .page-numbers:hover{border-color:var(--red);color:var(--red);}
.post-content-note{margin-bottom:22px;}

/* ============ MOBILE OPTIMISATION ============ */
/* prevent any stray element from causing horizontal scroll */
html,body{max-width:100%;overflow-x:hidden;}
/* long emails / URLs (e.g. privacy policy) must not overflow narrow screens */
.prose,.prose a,.prose li,footer.site a,.embed-note code{overflow-wrap:break-word;word-break:break-word;}
/* comfortable tap targets on touch devices */
@media (hover:none){
  nav.main > .item > a,nav.main > .item > button,.menu a{min-height:46px;}
  .btn,.header-call,.bignum{min-height:48px;}
}

/* tighten section rhythm once we're in the mobile layout */
@media (max-width:1024px){
  section{padding:46px 0;}
  .hero{padding:46px 0 40px;}
  .hero.slim{padding:38px 0 34px;}
  .wrap{padding:0 20px;}
  .head{margin-bottom:30px;}
  header.site .wrap{padding:14px 20px;}
}

/* small phones */
@media (max-width:480px){
  body{font-size:18px;}
  .wrap{padding:0 16px;}
  section{padding:38px 0;}
  .hero{padding:38px 0 34px;}
  .hero h1{font-size:30px;line-height:1.12;}
  .hero.slim h1{font-size:26px;}
  .hero p.lead{font-size:17.5px;}
  h2{font-size:26px;}
  .head p{font-size:17px;}
  /* stack + full-width hero buttons so they never overflow */
  .hero .actions,.ctaband .actions,.schedule .actions{flex-direction:column;align-items:stretch;}
  .hero .actions .btn,.ctaband .actions .btn{width:100%;}
  .btn{font-size:17px;padding:15px 20px;}
  /* phone CTA must fit narrow screens */
  .bignum{font-size:23px;padding:14px 20px;gap:9px;}
  .bignum .ico{width:24px;height:24px;}
  /* cards / prose spacing */
  .pathcard{padding:28px 22px;}
  .tile{padding:24px;}
  .tile .post-thumb{margin:-24px -24px 6px;}
  .prose h3{font-size:22px;}
  .prose p,.prose li{font-size:17px;}
  /* booking module fits + comfy calendar height */
  .booking-side{padding:28px 22px;}
  .booking-side h3{font-size:23px;}
  .booking-main iframe{min-height:560px;}
  /* agent header */
  .agent-photo{width:240px;height:300px;}
  /* top bar text smaller so it stays on one line */
  .topbar{font-size:13.5px;}
  .topbar .wrap{padding:8px 16px;}
  .brand-logo{height:40px;}
  /* faq / accordion padding */
  .acc button{padding:18px 18px;font-size:17.5px;}
  .acc .panel-in{padding:0 18px 20px;}
}

/* responsive video embed (landing page) */
.video-embed{position:relative;width:100%;max-width:100%;margin:0 auto;aspect-ratio:16/9;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35);background:#000;}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
@media (max-width:480px){.video-embed{border-radius:12px;}}

/* locations page */
.loc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.loc-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column;}
.loc-map{width:100%;height:200px;background:var(--wash);}
.loc-map iframe{width:100%;height:100%;border:0;display:block;}
.loc-map-ph{display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:14px;padding:16px;border-bottom:1px dashed var(--red);}
.loc-body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.loc-body h3{font-family:var(--serif);font-weight:600;font-size:23px;color:var(--indigo);}
.loc-row{display:flex;gap:10px;align-items:flex-start;font-size:16px;color:#333;}
.loc-row .ico{flex:0 0 auto;width:20px;height:20px;stroke:var(--red);margin-top:3px;}
.loc-row a{color:var(--navy);text-decoration:none;font-weight:700;}
.loc-body .btn{margin-top:12px;align-self:flex-start;}
@media (max-width:1024px){.loc-grid{grid-template-columns:1fr;}}

/* location "inside Liberty Tax" tag */
.loc-tag{display:inline-block;background:var(--wash);color:var(--indigo);font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;align-self:flex-start;}

/* homepage hero with lead form */
.hero-lead .hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:center;}
.hero-copy{min-width:0;}
.hero-form-card{background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(9,5,35,.35);overflow:hidden;}
.hero-form-title{background:var(--wash);border-bottom:1px solid var(--line);padding:16px 28px;font-family:var(--serif);font-weight:600;color:var(--indigo);font-size:1.3rem;}
@media (max-width:1024px){.hero-lead .hero-grid{grid-template-columns:1fr;gap:26px;}.hero-form-card{max-width:560px;}}

/* thank-you page */
.ty-check{width:74px;height:74px;border-radius:50%;background:#1f7a4d;display:inline-flex;align-items:center;justify-content:center;margin:0 0 18px;box-shadow:0 10px 30px rgba(31,122,77,.35);}
.ty-check svg{width:40px;height:40px;}
.ty-steps{display:flex;flex-direction:column;gap:18px;}
.ty-step{display:flex;gap:18px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-left:5px solid var(--red);border-radius:14px;padding:22px 24px;box-shadow:0 8px 26px rgba(30,20,81,.06);}
.ty-num{flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:var(--indigo);color:#fff;font-weight:800;font-size:1.15rem;display:flex;align-items:center;justify-content:center;font-family:var(--serif);}
.ty-step h3{font-family:var(--serif);font-weight:600;color:var(--indigo);font-size:1.3rem;line-height:1.25;margin:2px 0 5px;}
.ty-step p{margin:0;color:#333;line-height:1.55;}
.ty-foot{text-align:center;margin-top:30px;}
.ty-foot p{font-size:1.08rem;color:#16141F;margin:0 0 16px;}
.ty-foot a[href^="tel"]{color:var(--red);text-decoration:none;}

/* ===== AgencyBloc lead forms (site-wide) ===== */
.abLeadForm *,.abLeadForm *:before,.abLeadForm *:after{box-sizing:border-box;}
.abLeadForm{font-family:'Public Sans',system-ui,sans-serif;max-width:560px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 26px 26px;color:#16141F;font-size:16px;box-shadow:0 10px 34px rgba(30,20,81,.10);}
.abLeadForm .ab-intro{color:#54506a;font-size:.96rem;line-height:1.5;margin:0 0 18px;}
.abLeadForm p{margin:0 0 14px;}
.abLeadForm .ab-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.abLeadForm .ab-row p{margin:0 0 14px;}
.abLeadForm label{display:block;font-weight:700;font-size:.86rem;margin:0 0 6px;color:var(--indigo);}
.abLeadForm input[type="text"],.abLeadForm select,.abLeadForm input[type="date"]{width:100%;max-width:100%;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:11px;font-size:1rem;color:#16141F;font-family:inherit;transition:border-color .15s,box-shadow .15s;}
.abLeadForm input[type="text"]:focus,.abLeadForm select:focus,.abLeadForm input[type="date"]:focus{outline:none;border-color:var(--indigo);box-shadow:0 0 0 3px rgba(30,20,81,.12);}
.abLeadForm label.ab-check{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:13px 14px;background:var(--wash);font-weight:700;color:var(--indigo);font-size:.96rem;cursor:pointer;transition:border-color .15s,background .15s;margin:0;}
.abLeadForm label.ab-check:hover{border-color:var(--indigo);}
.abLeadForm input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:var(--red);flex:0 0 auto;}
.abLeadForm .invalid-message{display:none;color:var(--red);font-weight:700;font-size:.9rem;margin:0 0 12px;}
.abLeadForm:has(:user-invalid) .invalid-message{display:block;}
.abLeadForm input[type="text"]:user-invalid,.abLeadForm input[type="date"]:user-invalid,.abLeadForm select:user-invalid{outline:2px solid var(--red);}
.abLeadForm .form-action{display:flex;gap:1rem;align-items:center;margin-top:4px;}
.abLeadForm button[type="submit"]{width:100%;padding:15px 20px;background:var(--red);color:#fff;border-radius:11px;border:0;font-size:1.05rem;font-weight:700;font-family:inherit;cursor:pointer;transition:background .15s;}
.abLeadForm button[type="submit"]:hover{background:#a50d26;}
.abLeadForm .abHP{display:none !important;}
@media (max-width:560px){.abLeadForm .ab-row{grid-template-columns:1fr;}}
/* inside a themed container (booking panel / hero card) drop the form's own card */
.booking-main .abLeadForm,.hero-form-card .abLeadForm{border:0;box-shadow:none;max-width:none;border-radius:0;padding:24px 26px;background:transparent;}

/* VCU landing template helpers */
.vcu-cmp{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:26px;}
.vcu-cmp .card.warn{border-top:5px solid var(--red);}
.vcu-cmp .card.ok{border-top:5px solid #1f7a4d;}
.vcu-list{list-style:none;padding:0;margin:0;}
.vcu-list li{padding:8px 0 8px 30px;position:relative;line-height:1.5;}
.vcu-list li::before{content:"\2713";position:absolute;left:0;top:8px;color:#1f7a4d;font-weight:800;}
.vcu-list.warn li::before{content:"!";color:var(--red);}
@media(max-width:820px){.vcu-cmp{grid-template-columns:1fr;}}

/* interim log-form controls */
.abLeadForm input[type="email"],.abLeadForm input[type="tel"],.abLeadForm textarea{width:100%;max-width:100%;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:11px;font-size:1rem;color:#16141F;font-family:inherit;transition:border-color .15s,box-shadow .15s;}
.abLeadForm input[type="email"]:focus,.abLeadForm input[type="tel"]:focus,.abLeadForm textarea:focus{outline:none;border-color:var(--indigo);box-shadow:0 0 0 3px rgba(30,20,81,.12);}
.abLeadForm textarea{min-height:70px;resize:vertical;}
.abLeadForm .ab-lbl{display:block;font-weight:700;font-size:.86rem;margin:0 0 6px;color:var(--indigo);}
.abLeadForm .ab-check input[type="radio"]{width:18px;height:18px;accent-color:var(--red);flex:0 0 auto;margin:0;}
.abLeadForm .ab-check.on{border-color:var(--red);background:#fff;box-shadow:0 0 0 2px rgba(200,16,46,.15);}
.abLeadForm .lf-consent{display:flex;gap:10px;align-items:flex-start;font-size:.8rem;color:#5a5872;line-height:1.45;margin:8px 0 0;font-weight:400;}
.abLeadForm .lf-consent input{width:16px;height:16px;margin-top:3px;accent-color:var(--red);flex:0 0 auto;}
.abLeadForm .lf-err{display:none;color:var(--red);font-weight:700;font-size:.85rem;margin:10px 0 0;text-align:center;}
