/* ════════════════════════════════════════════════════════════════════════════
   IELTS Band Calculator skin — CSS VERBATIM from Subash's ielts-band-calculator.html
   comp (lines 14–745). 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 `ielts-band-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 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: #fff;
    --radius: 20px;
}

html { scroll-behavior: smooth; }

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

/* TYPOGRAPHY */
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: 30px;
    font-weight: 600;
    line-height: 40px;
    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-weight: 400;
    color: var(--text-black);
}

/* LAYOUT */
body.single-calculator .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ── HERO ─────────────────────────────────────────────────────────── */
body.single-calculator .hero-section {
    background: var(--hero-bg);
    color: var(--text-white);
    padding: 60px 80px;
    text-align: center;
    width: 100%;
}
body.single-calculator .hero-section h1 {
    color: var(--text-white);
    font-size: 42px;
    font-weight: 600;
    line-height: 56px;
    margin-bottom: 16px;
}
body.single-calculator .hero-section p {
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-white);
    line-height: 32px;
}

/* ── CALCULATORS SECTION WRAPPER ─────────────────────────────────── */
body.single-calculator .calculators-section-wrapper {
    background: #13217c;
    padding: 0 0 60px 0;
    width: 100%;
}
body.single-calculator .calc-section-heading {
    color: var(--primary);
    font-size: 32px;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 44px;
    text-align: center;
    padding: 0 0 32px 0;
    margin: 0;
}

body.single-calculator .calculators-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}
body.single-calculator .left-section {
    display: flex;
    flex-direction: column;
}
body.single-calculator .right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── CALCULATOR CARDS ────────────────────────────────────────────── */
body.single-calculator .calculator-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 8px solid rgba(255,255,255,0.15);
    height: fit-content;
}
body.single-calculator .calculator-card h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
}

body.single-calculator .small-calculator-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.15);
}
body.single-calculator .small-calculator-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

/* ── FORM ELEMENTS ───────────────────────────────────────────────── */
body.single-calculator .input-group {
    margin-bottom: 20px;
}
body.single-calculator .input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: 0.5px;
}
body.single-calculator .input-group select,
body.single-calculator .input-group input {
    width: 100%;
    height: 60px;
    padding: 12px 16px;
    border: 2px solid #a0aeff;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    color: #808080;
    background: #fffdfe;
    transition: all 0.3s ease;
    cursor: pointer;
}
body.single-calculator .input-group select:focus,
body.single-calculator .input-group input:focus {
    outline: none;
    border-color: var(--bg-mid);
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
body.single-calculator .button-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
body.single-calculator .calculate-btn {
    flex: 1;
    text-align: center;
    max-height: 80px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
body.single-calculator .calculate-btn:hover {
    background: var(--primary-hover);
}
body.single-calculator .reset-btn {
    flex: 1;
    text-align: center;
    height: 48px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
body.single-calculator .reset-btn:hover {
    background: var(--primary);
    color: #fffdfe;
}
body.single-calculator .small-calculate-btn {
    flex: 1;
    text-align: center;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
body.single-calculator .small-calculate-btn:hover {
    background: var(--primary-hover);
}
body.single-calculator .small-reset-btn {
    flex: 1;
    text-align: center;
    height: 48px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
body.single-calculator .small-reset-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ── RESULT AREAS ────────────────────────────────────────────────── */
body.single-calculator .result {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
}
body.single-calculator .small-result {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
}
body.single-calculator .result h3 {
    color: var(--primary);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.4;
}
body.single-calculator .small-result h4 {
    color: var(--primary);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
body.single-calculator .band-score {
    font-size: 52px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--hero-bg);
    margin: 8px 0;
    line-height: 1.1;
}
body.single-calculator .small-band-score {
    font-size: 44px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--hero-bg);
    margin: 6px 0;
    line-height: 1.1;
}
body.single-calculator .result-cta-message {
    margin: 12px 0;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-black);
    line-height: 26px;
}
body.single-calculator .result-cta-btn {
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 12px;
}
body.single-calculator .result-cta-btn:hover {
    background: var(--secondary-hover);
    text-decoration: none;
    color: #fff;
}

/* ── PAGE BODY WRAPPER ───────────────────────────────────────────── */
body.single-calculator .page-body {
    padding: 0;
}

/* ── SERVICES SECTION WRAPPER ───────────────────────────────────── */
body.single-calculator .services-section-wrapper {
    background: #e6ebff;
    padding: 60px 0;
    width: 100%;
}

/* ── SERVICES GRID ───────────────────────────────────────────────── */
body.single-calculator .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 0 40px 0;
}
body.single-calculator .service-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--bg-light);
    transition: transform 0.3s ease;
}
body.single-calculator .service-card:hover {
    border: 2px solid #a0aeff;
}
body.single-calculator .service-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
}
body.single-calculator .service-card p {
    margin-bottom: 20px;
    color: #333333;
    font-size: 18px;
    line-height: 29px;
}
body.single-calculator .cta-btn {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
}
body.single-calculator .cta-btn:hover {
    background: var(--primary-hover);
    text-decoration: none;
    color: #fff;
}

