/* aplus.css — Divi-safe (clean, aligned, responsive)
   -------------------------------------------------- */

/* === A+ Typography System (scalable & safe) === */
:root {
  /* === Fonts === */
  --aaa-font-main: "abel", sans-serif;
  --aaa-font-heading: "Bebas Neue", sans-serif;

  /* === Font Sizes === */
--aaa-size-xs: 14px;      /* smallest captions */
--aaa-size-sm: 16px;      /* small supporting text */
--aaa-size-md: 22px;      /* general body text */
--aaa-size-label: 32px;   /* labels, values, question numbers */
--aaa-size-issue: 32px; /* The Issue Display Size on questions and results */
	
--aaa-size-question: 24px;/* main question text */
--aaa-size-issueinput: 24px;   /* The Issue Text Entry Size */
--aaa-size-numberinput: 22px;  /* text size for number entry boxes */
--aaa-size-btn: 22px;     /* button text */
--aaa-size-instr: 22px;   /* instruction text */
--aaa-size-lg: 24px;      /* larger body / key emphasis */
--aaa-size-xl: 28px;      /* section headings */
--aaa-size-xxl: 40px;     /* large section headers */
--aaa-size-huge: 60px;    /* global header */

	--aaa-size-cta-heading: 32px; /* CTA section header */
--aaa-size-cta-text: 22px; /* CTA Default body text */
	
	--aaa-size-battery-heading: 36px;  /* Battery label */
--aaa-size-battery-text: 22px;     /* Battery text below */
	  --aaa-size-battery-score: 18px;    /*Battery Scores */

	--aaa-size-cat-title: 28px;   /* Results Page: category title */
--aaa-size-cat-def: 24px;     /* Results Page: category definition text */
--aaa-size-detail-qa: 20px;   /* Results Page: detailed question/answer list */




  /* === Line heights === */
  --aaa-line-tight: 1.2;
  --aaa-line-normal: 1.5;
  --aaa-line-loose: 1.7;
}

/* === Mobile scaling (optimized typography + Nunito Sans) === */
@media (max-width: 768px) {
  :root {
    /* === Font === */
    --aaa-font-main: "nunito sans", sans-serif;

    /* === Mobile Font Sizes (balanced hierarchy) === */
    --aaa-size-xs: 13px;
    --aaa-size-sm: 14px;
    --aaa-size-md: 18px;       /* Mobile main body text */
    --aaa-size-label: 24px;    /* Mobile question numbers / labels */
    --aaa-size-issue: 26px;    /* Mobile issue titles */
    --aaa-size-question: 18px; /* Mobile main question text */
    --aaa-size-issueinput: 18px;
    --aaa-size-numberinput: 18px;
    --aaa-size-btn: 20px;      /* button text */
    --aaa-size-instr: 16px;    /* Mobile instructions */
    --aaa-size-lg: 20px;       /* large body / emphasis */
    --aaa-size-xl: 24px;       /* section heading */
    --aaa-size-xxl: 30px;      /* large section heading */
    --aaa-size-huge: 44px;     /* global header */
    --aaa-size-cta-heading: 26px; /* CTA Header Size */
    --aaa-size-cta-text: 18px;  /* CTA Text Size */
    --aaa-size-cat-title: 22px;  /* CTA Title Size */
    --aaa-size-cat-def: 18px;   /* global header */
    --aaa-size-detail-qa: 16px; /* global header */
	--aaa-size-battery-heading: 34px;  /* Battery label */
--aaa-size-battery-text: 20px;     /* Battery text below */
	  --aaa-size-battery-score: 18px;    /*Battery Scores */


    /* Line heights (slightly looser for small screens) */
    --aaa-line-tight: 1.3;
    --aaa-line-normal: 1.6;
    --aaa-line-loose: 1.8;
  }

  /* Safety override for any hard-coded Abel references */
  #aplus-plugin,
  #aplus-plugin .aaa-abel,
  #aplus-plugin .aaa-intro-text,
  #aplus-plugin .aaa-results-text,
  #aplus-plugin .aaa-after-radar-text,
  #aplus-plugin .aaa-before-text,
  #aplus-plugin .aaa-number,
  #aplus-plugin .aaa-email-box,
  #aplus-plugin .aaa-cat-def,
  #aplus-plugin .aaa-cat-qlist,
  #aplus-plugin .aaa-cta-message,
  #aaa-plus-cta-container {
    font-family: "Nunito Sans", sans-serif !important;
  }
}



/* === General Layout === */
#aplus-plugin {
  font-family: "Abel", sans-serif;
  color: #000;
  padding: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.aaa-center { text-align: center; }
