:root{
  --navy:#0B3D91;
  --teal:#0AAE96;
  --slate:#1F2937;
  --cool-gray:#F6F8FA;
  --warm-accent:#E94E3B;
  --max-width:1320px;
  --mr-header-h:104px;
  --mr-content-padding-x:1.25rem;
}
*{box-sizing:border-box}
body{font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial; margin:0; color:var(--slate); background:#f7f9fb}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max-width); margin:0 auto; padding:28px}
header{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 28px; background:#fff; box-shadow:0 6px 18px rgba(16,24,40,0.04)}
.logo{height:44px}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav{display:flex; gap:16px; align-items:center; flex-wrap:wrap}
nav a{font-size:15px; color:var(--slate); padding:8px 10px; border-radius:8px}
nav a.primary{color:#fff; background:var(--navy); font-weight:600}
.cta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{padding:10px 14px; border-radius:8px; font-weight:600; cursor:pointer; border:0; display:inline-block}
.btn-primary{background:var(--teal); color:#fff}
.btn-outline{background:transparent; border:2px solid var(--navy); color:var(--navy)}
.hero{display:grid; grid-template-columns:1fr 420px; gap:24px; align-items:center; padding:44px 0}
.eyebrow{color:var(--teal); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.08em}
.hero h1{font-size:34px; color:var(--navy); margin:10px 0}
.hero p{line-height:1.6; color:#334155}
.hero-visual{background:linear-gradient(135deg, rgba(10,174,150,0.06), rgba(11,61,145,0.06)); border-radius:12px; height:260px; display:flex; align-items:center; justify-content:center;}
.hero-visual-inner{text-align:center; color:var(--navy)}
.service-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:12px}
.service-card{background:#fff; border-radius:12px; padding:16px; box-shadow:0 6px 18px rgba(16,24,40,0.04); cursor:pointer; transition:transform .08s ease, box-shadow .08s ease}
.service-card:hover{transform:translateY(-2px); box-shadow:0 10px 30px rgba(15,23,42,0.12)}
.service-card h3, .service-card strong{color:var(--navy); margin-top:0}
.primary-section{background:linear-gradient(180deg,#ffffff, #fbfeff); padding:24px; border-radius:12px}
.secondary-section{padding:18px; margin-top:18px;}
.section-divider{border:0; border-top:2px solid #eef2f7; margin:36px 0}
footer{padding:28px; text-align:center; color:#64748b; font-size:14px; margin-top:28px}
blockquote{margin:0; padding-left:14px; border-left:3px solid #e5e7eb; color:#4b5563; font-size:14px}

/* Form styles */
.quote-form-wrapper{background:#fff; padding:24px; border-radius:12px; box-shadow:0 10px 30px rgba(15,23,42,0.08); max-width:780px; margin:0 auto}
.quote-form-wrapper h1{margin-top:0; color:var(--navy)}
.quote-form-wrapper p.lead{color:#4b5563; margin-bottom:18px}
.quote-form .row{margin-bottom:12px}
.quote-form label{display:block; font-size:14px; margin-bottom:4px}
.quote-form input,.quote-form select,.quote-form textarea{width:100%; padding:10px; border-radius:8px; border:1px solid #e5e7eb; font-size:14px; font-family:inherit}
.quote-form textarea{min-height:120px; resize:vertical}
.quote-form .row-inline{display:flex; gap:12px; flex-wrap:wrap}
.quote-form .row-inline .col{flex:1; min-width:140px}
.note-small{font-size:12px; color:#6b7280; margin-top:6px}

/* Contact page */
form.contact-form .row{margin-bottom:12px}

.admin-table{width:100%; border-collapse:collapse; font-size:14px; margin-top:12px}
.admin-table th,.admin-table td{border:1px solid #e5e7eb; padding:6px 8px; text-align:left}
.admin-table th{background:#f3f4f6}

/* Life options page */
.life-options-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px}
.life-option-card{background:#fff; border-radius:12px; padding:16px; box-shadow:0 6px 18px rgba(15,23,42,0.08); text-align:left; cursor:pointer; transition:transform .08s ease, box-shadow .08s ease}
.life-option-card:hover{transform:translateY(-2px); box-shadow:0 10px 30px rgba(15,23,42,0.15)}
.life-option-card h3{margin-top:0; color:var(--navy);}
.life-option-card p{font-size:14px; color:#4b5563}

/* Responsive */
@media (max-width:980px){
  .hero{grid-template-columns:1fr}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .life-options-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .service-grid{grid-template-columns:1fr}
  .life-options-grid{grid-template-columns:1fr}
  .logo{height:40px}
  .hero h1{font-size:26px}
  .quote-form .row-inline{flex-direction:column}
}


.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
}


.admin-links{
  font-size:11px;
  opacity:0.7;
}
.admin-links a{
  color:inherit;
  text-decoration:underline;
}


/* ===== MoreRefundTax global header / footer / nav ===== */
.mr-header {
  background: #ffffff;
  border-bottom: 1px solid #e3e7ef;
}
.mr-header-inner {
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.mr-logo-link {
  display: inline-flex;
  align-items: center;
}


.mr-logo {
  height: 56px;   /* was smaller before */
  width: auto;
}

@media (max-width: 600px) {
  .mr-logo {
    height: 44px; /* a bit smaller on phones so it doesn’t dominate */
  }
}


.mr-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mr-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  color: #1f2933;
}
.mr-nav a:hover {
  color: #174ea6;
}
.mr-nav-cta {
  border-radius: 999px;
  padding: 0.45rem 1.0rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.mr-nav-cta-estimate {
  background: #f1fbf6;
  color: #067447;
  border-color: #a3e4c2;
}
.mr-nav-cta-book {
  background: #2a4fff;
  color: #ffffff;
  border-color: #2a4fff;
}

/* Hamburger toggle */
.mr-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.mr-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1f2933;
  margin: 4px 0;
  border-radius: 999px;
}

/* Footer */
.mr-footer {
  background: #f5f6fb;
  margin-top: 3rem;
  border-top: 1px solid #dde1e7;
}
.mr-footer-inner {
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;              /* a bit more vertical breathing room */
  text-align: center;
}
.mr-footer-left p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5263;
}
.mr-footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;              /* more space between the two badges */
}
.mr-footer-badges img {
  height: 80px;           /* bigger badges (about 2× what you had originally) */
  width: auto;
  display: inline-block;
}
/* Responsive nav */
@media (max-width: 768px) {
  .mr-nav-toggle {
    display: inline-block;
  }
  .mr-nav {
    position: absolute;
    top: calc(var(--mr-header-h, 64px));
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e3e7ef;
    display: none;
    z-index: 50;
  }
  .mr-nav.is-open {
    display: flex;
  }
}
@media (max-width: 768px) {
  .mr-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mr-footer-badges img {
    margin-left: 0;
    margin-right: 0.5rem;
  }
}



/* === MoreRefund "Midnight Refund" darkened look overrides === */

/* Overall page background */
body {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  color: #0f172a;
}

/* Main content sits on a white card */
main,
.container {
  max-width:var(--max-width);
  margin: 1.75rem auto 2.5rem;
  padding:2rem var(--mr-content-padding-x) 2.5rem;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

/* Header floats above the dark background */
.mr-header {
  background: transparent;
  box-shadow: none;
  padding:0.5rem 0;
}

.mr-header-inner {
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
}

.mr-nav a {
  color: #e5e7eb;
}

.mr-nav a:hover {
  color: #ffffff;
}

/* Hero section – darker, but content card stays clean */
.hero {
  background: linear-gradient(135deg, #020617 0%, #111827 55%, #1e293b 100%);
  color: #e5e7eb;
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
}

.hero h1 {
  color: #e5e7eb;
}

.hero p {
  color: #cbd5f5;
}

.hero .eyebrow {
  color: #38bdf8;
}

.hero .hero-visual img.hero-img {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* Primary buttons – pop on dark background */
.btn.btn-primary,
.mr-nav-cta.mr-nav-cta-estimate {
  background: #10b981;        /* mint */
  border-color: #10b981;
  color: #022c22;
}

.btn.btn-primary:hover,
.mr-nav-cta.mr-nav-cta-estimate:hover {
  background: #059669;
  border-color: #059669;
  color: #ecfdf5;
}

/* Secondary buttons */
.btn.btn-outline,
.mr-nav-cta.mr-nav-cta-book {
  background: transparent;
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.btn.btn-outline:hover,
.mr-nav-cta.mr-nav-cta-book:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: #f9fafb;
}

/* Tax service cards sit cleanly on white */
.primary-section,
.secondary-section,
.service-grid .service-card {
  background: #ffffff;
}

.service-grid .service-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Dark footer band where badges pop */
.mr-footer {
  background: #020617;
  border-top: none;
  margin-top: 0;
}

.mr-footer-inner {
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.mr-footer-left p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.mr-footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mr-footer-badges img {
  height: 80px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.7));
}

/* Estimate page + booking page share same container look automatically
   because <main> already uses the card styling above */


/* === Header visibility tweaks === */

.mr-header-inner {
  background: rgba(15, 23, 42, 0.85); /* slightly lighter than near-black */
}

/* White chip behind logo so it stands out on dark header */
.mr-logo-link{
  /* IMPORTANT: do NOT add an extra white pill behind the logo.
     The single pill background lives on .mr-logo-pill. */
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;

  display:flex;
  align-items:center;
  gap:10px;
}

/* Make sure burger lines are clearly visible */
.mr-nav-toggle span {
  background: #f9fafb;
}


/* === Mobile hero buttons tidy layout === */
@media (max-width: 600px) {
  .ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Mobile nav dropdown: darker, simpler, higher contrast === */
@media (max-width: 768px) {
  .mr-nav {
    background: rgba(2, 6, 23, 0.97);  /* dark overlay instead of white */
  }

  .mr-nav a {
    color: #f9fafb;
    padding: 0.7rem 1.5rem;
    text-align: center;
  }

  /* In the dropdown, make CTAs look like normal links for consistency */
  .mr-nav a.mr-nav-cta {
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .mr-nav a.mr-nav-cta:hover {
    background: rgba(148, 163, 184, 0.2);
  }
}

/* === Mobile header tuning: clean header bar (NO extra pill behind the logo) === */
@media (max-width: 600px) {
  .mr-header-inner {
    background: transparent;
    border-radius: 0;
    padding: 0.55rem 1rem;
  }

  /* Big, high-visibility logo on mobile */
  .mr-logo-pill {
    padding: 8px 14px;
  }
  .mr-logo {
    height: 62px;
  }
}

/* === Mobile burger menu: consistent colors + bigger text === */
@media (max-width: 768px) {
  .mr-nav {
    background: rgba(2, 6, 23, 0.97);
  }

  .mr-nav a {
    color: #f9fafb;
    font-size: 1.1rem;       /* bigger text */
    padding: 0.8rem 1.6rem;
    text-align: center;
  }

  /* Make CTAs look like normal links inside the burger menu */
  .mr-nav a.mr-nav-cta,
  .mr-nav a.mr-nav-cta-estimate,
  .mr-nav a.mr-nav-cta-book {
    background: transparent !important;
    border: none !important;
    color: #f9fafb !important;   /* no green text */
  }

  .mr-nav a.mr-nav-cta:hover {
    background: rgba(148, 163, 184, 0.2);
  }
}

/* === Tax estimate top sections: tidy grid layout === */
.tax-estimate-form .field-grid,
.tax-estimate-form .mr-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  align-items: flex-end;
}

.tax-estimate-form .field,
.tax-estimate-form .mr-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tax-estimate-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.tax-estimate-form input[type="text"],
.tax-estimate-form input[type="number"],
.tax-estimate-form input[type="tel"],
.tax-estimate-form input[type="email"],
.tax-estimate-form select {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .logo { height: 40px; }
  .logo img { height: 40px; }
}


/* Contact links */
a.mr-contact-link {
  color: #1d4ed8;
  text-decoration: underline;
}
.mr-footer a.mr-contact-link {
  color: #93c5fd;
}


/* ===== Global Header (consistent across pages) ===== */
.mr-header{
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(9, 16, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mr-header-inner{
  max-width:var(--max-width);
  margin: 0 auto;
  padding:6px 14px;
  display:flex;
  align-items:center;
  gap: 14px;
}
.mr-logo-link{ text-decoration:none; display:flex; align-items:center; }
.mr-logo-pill{
  background:#fff;
  border-radius:999px;
  padding:4px 14px;
  display:flex;
  align-items:center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
/* Bigger, high-visibility logo (SVG is transparent; pill provides the single white background) */
/* Bigger, high-visibility logo (SVG is transparent; pill provides the single white background) */
.mr-logo{ height: 84px; width:auto; display:block; }
@media (min-width: 900px){
  .mr-logo{ height: 112px; }
  .mr-logo-pill{ padding:4px 18px; }
}
@media (max-width: 420px){
  .mr-logo{ height: 64px; }
}
.mr-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 14px;
}
.mr-nav a{
  color: rgba(255,255,255,0.92);
  text-decoration:none;
  font-weight:600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
}
.mr-nav a:hover{ background: rgba(255,255,255,0.10); }

.mr-nav-toggle{
  margin-left:auto;
  display:none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 10px;
}
.mr-nav-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 820px){
  .mr-nav-toggle{ display:block; }
  .mr-nav{
    position:absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--mr-header-h, 64px));
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(9,16,28,0.95);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    z-index: 1250;
  }
  .mr-nav.is-open{ display:flex; }
  .mr-nav a{ padding: 12px 12px; }
}

/* When the mobile menu is open, keep the estimator sticky bar in place —
   the menu overlays it (higher z-index) so the refund number stays present. */

/* Make contact links clearly tappable */
a.mr-link, .site-footer a, .mr-footer a{
  color: #2f6dff;
  text-decoration: underline;
}



/* ===== Estimator UI polish ===== */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.stepper-progress{
  display:flex;
  justify-content:center;
  gap:10px;
  margin: 10px 0 18px;
}
.stepper-dot{
  appearance:none;
  border: 2px solid rgba(34,197,94,0.45);
  background: rgba(255,255,255,0.06);
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}
.stepper-dot.active,
.stepper-dot.is-active{
  background: rgba(34,197,94,0.85);
  border-color: rgba(34,197,94,0.85);
}

.est-step .field input[type="number"],
.est-step .field input[type="text"],
.est-step .field input[type="email"],
.est-step .field input[type="tel"],
.est-step .field select{
  width: 100%;
}
@media (min-width: 900px){
  .est-step .field input[type="number"]{ max-width: 170px; }
  .est-step .field select{ max-width: 320px; }
}

.step-nav{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-top: 16px;
}
.btn.primary{
  background: linear-gradient(135deg, #0AAE96, #0B3D91);
  color:#fff;
  border:none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.btn{
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
}
.btn.primary.full{ width:100%; padding: 14px 18px; }


/* Highlight current page in nav */
.mr-nav a.is-active{
  color:#0AAE96;
  font-weight:700;
  border-bottom: 2px solid #0AAE96;
}
@media (max-width: 900px){
  .mr-nav a.is-active{
    border-bottom:none;
    background: rgba(10,174,150,0.10);
    border-radius: 10px;
  }
}
/* Ensure logo pill remains visible on dark headers */
.mr-logo-pill{ background:#fff !important; }


/* Cloudflare Turnstile */
.cf-turnstile{margin-top:14px;margin-bottom:16px;}


/* Cards */
.card{
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.card[data-href]{ cursor: pointer; }
.card[data-href]:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15,23,42,0.10);
}

.article-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px){
  .article-grid{ grid-template-columns: 1fr; }
}
.article-card h2{
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.article-card p{ margin: 0 0 10px; color: #334155; }
.article-card .mr-link{ font-weight: 700; }

/* Stronger primary button contrast on light backgrounds */
.btn.primary{
  color: #ffffff;
}

/*
  iOS Safari: sticky header backdrop-filter can cause intermittent blur/flicker
  during long form entry and (on some iOS versions) can make tap targets inside
  the header unreliable. Disable backdrop-filter on iOS while keeping the same
  visual weight.
*/
@supports (-webkit-touch-callout: none) {
  .mr-header{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(2,6,23,0.75) !important;
  }
  .mr-header-inner{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(15,23,42,0.95) !important;
  }
}