/* ── CONTENT SECTION ─────────────────────────────────────────────── */
body.single-calculator .content-section {
    background: #fff;
    padding: 0 0;
    margin-bottom: 40px;
}
body.single-calculator .content-section h2 {
    color: var(--primary);
    font-size: 36px;
    line-height: 48px;
    margin-top: 60px;
    margin-bottom: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
}
body.single-calculator .content-section h3 {
    color: var(--secondary);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 12px;
    margin-top: 28px;
    font-weight: 600;
    font-family: var(--font-heading);
}
body.single-calculator .content-section p {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 29px;
    font-family: var(--font-body);
    color: var(--text-black);
}
body.single-calculator .content-section ul,
body.single-calculator .content-section ol {
    margin: 12px 0 12px 24px;
    font-size: 16px;
    line-height: 26px;
    font-family: var(--font-body);
}
body.single-calculator .content-section li {
    margin-bottom: 8px;
    color: var(--text-black);
}

/* ── TABLES ──────────────────────────────────────────────────────── */
body.single-calculator .band-table,
body.single-calculator .requirement-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 20px;
    display: block;
}
body.single-calculator .band-table table,
body.single-calculator .requirement-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
body.single-calculator .band-table th,
body.single-calculator .requirement-table th {
    background: var(--primary);
    color: #fff;
    padding: 18px 16px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-right: 1.5px solid #fffdfe;
}
body.single-calculator .band-table th:last-child,
body.single-calculator .requirement-table th:last-child {
    border-right: none;
}
body.single-calculator .band-table td,
body.single-calculator .requirement-table td {
    background: #e6ebff;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 24px;
    font-family: var(--font-body);
    color: var(--text-black);
    border-top: 1.5px solid #fffdfe;
    border-right: 1.5px solid #fffdfe;
}
body.single-calculator .band-table td:last-child,
body.single-calculator .requirement-table td:last-child {
    border-right: none;
}
body.single-calculator .band-table tr:nth-child(even) td,
body.single-calculator .requirement-table tr:nth-child(even) td {
    background: var(--bg-light);
}

/* ── HIGHLIGHT BOX ───────────────────────────────────────────────── */
body.single-calculator .highlight-box {
    background: var(--bg-light);
    border-left: 5px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}
body.single-calculator .highlight-box h4 {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
body.single-calculator .highlight-box p,
body.single-calculator .highlight-box li {
    font-size: 16px;
    line-height: 28px;
    color: var(--text-black);
}
body.single-calculator .highlight-box ul {
    margin: 8px 0 0 20px;
}
body.single-calculator .highlight-box li { margin-bottom: 5px; }

/* ── FAQ SECTION ─────────────────────────────────────────────────── */
body.single-calculator .faq-section {
    background: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}
body.single-calculator .faq-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
body.single-calculator .faq-image-col {
    position: sticky;
    top: 40px;
}
body.single-calculator .faq-image-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}
body.single-calculator .faq-content-col h2 {
    color: var(--primary);
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 28px;
    font-family: var(--font-heading);
    font-weight: 600;
}
body.single-calculator .faq-item {
    background: var(--primary);
    margin-bottom: 20px;
    border-radius: 0px;
    overflow: hidden;
}
body.single-calculator .faq-question {
    padding: 18px 52px 18px 20px;
    font-size: 18px;
    line-height: 29px;
    font-weight: 500;
    font-family: var(--font-body);
    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: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 28px;
    color: #fff;
    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 20px;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    font-family: var(--font-body);
    color: var(--primary);
}
body.single-calculator .faq-answer.active {
    max-height: 1000px;
    padding: 20px;
}
body.single-calculator .faq-answer p {
    color: var(--primary);
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 10px;
}
body.single-calculator .faq-answer ul {
    margin: 8px 0 8px 20px;
}
body.single-calculator .faq-answer li {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 28px;
}
body.single-calculator .faq-toggle { display: none; }
@media (max-width: 768px) {
    body.single-calculator .faq-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    body.single-calculator .faq-image-col {
        display: none;
    }
    body.single-calculator .faq-content-col h2 {
        font-size: 24px;
        line-height: 34px;
    }
}