.aaa-left { text-align: left; }
.aaa-right { text-align: right; }
.aaa-gap-1 { height: 15px; }
.aaa-gap-2 { height: 25px; }
.aaa-spacer-40 { height: 40px; }

/* === Typography === */
.aaa-bebas { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.5px; }
.aaa-abel  { font-family: "Abel", sans-serif; }

/* === Global Header === */
.aaa-global-wrap { margin-bottom: 16px; }

.aaa-global-header {
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 80px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .aaa-global-header { font-size: 48px; }
}

/* === Section Headings === */
.aaa-intro-heading,
.aaa-question-heading,
.aaa-results-heading,
.aaa-before-heading,
.aaa-after-radar-heading,
.aaa-results-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .aaa-intro-heading,
  .aaa-question-heading,
  .aaa-results-heading,
  .aaa-before-heading,
  .aaa-after-radar-heading,
  .aaa-results-title { font-size: 36px; }
}

/* === Dividers === */
.aaa-global-divider,
.aaa-divider {
  width: 60%;
  height: 12px;
  background: #d23c3e;
  margin: 10px auto 20px auto;
  border-radius: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* === Results & Issue === */
.aaa-results-title { text-align: center; margin-bottom: 20px; }
.aaa-results-issue { font-size: 24px; margin-top: 10px; text-align: center; }


/* === Section Texts === */
.aaa-intro-text,
.aaa-results-text,
.aaa-after-radar-text,
.aaa-before-text {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-md);
  line-height: var(--aaa-line-normal);
  text-align: left;
  color: #111;
  margin: 20px auto;
  max-width: 900px;
  white-space: normal;
}

.aaa-results-text,
.aaa-after-radar-text,
.aaa-before-text { text-align: center; }

/* === Instruction Box === */
.aaa-instr {
  border: 2px solid #000;
  background: #f9f9f9;
  padding: 18px 20px;
  border-radius: 6px;
  max-width: 900px;
  margin: 20px auto 30px auto;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
}

/* === Section Images === */
.aaa-intro-image,
.aaa-question-image,
.aaa-results-image,
.aaa-before-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 15px auto 20px auto;
  border-radius: 0;
}

/* === Before Detailed Results Section === */
.aaa-before-detailed { margin-top: 40px; text-align: center; }
.aaa-before-heading  { font-family: "Bebas Neue", sans-serif; font-size: 50px; margin-bottom: 15px; }
.aaa-before-text     { font-family: "Abel", sans-serif; font-size: 22px; line-height: 1.5; color: #111; margin: 10px auto 30px auto; max-width: 900px; }

/* === Buttons === */

/* === Button Row Alignment === */
.aaa-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* === Keep question controls (number + buttons) in fixed vertical position === */
#aplus-plugin .aaa-question-card,
#aplus-plugin .aaa-question-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px; /* adjust as needed to fit your layout */
}

#aplus-plugin .aaa-number,
#aplus-plugin .aaa-btn-row {
  align-self: flex-start; /* keeps them aligned left, not floating */
}

@media (max-width: 768px) {
  #aplus-plugin .aaa-question-card,
  #aplus-plugin .aaa-question-wrap {
    min-height: 200px; /* smaller height for mobile */
  }
}


/* === Question Progress Counter === */
.aaa-progress {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  text-align: left;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .aaa-progress { font-size: 16px; }
}

/* === Text Inputs (Intro Section) === */
.aaa-textinput {
  width: 100%;
  max-width: 700px;
  min-height: 120px;
  font-size: var(--aaa-size-issueinput);

  font-family: var(--aaa-font-main);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
  display: block;
  margin: 0 auto 20px auto;
  text-align: left;
  background: #fff;
  color: #000;
}


/* === Number Inputs (Question Answer Boxes) === */
.aaa-number {
  width: 100%;
  max-width: 150px;
  height: 52px;
font-size: var(--aaa-size-numberinput);
  font-family: "Abel", sans-serif;
  font-weight: 400;
  border: 1px solid #000;
  border-radius: 0;
  text-align: center;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  padding: 6px 8px;
  -moz-appearance: textfield;
}

.aaa-number::-webkit-inner-spin-button,
.aaa-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* === Modal === */
.aaa-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
}
.aaa-modal {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  font-family: "Abel", sans-serif;
}
.aaa-modal-msg { font-size: 16px; }

/* =======================================================
   BATTERIES — aligned, proportional, compact (one-line stable)
   ======================================================= */
.aaa-battery-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; /* ⬅️ keep all batteries on one line */
  gap: clamp(10px, 2vw, 24px);
  margin: 40px auto 50px auto;
  max-width: 1000px; /* slightly wider to fit all batteries comfortably */
  padding: 0 5px;
  box-sizing: border-box;
  overflow-x: auto; /* enables horizontal scroll on smaller screens */
  transform: scale(1);
  transform-origin: top center;
}

