/* ════════════════════════════════════════════════════════════════════════════
   GRE to GMAT Calculator skin — CSS VERBATIM from Subash's gre-to-gmat-calculator.html
   comp (lines 23–210). 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 `gre-to-gmat-calculator` by
   includes/calculator_styles.php (per-slug enqueue).

   SCOPING: comp :root{--token} → body.single-calculator{--token} (NOT :root). The bare
   body{} rule is scoped to body.single-calculator{}. html{} and @keyframes global.
   @media inner selectors scoped. See the TOEFL-to-IELTS skin (same conventions).
   ════════════════════════════════════════════════════════════════════════════ */

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

/* tokens defined on the scoped body (not :root) so var(--*) resolves for the
   calc content via inheritance, without clashing with Bricks' own :root vars. */
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: #fffdfe;
    --radius: 20px;
    --section-padding: 60px 0;
}

html { scroll-behavior: smooth; }
body.single-calculator { font-family: var(--font-body); background: #fffdfe; color: var(--text-black); min-height: 100vh; overflow-x: hidden; }

body.single-calculator h1 { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 56px; }
body.single-calculator h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 600; line-height: 48px; color: var(--primary); }
body.single-calculator h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; line-height: 34px; }
body.single-calculator p  { font-family: var(--font-body); font-size: 18px; line-height: 29px; font-weight: 400; color: var(--text-black); }
body.single-calculator ul, body.single-calculator ol { padding-left: 20px; }
body.single-calculator li { font-family: var(--font-body); font-size: 18px; line-height: 29px; color: var(--text-black); margin-bottom: 8px; }
body.single-calculator .text-center { text-align: center; }

body.single-calculator section { padding: var(--section-padding); display: flex; justify-content: center; }
body.single-calculator .container { width: 100%; max-width: 1920px; padding: 0 80px; }

body.single-calculator .section-title { font-family: var(--font-heading); font-size: 36px; font-weight: 600; line-height: 48px; color: var(--primary); margin-bottom: 40px; }

