/*
  MoreRefund Tax — Estimator UI
  - Sticky estimate header (TaxSlayer-style)
  - Stepper wizard
*/

/* Keep the estimate pill visible *below* the sticky header/nav on scroll.
   js/script.js maintains --mr-header-h based on the rendered header height. */
:root{--mr-sticky-top:calc(var(--mr-header-h, 84px) + 12px);}
@media (max-width: 720px){:root{--mr-sticky-top:calc(var(--mr-header-h, 72px) + 8px);}}

/* Sticky estimate pill: keep visible below the nav while scrolling.
   Use fixed positioning for reliability across browsers/layouts. */
.estimate-sticky {
  position: fixed;
  top: var(--mr-sticky-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2200;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);

  /* Keep the sticky pill only as wide as needed (not full-page width) */
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

/* When used inside the estimator card, keep it full-width of the card */
.estimate-sticky-inline {
  /* no-op (legacy class kept for compatibility) */
  margin: 0;
}

/* Spacer so the fixed pill doesn't cover the dots/content */
.estimate-sticky-spacer{height:0;}

.estimate-sticky-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  width: auto;
  max-width: 520px;
  padding: 14px 16px;
}

.estimate-year {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

.estimate-amount {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: #1a8f3a; /* refund green */
}

.estimate-label {
  font-size: 13px;
  color: #2b2b2b;
  text-align: center;
}

.estimate-sticky.is-due .estimate-amount {
  color: #b00020; /* due red */
}

.estimate-sticky.is-neutral .estimate-amount {
  color: #333;
}

/* Layout */
.estimator-container {
  padding-top: 16px;
}

.estimator-card h1 {
  margin-top: 0;
}

.muted {
  color: #5a5a5a;
}

.micro {
  font-size: 12px;
  color: #5a5a5a;
  margin-top: 10px;
}

.alert {
  border: 1px solid #ffd2d2;
  background: #fff3f3;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
}

/* Stepper */
.stepper {
  margin-top: 14px;
}

.stepper-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.stepper-dot {
  border: 1px solid #dedede;
  background: #fff;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

.stepper-dot.active {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
  font-weight: 700;
}

.stepper-dot.done {
  border-color: #b8e6c6;
}

.est-step {
  display: none;
}

.est-step.active {
  display: block;
}

.est-step h2 {
  margin: 8px 0 10px;
  font-size: 20px;
}

.est-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .est-grid {
    grid-template-columns: 1fr;
  }
  .stepper-progress {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6a6a6a;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-row input {
  margin-right: 6px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.step-nav .btn {
  min-width: 110px;
}

.btn.full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Share step */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .share-grid {
    grid-template-columns: 1fr;
  }
}

.share-card {
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.share-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.share-amount {
  font-size: 30px;
  font-weight: 900;
  color: #1a8f3a;
  margin-top: 6px;
}

.share-card.is-due .share-amount {
  color: #b00020;
}

.assumptions {
  margin-top: 10px;
}

/* Footer tweaks */
.footer-inner a {
  text-decoration: underline;
}


/* === MoreRefund compact UI tweaks (requested) === */
.field input,
.field select {
  padding: 10px 12px;
  font-size: 15px;
}

@media (min-width: 900px) {
  /* Keep numeric fields compact on desktop */
  .field input[type="number"] {
    width: 120px;
  }

  /* Filing status + selects should not span the full column */
  .field select {
    width: max-content;
    min-width: 220px;
    max-width: 420px;
  }
}

/* Clear step highlighting */
.stepper-dot {
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.stepper-dot.active {
  background: #dff7e9;
  border-color: #148a3a;
  color: #0f5132;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20,138,58,0.12);
}

.stepper-dot.done {
  background: #f2fbf6;
  border-color: #148a3a;
  color: #0f5132;
}

.stepper-dot:not(.active):not(.done) {
  opacity: 0.82;
}

/* Stronger next/back buttons */
.nav-btns .btn {
  min-width: 120px;
  padding: 12px 18px;
  font-weight: 900;
}

/* Make the help/SEO block less dominant */
.seo h3 {
  font-size: 16px;
  color: #6b7280;
  margin-top: 0;
}
.seo p,
.seo li {
  color: #6b7280;
  font-size: 13px;
}

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

/* Minimal "actual results" line */
.mr-actual-results {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}



/* === Stepper dots: small, clear, color-coded === */
.stepper-progress{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin: 0 0 18px;
}
.stepper-dot{
  width:12px;
  height:12px;
  padding:0;
  border-radius:999px;
  border: 2px solid #cfd6dd;
  background: #ffffff;
  box-shadow:none;
}
.stepper-dot.active{
  border-color:#0aaE96;
  background:#0aaE96;
}
.stepper-dot.done{
  border-color:#0b3d91;
  background:#0b3d91;
}
.stepper-dot:focus-visible{
  outline:3px solid rgba(10,174,150,0.35);
  outline-offset:3px;
}

/* Make Next/Back more prominent */
.step-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
}
.step-nav .btn{
  min-width:120px;
}
.step-nav .btn.primary{
  font-weight:700;
}
@media (max-width:720px){
  .step-nav .btn{
    flex:1;
    min-width:auto;
  }
}


/* SEO/supporting copy block below estimator */
.est-seo{margin-top:16px;}
.est-seo ul{margin:10px 0 0 18px;}
.est-seo li{margin:6px 0;}