/* Standards-compliant responsive scaling (safe across all browsers) */
@supports (transform: scale(1)) and (width: calc(100vw / 1250)) {
  .aaa-battery-container {
    transform: scale(clamp(0.78, calc(100vw / 1250), 1));
  }
}

.aaa-battery-item {
  flex: 0 0 clamp(150px, 18vw, 200px); /* fixed basis keeps row stable */
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Optional: allow wrapping only on mobile */
@media (max-width: 768px) {
  .aaa-battery-container {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    transform: scale(clamp(0.7, calc(100vw / 950), 1));
    gap: 18px;
  }
}

.aaa-battery-wrap {
  position: relative;
  width: clamp(90px, 11vw, 130px);
  height: clamp(160px, 20vw, 240px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.aaa-battery {
  width: 100%;
  height: 100%;
  border: 3px solid #000;
  border-radius: 14px;
  background: linear-gradient(to bottom, #fafafa, #ececec);
  position: relative;
  overflow: hidden;
}

.aaa-battery-cap {
  position: absolute;
  top: -10px;
  left: 30%;
  width: 40%;
  height: 10px;
  background: #111;
  border-radius: 3px;
}

.aaa-battery-inner {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  border-radius: 10px;
  background: #f2f2f2;
  padding: 8px;
}

.aaa-battery-progress-column {
  position: absolute;
  top: 12px; bottom: 12px; right: 8px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, #e53935 0%, #fb8c00 45%, #43a047 100%);
  opacity: 0.95;
}

.aaa-battery-seg {
  flex: 1;
  min-height: 10px;
  border-radius: 6px;
  background: #dddddd;
}
.aaa-battery-seg.on-1,
.aaa-battery-seg.on-2 { background: #e53935; }
.aaa-battery-seg.on-3 { background: linear-gradient(to top, #e53935, #fb8c00); }
.aaa-battery-seg.on-4,
.aaa-battery-seg.on-5,
.aaa-battery-seg.on-6 { background: #fb8c00; }
.aaa-battery-seg.on-7 { background: linear-gradient(to top, #fb8c00, #43a047); }
.aaa-battery-seg.on-8,
.aaa-battery-seg.on-9,
.aaa-battery-seg.on-10 { background: #43a047; }

.aaa-battery-heading {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-battery-heading);
  letter-spacing: 0.7px;
  line-height: 1.1;
  margin: 0 0 28px 0;
  color: #000000;
}

.aaa-battery-subheading
 {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-battery-text);
  font-weight: 600;
  color: #000000;
  text-align: center;
}

.aaa-battery-score {
 font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-battery-score);
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .aaa-battery-container {
    transform: scale(clamp(0.7, 100vw / 950, 1));
    gap: 18px;
  }
}

/* =======================================================
   CHARTS — framed; bar chart aligned to radar width
   ======================================================= */
.aaa-charts-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

/* Radar cards row */
.aaa-radar-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  max-width: 1000px !important;
  margin: 0 auto 40px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}
.aaa-radar-row .aaa-chart-card.equal-chart {
  flex: 1 1 100% !important;
  max-width: 460px !important;
  box-sizing: border-box !important;
}
@media (min-width: 768px) {
  .aaa-radar-row .aaa-chart-card.equal-chart {
    flex: 1 1 calc(50% - 20px) !important;
    max-width: 460px !important;
  }
}

/* Chart card frame (applies to all charts) */
.aaa-chart-card {
  width: 100%;
  max-width: 1000px;     /* shared frame width */
  margin: 0 auto;
  background: #f8f8f8;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 20px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
}

/* Titles */
.aaa-chart-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}
.aaa-subtitle {
  font-family: "Abel", sans-serif;
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Chart body — remove global cap for non-radar usage */
.aaa-chart-card .aaa-chart-body {
  height: 380px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep the 460px cap ONLY for radar cards */
.aaa-radar-row .aaa-chart-card.equal-chart .aaa-chart-body {
  max-width: 460px !important;
}

/* Canvas (base) */
.aaa-chart-canvas {
  width: 100%;
  height: 360px;
  max-width: none;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
  padding: 0 10px; /* gentle buffer */
}

/* Radar canvas */
.aaa-chart-canvas-radar { width: 100%; height: 380px; }

/* Bar/Summary chart — match radar group width precisely */
#aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type {
  max-width: 940px !important;    /* aligns with radar group */
  margin: 0 auto !important;
}
#aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type .aaa-chart-body {
  max-width: 900px !important;    /* inner visual span */
  width: 100% !important;
  margin: 0 auto !important;
}
#aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type .aaa-chart-canvas {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Responsive tweaks for bar chart only */
@media (max-width: 1024px) {
  #aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type { max-width: 90% !important; }
  #aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type .aaa-chart-body { max-width: 100% !important; }
}
@media (max-width: 768px) {
  #aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type { max-width: 95% !important; }
  #aplus-plugin .aaa-charts-grid > .aaa-chart-card:first-of-type .aaa-chart-canvas { padding: 0 4px !important; }
}

/* =======================================================
   DETAILED RESULTS, EMAIL, CTAS — centered containers
   ======================================================= */

/* Detailed results wrapper centered; content left-aligned */
.aaa-detail-wrap {
  max-width: 1000px;
  margin: 30px auto 40px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Category blocks and titles */
.aaa-cat-block { margin-bottom: 24px; }
.aaa-cat-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: var(--aaa-size-cat-title);
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
}
.aaa-cat-def {
  font-family: "Abel", sans-serif;
 font-size: var(--aaa-size-cat-def);
  color: #333;
  margin: 0 0 10px 0;
}

/* Question list formatting — stable inline + absolute score */
.aaa-cat-qlist {
 font-size: var(--aaa-size-detail-qa);
  line-height: 1.5;
  width: 100%;
  text-align: left !important; /* defeat any Divi centering */
  margin: 0 auto;
  display: block;
}

.aaa-qitem {
  position: relative;          /* anchor for the score */
  margin: 6px 0;
  padding-right: 84px;         /* reserve space on the right for score */
  text-align: left !important; /* enforce left alignment */
  width: 100%;
}

/* Number + label stay inline with the question */
.aaa-qitem strong {
  display: inline;
  font-weight: 700;
  margin-right: 6px;
  white-space: nowrap;         /* prevents label from breaking under number */
}

/* The question text is just the remaining inline text-node; keep it left */
.aaa-qitem * {
  text-align: left !important;
}

/* Score pinned to the right, never pushes text around */
.aaa-qitem .aaa-score-right {
  position: absolute;
  top: 0;                      /* align with the first line */
  right: 0;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

/* If a line wraps to multiple rows, keep the score clear */
@media (max-width: 600px) {
  .aaa-qitem {
    padding-right: 74px;       /* slightly narrower on phones */
  }
}


/* === Email Box (final refined layout) === */
.aaa-email-box {
  max-width: 700px;            /* narrower, neater box */
  margin: 40px auto;
  padding: 24px 26px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #f8f8f8;
  box-sizing: border-box;
  text-align: left;
  font-family: "Abel", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #111;
}

/* Keep the main heading centered */
.aaa-email-box h3 {
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: #000;
}

/* Regular text and labels left aligned */
.aaa-email-box p,
.aaa-email-box label {
  text-align: left;
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.5;
}

/* Email input field narrower and centered */
.aaa-email-box input[type="email"],
.aaa-email-box input[type="text"],
.aaa-email-box textarea {
  width: 80%;
  max-width: 500px;
  font-size: 18px;
  font-family: "Abel", sans-serif;
  border: 2px solid #000;
  padding: 10px 12px;
  box-sizing: border-box;
  display: block;
   margin: 0 0 16px 0; /* left-aligned input field */

  text-align: left;
  background: #fff;
  color: #000;
}

/* Consent line — text and checkbox inline */
.aaa-email-box .aaa-consent-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px 0;
}

.aaa-email-box .aaa-consent-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.aaa-email-box .aaa-consent-line label,
.aaa-email-box .aaa-consent-line span {
  font-size: 16px;
  text-align: left;
  line-height: 1.4;
}

/* Button centered below */
.aaa-email-box .aaa-cta-btn,
.aaa-email-box button,
.aaa-email-box input[type="submit"] {
  display: block !important;
  margin: 20px auto 0 auto !important;
  text-align: center !important;
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  padding: 10px 24px;
  background: #8edc00;
  color: #000;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
}

.aaa-email-box .aaa-cta-btn:hover,
.aaa-email-box button:hover,
.aaa-email-box input[type="submit"]:hover {
  background: #7ac400;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .aaa-email-box {
    width: 92%;
    padding: 20px;
  }
  .aaa-email-box input[type="email"],
  .aaa-email-box input[type="text"] {
    width: 100%;
  }
  .aaa-email-box .aaa-consent-line {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* === CTA Container (restored formatting & buttons) === */
#aaa-plus-cta-container {
 
  margin: 50px auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center; /* center headings and buttons */
  font-family: "Abel", sans-serif;
  font-size: var(--aaa-size-cta-text);

  line-height: 1.6;
  color: #111;
}

#aaa-plus-cta-container h3 {
  font-family: "Bebas Neue", sans-serif;
font-size: var(--aaa-size-cta-heading);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #000;
  text-align: center;
}

#aaa-plus-cta-container p,
#aaa-plus-cta-container .aaa-cta-message {
   margin: 0 auto 18px auto;
  text-align: left;
	border-radius: 6px;
  background: #f9f9f9;
  padding: 18px 20px;
   max-width: 1260px;
  margin: 20px auto 30px auto;
  font-size: 22px;
  line-height: 1.5;
}

/* CTA Buttons */
#aaa-plus-cta-container .aaa-cta-btn {
  display: inline-block !important;
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  padding: 10px 22px;
  background: #8edc00;
  color: #000;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px 8px 0 8px; /* space between buttons */
  text-decoration: none;
}

#aaa-plus-cta-container .aaa-cta-btn:hover {
  background: #7ac400;
}

/* Keep layout tidy on mobile */
@media (max-width: 600px) {
  #aaa-plus-cta-container {
    padding: 0 12px;
  }
  #aaa-plus-cta-container .aaa-cta-btn {
    display: block !important;
    width: 80%;
    margin: 10px auto;
  }
}

