/* ════════════════════════════════════════════════════════════════════════════
   Education Loan EMI Calculator skin — CSS VERBATIM from Subash's emi-calculator.html
   comp <style> block. ALL rules scoped under body.single-calculator so nothing leaks
   into the Bricks header / footer chrome. Do NOT re-skin — fixes go through the comp first.
   Loaded on single `calculator` with slug `emi-calculator` by
   includes/calculator_styles.php (per-slug enqueue).

   SCOPING:
     comp :root{--token}  → body.single-calculator{--token}
     bare body{}          → body.single-calculator{}
     html{}               → kept global
     @keyframes           → kept global (none in this comp)
     @media inner selectors → scoped under body.single-calculator
   ════════════════════════════════════════════════════════════════════════════ */

/* RESET & ROOT */
body.single-calculator *, body.single-calculator *::before, body.single-calculator *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.single-calculator {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --primary: #3b5bff;
  --secondary: #cc00cc;
  --hero-bg: #13217c;
  --primary-hover: #13217c;
  --secondary-hover: #A60066;
  --bg-light: #e6ebff;
  --bg-mid: #a0aeff;
  --text-black: #333333;
  --text-gray: #808080;
  --text-white: #fff;
  --radius: 20px;
  --section-padding: 60px 0;
}

html { scroll-behavior: smooth; }

body.single-calculator {
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-black);
  line-height: 1.6;
  min-height: 100vh;
}

/* CALCULATOR SECTION */
body.single-calculator .calculator-section {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
}

body.single-calculator .calculator-header {
  text-align: center;
  margin-bottom: 35px;
}

body.single-calculator .calculator-header h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  line-height: 56px;
  color: #3b5bff;
  margin-bottom: 12px;
}

body.single-calculator .calculator-header p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 29px;
  color: #333333;
}

body.single-calculator .calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* INPUT SECTION */
body.single-calculator .input-section {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
}

body.single-calculator .input-group {
  margin-bottom: 28px;
}

body.single-calculator .input-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.single-calculator .slider-container {
  position: relative;
  margin: 12px 0;
}

body.single-calculator .slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--bg-mid);
  outline: none;
  transition: background 0.3s;
}

body.single-calculator .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 91, 255, 0.4);
  transition: all 0.3s;
}

body.single-calculator .slider::-webkit-slider-thumb:hover {
  background: var(--primary-hover);
}

body.single-calculator .slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 91, 255, 0.4);
}

body.single-calculator .value-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

body.single-calculator .current-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

body.single-calculator .range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 6px;
}

/* RESULTS SECTION */
body.single-calculator .results-section {
  background: var(--hero-bg);
  color: var(--text-white);
  padding: 30px;
  border-radius: var(--radius);
}

body.single-calculator .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.single-calculator .result-item:last-child {
  border-bottom: none;
}

body.single-calculator .result-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

body.single-calculator .result-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
}

body.single-calculator .emi-highlight {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

body.single-calculator .emi-highlight .result-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.9px;
  color: #fffdfe;
  margin-bottom: 8px;
  display: block;
}

body.single-calculator .emi-highlight .result-value {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

/* CTA SECTION */
body.single-calculator .cta-section {
  background: var(--hero-bg);
  color: var(--text-white);
  padding: 50px 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 60px;
}

@media (max-width: 768px) {
  body.single-calculator .cta-section {
    background: var(--hero-bg);
    color: var(--text-white);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin: 20px 10px;
  }
}

body.single-calculator .cta-section h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  color: var(--text-white);
  margin-bottom: 14px;
}

body.single-calculator .cta-section p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 29px;
  color: #fffdfe;
  margin-bottom: 28px;
}

body.single-calculator .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  background: var(--secondary);
  color: var(--text-white);
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

body.single-calculator .cta-button:hover {
  background: var(--secondary-hover);
}

/* CONTENT SECTIONS */
body.single-calculator .content-section {
  background: #fffdfe;
  padding: 20px 30px;
  margin: 10px 0;
}

body.single-calculator .content-section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
}

body.single-calculator .content-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--text-black);
  margin: 22px 0 10px 0;
}

body.single-calculator .content-section p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--text-black);
  margin-bottom: 14px;
}

body.single-calculator .content-section ul,
body.single-calculator .content-section ol {
  margin: 14px 0;
  padding-left: 22px;
}

body.single-calculator .content-section li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--text-black);
  margin-bottom: 8px;
}

body.single-calculator .example-case {
  background: var(--bg-light);
  padding: 20px 24px;
  margin: 14px 0;
  border-radius: 14px;
  border-left: 4px solid var(--primary);
}

body.single-calculator .example-case h3 {
  color: var(--primary);
  font-size: 18px;
  margin: 0 0 10px 0;
}

body.single-calculator .example-case ul {
  margin: 8px 0;
}

/* FORMULA BOX */
body.single-calculator .formula-box {
  background: var(--bg-light);
  color: #333333;
  padding: 24px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
}

/* EXAM TABS SECTION */
body.single-calculator .tabs-section {
  background: #e6ebff;
  padding: 60px 30px;
}

body.single-calculator .tabs-header {
  text-align: center;
  margin-bottom: 30px;
}

body.single-calculator .tabs-header h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--primary);
  margin-bottom: 10px;
}

body.single-calculator .tabs-header p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: #333333;
}

