/* ============================================================
   components.css — Boundless You v2
   Shared UI components: nav, footer, buttons, cards, tags.
   Defined once, used on every page.
   Import AFTER tokens.css and layout.css.
   v2.0 | Sprint 1
   ============================================================ */


/* ── BETA ANNOUNCEMENT STRIP ─────────────────────────────────── */

.beta-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--beta-h);
  background: var(--gold);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 1rem;
}
.beta-strip a {
  color: var(--deep-plum);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */

nav:not(.breadcrumb) {
  position: fixed;
  top: var(--beta-h); left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(18,8,42,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198,169,107,0.15);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--gold-soft); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0 1rem;
}

.nav-links li a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(244,242,252,0.75);
  opacity: 1;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--ivory); }
.nav-links li.active a {
  color: var(--gold);
}

.nav-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--green);
  padding: 0.65rem 1.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--green-h); }

/* Mobile-only CTA link inside .nav-links — hidden at all sizes above the mobile breakpoint */
.nav-links .nav-cta-mobile { display: none; }

/* Hamburger icon (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  aria-label: "Toggle navigation";
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--silver-lav);
  transition: all 0.3s;
}
/* Hamburger → X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: calc(var(--nav-height) + var(--beta-h));
    left: 0; right: 0;
    background: rgba(18,8,42,0.98);
    padding: 1.5rem 5vw 2rem;
    border-bottom: 1px solid rgba(198,169,107,0.15);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(214,210,228,0.12);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.75rem;
    color: rgba(244,242,252,0.8);
  }
  /* Hide the desktop CTA in nav — mobile uses a link in the dropdown instead */
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile CTA appended inside .nav-links */
  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.6rem;
    background: var(--green);
    color: var(--ivory);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
  }
  .nav-links .nav-cta-mobile:hover { background: var(--green-h); }
}


/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: var(--charcoal);
  padding: 4.5rem 6vw 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.ft-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ivory);
  text-decoration: none;
}
.ft-logo:hover { color: var(--gold); }

.ft-tag {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(244,242,252,0.45);
  letter-spacing: 0.04em;
  max-width: 400px;
}

.ft-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.ft-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,242,252,0.4);
  transition: color 0.2s;
  text-decoration: none;
}
.ft-nav a:hover { color: var(--ivory); }

.ft-divider {
  width: 36px;
  height: 1px;
  background: rgba(244,242,252,0.15);
}

.ft-copy {
  font-size: 0.68rem;
  color: rgba(244,242,252,0.25);
}

.ft-email {
  font-size: 0.75rem;
  color: rgba(244,242,252,0.45);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  text-decoration: none;
}
.ft-email:hover { color: var(--ivory); }

@media (max-width: 1120px) {
  footer { padding: 3.5rem 5vw 2.5rem; }
  .ft-nav { gap: 1.2rem; }
}


/* ── SITE FOOTER (hub/content pages) ────────────────────────── */
/* Used on all non-home pages: .site-footer, .footer-inner etc.  */

.site-footer {
  background: var(--deep-plum);
  color: var(--silver-lav);
  padding: 4rem 6vw 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(214,210,228,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.footer-logo:hover { color: var(--gold-soft); }

.footer-brand p {
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(214,210,228,0.55);
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(214,210,228,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--ivory); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(214,210,228,0.3);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.6rem;
}

.footer-bottom-links a {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(214,210,228,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--ivory); }

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .site-footer { padding: 3rem 6vw 0; }
}


/* ── BUTTONS ─────────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--green);
  padding: 1.05rem 3rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, transform 0.18s;
}
.btn-primary:hover { background: var(--green-h); transform: translateY(-1px); }

/* Legacy alias — kept for v1 compatibility in carried-over pages */
.btn { display: inline-block; font-family: var(--sans); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); background: var(--green);
  padding: 1.05rem 3rem; border: none; cursor: pointer; text-decoration: none;
  transition: background 0.22s, transform 0.18s; }
.btn:hover { background: var(--green-h); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  padding: 1.05rem 3rem;
  border: 1.5px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, transform 0.18s;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--ivory);
  transform: translateY(-1px);
}

/* Ivory outline variant (on dark/green backgrounds) */
.btn-outline-ivory {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  padding: 1.05rem 3rem;
  border: 1.5px solid rgba(244,242,252,0.6);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, transform 0.18s;
}
.btn-outline-ivory:hover {
  background: rgba(244,242,252,0.12);
  border-color: var(--ivory);
  transform: translateY(-1px);
}


/* ── COACH CARD ─────────────────────────────────────────────── */

.coach-card {
  background: var(--ivory);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.coach-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.coach-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--stone);
}