/* === Footer === */
.aaa-footer {
  font-family: "Abel", sans-serif;
  font-size: 16px;
  text-align: center;
  margin-top: 30px;
  color: #000;
}

/* aplus.css — Divi-safe (clean, aligned, responsive)
   --------------------------------------------------
   • Centralized typography system (Bebas Neue + Abel)
   • Unified text sizing and line-height
   • Preserves Detailed Results and Email Box styling
   • Includes CTA spacing, print rules, and inline error refinements
*/

/* === Base Layout === */
#aplus-plugin {
  font-family: var(--aaa-font-main);
  color: #000;
  padding: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.aaa-center { text-align: center; }
.aaa-left { text-align: left; }
.aaa-right { text-align: right; }
.aaa-gap-1 { height: 16px; }
.aaa-gap-2 { height: 32px; }
.aaa-spacer-40 { height: 40px; }

.aaa-divider {
  width: 80px;
  height: 4px;
  background: #d23c3e;
  margin: 16px auto;
  border-radius: 2px;
}

/* === Fonts === */
.aaa-bebas { font-family: var(--aaa-font-heading); letter-spacing: 0.5px; }
.aaa-abel  { font-family: var(--aaa-font-main); }

/* === Global Header === */
.aaa-global-header,
.aaa-global-wrap .aaa-results-heading {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-huge);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: var(--aaa-line-tight);
}
@media (max-width: 768px) {
  .aaa-global-header,
  .aaa-global-wrap .aaa-results-heading { font-size: var(--aaa-size-xxl); }
}