/* ── CTA SECTION ─────────────────────────────────────────────────── */
body.single-calculator .cta-section {
    background: var(--hero-bg);
    color: var(--text-white);
    padding: 60px 80px;
    text-align: center;
    margin-left: -120px;
    margin-right: -120px;
}
body.single-calculator .cta-section h2 {
    color: var(--text-white);
    font-size: 34px;
    line-height: 46px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}
body.single-calculator .cta-section p {
    font-size: 18px;
    line-height: 29px;
    color: var(--text-white);
    margin-bottom: 30px;
}
body.single-calculator .cta-main-btn {
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
}
body.single-calculator .cta-main-btn:hover {
    background: var(--secondary-hover);
    text-decoration: none;
    color: #fff;
}

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

    body.single-calculator .hero-section {
        padding: 40px 40px 0 40px;
    }
    body.single-calculator .hero-section h1 {
        font-size: 28px;
        line-height: 38px;
    }
    body.single-calculator .hero-section p {
        font-size: 17px;
        line-height: 27px;
    }

    body.single-calculator .calculators-section-wrapper {
        padding: 40px 0px;
    }
    body.single-calculator .calculators-main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    body.single-calculator .right-section { gap: 15px; }

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

    body.single-calculator .calculator-card { padding: 10px; }

    body.single-calculator .content-section,
    body.single-calculator .faq-section {
        padding: 0px;
    }
    body.single-calculator .calc-section-heading {
        font-size: 22px;
        line-height: 32px;
        padding: 32px 0 24px 0;
    }
    body.single-calculator .cta-section { padding: 40px 40px; margin-left: -40px; margin-right: -40px; }
    body.single-calculator .cta-section h2 { font-size: 24px; line-height: 34px; }
    body.single-calculator .small-calculator-card { padding: 20px; }
    body.single-calculator .button-group { flex-direction: column; }
    body.single-calculator .faq-question { font-size: 16px; }
    body.single-calculator .content-section h2 { font-size: 28px; line-height: 42px; }
    body.single-calculator .content-section h3 { font-size: 18px; line-height: 27px; }
    body.single-calculator .band-table td, body.single-calculator .requirement-table td,
    body.single-calculator .band-table th, body.single-calculator .requirement-table th {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body.single-calculator .container { padding: 0 20px; }
    body.single-calculator .hero-section { padding: 40px 20px 0 20px; }
    body.single-calculator .cta-section { padding: 40px 20px; margin-left: -20px; margin-right: -20px; }
    body.single-calculator .hero-section h1 { font-size: 24px; line-height: 34px; }
    body.single-calculator .band-score { font-size: 40px; }
    body.single-calculator .content-section h2 { margin-top: 20px; font-size: 22px; line-height: 36px; }
    body.single-calculator .small-band-score { font-size: 36px; }
    body.single-calculator .calculator-card h2 { font-size: 18px; }
    body.single-calculator .small-calculator-card h3 { font-size: 16px; }
    body.single-calculator .services-section-wrapper { padding: 10px 0 10px 0; }
}

/* Subash design review v1 (13-Jun): Quick Answers section background */
body.single-calculator .content-section.qa-section { background: #e6ebff; }

/* ── Subash review v2 (2026-06-14) + v3 (2026-06-15): Quick-Answers band full-bleed.
   v2 coloured the .container — but .container is max-width:1440px + margin:0 auto, so on
   viewports wider than 1440px white page-margin gutters remained to the LEFT and RIGHT
   of the lavender (exactly what Subash re-flagged in v3). Root-cause fix: colour the
   full-width .page-body wrapper that holds the QA container instead (the same pattern
   the comp itself uses for .services-section-wrapper — a width:100% lavender band).
   Edge-to-edge lavender at every width; the inner .container keeps its max-width + 80px
   padding so the QA text stays aligned with the other sections. Scrollbar-safe (no 100vw). */
body.single-calculator .page-body:has(.qa-section) {
    background: #e6ebff;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* v3 (2026-06-15): the four Quick-Answers questions render in the comp's magenta
   --secondary (#cc00cc); Subash wants them neutral #333333 in this section only. */
body.single-calculator .content-section.qa-section h3 { color: #333333; }

/* v3 (2026-06-15): tighten the FAQ image↔content gap to match the SAT Score Calculator
   FAQ (mirror of the accepted german-grade v2 fix). The comp's .faq-inner is a 1fr 1fr
   grid with a 60px gap and a width:100% image, so the illustration column took half the
   row with a wide gutter. Narrow the image column, cap the image, tighten the gap —
   desktop only; the existing ≤768px rule already collapses to a single column. */
@media (min-width: 769px) {
    body.single-calculator .faq-inner {
        grid-template-columns: 2fr 3fr;
        gap: 20px;
    }
    body.single-calculator .faq-image-col img { max-width: 420px; }
}
