/* ================================================================
   BSM Sites — Master Calculator Stylesheet
   Location: /wp-content/themes/YOUR-CHILD-THEME/assets/css/calculators.css
   Applies to: ALL calculators (mortgage, EMI, compound interest, etc.)
   Version: 2.0
   ================================================================ */

:root {
    --navy: #0B1F3A;
    --navy-mid: #1A3558;
    --accent: #2ECC9A;
    --accent-dark: #25A87E;
    --accent-light: #E8FBF5;
    --gold: #F5A623;
    --text: #1A1A2E;
    --text-muted: #6B7A99;
    --border: #E2E8F4;
    --bg: #F7F9FC;
    --white: #ffffff;
    --red: #E74C3C;
    --shadow: 0 4px 24px rgba(11,31,58,0.08);
    --shadow-lg: 0 12px 48px rgba(11,31,58,0.14);
    --radius: 16px;
    --radius-sm: 10px;
  }

/* ── HERO ─────────────────────────────────────── */
  .hero {
    background: var(--navy);
    padding: 56px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
	  margin-top: 80px;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(46,204,154,0.15) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(46,204,154,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-badge {
    display: inline-block;
    background: rgba(46,204,154,0.15);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(46,204,154,0.3);
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--white);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 span { color: var(--accent); }
  .hero p {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
  }

.breadcrumbs-wrapper-div {
	margin-top: 20px;
}
.elementor-widget-container .aux-breadcrumbs span,
.elementor-widget-container .aux-breadcrumbs span a {
	color: white;
	font-weight: 600;
}
.elementor-widget-container .aux-breadcrumbs span a:hover {
	color: #FD346E;
	text-decoration: underline;
}

/* --- Reset --- */
.bsm-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================================
   LAYOUT & CONTAINER
   ================================================================ */
.bsm-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  max-width: 860px;
  margin: 0 auto;
}

/* ================================================================
   CARD — used for input section and result panels
   ================================================================ */
.bsm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
}

/* ================================================================
   CALCULATOR HEADER
   ================================================================ */
.bsm-calc-header {
  margin-bottom: 30px;
}

.bsm-calc-header h1,
.bsm-calc-header .bsm-calc-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.bsm-calc-header p,
.bsm-calc-header .bsm-calc-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 600px;
}

/* ================================================================
   FORM FIELDS
   ================================================================ */
.bsm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.bsm-field-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.bsm-field-row.cols-1 {
  grid-template-columns: 1fr;
}

.bsm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bsm-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bsm-field input,
.bsm-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.bsm-field input:focus,
.bsm-field select:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bsm-field input::placeholder {
  color: #9ca3af;
}

/* Select arrow */
.bsm-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ================================================================
   CALCULATE BUTTON
   ================================================================ */
.bsm-btn-row {
  margin-top: 10px;
}

.bsm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 36px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.bsm-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.bsm-btn:active {
  transform: scale(0.98);
}

.bsm-btn-reset {
  background: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  cursor: pointer;
  margin-left: 10px;
  transition: border-color 0.18s, color 0.18s;
}

.bsm-btn-reset:hover {
  border-color: #9ca3af;
  color: #374151;
}

/* ================================================================
   AD ZONES
   ================================================================ */
.bsm-ad-zone {
  max-width: 336px;
  margin: 28px auto;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}

.bsm-ad-zone--leaderboard {
  max-width: 728px;
  min-height: 90px;
}

.bsm-ad-zone--responsive {
  max-width: 100%;
  min-height: 100px;
}

/* ================================================================
   RESULTS SECTION
   ================================================================ */
#bsm-results {
  display: none;
}

/* ================================================================
   METRICS GRID — summary numbers
   ================================================================ */
.bsm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.bsm-metrics-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.bsm-metric {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.bsm-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.bsm-metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.bsm-metric-value.bsm-green  { color: #059669; }
.bsm-metric-value.bsm-blue   { color: #2563eb; }
.bsm-metric-value.bsm-red    { color: #dc2626; }
.bsm-metric-value.bsm-orange { color: #d97706; }

/* ================================================================
   BAR CHART — principal vs interest
   ================================================================ */
.bsm-bar-section {
  margin-bottom: 28px;
}

.bsm-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bsm-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bsm-bar-pcts {
  font-size: 13px;
  color: #64748b;
  display: flex;
  gap: 14px;
}

.bsm-bar {
  height: 16px;
  border-radius: 8px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
}

.bsm-bar-seg {
  height: 100%;
  transition: width 0.5s ease;
}

.bsm-bar-seg.principal { background: #2563eb; }
.bsm-bar-seg.interest  { background: #f87171; }
.bsm-bar-seg.taxes     { background: #f59e0b; }
.bsm-bar-seg.insurance { background: #10b981; }

.bsm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.bsm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.bsm-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   AMORTIZATION TABLE
   ================================================================ */
.bsm-table-section {
  margin-top: 4px;
}

.bsm-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.bsm-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.bsm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bsm-table thead th {
  background: #f8fafc;
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
}

.bsm-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.bsm-table tbody tr:last-child td {
  border-bottom: none;
}

.bsm-table tbody tr:hover td {
  background: #f8fafc;
}

/* ================================================================
   TOGGLE TABLE BUTTON
   ================================================================ */
.bsm-toggle-btn {
  margin-top: 14px;
  background: none;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}

.bsm-toggle-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ================================================================
   SEO CONTENT SECTION (below calculator)
   ================================================================ */
.bsm-seo-content {
  margin-top: 16px;
}

.bsm-seo-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 40px 0 14px;
  letter-spacing: -0.2px;
}

.bsm-seo-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 26px 0 10px;
}

.bsm-seo-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 14px;
}

.bsm-seo-content ul,
.bsm-seo-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.bsm-seo-content li {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 4px;
}

.bsm-seo-content strong {
  color: #0f172a;
  font-weight: 700;
}

/* SEO formula box */
.bsm-formula-box {
  background: #f1f5f9;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 16px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #1e293b;
  line-height: 2;
}

/* SEO example table */
.bsm-example-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 16px 0;
}

.bsm-example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bsm-example-table th {
  background: #f8fafc;
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.bsm-example-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.bsm-example-table tr:last-child td {
  border-bottom: none;
}

/* FAQ accordion */
.bsm-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.bsm-faq-q {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.18s;
}

.bsm-faq-q:hover {
  background: #f1f5f9;
}

.bsm-faq-q .bsm-faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: #2563eb;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.bsm-faq-q.open .bsm-faq-icon {
  transform: rotate(45deg);
}

.bsm-faq-a {
  display: none;
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.bsm-faq-a.open {
  display: block;
}

/* ================================================================
   DISCLAIMER
   ================================================================ */
.bsm-disclaimer {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
  line-height: 1.7;
}

/* ================================================================
   RELATED CALCULATORS
   ================================================================ */
.bsm-related {
  margin-top: 16px;
}

.bsm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.bsm-related-card {
  display: block;
  padding: 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.1s;
}

.bsm-related-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.bsm-related-card-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.bsm-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.bsm-related-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 680px) {
  .bsm-card {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .bsm-field-row,
  .bsm-field-row.cols-3,
  .bsm-field-row.cols-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bsm-metrics-grid,
  .bsm-metrics-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bsm-related-grid {
    grid-template-columns: 1fr;
  }

  .bsm-metric-value {
    font-size: 18px;
  }

  .bsm-calc-header h1,
  .bsm-calc-header .bsm-calc-title {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .bsm-metrics-grid,
  .bsm-metrics-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}