/* === Section Headings (Intro, Questions, Results) === */
.aaa-intro-heading,
.aaa-question-heading,
.aaa-results-heading,
.aaa-before-heading,
.aaa-after-radar-heading,
.aaa-results-title {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-xxl);
  line-height: var(--aaa-line-tight);
  text-align: center;
}
@media (max-width: 768px) {
  .aaa-intro-heading,
  .aaa-question-heading,
  .aaa-results-heading,
  .aaa-before-heading,
  .aaa-after-radar-heading,
  .aaa-results-title {
    font-size: var(--aaa-size-xl);
  }
}

/* === Question Labels and Text === */
.aaa-qhead {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-label);
  margin-top: 10px;
}


.aaa-qtext {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-question);
  line-height: var(--aaa-line-tight);
  color: #111;
  margin-top: 8px;
  width: 100%;           /* allow full width */
  max-width: none !important; /* remove previous width limits */
  text-align: left;
}



/* === Keep question layout stable (prevent jump when text wraps) === */
#aplus-plugin .aaa-question-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;      /* keep everything left-aligned */
  justify-content: space-between;
  min-height: 220px;            /* keeps buttons stable even for 2-line questions */
}


/* === Instructions === */
.aaa-instr {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-instr); /* now uses your instruction font variable */
line-height: var(--aaa-line-tight);
  color: #000;
  text-align: center;
}

/* === Issue Display === */
.aaa-issue {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-issue); /* new variable */
  margin: 15px auto;
  text-align: center;
  color: #000000; /* or keep whatever color you prefer */
}


/* === Input and Buttons === */
.aaa-textinput,
.aaa-number,
.aaa-input {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-md);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.aaa-btn {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-md);
  line-height: var(--aaa-line-tight);
  background-color: #d23c3e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.aaa-btn:hover { background-color: #b03033; }
.aaa-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.aaa-btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
}