body.single-calculator .tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

body.single-calculator .tab-item {
  background: #fffdfe;
  padding: 24px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid transparent;
}

body.single-calculator .tab-item:hover {
  border-color: #a0aeff;
}

body.single-calculator .tab-item h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: #3b5bff;
  margin-bottom: 10px;
}

body.single-calculator .tab-item p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
  color: #333333;
  margin-bottom: 22px;
}

body.single-calculator .tab-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(59, 91, 255, 0.3);
}

body.single-calculator .tab-cta-button:hover {
  background: var(--primary-hover);
}

/* FAQ SECTION */
body.single-calculator .faq-section {
  background: #fff;
  padding: 35px;
  margin: 30px 0;
}

body.single-calculator .faq-section h2 {
  font-family: var(--font-heading);
  justify-self: center;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--primary);
  margin-bottom: 60px;
}

/* FAQ two-column layout */
body.single-calculator .faq-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;
  align-items: start;
}

body.single-calculator .faq-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.single-calculator .faq-image-col img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ⚠ [VERIFY] comp bug: .faq-image-placeholder has a missing semicolon after
   `background: #fffdfe` (comp line ~490) — carried verbatim as instructed. */
body.single-calculator .faq-image-placeholder {
  width: 100%;
  background: #fffdfe;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
}

body.single-calculator .faq-content-col {
  display: flex;
  flex-direction: column;
}

/* Accordion FAQ items */
body.single-calculator .faq-item {
  background: var(--primary);
  margin-bottom: 16px;
  border-radius: 0px;
  overflow: hidden;
}

body.single-calculator .faq-question {
  padding: 20px 50px 20px 22px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-white);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

body.single-calculator .faq-question::after {
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 28px;
  color: #fffdfe;
  font-weight: 400;
  transition: transform 0.3s ease;
  line-height: 1;
}

body.single-calculator .faq-question.active::after {
  transform: translateY(-50%) rotate(90deg);
}

body.single-calculator .faq-answer {
  background: var(--bg-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  color: var(--primary);
}

body.single-calculator .faq-answer.active {
  max-height: 300px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  padding: 18px 22px;
}

@media (max-width: 768px) {
  body.single-calculator .faq-layout {
    grid-template-columns: 1fr;
  }
  body.single-calculator .faq-image-col {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  body.single-calculator .container { padding: 20px 40px; }
}

@media (max-width: 768px) {
  body.single-calculator .container { padding: 20px; }

  body.single-calculator .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.single-calculator .tabs-grid { grid-template-columns: 1fr; }

  body.single-calculator .calculator-header h1 {
    font-size: 28px;
    line-height: 38px;
  }

  body.single-calculator .calculator-section,
  body.single-calculator .cta-section,
  body.single-calculator .content-section,
  body.single-calculator .tabs-section,
  body.single-calculator .faq-section {
    padding: 24px 18px;
  }

  body.single-calculator .emi-highlight .result-value { font-size: 36px; }

  body.single-calculator .cta-section h3 { font-size: 22px; line-height: 32px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Bricks integration reset (galv calc — EMI) — same pattern as the GMAT/GRE/CGPA/SAT calculators.
   Neutralise brxe-container / .brxe-text wrappers so the comp sections go full-bleed, and stop
   the comp's section padding leaking into header/footer chrome.
   ════════════════════════════════════════════════════════════════════════════ */
body.single-calculator #brx-content.brxe-container,
body.single-calculator .brxe-text {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    gap: 0 !important;
    align-items: stretch !important;
}
body.single-calculator #brx-content.brxe-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.single-calculator header section,
body.single-calculator footer section {
    padding: 0 !important;
}

/* SEO section reuses GMAT/GRE skin classes — re-assert palette tokens using EMI vars */
body.single-calculator .gmat-explainers { padding: 50px 0; }
body.single-calculator .gmat-explainers .container { max-width: 1920px; padding: 0 80px; }
body.single-calculator .gmat-explainers h2.section-title { font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
body.single-calculator .gmat-explainers h3 { margin-top: 22px; color: var(--secondary); font-family: var(--font-heading); font-size: 20px; line-height: 30px; font-weight: 600; }
body.single-calculator .gmat-explainers p { font-family: var(--font-body); font-size: 16px; line-height: 26px; color: var(--text-black); margin-bottom: 14px; }

body.single-calculator .related-tools { padding: 50px 0; background: var(--bg-light); }
body.single-calculator .related-tools .container { max-width: 1920px; padding: 0 80px; }
body.single-calculator .related-tools h2.section-title { font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
body.single-calculator .related-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px;
}
body.single-calculator .related-card {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid #dfe5ff; border-radius: 14px; padding: 22px 24px;
    text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.single-calculator .related-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 22px rgba(19,33,124,.10); border-color: var(--primary);
}
body.single-calculator .related-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--primary); }
body.single-calculator .related-card-desc { font-size: 15px; color: var(--text-gray); line-height: 22px; }
body.single-calculator .related-card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--primary); }
body.single-calculator .related-card:hover .related-card-cta { text-decoration: underline; }

@media (max-width: 768px) {
    body.single-calculator .related-grid { grid-template-columns: 1fr; }
    body.single-calculator .gmat-explainers .container,
    body.single-calculator .related-tools .container { padding: 0 20px; }
}