/* Placeholder headshot (initials on green circle) */
.coach-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(244,242,252,0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.coach-card__body {
  padding: 1.4rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.coach-card__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

.coach-card__intro {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.coach-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.coach-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.coach-card__cta:hover {
  color: var(--green-h);
  border-color: var(--green);
}


/* ── SPECIALTY TAG PILL ──────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  line-height: 1;
}


/* ── CREDENTIAL BADGE ────────────────────────────────────────── */

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--taupe);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}
.credential-badge svg { width: 14px; height: 14px; opacity: 0.6; }


/* ── STAR RATING ─────────────────────────────────────────────── */

.star-rating {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
}


/* ── TESTIMONIAL CARD ────────────────────────────────────────── */

.testimonial-card {
  background: var(--ivory);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card__quote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
}
.testimonial-card__author {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ── PROCESS STEP ────────────────────────────────────────────── */

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.process-step__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--taupe);
  line-height: 1;
}
.process-step__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--charcoal);
}
.process-step__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}


/* ── PLACEHOLDER BLOCKS ──────────────────────────────────────── */

/* Generic placeholder (calendly, video, etc.) */
.placeholder-block {
  background: var(--stone);
  border: 1px dashed var(--taupe);
  border-radius: var(--card-radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.placeholder-block__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}
.placeholder-block__text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}


/* ── OFFERINGS TABLE ─────────────────────────────────────────── */

.offerings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.offerings-table th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--taupe);
  text-align: left;
}
.offerings-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--stone);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.5;
  vertical-align: top;
}
.offerings-table tr:last-child td { border-bottom: none; }
.offerings-table td.price {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--green);
  white-space: nowrap;
}


/* ── TALLY FORM WRAP ─────────────────────────────────────────── */

.tally-wrap {
  background: var(--stone);
  padding: 1rem 0;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.tally-wrap iframe { display: block; min-height: 520px; }


/* ============================================================
   CALCULATOR UI COMPONENTS — The Money Mindshift
   Added for money.boundlessyou.in calculator suite.
   Sprint MM-0
   ============================================================ */


/* ── CALCULATOR PAGE LAYOUT ──────────────────────────────────── */

.calc-page {
  max-width: var(--calc-max);
  margin: 0 auto;
  padding: 0 4vw var(--section-pad);
}

.calc-hero {
  text-align: center;
  padding: clamp(4rem,8vw,6rem) 6vw clamp(2rem,4vw,3rem);
  background: var(--green);
  color: var(--ivory);
}
.calc-hero .eyebrow { color: rgba(244,242,252,0.55); }
.calc-hero h1 { color: var(--ivory); }
.calc-hero h1 em { color: var(--gold); font-style: italic; }
.calc-hero p { color: rgba(244,242,252,0.75); max-width: 560px; margin: 0 auto; }

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-wrapper { grid-template-columns: 1fr; }
}

/* Wider layout for calculators with many inputs */
.calc-wrapper.wide {
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 960px) {
  .calc-wrapper.wide { grid-template-columns: 1fr; }
}


/* ── INPUT PANEL ─────────────────────────────────────────────── */