/* === Inline error === */
.aaa-error-inline {
  position: absolute;
  left: 0;
  transform: translateY(30px);
  background: #fff;
  color: #000;
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-sm);
  padding: 0 8px;
  border-radius: 4px;
  margin-top: 2px;
  display: none;
  white-space: nowrap;
}

/* === Progress indicator === */
.aaa-progress {
  text-align: center;
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-sm);
  margin-top: 16px;
  color: #444;
}

/* === Batteries and Charts === */

.aaa-battery-item {
  text-align: center;
  flex: 1 1 220px;
  min-width: 220px;
}
.aaa-battery-heading {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-md);
}
.aaa-battery-score {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-md);
  margin-top: 8px;
}

.aaa-chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.aaa-chart-title {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-md);
  margin-bottom: 8px;
}



/* === Email Box (preserved) === */
.aaa-email-box {
  margin: 40px auto;
  max-width: 600px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.aaa-card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
}
.aaa-card-subtitle {
  font-family: "Abel", sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
}
.aaa-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-family: "Abel", sans-serif;
  font-size: 15px;
}
.aaa-help { font-size: 15px; margin-top: 8px; }

/* === CTAs and Footer === */
.aaa-cta-block {
  margin: 24px auto;
  text-align: center;
}
.aaa-cta-title {
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-xl);
}
.aaa-cta-message {
  font-family: var(--aaa-font-main);
  font-size: var(--aaa-size-md);
  margin-top: 8px;
}
.aaa-cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  font-family: var(--aaa-font-heading);
  font-size: var(--aaa-size-md);
  color: #fff;
  background-color: #234E70;
  border-radius: 6px;
  text-decoration: none;
}
.aaa-cta-btn:hover { background-color: #1d3d59; }

.aaa-footer {
  margin-top: 40px;
  font-size: var(--aaa-size-sm);
  color: #555;
}

/* === CTA spacing between blocks === */
#aaa-plus-cta-container .aaa-cta-block + .aaa-cta-block {
  margin-top: 30px;
}

/* === Shared box sizing for inputs/cards/email === */
.aaa-cta-btn, .aaa-input, .aaa-card, .aaa-email-box {
  box-sizing: border-box;
}

/* === Print rules === */
@media print {
  body * { visibility: hidden; }
  #aplus-plugin, #aplus-plugin * { visibility: visible; }
  .aaa-btn { display: none !important; }
  .aaa-chart-card { page-break-inside: avoid; }
}

/* === Fine-tuned spacing === */
#aplus-plugin .aaa-intro-heading,
#aplus-plugin .aaa-question-heading,
#aplus-plugin .aaa-results-heading,
#aplus-plugin .aaa-before-heading,
#aplus-plugin .aaa-after-radar-heading,
#aplus-plugin .aaa-results-title {
  margin-bottom: 6px;
}
#aplus-plugin .aaa-divider {
  margin: 6px auto 10px auto;
}
#aplus-plugin .aaa-intro-image,
#aplus-plugin .aaa-question-image,
#aplus-plugin .aaa-results-image,
#aplus-plugin .aaa-before-image {
  margin: 8px auto 12px auto;
}


/* === PATCH: Restore Original Button & Layout Styling === */

/* === PATCH: Restore Original Green Buttons with Black Bebas Font === */
.aaa-btn {
  font-family: "Bebas Neue", sans-serif;
  font-size: var(--aaa-size-btn);
  line-height: var(--aaa-line-tight);
  background-color: #8edc00 !important;
  color: #000 !important;
  border-radius: 0 !important;
  border: none !important;
  text-transform: none !important;
  padding: 8px 18px;
  cursor: pointer;
  transition: 0.3s;
}

.aaa-btn:hover {
  background-color: #79bf00 !important; /* darker hover */
  color: #000 !important;               /* keep text black on hover */
}

/* Question input + buttons left aligned */
#aplus-plugin .aaa-btn-row {
  justify-content: flex-start !important;
}

/* Keep all other buttons (intro, results, email send) centred */
#aplus-plugin .aaa-center .aaa-btn,
#aplus-plugin .aaa-email-box .aaa-btn,
#aplus-plugin #aaa-email-send {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}


/* === PATCH: Question progress counter left-aligned === */
#aplus-plugin .aaa-btn-row + .aaa-progress {
  text-align: left !important;
  margin-left: 0 !important;
}


/* Smooth fade transition between sections */
#aplus-plugin .aaa-stage-wrap {
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

#aplus-plugin .aaa-stage-wrap.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* =======================================================
   A+ SPACING — definitive fix (neutralize gaps + set margins)
   Works with current aplus.js structure and Divi.
   ======================================================= */

#aplus-plugin {
  --gap-tight: 0.5rem;    /* header ↔ image */
  --gap-medium: 2rem;  /* default between related elements */
  --gap-large: 2rem;      /* between major sections */
}

