/* includes/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-navy: #0d2137;
  --navy-light: #163252;
  --accent-ochre: #f26419;
  --accent-sunshine: #f9c74f;
  --accent-eucalyptus: #2a9d8f;
  --bg-cream: #fbfbfa;
  --surface-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(13, 33, 55, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(13, 33, 55, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  min-width: 320px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--primary-navy); }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; text-align: center; letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--primary-navy); }
.logo-badge { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent-ochre), var(--accent-sunshine)); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.nav-tagline { font-size: 0.85rem; font-weight: 600; background-color: #f1f5f9; color: var(--navy-light); padding: 6px 14px; border-radius: 999px; }

/* Hero Section */
.hero-section {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  background: linear-gradient(135deg, rgba(13, 33, 55, 0.85) 0%, rgba(22, 50, 82, 0.70) 100%), 
              url('../images/smiling-girl-harbour-bridge.webp') center 20%/cover no-repeat;
  color: #ffffff;
  padding: 60px 48px;
  box-shadow: var(--shadow-md);
}
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--accent-sunshine); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.25); }
.hero-title { font-size: 2.8rem; line-height: 1.15; color: #fff; margin-bottom: 18px; max-width: 650px; }
.hero-title span { background: linear-gradient(90deg, #ffc93c, #ff9a3c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: #e2e8f0; max-width: 580px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 32px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; flex-wrap: wrap; }
.stat-val { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; display: block; }
.stat-label { font-size: 0.85rem; color: #cbd5e1; }

/* Urgency Banner */
.urgency-banner { margin-top: 40px; background: #fff1f2; border: 1px solid #fecdd3; border-radius: var(--radius-md); padding: 24px 32px; display: flex; gap: 20px; align-items: flex-start; }
.urgency-icon { font-size: 2rem; }
.urgency-text h3 { color: #9f1239; font-size: 1.2rem; margin-bottom: 8px; }
.urgency-text p { color: #881337; font-size: 0.95rem; }

/* 3 Quick Steps Section */
.steps-section { margin-top: 60px; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-tag { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ochre); margin-bottom: 6px; display: block; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--surface-white); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: var(--shadow-sm); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number { position: absolute; top: 18px; right: 20px; font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: #f1f5f9; line-height: 1; z-index: 0; }
.step-icon-wrap { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.icon-1 { background-color: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }
.icon-2 { background-color: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.icon-3 { background-color: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.step-title { position: relative; z-index: 1; font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 8px; }
.step-desc { position: relative; z-index: 1; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* Calculator Section */
.calc-section { margin-top: 60px; background: var(--surface-white); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); padding: 40px; }
.calc-label { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; display: block; color: var(--primary-navy); }

/* Visa Radio Cards */
.visa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.visa-option { position: relative; cursor: pointer; }
.visa-option input { position: absolute; opacity: 0; cursor: pointer; }
.visa-card { border: 2px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 20px; transition: all 0.2s; background: #f8fafc; display: flex; flex-direction: column; height: 100%; }
.visa-title { font-weight: 700; font-size: 1.05rem; color: var(--primary-navy); margin-bottom: 4px; }
.visa-sub { font-size: 0.85rem; color: var(--text-muted); }
.visa-tag { display: inline-block; background: #e2e8f0; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 8px; align-self: flex-start; }

.visa-option input:checked ~ .visa-card { border-color: var(--accent-ochre); background: #fffaf5; box-shadow: 0 4px 12px rgba(242, 100, 25, 0.1); }
.visa-option input:checked ~ .visa-card .visa-tag { background: var(--accent-ochre); color: #fff; }

/* WHM Rule Box */
.whm-rule-box { background: #f8fafc; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 32px; }
.whm-rule-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; color: var(--primary-navy); }
.whm-rule-checkbox input { width: 18px; height: 18px; accent-color: var(--accent-ochre); cursor: pointer; }
.whm-rule-desc { font-size: 0.825rem; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }

/* Slider & Input */
.balance-input-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.balance-display { display: flex; align-items: center; background: #f8fafc; border: 2px solid var(--border-subtle); border-radius: var(--radius-md); padding: 8px 16px; width: 200px; }
.balance-display span { font-weight: 700; color: var(--text-muted); font-size: 1.2rem; margin-right: 4px; }
.balance-display input { border: none; background: transparent; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--primary-navy); width: 100%; outline: none; }
.balance-display:focus-within { border-color: var(--navy-light); background: #fff; }

.slider-container { margin-bottom: 40px; position: relative; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: linear-gradient(to right, var(--accent-eucalyptus) var(--slider-bg, 50%), #e2e8f0 var(--slider-bg, 50%)); border-radius: 4px; }
input[type=range]::-webkit-slider-thumb { height: 24px; width: 24px; border-radius: 50%; background: var(--surface-white); border: 3px solid var(--accent-eucalyptus); cursor: pointer; -webkit-appearance: none; margin-top: -8px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type=range]::-moz-range-track { width: 100%; height: 8px; cursor: pointer; background: #e2e8f0; border-radius: 4px; }
input[type=range]::-moz-range-progress { background: var(--accent-eucalyptus); height: 8px; border-radius: 4px; }
input[type=range]::-moz-range-thumb { height: 24px; width: 24px; border-radius: 50%; background: var(--surface-white); border: 3px solid var(--accent-eucalyptus); cursor: pointer; }

/* Live Results Area */
.results-area { background: var(--primary-navy); color: #fff; padding: 32px; border-radius: var(--radius-md); text-align: center; }
.result-label { font-size: 0.95rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 600; }
.result-payout { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--accent-sunshine); line-height: 1; margin-bottom: 24px; text-shadow: 0 4px 12px rgba(249, 199, 79, 0.2); }
.breakdown-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 0.9rem; color: #cbd5e1; }
.breakdown-row .val { font-weight: 700; color: #fff; }

/* Primary CTA Button */
.btn-apply-ato { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: linear-gradient(135deg, var(--accent-ochre) 0%, #e05307 100%); color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; text-decoration: none; padding: 16px 24px; border-radius: var(--radius-md); margin-top: 24px; box-shadow: 0 8px 20px rgba(242, 100, 25, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.btn-apply-ato:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(242, 100, 25, 0.45); }
.verified-stamp { font-size: 0.78rem; color: #94a3b8; margin-top: 14px; display: block; }

/* Features & Info Sections */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.feature-card { background: #fff; padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-size: 1.1rem; margin-bottom: 8px; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ Section */
.faq-section { margin-top: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item summary { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; padding: 20px 0; cursor: pointer; color: var(--primary-navy); list-style: none; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; font-size: 1.5rem; font-weight: 400; color: var(--accent-ochre); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Footer Section */
.site-footer {
  margin-top: 80px;
  padding: 60px 0 32px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 20px;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-ochre);
}

.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 40px 24px; }
  .hero-title { font-size: 2.2rem; }
  .steps-grid, .visa-grid, .features-grid { grid-template-columns: 1fr; }
  .calc-section { padding: 24px; }
  .result-payout { font-size: 2.8rem; }
  .urgency-banner { flex-direction: column; gap: 12px; }
}

/* Quiz Section Styling */
.quiz-section {
  margin-top: 60px;
}

.quiz-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-header {
  margin-bottom: 28px;
}

.quiz-progress-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-light);
  display: block;
  margin-bottom: 10px;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-light), var(--accent-ochre));
  transition: width 0.3s ease;
  border-radius: 999px;
}

.quiz-question {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover {
  border-color: var(--navy-light);
  background: #f8fafc;
  transform: translateY(-1px);
}

.quiz-option-btn:active {
  transform: translateY(0);
}

/* Outcome Box Styling */
.quiz-result-box {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.quiz-result-box.eligible {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.quiz-result-box.ineligible {
  background: #fff1f2;
  border: 2px solid #fecdd3;
}

.quiz-result-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.quiz-result-box.eligible .quiz-result-title { color: #166534; }
.quiz-result-box.ineligible .quiz-result-title { color: #9f1239; }

.quiz-result-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quiz-result-box.eligible .quiz-result-desc { color: #15803d; }
.quiz-result-box.ineligible .quiz-result-desc { color: #881337; }

.btn-quiz-action {
  display: inline-block;
  background: var(--primary-navy);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.quiz-footer {
  margin-top: 20px;
  text-align: center;
}

.btn-quiz-reset {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .quiz-card { padding: 24px 18px; }
  .quiz-question { font-size: 1.2rem; }
  .quiz-option-btn { padding: 14px 18px; font-size: 0.95rem; }
}

/* Navbar Base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-ochre), var(--accent-sunshine));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Navigation Links & CTA */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-ochre);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(13, 33, 55, 0.15);
}

.btn-nav-cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Hamburger Icon (Hidden on Desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger Transformation to "X" when active */
.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Responsive Drawer Styling */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 4px 0;
  }

  .btn-nav-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    text-align: center;
  }
}

/* ================= DASP CALCULATOR PAGE STYLES ================= */
.page-hero-sub {
  margin-top: 24px;
  margin-bottom: 32px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-title span {
  color: var(--accent-ochre);
}

.page-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
}

.calc-page-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Answer First Banner */
.answer-first-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.answer-first-source {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.answer-first-source a {
  color: var(--navy-light);
  font-weight: 600;
}

/* Tool Cards */
.calc-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.calc-card-header {
  margin-bottom: 24px;
}

.calc-card-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.calc-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group-calc {
  margin-bottom: 20px;
}

.calc-input-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  display: block;
  margin-bottom: 10px;
}

.label-aside {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.label-aside a {
  color: var(--navy-light);
  font-weight: 600;
}

/* Segmented Control Radio Cards */
.seg-radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.seg-radio-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.seg-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.seg-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.seg-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
}

.seg-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.seg-label input:checked ~ .seg-card {
  border-color: var(--accent-ochre);
  background: #fffaf5;
  box-shadow: 0 2px 8px rgba(242, 100, 25, 0.12);
}

/* Currency Wrap */
.currency-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  max-width: 280px;
}

.currency-input-wrap span {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-right: 6px;
}

.currency-input-wrap input {
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  width: 100%;
  outline: none;
}

.currency-input-wrap:focus-within {
  border-color: var(--navy-light);
  background: #fff;
}

.checkbox-fee-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-fee-label input {
  margin-top: 3px;
  accent-color: var(--accent-ochre);
}

/* Results Box */
.res-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.res-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.res-line .k { color: var(--text-muted); }
.res-line .v { font-weight: 700; color: var(--text-main); }
.res-line.neg .v { color: #dc2626; }

.res-net {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
}

.res-net .k {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.res-net .v {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-eucalyptus);
}

.kept-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 12px 0 6px;
}

.kept-bar-fill {
  height: 100%;
  background: var(--accent-eucalyptus);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.kept-lab {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.warn-callout {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #92400e;
  margin-top: 14px;
  line-height: 1.5;
}

.warn-callout.hidden, .res-box.hidden {
  display: none !important;
}

/* Inputs & Form Grids for Tool 2 & 3 */
.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.calc-select-input, .calc-date-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
}

.calc-select-input:focus, .calc-date-input:focus {
  border-color: var(--navy-light);
  background: #fff;
}

.estimator-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.btn-secondary-calc {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--primary-navy);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-calc:hover {
  background: var(--primary-navy);
  color: #fff;
}

.deadline-msg-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--primary-navy);
}

/* Styled Data Tables */
.table-scroll-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.styled-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.styled-data-table th, .styled-data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.styled-data-table th {
  background: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.tag-tax {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

.tag-tax.red { background: #fee2e2; color: #991b1b; }
.tag-tax.green { background: #dcfce7; color: #166534; }
.tag-tax.amber { background: #fef3c7; color: #92400e; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .seg-radio-grid { grid-template-columns: 1fr 1fr; }
  .seg-radio-grid.two-col { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; }
  .calc-card { padding: 20px; }
  .res-net .v { font-size: 1.8rem; }
}

/* Calendar Picker Input Styling */
.calc-date-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}

.calc-date-input:focus {
  border-color: var(--navy-light);
  background: #ffffff;
}

/* Ensure the calendar icon displays cleanly across all browsers */
.calc-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.2rem;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.calc-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}