.calc-inputs {
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.calc-inputs__header {
  background: var(--charcoal);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.calc-inputs__header h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0;
}

.calc-inputs__body {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Accordion section within inputs */
.calc-section {
  border-bottom: 1px solid var(--stone);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}
.calc-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.calc-section__title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

/* Individual input group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.input-group:last-child { margin-bottom: 0; }

.input-group label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.4;
}
.input-group label .hint {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  display: block;
  margin-top: 0.1rem;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.12);
}

/* Input with prefix symbol (₹) */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

/* Absolutely-positioned prefix (class="prefix") — used in Tax Regime & HRA */
.input-with-prefix .prefix {
  position: absolute;
  left: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
/* Input needs extra left padding to clear the absolute ₹ glyph */
.input-with-prefix:has(.prefix) input {
  padding-left: 2.2rem;
}

/* Plain flex-item ₹ span (no class) — used in other calculators */
.input-with-prefix > span:not(.prefix) {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0 0.1rem 0 0.9rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
/* Input fills remaining width beside flex-item ₹ */
.input-with-prefix > input {
  flex: 1;
  min-width: 0;
}

/* Input with suffix (%, years) */
.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-suffix .suffix {
  position: absolute;
  right: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  pointer-events: none;
}
.input-with-suffix input {
  padding-right: 2.8rem;
}

/* Inline two-column input row */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Radio toggle: Old / New regime selection */
.regime-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.regime-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: white;
  color: var(--muted);
  user-select: none;
}
.regime-toggle input[type="radio"] { display: none; }
.regime-toggle input:checked + label {
  background: var(--green);
  color: var(--ivory);
}

/* Calculate button */
.btn-calculate {
  width: 100%;
  padding: 1rem;
  background: var(--green);
  color: var(--ivory);
  border: none;
  border-radius: var(--input-radius);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 1.2rem;
}
.btn-calculate:hover { background: var(--green-h); transform: translateY(-1px); }
.btn-calculate:active { transform: translateY(0); }

/* Reset link */
.calc-reset {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: var(--sans);
}
.calc-reset:hover { color: var(--charcoal); }


/* ── RESULT PANEL ─────────────────────────────────────────────── */

.calc-results {
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
@media (max-width: 860px) {
  .calc-results { position: static; }
}

.calc-results__header {
  background: var(--green);
  padding: 1.1rem 1.5rem;
}
.calc-results__header h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,242,252,0.9);
  margin: 0;
}

.calc-results__body {
  padding: 1.6rem 1.5rem;
}

/* Empty / pre-calculate state */
.calc-results__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.calc-results__empty p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* Comparison table inside results */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.result-table thead th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 0.5rem;
  text-align: right;
  border-bottom: 2px solid var(--taupe);
}
.result-table thead th:first-child { text-align: left; }
.result-table thead .th-old { color: var(--old-regime); }
.result-table thead .th-new { color: var(--new-regime); }

.result-table tbody tr { border-bottom: 1px solid var(--stone); }
.result-table tbody tr:last-child { border-bottom: none; }
.result-table tbody td {
  padding: 0.55rem 0.5rem;
  vertical-align: top;
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.4;
}
.result-table tbody td:first-child { font-weight: 400; color: var(--charcoal); }
.result-table tbody td:not(:first-child) { text-align: right; }
.result-table tbody tr.subtotal td {
  font-weight: 500;
  border-top: 1px solid var(--taupe);
  color: var(--charcoal);
}
.result-table tbody tr.grand-total td {
  font-weight: 700;
  font-size: 0.95rem;
  border-top: 2px solid var(--taupe);
  color: var(--charcoal);
}
.result-table .deduction { color: var(--muted); }

/* Verdict box — recommendation */
.verdict-box {
  border-radius: 8px;
  padding: 1.2rem 1.2rem;
  margin-top: 1.2rem;
  text-align: center;
}
.verdict-box.new-better {
  background: var(--new-regime-bg);
  border: 1.5px solid var(--new-regime);
}
.verdict-box.old-better {
  background: var(--old-regime-bg);
  border: 1.5px solid var(--old-regime);
}
.verdict-box.equal {
  background: var(--stone);
  border: 1.5px solid var(--taupe);
}
.verdict-box__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.verdict-box__regime {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.verdict-box.new-better .verdict-box__regime { color: var(--new-regime); }
.verdict-box.old-better .verdict-box__regime { color: var(--old-regime); }
.verdict-box__saving {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}
.verdict-box__saving strong { color: var(--savings-pos); font-weight: 600; }

/* Single-value result (HRA, retirement) */
.result-single {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.result-single__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.result-single__value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.result-single__sub {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* Adequate / Inadequate verdict for retirement */
.retirement-verdict {
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
  margin-bottom: 1.2rem;
}
.retirement-verdict.adequate {
  background: #F0FDF4;
  border: 2px solid var(--adequate);
}
.retirement-verdict.inadequate {
  background: #FEF2F2;
  border: 2px solid var(--inadequate);
}
.retirement-verdict__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.retirement-verdict__status {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.retirement-verdict.adequate .retirement-verdict__status { color: var(--adequate); }
.retirement-verdict.inadequate .retirement-verdict__status { color: var(--inadequate); }
.retirement-verdict__note {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}

/* Disclaimer under results */
.result-disclaimer {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--stone);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* CFP CTA inside results */
.cfp-cta {
  background: var(--green);
  border-radius: 8px;
  padding: 1.2rem 1.2rem;
  text-align: center;
  margin-top: 1.2rem;
}
.cfp-cta p {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(244,242,252,0.8);
  margin-bottom: 0.8rem;
}
.cfp-cta a {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--ivory);
  padding: 0.65rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.cfp-cta a:hover { background: white; }


/* ── LEAD CAPTURE MODAL ──────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,44,44,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--ivory);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 440px;
  padding: 2.4rem 2rem 2rem;
  position: relative;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 28px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--stone); }

.modal-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.modal-box h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.modal-box p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.modal-form .input-group { margin-bottom: 0; }
.modal-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--input-focus); }

.modal-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--green);
  color: var(--ivory);
  border: none;
  border-radius: var(--input-radius);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.3rem;
}
.modal-submit:hover { background: var(--green-h); }
.modal-submit:disabled { opacity: 0.6; cursor: wait; }

.modal-privacy {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.modal-error {
  font-size: 0.78rem;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  display: none;
}
.modal-error.show { display: block; }

.modal-success {
  text-align: center;
  padding: 1rem 0;
  display: none;
}
.modal-success.show { display: block; }
.modal-success h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.modal-success p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}


/* ── CALC PAGE INTRO STRIP ───────────────────────────────────── */

.calc-intro-strip {
  background: var(--stone);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}
.calc-intro-strip p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.7;
  margin: 0;
}
.calc-intro-strip strong { font-weight: 500; color: var(--charcoal); }


/* ── CALCULATOR TAB SWITCHER ─────────────────────────────────── */

.calc-tabs {
  display: flex;
  border-bottom: 2px solid var(--stone);
  margin-bottom: 2rem;
  gap: 0;
}
.calc-tab {
  padding: 0.7rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--sans);
}
.calc-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.calc-tab:hover { color: var(--charcoal); }
.calc-tab-panel { display: none; }
.calc-tab-panel.active { display: block; }


/* ── BREAKDOWN TABLE (Capital Gains) ─────────────────────────── */

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.breakdown-table th {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--taupe);
  text-align: left;
  background: var(--stone);
}
.breakdown-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--stone);
  color: var(--charcoal);
  font-weight: 300;
  vertical-align: top;
}
.breakdown-table tr:last-child td { border-bottom: none; }
.breakdown-table tr.total-row td {
  font-weight: 600;
  border-top: 2px solid var(--taupe);
  background: var(--stone);
}