/* 1) Neutralize spacer divs that break adjacency */
#aplus-plugin .aaa-gap-1,
#aplus-plugin .aaa-gap-2 {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}

/* 2) INTRO — consistent rhythm, tighter header→image */
#aplus-plugin .aaa-intro-heading { margin: 0 0 var(--gap-tight) 0 !important; }
#aplus-plugin .aaa-divider       { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-intro-image   { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-intro-text    { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-textinput     { margin: 0 auto var(--gap-medium) !important; }
/* keep intro Next button close to the input */
#aplus-plugin .aaa-center .aaa-btn { margin-top: 0 !important; }

/* 3) QUESTIONS — tighten and standardize */
#aplus-plugin .aaa-question-heading { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-question-image   { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-instr            { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-qhead            { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-qtext            { margin: 0 0 var(--gap-medium) !important; }
#aplus-plugin .aaa-btn-row          { margin-top: 0 !important; }
#aplus-plugin .aaa-progress         { margin-top: var(--gap-tight) !important; }

/* 4) RESULTS — title tighter to image; even sections */
#aplus-plugin .aaa-results-title  { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-results-image  { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-results-text   { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-results-issue  { margin: 0 auto var(--gap-medium) !important; }

#aplus-plugin .aaa-battery-container { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin .aaa-charts-grid       { margin: var(--gap-large) auto var(--gap-large) !important; }

#aplus-plugin .aaa-after-radar-heading { margin: var(--gap-large) 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-after-radar-text    { margin: 0 auto var(--gap-medium) !important; }

#aplus-plugin .aaa-detail-wrap  { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin .aaa-email-box    { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin #aaa-plus-cta-container { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin #aaa-plus-cta-container .aaa-cta-block + .aaa-cta-block { margin-top: var(--gap-medium) !important; }

#aplus-plugin .aaa-footer { margin-top: var(--gap-large) !important; }

/* 5) Mobile tuning */
@media (max-width: 768px) {
  #aplus-plugin {
    --gap-tight: 0.4rem;
    --gap-medium: 2rem;
    --gap-large: 1.5rem;
  }
}

/* =======================================================
   A+ MICRO-TUNE — tighten buttons under questions
   ======================================================= */

/* Reduce the space between question text and its buttons */
#aplus-plugin .aaa-qtext {
  margin-bottom: 0.5rem !important;  /* previously medium; now tighter */
}

/* Remove any top margin on the button row itself */
#aplus-plugin .aaa-btn-row {
  margin-top: 0 !important;
}

/* Optional: if there's still residual flex spacing, nudge it tighter */
#aplus-plugin .aaa-question-card,
#aplus-plugin .aaa-question-wrap {
  gap: 0.5rem !important; /* ensures minimal space between stacked elements */
}

/* Keep progress counter still separated below */
#aplus-plugin .aaa-btn-row + .aaa-progress {
  margin-top: 0.75rem !important;
}

/* =======================================================
   A+ SPACING — definitive fix (neutralize gaps + set margins)
   Works with current aplus.js structure and Divi.
   ======================================================= */

#aplus-plugin {
  --gap-tight: 0.5rem;    /* header ↔ image */
  --gap-medium: 2rem;  /* default between related elements */
  --gap-large: 2rem;      /* between major sections */
}

/* 1) Neutralize spacer divs that break adjacency */
#aplus-plugin .aaa-gap-1,
#aplus-plugin .aaa-gap-2 {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}

/* 2) INTRO — consistent rhythm, tighter header→image */
#aplus-plugin .aaa-intro-heading { margin: 0 0 var(--gap-tight) 0 !important; }
#aplus-plugin .aaa-divider       { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-intro-image   { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-intro-text    { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-textinput     { margin: 0 auto var(--gap-medium) !important; }
/* keep intro Next button close to the input */
#aplus-plugin .aaa-center .aaa-btn { margin-top: 0 !important; }

/* 3) QUESTIONS — tighten and standardize */
#aplus-plugin .aaa-question-heading { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-question-image   { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-instr            { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-qhead            { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-qtext            { margin: 0 0 var(--gap-medium) !important; }
#aplus-plugin .aaa-btn-row          { margin-top: 0 !important; }
#aplus-plugin .aaa-progress         { margin-top: var(--gap-tight) !important; }

/* 4) RESULTS — title tighter to image; even sections */
#aplus-plugin .aaa-results-title  { margin: 0 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-results-image  { margin: var(--gap-tight) auto var(--gap-medium) !important; }
#aplus-plugin .aaa-results-text   { margin: 0 auto var(--gap-medium) !important; }
#aplus-plugin .aaa-results-issue  { margin: 0 auto var(--gap-medium) !important; }