/* ── BUTTONS ── */
body.single-calculator .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; height: auto; padding: 12px 24px; font-family: var(--font-body); font-size: 18px; font-weight: 600; border: none; border-radius: 10px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; text-decoration: none; white-space: normal; text-align: center; line-height: 28px; }
body.single-calculator .btn-primary   { background: var(--primary); color: #fffdfe; }
body.single-calculator .btn-primary:hover { background: var(--primary-hover); }
body.single-calculator .btn-secondary { background: var(--secondary); color: #fffdfe; }
body.single-calculator .btn-secondary:hover { background: var(--secondary-hover); }
body.single-calculator .btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
body.single-calculator .btn-ghost:hover { background: var(--primary); color: #fffdfe; }

/* ── HERO ── */
body.single-calculator .hero-section { background: var(--hero-bg); padding: 60px 0; display: flex; justify-content: center; }
body.single-calculator .hero-inner { width: 100%; max-width: 1920px; padding: 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: flex-start; }
body.single-calculator .hero-content h1 { color: #fffdfe; margin-bottom: 20px; }
body.single-calculator .hero-subtitle { font-size: 18px; font-family: var(--font-body); color: #fffdfe; margin-bottom: 30px; line-height: 29px; }

/* ── CALC CARD ── */
body.single-calculator .hero-calc-card { background: #fffdfe; border-radius: 20px; border: 4px solid var(--bg-light); padding: 20px; }
body.single-calculator .calc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
body.single-calculator .calc-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--bg-light); color: var(--primary); border-radius: 12px; flex-shrink: 0; }
body.single-calculator .hero-calc-card h3 { font-family: var(--font-heading); font-size: 22px; line-height: 30px; color: #3b5bff; font-weight: 600; }

/* ── FORM ── */
body.single-calculator .calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.single-calculator .form-group { margin-bottom: 0; }
body.single-calculator .form-label { display: block; font-size: 14px; font-family: var(--font-heading); font-weight: 600; color: var(--text-black); margin-bottom: 8px; letter-spacing: 0.5px; }
body.single-calculator .form-input { width: 100%; height: 52px; padding: 12px 16px; font-size: 16px; font-family: var(--font-body); border: 1.5px solid #808080; border-radius: 10px; background: #fffdfe; color: var(--text-black); transition: all 0.3s ease; }
body.single-calculator .form-input::placeholder { color: #808080; }
body.single-calculator .form-input:focus { outline: none; border-color: var(--primary); }
body.single-calculator .form-input.error { border-color: #dc3545; }
body.single-calculator .form-buttons { display: flex; gap: 16px; margin-top: 20px; }
body.single-calculator .form-buttons .btn { flex: 1; }

/* ── RESULT AREA ── */
body.single-calculator .result-area { margin-top: 20px; background: var(--bg-light); border-radius: 20px; padding: 20px; display: none; animation: fadeIn 0.4s ease; }
body.single-calculator .result-area.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
body.single-calculator .result-header { font-size: 16px; line-height: 26px; font-weight: 600; font-family: var(--font-body); color: var(--secondary); letter-spacing: 1px; margin-bottom: 16px; text-align: center; }
body.single-calculator .result-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
body.single-calculator .result-row { display: flex; justify-content: space-between; align-items: center; background: #fffdfe; border-radius: 10px; padding: 12px 12px; }
body.single-calculator .result-label { font-size: 16px; font-weight: 600; font-family: var(--font-body); color: var(--text-black); }
body.single-calculator .result-value { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: #cc00cc; line-height: 32px; }
body.single-calculator .result-cta .btn { width: 100%; margin-top: 4px; }


/* ── CONTENT SECTIONS ── */
body.single-calculator .content-section { background: #fffdfe; }
body.single-calculator .content-section h2 { font-size: 36px; font-weight: 600; line-height: 48px; color: var(--primary); margin-bottom: 10px; font-family: var(--font-heading); }
body.single-calculator .content-section h3 { font-size: 24px; font-weight: 600; line-height: 34px; color: var(--primary); margin: 30px 0 15px; font-family: var(--font-heading); }
body.single-calculator .content-section p  { font-size: 18px; font-family: var(--font-body); color: var(--text-black); line-height: 29px; margin-bottom: 20px; }
body.single-calculator .content-section ul, body.single-calculator .content-section ol { padding-left: 20px; margin-bottom: 15px; }
body.single-calculator .content-section li { font-size: 16px; font-family: var(--font-body); color: var(--text-black); line-height: 26px; margin-bottom: 8px; list-style: disc; }

/* ── TABLES ── */
body.single-calculator .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; background: #fffdfe; width: 100%; margin: 25px 0; }
body.single-calculator .comparison-table { width: 100%; border-collapse: collapse; }
body.single-calculator .comparison-table thead th { background: var(--primary); color: #fffdfe; padding: 18px 16px; text-align: left; font-family: var(--font-body); font-size: 16px; font-weight: 600; border-right: 1.5px solid #fffdfe; }
body.single-calculator .comparison-table thead th:last-child { border-right: none; }
body.single-calculator .comparison-table tbody td { background: var(--bg-light); padding: 16px; font-size: 16px; font-family: var(--font-body); color: var(--text-black); border-top: 1.5px solid #fffdfe; border-right: 1.5px solid #fffdfe; }
body.single-calculator .comparison-table tbody td:last-child { border-right: none; }

/* ── HIGHLIGHT BOX ── */
body.single-calculator .highlight-box { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 20px 24px; margin: 25px 0; border-radius: 20px; }
body.single-calculator .highlight-box p { font-size: 16px; margin-bottom: 10px; }
body.single-calculator .highlight-box p:last-child { margin-bottom: 0; }

/* ── INLINE CTA ── */
body.single-calculator .inline-cta { display: block; width: fit-content; margin: 20px auto; min-height: 48px; height: auto; padding: 12px 24px; background: var(--primary); color: #fffdfe; text-decoration: none; border-radius: 10px; font-weight: 600; font-family: var(--font-body); font-size: 16px; transition: background 0.3s ease, transform 0.2s ease; text-align: center; line-height: 24px; }
body.single-calculator .inline-cta:hover { background: var(--primary-hover); }

/* ── RESOURCE CARDS ── */
body.single-calculator .resources-section { background: var(--bg-light); }
body.single-calculator .resources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
body.single-calculator .resource-card { background: #fffdfe; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px solid transparent; transition: border-color 0.2s ease; }
body.single-calculator .resource-card:hover { border-color: var(--bg-mid); }
body.single-calculator .resource-card:last-child { grid-column: span 4; flex-direction: column; align-items: center; gap: 10px; background: var(--hero-bg); }
body.single-calculator .resource-card:last-child:hover { border-color: var(--bg-mid); }
body.single-calculator .resource-card:last-child .card-icon { font-size: 56px; flex-shrink: 0; }
body.single-calculator .resource-card:last-child h3 { color: #fffdfe; font-size: 26px; margin-bottom: 20px; }
body.single-calculator .resource-card:last-child p { color: #fffdfe; font-size: 18px; line-height: 28px; margin-bottom: 20px; flex-grow: 1; }
body.single-calculator .resource-card:last-child .btn-primary { background: var(--secondary); flex-shrink: 0; }
body.single-calculator .resource-card:last-child .btn-primary:hover { background: var(--secondary-hover); }
body.single-calculator .resource-card .card-icon { font-size: 36px; margin-bottom: -10px; }
body.single-calculator .resource-card h3 { color: var(--primary); margin-top: 20px; margin-bottom: 12px; font-size: 22px; line-height: 30px; font-family: var(--font-heading); font-weight: 600; }
body.single-calculator .resource-card p  { margin-bottom: 24px; font-size: 16px; flex-grow: 1; color: var(--text-black); line-height: 26px; font-family: var(--font-body); }


/* ── CTA + FORM SECTION ── */
body.single-calculator .cta-form-section { background: var(--hero-bg); }
body.single-calculator .cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
body.single-calculator .cta-form-content h2 { color: #fffdfe; margin-bottom: 10px;}
body.single-calculator .cta-form-content p  { font-size: 18px; color: #fffdfe; margin-bottom: 15px; }
body.single-calculator .cta-form-content ul { list-style: none; padding-left: 0; margin: 20px 0; }
body.single-calculator .cta-form-content ul li { padding-left: 20px; position: relative; font-size: 16px; color: #fffdfe; margin-bottom: 12px; font-family: var(--font-body); list-style: none; }
body.single-calculator .cta-form-content ul li::before { content: "\2713"; position: absolute; left: 0; color: #00bc7d; font-weight: 700; }
body.single-calculator .zoho-frame-wrap iframe { width: 100%; min-height: 480px; border: none; border-radius: 0; }

/* ── FAQ SECTION ── */
body.single-calculator .faq-section { background: #fffdfe; }
body.single-calculator .faq-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; }
body.single-calculator .faq-image-col img { width: 100%; max-width: 420px; height: auto; border-radius: 0px; display: block; }
body.single-calculator .faq-main-title { font-family: var(--font-heading); font-size: 36px; font-weight: 600; color: var(--primary); margin-bottom: 30px; line-height: 48px; }
body.single-calculator .faq-item { margin-bottom: 18px; overflow: hidden; }
body.single-calculator .faq-question { background: var(--primary); padding: 20px 50px 20px 20px; font-size: 18px; line-height: 30px; font-weight: 400; font-family: var(--font-heading); color: #fffdfe; cursor: pointer; position: relative; transition: all 0.3s ease; user-select: none; }
body.single-calculator .faq-question::after { content: "›"; position: absolute; right: 24px; 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 { content: "›"; transform: translateY(-50%) rotate(90deg); }
body.single-calculator .faq-answer { background-color: var(--bg-light); max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 24px; font-size: 18px; line-height: 30px; font-family: var(--font-body); color: var(--primary); }
body.single-calculator .faq-answer.active { max-height: 600px; padding: 20px 24px; }
body.single-calculator .faq-answer p { font-size: 16px; color: #3b5bff; line-height: 26px; margin: 0; font-family: var(--font-body); }

/* ── RESPONSIVE 1024px ── */
@media (max-width: 1024px) {
    body.single-calculator .container, body.single-calculator .hero-inner { padding: 0 40px; }
    body.single-calculator .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    body.single-calculator .resources-grid { grid-template-columns: repeat(2, 1fr); }
    body.single-calculator .resource-card:last-child { grid-column: span 2; flex-direction: column; align-items: center; }
    body.single-calculator .cta-form-grid { grid-template-columns: 1fr; gap: 40px; }
    body.single-calculator .faq-layout { grid-template-columns: 1fr 1.3fr; gap: 36px; }
    body.single-calculator .faq-main-title { font-size: 28px; }
    body.single-calculator .btn { font-size: 16px; padding: 14px 16px; }
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {
    body.single-calculator { --section-padding: 40px 0; }
    body.single-calculator .container, body.single-calculator .hero-inner { padding: 0 20px; }
    body.single-calculator h1 { font-size: 32px; line-height: 44px; }
    body.single-calculator h2 { font-size: 26px; line-height: 36px; }
    body.single-calculator .section-title { font-size: 26px; line-height: 36px; }
    body.single-calculator .hero-inner { grid-template-columns: 1fr; gap: 30px; overflow: hidden; }
    body.single-calculator .hero-calc-card { border-radius: 24px; padding: 20px; }
    body.single-calculator .calculator-grid { grid-template-columns: 1fr; gap: 14px; }
    body.single-calculator .form-buttons { flex-direction: column; }
    body.single-calculator .resources-grid { grid-template-columns: 1fr; }
    body.single-calculator .resource-card:last-child { grid-column: span 1; }
    body.single-calculator .cta-form-grid { grid-template-columns: 1fr; gap: 30px; }
    body.single-calculator .faq-layout { grid-template-columns: 1fr; }
    body.single-calculator .faq-image-col { display: none; }
    body.single-calculator .faq-main-title { font-size: 24px; text-align: center; }
    body.single-calculator .faq-question { font-size: 16px; padding: 16px 44px 16px 16px; }
    body.single-calculator .content-section h2 { font-size: 26px; line-height: 36px; }
    body.single-calculator .accelerate-content { padding: 40px 20px; }
}

/* ── RESPONSIVE 480px ── */
@media (max-width: 480px) {
    body.single-calculator .hero-calc-card { width: 100%; max-width: 100%; overflow: hidden; padding: 12px; }
    body.single-calculator .result-value { font-size: 20px; word-break: break-word; }
    body.single-calculator .result-area { width: 100%; max-width: 100%; padding: 16px; }
    body.single-calculator .form-buttons .btn { font-size: 16px; padding: 10px 12px; }
    body.single-calculator .table-responsive .comparison-table { min-width: 480px; }
}

/* ── Subash review fixes (2026-06-14) ── */
body.single-calculator .content-section.qa-section { background: #e6ebff; }