/* ── PROGRESS STEPPER ────────────────────────────────────────── */

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--stone);
  border: 2px solid var(--taupe);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.step-item.done .step-circle { background: var(--green); border-color: var(--green); color: white; }
.step-item.active .step-circle { border-color: var(--green); color: var(--green); font-weight: 700; }
.step-label {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--green); font-weight: 500; }
.step-line {
  flex: 1;
  min-width: 2rem;
  height: 1px;
  background: var(--taupe);
  margin: 0 0.6rem;
}


/* ── NOTICE / INFO STRIP ─────────────────────────────────────── */

.calc-notice {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-bd);
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
}
.calc-notice p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--warning);
  line-height: 1.6;
  margin: 0;
}

.calc-info {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
}
.calc-info p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1.6;
  margin: 0;
}

/* ── Calculator Educational Intro ─────────────────────── */
.calc-edu-intro {
  padding: 2.25rem 0 0;
}
.edu-concepts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 820px) { .edu-concepts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .edu-concepts { grid-template-columns: 1fr; } }
.edu-concept {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(198,169,107,0.13);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  padding: 1.15rem 1.25rem 1.3rem;
}
.edu-concept__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.edu-concept__body {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}
.edu-concept__body strong { color: var(--charcoal); font-weight: 600; }
.edu-concept__body em { color: var(--charcoal); font-style: normal; font-weight: 600; }
.edu-concept__body a { color: var(--gold); text-decoration: none; font-weight: 500; }
.edu-concept__body a:hover { text-decoration: underline; }
.edu-next-step {
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(198,169,107,0.06);
  border: 1px solid rgba(198,169,107,0.18);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
.edu-next-step strong { color: var(--gold); font-weight: 700; }
.edu-next-step a { color: var(--gold); font-weight: 600; text-decoration: none; }
.edu-next-step a:hover { text-decoration: underline; }

/* ── Footer regulatory disclaimer ────────────────────── */
.ft-regulatory {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.85rem;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Calculator Selector Bar (above calc-page) ────────── */
.calc-selector-bar {
  padding: 1.1rem 0 0;
}
.calc-selector-bar .inner.wide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.calc-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.calc-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.calc-selector-pill {
  padding: 0.3rem 1rem;
  border: 1.5px solid rgba(198,169,107,0.4);
  border-radius: 2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: var(--sans);
  line-height: 1.5;
}
.calc-selector-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.calc-selector-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}
.calc-selector-hint {
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.7;
  width: 100%;
  margin-top: 0.1rem;
}

/* Asset tab bar (capital-gains) — inherits pill style but wider items */
.asset-selector-bar { padding-bottom: 0.25rem; }
.asset-selector-bar .asset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.asset-selector-bar .asset-tab {
  padding: 0.3rem 1rem;
  border: 1.5px solid rgba(198,169,107,0.4);
  border-radius: 2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: var(--sans);
  line-height: 1.5;
}
.asset-selector-bar .asset-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.asset-selector-bar .asset-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}