#aplus-plugin .aaa-battery-container { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin .aaa-charts-grid       { margin: var(--gap-large) auto var(--gap-large) !important; }

#aplus-plugin .aaa-after-radar-heading { margin: var(--gap-large) 0 var(--gap-tight) !important; }
#aplus-plugin .aaa-after-radar-text    { margin: 0 auto var(--gap-medium) !important; }

#aplus-plugin .aaa-detail-wrap  { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin .aaa-email-box    { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin #aaa-plus-cta-container { margin: var(--gap-large) auto var(--gap-large) !important; }
#aplus-plugin #aaa-plus-cta-container .aaa-cta-block + .aaa-cta-block { margin-top: var(--gap-medium) !important; }

#aplus-plugin .aaa-footer { margin-top: var(--gap-large) !important; }

/* 5) Mobile tuning */
@media (max-width: 768px) {
  #aplus-plugin {
    --gap-tight: 0.4rem;
    --gap-medium: 1rem;
    --gap-large: 1.5rem;
  }
}

/* =======================================================
   A+ MICRO-TUNE — unified final version
   -------------------------------------------------------
   • Builds on A+ SPACING
   • Tightens question buttons under question text
   • Tightens intro "Next" button under input
   • Keeps progress counter neatly separated
   • Slightly tighter still on desktop only
   ======================================================= */

/* === Base tightening for all devices === */

/* Reduce the space between question text and its buttons */
#aplus-plugin .aaa-qtext {
  margin-bottom: 0.5rem !important;
}

/* Remove any top margin on the button row itself */
#aplus-plugin .aaa-btn-row {
  margin-top: 0 !important;
}

/* Keep question layout snug */
#aplus-plugin .aaa-question-card,
#aplus-plugin .aaa-question-wrap {
  gap: 0.5rem !important; /* ensures minimal space between stacked elements */
}

/* Keep progress counter slightly separated below the buttons */
#aplus-plugin .aaa-btn-row + .aaa-progress {
  margin-top: 0.75rem !important;
}

/* Tighten the intro input → Next button spacing */
#aplus-plugin .aaa-textinput {
  margin-bottom: 0.75rem !important;
}
#aplus-plugin .aaa-center .aaa-btn {
  margin-top: 0 !important;
}

/* === Slightly tighter on desktop/tablet only === */
@media (min-width: 769px) {
  #aplus-plugin .aaa-qtext {
    margin-bottom: 0.35rem !important;
  }
  #aplus-plugin .aaa-textinput {
    margin-bottom: 0.5rem !important;
  }
}

/* =======================================================
   A+ MICRO-TUNE 3 — tighten question→number input spacing
   -------------------------------------------------------
   • Specifically reduces gap between question text and number box
   • Especially effective on mobile
   ======================================================= */

/* All devices: reduce the bottom margin of the question text */
#aplus-plugin .aaa-qtext {
  margin-bottom: 0.25rem !important; /* smaller than before */
}

/* Ensure the number box sits immediately below without extra padding */
#aplus-plugin .aaa-input-wrap,
#aplus-plugin .aaa-number {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Mobile-only: make it extra tight */
@media (max-width: 768px) {
  #aplus-plugin .aaa-qtext {
    margin-bottom: 0.15rem !important;
  }
  #aplus-plugin .aaa-input-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Make the persistent input island visible and spaced correctly */
#aaa-input-island {
  display: block;
  width: 100%;
  position: relative;
  margin-top: 1.5rem;   /* adjust to match previous spacing */
  z-index: 5;
}

#aaa-input-island .aaa-btn-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#aaa-input-slot {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}
#aaa-input-slot .aaa-btn-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* =======================================================
   ⚡ STRONGEST POSSIBLE FIX — BATTERIES MOBILE GRID (Divi-proof)
   -------------------------------------------------------
   • Desktop unchanged (one row)
   • Mobile (<768px): 2 batteries per row
   • Full Divi override with !important
   ======================================================= */

@media (max-width: 768px) {
  #aplus-plugin .aaa-battery-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    max-width: 100% !important;
  }

  #aplus-plugin .aaa-battery-item {
    flex: 0 0 48% !important;       /* two per row */
    max-width: 48% !important;
    min-width: 160px !important;
    box-sizing: border-box !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Optional: make batteries themselves a bit larger on mobile */
  #aplus-plugin .aaa-battery-wrap {
    width: 180px !important;
    height: 300px !important;
  }

  /* Ensure text under each battery remains legible and aligned */
  #aplus-plugin .aaa-battery-heading,
  #aplus-plugin .aaa-battery-subheading,
  #aplus-plugin .aaa-battery-score {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
