/* ============================================================================
   Virginia Driver Improvement Clinic Online (gold) (aid 1) - Virginia course pages - ONE complete stylesheet
   File name: aid1-vdic-course-v1.css
   BUILD: 2026-11-25-C
   This is the ONLY course stylesheet this clinic links. Nothing else to add.
   Header record of aid 1, last line in the <head>:
     <link rel="stylesheet" href="https://virginiadriverimprovementcliniconline.com/assets/css/aid1-vdic-course-v1.css">
   Remove any older va-course.css / va-master link from that header record.
   To change this clinic's colours or price: edit the CLINIC SETTINGS block only.
   ========================================================================= */

/* ===== CLINIC SETTINGS (Virginia Driver Improvement Clinic Online, gold) ===== */
:root:root{
  --vac-primary:#8F620A;      /* buttons, links, table header, registration bar (dark gold, readable with white text) */
  --vac-primary-dark:#6E4B07; /* button hover */
  --vac-accent:#2C3335;       /* line under the header */
  --vac-soft:#FBF3E2;         /* hover and selected answers */
  --vac-page:#FAF6EE;         /* page background */
  --vac-foot:#2C3335;         /* footer bar */
  --vac-head-bg:#C98D13;      /* header bar background: the clinic's gold */
  --vac-head-link:#1F2426;    /* Support / Login / Register links in the header */
  --vac-head-hover:#DDA73A;   /* header link hover */
  --vac-price:none;            /* price now comes from the page (span.vac-price), not from this file */
}
/* ===== SHARED COURSE LAYOUT (same in every Virginia clinic's file) ===== */

:root{
  --vac-primary:#1D4ED8;      /* buttons and links */
  --vac-primary-dark:#1E40AF; /* button hover */
  --vac-ink:#111827;          /* text */
  --vac-muted:#4B5563;        /* small text */
  --vac-line:#E5E7EB;         /* dividers */
  --vac-soft:#F3F4F6;         /* light panels */
  --vac-timer-h:52px}

/* ============== 1. ONE STANDARD LOOK FOR BUTTONS AND LINKS ==============
   Course content only (inside #aff_content or #template_container); the
   clinic header and footer keep their own look. */
:root body :is(#aff_content,#template_container) a:not(.button a){color:var(--vac-primary)}
:root body :is(#aff_content,#template_container) :is(input[type="submit"],input[type="button"],button,a.button){
  -webkit-appearance:none;appearance:none;
  background:var(--vac-primary)!important;color:#fff!important;border:0!important;border-radius:8px!important;
  font:600 16px/1.2 Arial,Helvetica,sans-serif!important;padding:11px 24px!important;min-height:44px;
  cursor:pointer;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.15);max-width:100%;white-space:normal}
:root body :is(#aff_content,#template_container) :is(input[type="submit"],input[type="button"],button,a.button):hover{background:var(--vac-primary-dark)!important}
:root body :is(#aff_content,#template_container) :is(input[type="submit"],input[type="button"],button):focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
:root body :is(#aff_content,#template_container) :is(input,button):disabled{opacity:.5;cursor:default}
/* the Continue button wraps a link: make the whole button the link */
:root body #Continue button{padding:0!important}
:root body #Continue button > a{display:block;padding:12px 32px;color:#fff!important;text-decoration:none}

/* ================== PART 2: LEGACY PAGES ON PHONES AND TABLETS ==================
   Up to 960px: every fixed-width box (the 450-950px widths in main.css,
   affiliate.css, menu.css, chapters.css, the payment style.css) shrinks to
   the screen. Up to 640px: side-by-side floats stack and fields go full width.
   Layout only: no colours, fonts or button looks change.

   WHY EVERY RULE STARTS WITH ":root body": payment.php links
   includes/css/style.css AFTER the header record (where this sheet is
   linked), so a rule here with the same specificity as style.css loses.
   ":root body" adds (0,1,1) to every selector so these rules win whatever
   order the page loads the sheets in. It changes nothing above 960px.
   ============================================================================ */
@media (max-width:960px){

  /* ---- page frame ---- */
  html,
  body{max-width:100%}
  :root body #main_container,
  :root body #content_containter,
  :root body #reg,
  :root body #forms,
  :root body #cert_container,
  :root body #cert_header,
  :root body #option_container,
  :root body #payment_container,
  :root body #receipt_container,
  :root body #lite_payment_container,
  :root body #old,
  :root body #no_badge,
  :root body #receipt,
  :root body #fax_email_container,
  :root body #discount_container,
  :root body #menu_container,
  :root body #menu_header,
  :root body #change_reg,
  :root body .idemia,
  :root body #proctor,
  :root body #map_container,
  :root body #proctor_locations,
  :root body #location_list,
  :root body .payment_panel,
  :root body .pricing_panel,
  :root body #startTable{
    max-width:100%;box-sizing:border-box}

  /* boxes with a fixed width wider than a tablet */
  :root body #content_containter,
  :root body #cert_header,
  :root body #option_container,
  :root body #proctor,
  :root body #map_container,
  :root body #proctor_locations,
  :root body #location_list,
  :root body #menu_header,
  :root body #old,
  :root body #payment_container,
  :root body #lite_payment_container,
  :root body #no_badge{width:auto}
  :root body #content_containter{padding:24px}
  :root body #menu_header{height:auto;overflow:hidden}   /* was fixed 150px */

  /* fixed-width tables from markup (width="600" etc.) fit the screen;
     any table can scroll inside itself instead of widening the page */
  :root body table[width]{width:100%}
  :root body table{max-width:100%}

  /* media */
  :root body #main_container img,
  :root body #content_containter img,
  :root body #viewchap img{max-width:100%;height:auto}
  :root body #main_container iframe,
  :root body #main_container video,
  :root body #content_containter iframe,
  :root body #content_containter video{max-width:100%}

  /* pop-ups positioned for a 900px desktop (left:50% + negative margin) */
  :root body #chapreview{left:8px;right:8px;width:auto;margin-left:0;height:80vh}
  :root body #chapreview iframe{width:100%;height:calc(100% - 21px);box-sizing:border-box}
  :root body #reviewbar{width:auto;box-sizing:border-box}
  :root body #notice{left:8px;right:8px;margin-left:0;box-sizing:border-box}

  /* chapters.css fixed boxes */
  :root body .chapter_title{width:auto;max-width:100%;height:auto;min-height:40px;box-sizing:border-box}
  :root body div#transcript1,
  :root body div#transcript2,
  :root body div#transcript3,
  :root body div#transcript4,
  :root body div#transcript5,
  :root body div#transcript6,
  :root body div#transcript7{width:auto;max-width:100%;box-sizing:border-box}
  :root body .one_liners,
  :root body .insurance_claims,
  :root body .real_jokes,
  :root body .joke_text,
  :root body .trivia_text{
    width:auto;max-width:100%;float:none;box-sizing:border-box}
  :root body div.joke_container{width:auto;max-width:100%;margin-left:0;margin-right:0}
  :root body table.response-table{width:100%}
  :root body .section-break{margin-left:0;margin-right:0;font-size:36pt;padding:50px 0}
  :root body #dock{width:auto;height:auto;overflow:hidden;box-sizing:border-box}

  /* main.css green/blue link-buttons: 450px wide */
  :root body div.button{width:auto;max-width:450px;height:auto;min-height:30px}
}

@media (max-width:640px){

  :root body #content_containter{padding:16px 12px}
  :root body #main_container{padding-left:12px;padding-right:12px}

  /* every text field and select: fits, 16px so iPhones don't zoom on tap */
  :root body input[type="text"],
  :root body input[type="email"],
  :root body input[type="password"],
  :root body input[type="tel"],
  :root body input[type="number"],
  :root body input:not([type]),
  :root body select,
  :root body textarea{
    max-width:100%;font-size:16px;box-sizing:border-box}

  /* ---- registration (registration.css) ---- */
  :root body #reg{padding:0}
  :root body .reg_input,
  :root body .reg_select{width:100%;margin:4px 0 10px;min-height:44px}
  :root body .reg_label{padding-left:0}
  /* two-column label/field tables stack: label above field */
  :root body td.label,
  :root body td.field{display:block;width:auto;text-align:left;padding-left:0;padding-right:0}
  :root body td.label{padding-top:10px}
  :root body td[width]{width:auto}

  /* ---- payment (style.css) ---- */
  :root body .payment_panel,
  :root body .pricing_panel{width:auto;margin-left:0;margin-right:0}
  :root body #fax_email_container,
  :root body #discount_container{width:auto;padding:14px}
  :root body #receipt{width:auto;padding:16px}
  :root body .title,
  :root body .text_form{float:none}
  :root body .text_form{display:block;width:100%;margin:4px 0 12px}
  :root body .text_form input,
  :root body .text_form select{width:100%;min-height:44px}
  :root body .description{float:none;text-align:left}
  :root body label.form{float:none;width:auto;display:block}
  :root body .price{float:none;display:block;margin-top:4px}
  :root body #payment_container{position:static;height:auto}
  :root body #old{height:auto}

  /* ---- student menu (menu.css) ---- */
  :root body #stoplight_container{float:none;height:auto}
  :root body #profile_container{float:none;width:auto;height:auto;margin-top:10px;box-sizing:border-box}
  :root body #change_reg{width:auto;padding:0}
  :root body .change_label{text-align:left;padding:8px 0 2px}

  /* ---- chapter view (chapters.css) ---- */
  :root body .img_lt,
  :root body .img_rt,
  :root body .left,
  :root body .right,
  :root body .img_l,
  :root body .img_r{float:none;display:block;margin:10px auto;text-align:center}
  :root body #main_container ul li,
  :root body #main_container ol li{margin-left:22px}
  :root body #main_container h2,
  :root body #main_container h3,
  :root body #main_container h4{padding-left:0}
  :root body .joke_guy,
  :root body .joke_image,
  :root body .trivia_image,
  :root body .smiley_face{float:none}
  :root body .joke_time{margin-left:0;width:auto}
  :root body .dock_content{float:none;width:auto;padding:4px 0}
  :root body .dock_content a{display:inline-block;min-height:44px;line-height:44px}
  :root body .answer input[type="radio"],
  :root body .answer input[type="checkbox"]{width:20px;height:20px;vertical-align:middle}
  :root body ul.sortable,
  :root body ul.sortable-numbers{float:none}
}

/* ===================== PAYMENT: UPGRADES + PAYMENT STEP =====================
   The upgrades ("PROCESSING OPTIONS") step: each .shipping_option is an
   image floated left, a price floated right, a radio/checkbox floated left
   and label.form floated left at 480px (style.css). #main_container is
   align="center", so on a phone that 480px row was centred on a 360px
   screen and pushed past the LEFT edge, where the page can't scroll to.
   Below 640px each option becomes a small grid:
       [ image ........ price ]
       [ o  label text ...... ]
   The payment step has inline widths (Groupon box 350px + padding, coupon
   row 400px) that only !important can override.
   ============================================================================ */
@media (max-width:640px){
  :root body #main_container{text-align:left;overflow-wrap:anywhere}
  :root body #main_container #shipping_header{margin:12px 0 18px;text-align:center}
  :root body #main_container #shipping_header h1{font-size:22px;letter-spacing:1px}

  :root body #main_container table#upgrade_container,
  :root body #main_container table.existingTable{width:100%;max-width:100%}
  :root body #main_container table#upgrade_container td{font-size:15px!important;line-height:1.45}

  /* each upgrade option */
  :root body #main_container .shipping_option{
    display:grid;grid-template-columns:28px minmax(0,1fr) auto;
    grid-template-areas:"img img price" "pick text text";
    align-items:center;gap:8px 6px;padding:12px;box-sizing:border-box;max-width:100%}
  :root body #main_container .shipping_option > *{grid-column:1 / -1;min-width:0}
  :root body #main_container .shipping_option > .clear{display:none}
  :root body #main_container .shipping_option > .upgrade_img{grid-area:img;float:none;margin:0}
  :root body #main_container .shipping_option > .upgrade_img img{max-width:100%;max-height:64px;
    width:auto;height:auto;margin:0}
  :root body #main_container .shipping_option > .price{grid-area:price;float:none;display:block;
    margin:0;text-align:right;white-space:nowrap}
  :root body #main_container .shipping_option > input[type="radio"],
  :root body #main_container .shipping_option > input[type="checkbox"]{
    grid-area:pick;float:none;width:22px;height:22px;margin:0;align-self:start}
  :root body #main_container .shipping_option > label.form{grid-area:text;float:none;width:auto;
    display:block;margin:0;text-align:left;overflow-wrap:anywhere}
  :root body #main_container .shipping_option img{max-width:100%;height:auto}

  /* "Select Payment Method" and "Continue to Payment" table (width="700") */
  :root body #main_container table[width] img{max-width:100%;height:auto}
  :root body #main_container #payment_button{margin:20px 0}

  /* payment step: Groupon / coupon boxes carry inline pixel widths */
  :root body #main_container div.row[style*="width"]{width:auto!important;max-width:100%!important;
    box-sizing:border-box;padding-left:14px!important;padding-right:14px!important}
  :root body #main_container div.row label.form[style*="float"]{float:none!important;width:auto!important;
    display:block;margin-bottom:6px}
  :root body #main_container div.row input[style*="float"]{float:none!important;width:100%;
    min-height:44px;margin:0 0 8px}
  :root body #main_container div.row div[align="right"]{text-align:left;padding-left:0!important}
  :root body #main_container div.row input[type="submit"]{white-space:normal;max-width:100%}

  /* card / billing tables: CVC picture and helper text fit */
  :root body #main_container td.label img{max-width:100%;height:auto}
  :root body #main_container table{max-width:100%}
}

/* ================== THIS SITE'S EXTRA FIXED WIDTHS ==================
   affiliate.css: #template_container, #header, #navigation at 820px.
   chapters.css (course 2): .question-container 600px, #slide min-height 650px.
   ===================================================================== */
@media (max-width:960px){
  :root body #template_container,:root body #header,:root body #navigation{
    width:auto;max-width:100%;box-sizing:border-box}
  :root body .question-container{width:auto;max-width:100%;box-sizing:border-box}
  :root body #reviewbar{width:auto;box-sizing:border-box}
  :root body #slide video{max-width:100%;height:auto}
}
@media (max-width:640px){
  :root body #slide{min-height:0}
  :root body .question-container .image img{max-width:100%;height:auto}
  :root body #final_button_off{max-width:100%}
}
@media (max-width:640px){
  /* label/field forms: a text box with size="40" is wider than a phone, and
     a table cell grows to fit it. Fixed table layout + full-width fields
     keep the form on screen. */
  :root body table[width]{table-layout:fixed}
  :root body td.field input[type="text"],:root body td.field input[type="email"],
  :root body td.field input[type="password"],:root body td.field input[type="tel"],
  :root body td.field input:not([type]){width:100%;min-height:44px}
}

/* ======================= FIT THE SCREEN ON PHONES =======================
   Below 640px layout tables stack (label above field) and every field is as
   wide as the screen. Wrapped in :where() so this rule has the LOWEST weight:
   every specific rule further down (security questions, chapter table,
   certificate options, traffic light) wins over it automatically.
   ========================================================================= */
@media (max-width:640px){
  :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)),
  :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > tbody, :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > thead, :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > tfoot,
  :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > * > tr, :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > * > tr > td, :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > * > tr > th{
    display:block;width:auto!important;min-width:0;max-width:100%;height:auto!important;
    box-sizing:border-box;white-space:normal!important}
  :root body :where(table:not(#menu_table, .response-table, .verify table, .lcb-chrome table, .optionTable, .existingTable, [width="608px"], [width="608"], #stoplight_container table, #menu_container table, #content_containter table, #course_content table)) > * > tr > td{padding:2px 0;text-align:left}
  :root body #continue-button{text-align:center!important}

  :root body > :not(.lcb-chrome):not(#template_container):not(#lcb-main):not(script):not(style):not(link):not(#chapreview):not(#notice):not(header):not(footer):not(nav):not(#header):not(#footer):not(#Timer):not(#content_container):not(#footer_nav):not(.clear):not(a[name]){
    margin-left:12px!important;margin-right:12px!important;max-width:calc(100% - 24px)!important}

  :root body input[type="text"],:root body input[type="email"],:root body input[type="tel"],
  :root body input[type="password"],:root body input[type="number"],:root body input:not([type]),
  :root body textarea{
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box;font-size:16px;min-height:44px}
  :root body select{max-width:100%!important;min-width:0!important;box-sizing:border-box;font-size:16px;min-height:44px}
  :root body td > select:only-child,:root body td > select:only-of-type{width:100%}

  :root body img,:root body hr,:root body iframe,:root body video,:root body object,:root body embed{max-width:100%!important;box-sizing:border-box}
  :root body img{height:auto}
  :root body [style*="width"]:not(.lcb-chrome *):not(.lcb-chrome){max-width:100%!important;box-sizing:border-box}
  :root body [nowrap],:root body [style*="nowrap"]{white-space:normal!important}
  :root body #template_container,:root body #content,:root body #main_container{overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
  :root body p,:root body font,:root body b,:root body span,:root body div:not(.lcb-chrome *){overflow-wrap:anywhere}

  :root body input[type="radio"]:not(.lcb-chrome *),
  :root body input[type="checkbox"]:not(.lcb-chrome *){width:22px;height:22px;vertical-align:middle}
  :root body #final_button{min-height:52px;font-size:18px}
}

/* ---- returning-student page (old Foundation header): -15px row margins ---- */
@media (max-width:960px){
  :root body #header.row .row{margin-left:0!important;margin-right:0!important;max-width:100%}
  :root body #header.row{max-width:100%;overflow-x:hidden}
}

/* ---- 3A. The page box fits tablets ------------------------------------------
   global.css sets #content, .content, #aff_content and .aff_content to a fixed
   860px. Part 2 only released it below 640px, so every page was wider than a
   768px tablet and scrolled sideways. */
@media (max-width:960px){
  :root body #content,
  :root body div.content,
  :root body #aff_content,
  :root body .aff_content{width:auto;max-width:100%;box-sizing:border-box}
}

/* ---- 3B. Chapter paragraphs -------------------------------------------------
   The chapter text uses <p class="content">, so it picks up the same 860px
   page-box rule from global.css. On a phone every paragraph was 860px wide and
   the browser zoomed the whole chapter out to fit it. On a desktop the text
   ran about 40px past the right edge of the page. */
:root body p.content{width:auto;max-width:100%;box-sizing:border-box}
@media (max-width:640px){
  :root body p.content{padding-left:0;padding-right:0;margin:0 0 1.2em;font-size:17px;line-height:1.6}
  :root body .chapter_title{font-size:20px;line-height:1.3;font-weight:700;margin:8px 0 12px}
}

/* ======================= 2. CHAPTER TIMER (TOP BAR) =======================
   The countdown (#Timer) sits at the very bottom of the chapter. It now shows
   as a bar fixed to the top of the screen on every chapter page, every screen
   size. !important on purpose: chapters.css loads after this sheet and must
   not be able to shrink, hide or move the bar. When time is up the bar turns
   green and tells the student to scroll down and click Continue. */
:root body #course_note,
:root body #course_note > div{transform:none!important;filter:none!important;contain:none!important}
:root body #Timer{
  position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:auto!important;
  z-index:2147483000!important;display:flex!important;visibility:visible!important;opacity:1!important;
  width:auto!important;max-width:none!important;height:var(--vac-timer-h)!important;min-height:0!important;
  margin:0!important;padding:0 16px!important;box-sizing:border-box!important;overflow:hidden!important;
  align-items:center!important;justify-content:center!important;gap:10px;
  background:#1F2937!important;color:#fff!important;border:0!important;border-radius:0!important;
  font:700 16px/1.2 Arial,Helvetica,sans-serif!important;text-align:center!important;
  box-shadow:0 2px 6px rgba(0,0,0,.25)!important}
:root body #Timer br{display:none!important}
:root body #Timer *{margin:0!important}
:root body #TimerText{
  display:inline-block!important;font-variant-numeric:tabular-nums;font-size:20px!important;line-height:1!important;
  background:#fff!important;color:#1F2937!important;border-radius:999px!important;padding:6px 14px!important;
  min-width:72px;text-align:center}
:root body #TimerText:empty{display:none!important}
:root body:has(#Timer){padding-top:var(--vac-timer-h)!important}
:root body:has(#Timer) .lcb-chrome.lcb-bar{top:var(--vac-timer-h)}
html:has(#Timer){scroll-padding-top:calc(var(--vac-timer-h) + 80px)}
:root body:has(#Continue[style*="visible"]) #Timer{background:#047857!important}
:root body:has(#Continue[style*="visible"]) #Timer::after{content:"Scroll down and click Continue.";font-weight:400}
@media (max-width:400px){
  :root body #Timer{font-size:14px!important;gap:8px;padding:0 10px!important}
  :root body #TimerText{font-size:18px!important;padding:5px 12px!important}
}

/* ===================== 3. SECURITY QUESTIONS =====================
   Every screen: a divider line between questions so each one is easy to spot.
   Phones: each question is a card with two big answer boxes, [ o Yes ] [ o No ],
   and the WHOLE box can be tapped, not just the small circle. */
:root body table.verify table{border-collapse:collapse!important}
:root body table.verify table tr:not(:first-child) td{border-top:1px solid var(--vac-line)!important;padding:10px 8px!important;vertical-align:middle}
:root body table.verify table tr:nth-child(even) td{background:#F9FAFB}
:root body table.verify table td{color:var(--vac-ink)}
:root body table.verify input[type="radio"]{width:20px;height:20px;cursor:pointer;accent-color:var(--vac-primary)}
:root body table.verify input[type="submit"]{min-width:200px;margin-top:8px}

@media (max-width:640px){
  :root body table.verify,:root body table.verify > tbody,:root body table.verify > tbody > tr,
  :root body table.verify > tbody > tr > td{display:block!important;width:auto!important;padding:0!important;text-align:left!important}
  :root body table.verify table{display:block!important;width:100%!important;max-width:100%;table-layout:auto}
  :root body table.verify table > tbody{display:block!important}
  :root body table.verify table tr{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;
    margin:0!important;padding:14px 0!important;border-bottom:1px solid var(--vac-line)}
  :root body table.verify table tr:first-child{display:none!important}
  :root body table.verify table tr:last-child{border-bottom:0}
  :root body table.verify table td,:root body table.verify table tr:not(:first-child) td{display:block!important;width:auto!important;padding:0!important;border:0!important;
    background:none!important;text-align:left!important;font:700 16px/1.4 Arial,Helvetica,sans-serif!important;white-space:normal!important}
  :root body table.verify table td[colspan]{grid-column:1 / -1}
  :root body table.verify table tr td:not([colspan]){position:relative!important;display:flex!important;align-items:center;gap:12px;
    min-height:52px;padding:0 14px!important;border:2px solid #CBD5E1!important;border-radius:12px;background:#fff!important;cursor:pointer}
  :root body table.verify table td:not([colspan]):nth-child(2)::after{content:"Yes"}
  :root body table.verify table td:not([colspan]):nth-child(3)::after{content:"No"}
  :root body table.verify table input[type="radio"]{width:24px!important;height:24px!important;margin:0!important;flex:none}
}
/* whole box tappable: the radio button is stretched invisibly over the box and a
   drawn circle shows the choice (only in browsers that can show the choice) */
@supports selector(:has(*)){
  @media (max-width:640px){
    :root body table.verify table td:not([colspan]) input[type="radio"]{position:absolute!important;inset:0!important;
      width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer;z-index:1}
    :root body table.verify table td:not([colspan])::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;
      border:2px solid #94A3B8;background:#fff;box-sizing:border-box}
    :root body table.verify table td:not([colspan]):has(input:checked){border-color:var(--vac-primary)!important;background:#EFF6FF!important}
    :root body table.verify table td:not([colspan]):has(input:checked)::before{border:7px solid var(--vac-primary)}
    :root body table.verify table td:not([colspan]):has(input:focus-visible){outline:3px solid #93C5FD;outline-offset:2px}
  }
}

/* ===================== 4. STUDENT HOME: TRAFFIC LIGHT =====================
   The three links next to the student's details (Log off / Change your
   profile information / Start the course!) become a traffic light:
   red = Log off, yellow = Change profile, green = Start the course. */
:root body #menu_header{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:16px 32px;min-height:0!important;height:auto!important;overflow:visible!important;margin:0 auto 12px}
:root body #stoplight_container{float:none!important;width:280px!important;max-width:100%;height:auto!important;margin:0!important}
:root body #stoplight_container table{display:block!important;width:100%!important;height:auto!important;
  background:#1F2937!important;border-radius:20px;padding:10px!important;box-sizing:border-box;
  box-shadow:0 4px 12px rgba(0,0,0,.18)}
:root body #stoplight_container :is(tbody,tr){display:block!important}
:root body #stoplight_container td{display:block!important;width:auto!important;height:auto!important;
  padding:4px 0!important;background:none!important;border:0!important}
:root body #stoplight_container td a{display:flex!important;align-items:center;gap:14px;height:auto!important;min-height:52px;
  padding:8px 14px!important;box-sizing:border-box;border-radius:12px;background:rgba(255,255,255,.07)!important;
  color:#fff!important;font:600 16px/1.25 Arial,Helvetica,sans-serif!important;text-decoration:none!important;text-align:left}
:root body #stoplight_container td a:hover{background:rgba(255,255,255,.16)!important}
:root body #stoplight_container td a .light_text{color:#fff!important;font:inherit!important}
:root body #stoplight_container td a::before{content:"";flex:none;width:30px;height:30px;border-radius:50%;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.25)}
:root body #red_light a::before{background:#EF4444;box-shadow:0 0 12px rgba(239,68,68,.75),inset 0 -3px 0 rgba(0,0,0,.25)}
:root body #yellow_light a::before{background:#FACC15;box-shadow:0 0 12px rgba(250,204,21,.7),inset 0 -3px 0 rgba(0,0,0,.2)}
:root body #green_light a::before{background:#22C55E;box-shadow:0 0 12px rgba(34,197,94,.75),inset 0 -3px 0 rgba(0,0,0,.25)}
:root body #profile_container{float:none!important;width:auto!important;height:auto!important;margin:0!important;text-align:center}
:root body #profile_container p{margin:8px 0 0!important;text-align:center!important}
@media (max-width:640px){
  :root body #menu_header{flex-direction:column;gap:16px}
}

/* ---- student home: chapter progress table stays a table on phones ---- */
@media (max-width:640px){
  :root body table[width="608px"],:root body table[width="608"]{display:table!important;width:100%!important;max-width:100%;
    table-layout:auto!important;border-collapse:collapse;margin:0 auto}
  :root body table[width="608px"] > tbody,:root body table[width="608"] > tbody{display:table-row-group!important}
  :root body table[width="608px"] tr,:root body table[width="608"] tr{display:table-row!important}
  :root body table[width="608px"] td,:root body table[width="608"] td{display:table-cell!important;padding:7px 4px!important;
    width:auto!important;vertical-align:middle;font-size:14px;line-height:1.3;text-align:left}
  :root body table[width="608px"] *,:root body table[width="608"] *{overflow-wrap:normal!important;word-break:normal}
  :root body table[width="608px"] tr.menu_header td{font-size:13px;border-bottom:2px solid var(--vac-line)!important;padding-bottom:6px!important}
  :root body table[width="608px"] td#chapter{white-space:nowrap!important}
  :root body table[width="608px"] td#minutes{white-space:nowrap!important;text-align:center!important}
  :root body table[width="608px"] td#status{text-align:center!important}
  :root body table[width="608px"] td#status img{max-width:56px!important;height:auto}
}
@media (max-width:360px){
  :root body table[width="608px"] td{font-size:13px;padding:6px 3px!important}
  :root body table[width="608px"] td#status img{max-width:46px!important}
}

/* ================ 5. CERTIFICATE PROCESSING (payment.php) ================
   Less empty space, a normal-size title, and each option as one clean row:
   [picture] [tick box] [description ............] [price] */
:root body #main_container > br,
:root body #main_container > p.error:empty,
:root body #main_container > table:not(:has(td)),
:root body #main_container .existingTable + p,
:root body #option_container > br,
:root body br:has(+ #addon_container),
:root body #addon_container ~ br,
:root body #hidden_options > br{display:none!important}
:root body #cert_container,:root body #cert_header{width:auto!important;max-width:640px;height:auto!important;min-height:0!important;
  margin:0 auto!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
:root body #cert_header h1{font:700 26px/1.2 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important;
  margin:4px 0 10px!important;padding:0!important;letter-spacing:0!important;text-align:center}
:root body table.existingTable,:root body table.existingTable :is(tbody,tr){display:block!important;border:0!important;width:auto!important;text-align:center}
:root body table.existingTable{margin:0 auto 6px!important}
:root body table.existingTable td{display:block!important;border:0!important;padding:2px 6px!important;text-align:center;background:none!important}
:root body table.existingTable .existingTitle{font:600 13px/1.3 Arial,Helvetica,sans-serif!important;color:var(--vac-muted)!important}
:root body table.existingTable td.existingRow{display:inline-block!important;margin-top:4px;padding:3px 12px!important;border-radius:999px;
  background:#ECFDF5!important;color:#065F46!important;font:700 13px/1.4 Arial,Helvetica,sans-serif!important}
:root body #option_container,:root body #addon_container{width:auto!important;max-width:640px;margin:0 auto!important;
  padding:0!important;text-align:left;background:none!important}
:root body #option_container .divider,:root body #addon_container .divider{display:block;margin:16px 0 0!important;padding:9px 14px!important;
  background:var(--vac-soft)!important;border:1px solid var(--vac-line)!important;border-bottom:0!important;border-radius:10px 10px 0 0;
  font:700 13px/1.3 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important;text-align:left!important;height:auto!important}
:root body table.optionTable{width:100%!important;margin:0!important;border:1px solid var(--vac-line)!important;
  border-collapse:collapse!important;border-spacing:0;background:#fff!important;border-radius:0 0 10px 10px}
:root body table.optionTable tr.optionRow{display:flex!important;align-items:flex-start;gap:12px;padding:12px 14px;background:none!important}
:root body table.optionTable tr.optionRow td{display:block!important;padding:0!important;border:0!important;background:none!important;
  width:auto!important;font:15px/1.45 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important;text-align:left!important}
:root body table.optionTable tr.optionRow td:has(.upgrade_img){flex:none;width:32px!important}
:root body table.optionTable .upgrade_img{margin:0!important;padding:0!important;float:none!important;width:32px}
:root body table.optionTable .upgrade_img img{width:32px!important;height:auto;margin:0!important}
:root body table.optionTable tr.optionRow td:has(> input){flex:none;padding-top:1px!important}
:root body table.optionTable tr.optionRow td:has(strong){flex:1 1 0;min-width:0}
:root body table.optionTable tr.optionRow td:last-child{flex:none;font-weight:700!important;white-space:nowrap;padding:0!important}
:root body table.optionTable tr.optionRow td[style*="color"]{color:#047857!important}
:root body table.optionTable tr.purchased td{color:var(--vac-muted)!important}
:root body table.optionTable input[type="checkbox"]{width:22px;height:22px;margin:0!important;cursor:pointer;accent-color:var(--vac-primary)}
:root body #main_container table[width="700"]{width:100%!important;max-width:640px;margin:20px auto 0!important}
:root body #main_container table[width="700"] tr:not(:has(input)){display:none!important}
:root body #main_container table[width="700"] td{text-align:center!important;padding:0!important}
:root body #main_container input[name="postage"]{min-width:240px}
@media (max-width:640px){
  :root body #main_container:has(#cert_container){padding-left:0!important;padding-right:0!important}
  :root body #cert_header h1{font-size:22px!important}
  :root body table.optionTable tr.optionRow{gap:10px;padding:12px}
  :root body #main_container input[name="postage"]{width:100%!important;min-width:0}
}

/* =========================== 6. LOGIN PAGE ===========================
   Less empty space above and between the fields, and a full button. */
:root body form:has(input[type="password"]){max-width:380px;margin:0 auto!important;text-align:left}
:root body form:has(input[type="password"]) br + br{display:none}
:root body form:has(input[type="password"]) input[type="text"],
:root body form:has(input[type="password"]) input[type="password"]{width:100%!important;min-height:44px;padding:8px 12px!important;
  margin:4px 0 12px!important;border:1px solid #9CA3AF!important;border-radius:8px!important;font-size:16px!important;box-sizing:border-box}
:root body form:has(input[type="password"]) input[type="submit"]{width:100%!important;margin-top:8px!important}
:root body #template_container div[style*="color:red"]:empty,
:root body #aff_content div[style*="color:red"]:empty{display:none}
@media (max-width:640px){
  /* Fun Driving / plain headers: the page body carries an inline 60px top gap */
  :root body #aff_content[style*="padding-top"]{padding-top:12px!important}
  :root body #header[style*="height"],:root body .row#header{height:auto!important}
}
:root body #lcb-main + br,:root body div[align="center"] > br:first-child{display:none}

/* ===================== 7. CHAPTER PAGES (from the real chapters.css) =====================
   chapters.css sets 12px chapter text, a 680px title with a picture behind it,
   50px padding, a red 18px bold notice and a maroon text-size bar. Here: one
   readable column, 16px text, plain headings, a calm notice box. */
:root body #content_containter{max-width:760px;margin:0 auto!important;padding:24px 0!important;box-sizing:border-box}
:root body .chapter_title{background:none!important;width:auto!important;height:auto!important;min-height:0!important;
  padding:0!important;margin:8px 0 16px!important;font:700 26px/1.25 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important}
:root body .section_title{padding:0!important;margin:32px 0 10px!important;font:700 20px/1.3 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important}
:root body .section_sub{padding:0!important;margin:22px 0 8px!important;font:700 17px/1.35 Arial,Helvetica,sans-serif!important;color:#374151!important}
:root body #content_containter p.content,
:root body #content_containter p{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6!important;color:var(--vac-ink);
  padding:0!important;margin:0 0 1em!important}
:root body #content_containter :is(.chapter_list,.numbered_list){list-style-position:outside!important;padding-left:22px!important;
  margin:0 0 1em!important;font-size:16px;line-height:1.6!important}
:root body #content_containter :is(.chapter_list,.numbered_list) li{margin:0 0 6px!important;font-size:16px}
:root body #content_containter :is(.chapter_list,.numbered_list) ul{margin:6px 0 6px 0!important;padding-left:20px!important}
:root body #content_containter .img{padding:8px 0!important;margin:0 0 8px}
:root body #content_containter .img_lt{padding:0 16px 8px 0!important;max-width:45%}
:root body #content_containter .img_rt{padding:0 0 8px 16px!important;max-width:45%}
:root body #content_containter table.table{width:100%!important;max-width:100%;font-size:15px!important;margin:16px 0!important;border-collapse:collapse}
:root body #content_containter table.table td{padding:6px 8px!important}
:root body #content_containter table.table td p{margin:0!important;font-size:15px}

/* the notice at the top and bottom of every chapter: was 18px red bold, centred */
:root body #course_note{max-width:760px;margin:0 auto 16px!important;padding:12px 16px!important;box-sizing:border-box;
  background:#FEF2F2;border:1px solid #FECACA;border-left:4px solid #DC2626;border-radius:8px;
  font:400 15px/1.5 Arial,Helvetica,sans-serif!important;color:#7F1D1D!important;text-align:left!important}
:root body #course_note strong{font-weight:700;color:#991B1B}
:root body #course_note a{font:inherit!important;padding:0!important;border:0!important;background:none!important}

/* "You are currently reading ... / change the text size" bar: was maroon, 25px high */
:root body #dock{text-align:left!important;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;
  width:auto!important;height:auto!important;max-width:760px;margin:0 auto 16px!important;padding:8px 14px!important;box-sizing:border-box;
  background:#1F2937!important;border:0!important;border-radius:8px}
:root body #dock .dock_content{float:none!important;width:auto!important;padding:0!important;
  font:600 14px/1.4 Arial,Helvetica,sans-serif!important;color:#fff!important}
:root body #dock .dock_content a{color:#fff!important;margin:0 0 0 10px!important;text-decoration:none;display:inline-block;min-width:24px;text-align:center}

@media (max-width:640px){
  :root body #content_containter{padding:12px 0!important}
  :root body .chapter_title{font-size:22px!important}
  :root body .section_title{font-size:19px!important;margin-top:26px!important}
  :root body #content_containter p.content,:root body #content_containter p,
  :root body #content_containter :is(.chapter_list,.numbered_list) li{font-size:17px}
  :root body #content_containter :is(.img_lt,.img_rt){max-width:100%;padding:0 0 8px!important}
  :root body #course_note{font-size:14px!important;padding:10px 12px!important}
  :root body #dock{flex-direction:column;align-items:flex-start}
  :root body #dock .dock_content a{min-height:36px;line-height:36px;min-width:36px}
}

/* ===================== 8. LOGIN PAGE (from the real aLogin.php) =====================
   The page stacks <br> tags around the red message and the "Forgot" note. */
:root body div[align="center"]:has(input[type="password"]) > br,
:root body div[align="center"]:has(input[type="password"]) div[style*="color:red"] + br{display:none!important}
:root body div[align="center"]:has(input[type="password"]) div[style*="color:red"]:not(:empty){max-width:380px;margin:4px auto 12px!important;
  padding:10px 12px;border-radius:8px;background:#FEF2F2;border:1px solid #FECACA;font:600 15px/1.4 Arial,Helvetica,sans-serif;text-align:left}
:root body div[align="center"]:has(input[type="password"]) p[style*="color"]{max-width:380px;margin:0 auto 12px!important;
  color:var(--vac-muted)!important;font:400 14px/1.45 Arial,Helvetica,sans-serif!important;text-align:left}
:root body form:has(input[type="password"]) table.verify td{padding:2px 0!important;text-align:left!important;font:600 15px/1.4 Arial,Helvetica,sans-serif}
:root body form:has(input[type="password"]) table.verify{width:100%!important}
:root body form:has(input[type="password"]) table.verify tr:has(> td[colspan]:not(:has(input))){display:none!important}

/* ===================== 9. CERTIFICATE PROCESSING: the real style.css =====================
   style.css paints #main_container grey (#f7f7f7) with 20px sides, and the page
   closes that box early, so the grey stopped halfway down the options. White
   page, no half-grey box. (Its 65px h1, 700/650px boxes and #eee rows are
   already overridden in section 5.) */
:root body #main_container:has(#cert_container){background:none!important;padding-left:0!important;padding-right:0!important}
:root body .note{border:1px solid #FECACA!important;border-left:4px solid #DC2626!important;background:#FEF2F2!important;
  color:#7F1D1D!important;border-radius:8px;padding:12px 14px 2px!important;font:400 15px/1.5 Arial,Helvetica,sans-serif}

/* ===================== 10. TIMER BAR v2: subtle red, under the clinic header =====================
   Luis 11/13: the clinic header comes first, the timer bar right under it, in
   a soft red, labelled "Time left in this chapter".
   - Low Cost (sticky header): the bar is fixed right under the header. No page edit needed.
   - Every other clinic: the bar sits under the header and sticks to the top
     once the header scrolls away. This needs ONE template edit: move the
     <div id="Timer">...</div> line to just above the first <div id="course_note">.
     Until then the bar stays fixed at the very top (works, but above the header). */
:root{--vac-timer-h:46px;--vac-head-h:0px}
:root body:has(.lcb-chrome.lcb-bar){--vac-head-h:71px}
:root body #Timer{height:var(--vac-timer-h)!important;font-size:0!important;gap:10px;
  background:#FEF2F2!important;color:#991B1B!important;
  border-top:1px solid #FECACA!important;border-bottom:1px solid #FECACA!important;box-shadow:0 2px 4px rgba(153,27,27,.08)!important}
:root body #Timer::before{content:"Time left in this chapter";font:600 15px/1.2 Arial,Helvetica,sans-serif}
:root body #TimerText{background:#fff!important;color:#B91C1C!important;border:1px solid #FCA5A5!important;
  font:700 18px/1 Arial,Helvetica,sans-serif!important;padding:5px 12px!important}
/* time is up: green, with the page's own "You can move on now!" text */
:root body:has(#Continue[style*="visible"]) #Timer{font-size:15px!important;font-weight:700!important;
  background:#ECFDF5!important;color:#065F46!important;border-color:#A7F3D0!important}
:root body:has(#Continue[style*="visible"]) #Timer::before{content:none}
:root body:has(#Continue[style*="visible"]) #Timer::after{content:"\00a0 Scroll down and click Continue.";font-weight:400}
/* the clinic header always stays at the very top */
:root body:has(#Timer) .lcb-chrome.lcb-bar{top:0}
:root body:has(#Timer){padding-top:0!important}

/* A. timer still at the bottom of the page (no template edit yet): fixed bar */
:root body #course_note #Timer{position:fixed!important;top:var(--vac-head-h)!important;z-index:40!important}
:root body:has(#course_note #Timer):not(:has(.lcb-chrome.lcb-bar)){padding-top:var(--vac-timer-h)!important}
:root body:has(#course_note #Timer) #template_container.lcb-page{padding-top:var(--vac-timer-h)}

/* B. timer moved to the top of the chapter (template edit done): sits under the
      header and sticks to the top of the screen while reading */
:root body #Timer:not(#course_note #Timer){position:sticky!important;top:var(--vac-head-h)!important;
  left:auto!important;right:auto!important;z-index:40!important;margin:0 0 16px!important;width:auto!important}
@media (max-width:400px){
  :root body #Timer::before{content:"Time left in chapter";font-size:14px}
  :root body #TimerText{font-size:17px!important}
}

/* ===================== 11. Final audit fixes (11/13) ===================== */
/* picture captions were 10px */
:root body .img_txt{font:400 14px/1.4 Arial,Helvetica,sans-serif!important;color:var(--vac-muted)!important}
/* text-size bar: keep the three "A" buttons together on one line */
:root body #dock .dock_content:has(a){display:flex;align-items:center;flex-wrap:nowrap;gap:4px}
:root body #dock .dock_content a{margin:0 0 0 6px!important}

/* header spacing on every screen size (11/13): plain clinic headers (Fun Driving,
   the gold Virginia Driver Improvement Clinic Online, etc.) open the page with an
   inline 60px gap plus a 20px margin under a 160px header */
:root body #aff_content[style*="padding-top"]{padding-top:16px!important}
:root body #content_container,:root body #content{margin-top:0!important}
:root body #aff_content > div[align="center"]:first-child > br:first-child{display:none}

/* ===================== 12. NEW SKIN (11/17) =====================
   Luis 11/17: modern look, compact clinic header with the timer right under
   it, a real traffic light on the student home (lamps inside the dark box,
   words outside), the chapter list as a proper table, quiz and payment pages
   cleaned up. Colours come from the variables below; each clinic's small
   brand sheet changes them (Fun Driving: fdc-brand-v1.css). */
:root{--vac-page:#F5F6FA;--vac-card:#fff;--vac-ok:#16A34A;--vac-head-bg:#fff;--vac-head-link:var(--vac-primary);--vac-head-hover:var(--vac-soft);--vac-foot:#1F2937;--vac-accent:var(--vac-primary)}

/* ---- 12A. Compact clinic header (standard template: Fun Driving, the gold
   Virginia Driver Improvement Clinic Online, Virginia Driving Clinic Online).
   Was 160px tall plus a 60px gap; now one 60px bar that stays at the top. ---- */
:root body:has(> #header){background:var(--vac-page)!important;--vac-head-h:60px;padding-top:60px!important}
:root body > #header{position:fixed!important;top:0;left:0;right:0;z-index:50;display:flex!important;align-items:center;gap:4px 12px;
  height:60px!important;min-height:60px;max-width:none!important;width:100%!important;margin:0!important;overflow:visible!important;
  padding:0 max(16px,calc((100% - 1000px)/2))!important;box-sizing:border-box;
  background:var(--vac-head-bg)!important;border-bottom:3px solid var(--vac-accent)!important;box-shadow:0 1px 4px rgba(16,24,40,.06)}
:root body > #header > .row{margin:0!important;max-width:none!important;width:auto!important;padding:0!important}
:root body > #header > .row::before,:root body > #header > .row::after{content:none!important}
:root body > #header > .row > .columns{padding:0!important;width:auto!important;float:none!important}
:root body > #header > .row:nth-child(2){order:1;flex:1 1 auto;min-width:120px}   /* logo */
:root body > #header > .row:nth-child(3){order:2;flex:none}                   /* Support */
:root body > #header > .row:nth-child(1){order:3;flex:none}                   /* Login / Register */
:root body > a[name="top"]{position:absolute;top:0;left:0}
:root body > #header #logo{margin:0!important;width:auto!important}
:root body > #header #logo img{display:block;height:auto;max-height:38px;width:auto;max-width:100%}
:root body > #header .top-bar{height:auto!important;line-height:normal!important;padding:0!important;border:0!important;
  background:none!important;display:block!important;margin:0!important;overflow:visible!important}
:root body > #header :is(.top-bar ul,ul#reg_log){margin:0!important;padding:0!important;float:none!important;display:flex!important;list-style:none}
:root body > #header :is(.top-bar ul li,ul#reg_log li){float:none!important;display:block!important;padding:0!important}
:root body > #header :is(.top-bar,#reg_log) a{display:inline-block;padding:8px 10px!important;border-radius:8px;
  font:600 15px/1.2 Arial,Helvetica,sans-serif!important;color:var(--vac-head-link)!important;text-decoration:none!important;background:none!important}
:root body > #header :is(.top-bar,#reg_log) a:hover{background:var(--vac-head-hover)!important}
/* signed-in pages (and the registration form itself): "Login Here / Register Now" are not needed */
:root body:has(form[name="theForm"]) > #header > .row:nth-child(1){display:none!important}
:root body:has(#stoplight_container,#Timer,.question-container,.mainbox,#payment-form,#cert_container,#final_button,form[name="finaltest"],div.final,.final_link,table#change_reg) > #header > .row:nth-child(1){display:none!important}
@media (max-width:420px){
  :root body > #header #logo img{max-height:32px}
  :root body > #header :is(.top-bar,#reg_log) a{font-size:14px!important;padding:8px 6px!important}
}

/* page area: one white card on a light background; footer stays at the bottom on short pages */
:root body:has(> #header) > #content_container{min-height:calc(100vh - 170px)}
:root body > #content_container{max-width:1000px;margin:20px auto 0!important;padding:0 16px!important;box-sizing:border-box}
:root body #content_container > #aff_content{background:var(--vac-card)!important;border:1px solid var(--vac-line);border-radius:16px;
  padding:24px!important;box-shadow:0 1px 3px rgba(16,24,40,.06);box-sizing:border-box}
@media (max-width:640px){
  :root body > #content_container{margin:0 auto!important;padding:0!important}
  :root body #content_container > #aff_content{border-radius:0;border-width:0 0 1px;padding:16px 14px!important;box-shadow:none}
}
/* footer: full width */
:root body div#footer_nav{max-width:none!important;width:100%!important;height:auto!important;background:var(--vac-foot)!important;margin:24px 0 0!important}
:root body div#footer_nav ul{margin:0!important;padding:16px 0!important;background:none!important;height:auto!important}
:root body #footer_nav ul li a{color:#fff!important;font:500 15px/1.2 Arial,Helvetica,sans-serif!important}

/* timer: header first, timer bar right under it (no page edit needed) */
:root body:has(> #header):has(#Timer){padding-top:60px!important}
:root body:has(> #header):has(#course_note #Timer) > #content_container{padding-top:var(--vac-timer-h)!important}

/* ---- 12B. Student home ---- */
:root body #menu_container{width:auto!important;max-width:820px;margin:0 auto 20px!important;float:none!important;height:auto!important}
:root body #menu_header{display:grid!important;grid-template-columns:auto 1fr;gap:20px!important;align-items:stretch!important;margin:0!important}
@media (max-width:640px){ :root body #menu_header{grid-template-columns:1fr;gap:14px!important} }

/* traffic light: three lamps stacked in one dark box, the words outside it */
:root body #stoplight_container{width:auto!important;padding:16px 20px 16px 16px!important;background:#fff;
  border:1px solid var(--vac-line);border-radius:14px;box-sizing:border-box}
:root body #stoplight_container{display:flex!important;align-items:center}
:root body #stoplight_container table{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important;width:auto!important}
:root body #stoplight_container td{padding:0!important;background:none!important}
:root body #stoplight_container td a{display:flex!important;align-items:center;gap:16px;min-height:0!important;padding:0!important;
  background:none!important;border-radius:0!important;color:var(--vac-ink)!important;font:600 17px/1.25 Arial,Helvetica,sans-serif!important}
:root body #stoplight_container td a .light_text{color:inherit!important;font:inherit!important;padding:8px 10px;border-radius:8px}
:root body #stoplight_container td a:hover{background:none!important}
:root body #stoplight_container td a:hover .light_text{background:var(--vac-soft);text-decoration:underline}
:root body #stoplight_container td a:focus-visible{outline:none}
:root body #stoplight_container td a:focus-visible .light_text{outline:3px solid #93C5FD}
:root body #stoplight_container td a::before{width:64px!important;height:64px!important;border-radius:0!important;flex:none;
  box-shadow:none!important;background-color:#1F2937!important}
:root body #red_light a::before{border-radius:14px 14px 0 0!important;
  background:radial-gradient(circle,#FCA5A5 0 3px,#EF4444 9px 19px,#450A0A 20px 22px,transparent 23px),#1F2937!important}
:root body #yellow_light a::before{
  background:radial-gradient(circle,#FEF08A 0 3px,#FACC15 9px 19px,#422006 20px 22px,transparent 23px),#1F2937!important}
:root body #green_light a::before{border-radius:0 0 14px 14px!important;
  background:radial-gradient(circle,#BBF7D0 0 3px,#22C55E 9px 19px,#052E16 20px 22px,transparent 23px),#1F2937!important}
:root body #green_light a{color:var(--vac-primary)!important;font-weight:700!important}
:root body #green_light a .light_text::after{content:" \203A";font-size:20px}

/* student details */
:root body #profile_container{text-align:left!important;border:1px solid var(--vac-line);border-radius:14px;padding:18px 20px!important;
  background:var(--vac-page)!important;font:400 16px/1.5 Arial,Helvetica,sans-serif;color:var(--vac-ink);box-sizing:border-box}
:root body #profile_container > b:first-child{display:block;font-size:20px;margin-bottom:8px}
:root body #profile_container > b:first-child + br,:root body #profile_container > b:first-child + br + br{display:none}
:root body #profile_container p{text-align:left!important;margin:12px 0 0!important}
:root body #profile_container strong p{background:#FFFBEB;border:1px solid #FDE68A;border-radius:8px;padding:8px 12px;color:#92400E;font-weight:600}

/* progress bar */
:root body table[width="604"]{width:100%!important;max-width:820px;margin:0 auto 14px!important;display:table!important}
:root body table[width="604"] > tbody > tr > td{display:table-cell!important;text-align:left!important;padding:0!important;font:700 15px/1.4 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body table[width="604"] br{display:none}
:root body #prog_bar{display:block!important;width:500px!important;max-width:none!important;height:12px!important;margin:8px 0 0!important;
  background:#E5E7EB!important;border-radius:99px;overflow:hidden}
:root body #prog_bar :is(tbody,tr,td){display:block!important;padding:0!important;line-height:0;height:12px}
:root body #prog_bar img{display:block!important;height:12px!important;max-height:none!important;border-radius:99px;
  background:var(--vac-ok);object-fit:none;object-position:-9999px 0}
@media (max-width:640px){ :root body #prog_bar{zoom:.62} }

/* chapter list: a real table */
:root body table[width="595px"]{display:table!important;width:100%!important;max-width:820px;height:auto!important;margin:0 auto!important}
:root body table[width="595px"] > tbody{display:table-row-group!important}
:root body table[width="595px"] > tbody > tr{display:table-row!important}
:root body table[width="595px"] > tbody > tr > td{display:table-cell!important;padding:0!important}
:root body table[width="595px"] > tbody > tr > td:first-child:not([style]){display:none!important}
:root body table[width="608px"]{display:table!important;width:100%!important;border-collapse:separate!important;border-spacing:0;
  border:1px solid var(--vac-line);border-radius:14px;overflow:hidden;background:#fff;margin:0!important}
:root body table[width="608px"] > tbody{display:table-row-group!important}
:root body table[width="608px"] tr{display:table-row!important}
:root body table[width="608px"] td{display:table-cell!important;padding:12px 14px!important;border-bottom:1px solid var(--vac-line)!important;
  font:400 15px/1.35 Arial,Helvetica,sans-serif;vertical-align:middle!important;text-align:left!important;width:auto!important}
:root body table[width="608px"] tr:last-child td{border-bottom:0!important}
:root body table[width="608px"] tr:nth-child(even) td{background:#FAFBFC}
:root body table[width="608px"] tr.menu_header td{background:var(--vac-primary)!important;color:#fff!important;border:0!important;
  font:700 13px/1.2 Arial,Helvetica,sans-serif!important;text-transform:uppercase;letter-spacing:.04em}
:root body table[width="608px"] tr.menu_header td b{color:#fff!important}
:root body table[width="608px"] tr.menu_header td:nth-child(3){text-align:center!important}
:root body table[width="608px"] tr.menu_header td:nth-child(4){text-align:right!important}
:root body table[width="608px"] td#chapter{width:1%!important;white-space:nowrap!important;color:var(--vac-muted)}
:root body table[width="608px"] td#sections b{font-weight:600}
:root body table[width="608px"] td#sections a{color:var(--vac-primary)!important}
:root body table[width="608px"] td#status{width:1%!important;white-space:nowrap!important;text-align:center!important}
:root body table[width="608px"] td#minutes{width:1%!important;white-space:nowrap!important;text-align:right!important;
  font-variant-numeric:tabular-nums;color:var(--vac-muted)}
:root body table[width="608px"] td#minutes font{color:inherit!important}
/* status pictures ("INCOMPLETE", and the "DONE" stamp that printed over it) become clean labels */
:root body table[width="608px"] td#status img{display:none!important}
:root body table[width="608px"] td#status::after{content:"Incomplete";display:inline-block;padding:5px 10px;border-radius:99px;
  font:700 12px/1 Arial,Helvetica,sans-serif;background:#F3F4F6;color:#4B5563;border:1px solid #E5E7EB}
:root body table[width="608px"] td#status:has(img[src$="/complete.jpg"],img[src="complete.jpg"])::after{content:"\2713  Done";
  background:#DCFCE7;color:#166534;border-color:#BBF7D0}
@media (max-width:640px){
  :root body table[width="608px"] td{padding:10px 8px!important;font-size:14px!important}
  :root body table[width="608px"] tr.menu_header td{font-size:12px!important;letter-spacing:0}
  :root body table[width="608px"] td#status::after{content:"To do";font-size:12px;padding:4px 7px}
  :root body table[width="608px"] td#status:has(img[src$="/complete.jpg"],img[src="complete.jpg"])::after{content:"\2713 Done"}
  :root body table[width="608px"] td#minutes{font-size:13px!important}
}
@media (max-width:360px){
  :root body table[width="608px"] td{padding:9px 5px!important;font-size:13px!important}
}

/* ---- 12C. Chapter quiz ("Testing your understanding") ---- */
:root body .question-container{width:auto!important;max-width:720px;background:#fff;border:1px solid var(--vac-line);border-radius:14px;
  padding:18px!important;margin:0 auto 16px!important;text-align:left;box-sizing:border-box}
:root body .question-container .question{font:700 17px/1.4 Arial,Helvetica,sans-serif!important;color:var(--vac-ink);margin:0 0 12px!important}
:root body .question-container .answer{position:relative;display:block;padding:13px 14px 13px 48px!important;margin:0 0 8px!important;
  border:1px solid var(--vac-line);border-radius:10px;font:400 16px/1.4 Arial,Helvetica,sans-serif;background:#fff;cursor:pointer}
:root body .question-container .answer::before{content:"";position:absolute;left:15px;top:50%;width:20px;height:20px;margin-top:-10px;
  border:2px solid #9CA3AF;border-radius:50%;box-sizing:border-box;background:#fff}
:root body .question-container .answer input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
:root body .question-container .answer:hover{border-color:var(--vac-primary);background:var(--vac-soft)}
:root body .question-container .answer:has(input:checked){border-color:var(--vac-primary);background:var(--vac-soft);box-shadow:inset 0 0 0 1px var(--vac-primary)}
:root body .question-container .answer:has(input:checked)::before{border-color:var(--vac-primary);background:radial-gradient(circle,var(--vac-primary) 0 4px,#fff 5px)}
:root body .question-container .answer:has(input:focus-visible){outline:3px solid #93C5FD;outline-offset:2px}
:root body .question-container ~ div[align="center"] #submit,:root body form[name="form1"] #submit{min-width:200px;font-size:17px!important}
/* the quiz's own Continue (after the last question) */
:root body #tyu-proceed button,:root body #complete button{padding:0!important}
:root body #tyu-proceed button > a,:root body #complete button > a{display:block;padding:12px 32px;color:#fff!important;text-decoration:none!important}

/* quiz result ("You answered 3 questions correctly / You passed") */
:root body .mainbox:not(:has(.question-container)){max-width:520px;margin:8px auto!important;padding:28px 20px!important;text-align:center;
  border:1px solid var(--vac-line);border-radius:14px;background:#fff;font:600 18px/1.6 Arial,Helvetica,sans-serif;color:var(--vac-ink);box-sizing:border-box}
:root body .mainbox > a[href*="show="]{display:inline-block;margin-top:10px;padding:13px 40px;border-radius:8px;min-height:44px;box-sizing:border-box;
  background:var(--vac-primary)!important;color:#fff!important;font:600 17px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important}
:root body .mainbox > a[href*="show="]:hover{background:var(--vac-primary-dark)!important}
/* "Student Center | Log off" line under quiz pages */
:root body #aff_content > div[align="center"]:has(> a[href="home.php"]),
:root body #content > div[align="center"]:has(> a[href="home.php"]){font:400 15px/1.6 Arial,Helvetica,sans-serif;color:var(--vac-muted);margin-top:12px}

/* ---- 12D. Payment step (pay.universalecom.com, card details) ---- */
:root body #main_container:has(#payment-form){max-width:520px;margin:0 auto!important;padding:0!important;background:none!important;
  text-align:left!important;font:400 16px/1.45 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body #main_container:has(#payment-form) > br{display:none}
:root body #main_container:has(#payment-form) .error:empty{display:none}
:root body #main_container:has(#payment-form) > div[style*="font-size:16px"]{background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;
  padding:12px 14px;color:#92400E;font-size:15px!important;margin:0 0 18px}
:root body #main_container:has(#payment-form) > div[style*="font-size:16px"] br{display:none}
:root body #main_container:has(#payment-form) .title{color:var(--vac-ink)!important;font:700 18px/1.3 Arial,Helvetica,sans-serif!important;
  text-align:left!important;margin:22px 0 10px!important;padding-bottom:8px;border-bottom:1px solid var(--vac-line)}
/* order summary: label left, amount right */
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table{display:table!important;width:100%!important;border-collapse:collapse}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table > tbody{display:table-row-group!important}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table tr{display:table-row!important}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table td{display:table-cell!important;padding:9px 0!important;
  border-bottom:1px solid var(--vac-line);text-align:left!important;font-size:16px!important}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table td b{font-weight:400;color:var(--vac-muted)}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > table td:last-child{text-align:right!important;font-weight:700}
:root body #main_container:has(#payment-form) > div[align="center"]:has(> table) > img{display:block;margin:12px auto 0;max-width:150px;height:auto}
/* coupon */
:root body #main_container:has(#payment-form) > div[style*="margin: 20px"]{margin:18px 0 0!important}
:root body form[name="applyCoupon"]{display:flex;flex-wrap:wrap;gap:8px;align-items:center;text-align:left}
:root body form[name="applyCoupon"] label{flex:1 0 100%;text-align:left!important;font:600 14px/1.3 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body form[name="applyCoupon"] input[type="text"]{flex:1 1 160px;width:auto!important;height:44px;margin:0!important;padding:0 12px!important;
  border:1px solid #D1D5DB!important;border-radius:8px!important;font:400 16px Arial,Helvetica,sans-serif!important;box-sizing:border-box}
:root body form[name="applyCoupon"] input[type="submit"]{flex:none;margin:0!important;background:#fff!important;color:var(--vac-primary)!important;
  border:1px solid var(--vac-primary)!important;box-shadow:none}
:root body form[name="applyCoupon"] > div{flex:1 0 100%;text-align:left!important;margin:0!important;font:400 13px/1.4 Arial,Helvetica,sans-serif!important;color:var(--vac-muted)}
/* billing + card: label above the box, full width, left aligned */
:root body #payment-form table{display:block!important;width:100%!important;margin:0!important}
:root body #payment-form table > tbody{display:block!important}
:root body #payment-form table tr{display:flex!important;flex-direction:column;gap:6px;margin:0 0 14px}
:root body #payment-form table td{display:block!important;width:auto!important;padding:0!important;text-align:left!important;border:0!important}
:root body #payment-form td.label{font:600 14px/1.3 Arial,Helvetica,sans-serif!important;color:var(--vac-ink)!important;text-align:left!important}
:root body #payment-form td.label .small{display:block;font:400 13px/1.4 Arial,Helvetica,sans-serif;color:var(--vac-muted);margin-top:2px}
:root body #payment-form td.label .small br{display:none}
:root body #payment-form td.label p{margin:6px 0 0!important}
:root body #payment-form td.label img{width:120px;height:auto}
:root body #payment-form :is(input[type="text"],select){width:100%!important;max-width:none!important;height:46px;margin:0!important;padding:0 12px!important;
  border:1px solid #D1D5DB!important;border-radius:8px!important;font:400 16px Arial,Helvetica,sans-serif!important;box-sizing:border-box;background-color:#fff!important}
:root body #payment-form :is(input[type="text"],select):focus{border-color:var(--vac-primary)!important;outline:3px solid #C7D2FE}
:root body #payment-form td:has(.card-expiry-month){display:flex!important;align-items:center;gap:8px}
:root body #payment-form td:has(.card-expiry-month) select{flex:1;width:auto!important}
:root body #payment-form .card-cvc{max-width:140px!important}
:root body #payment-form tr:has(.card-cvc){display:grid!important;grid-template-columns:1fr auto;align-items:start;gap:6px 12px}
:root body #payment-form td[colspan]{display:block!important}
:root body #payment-form .submit-button{width:100%!important;min-height:52px;font-size:18px!important;margin-top:4px}
:root body #payment-form > div[align="center"]:last-of-type{margin:8px 0 0!important}

/* ---- 12E. Help notes on registration ("DO NOT INCLUDE DASHES OR SPACES") ----
   Were turned into red boxes by section 9 and broke across the labels. Now
   small grey helper text. The boxed .note stays on Certificate Processing only. */
:root body .note{display:block!important;border:0!important;background:none!important;padding:0!important;border-radius:0!important;
  margin:4px 0 0!important;color:var(--vac-muted)!important;font:400 13px/1.4 Arial,Helvetica,sans-serif!important;text-transform:none}
:root body #main_container:has(#cert_container) .note{border:1px solid #FECACA!important;border-left:4px solid #DC2626!important;background:#FEF2F2!important;
  color:#7F1D1D!important;border-radius:8px!important;padding:12px 14px 2px!important;font:400 15px/1.5 Arial,Helvetica,sans-serif!important}

/* ---- 12F. Registration form (aRegistration/g/register.php) ----
   Course name + price pinned under the header while the student fills in the
   form. The name comes from the page; the price comes from --vac-price, set in
   each clinic's file. Fields: label above the box on phones, clean columns on
   desktop. */
:root{--vac-price:none}
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type{position:sticky;top:var(--vac-head-h,0px);z-index:30;
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-24px -24px 18px!important;padding:12px 24px;
  background:var(--vac-primary);color:#fff;border-radius:16px 16px 0 0;font:700 17px/1.3 Arial,Helvetica,sans-serif;box-shadow:0 2px 6px rgba(16,24,40,.12)}
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type b,
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type u{color:#fff;text-decoration:none;font-weight:700}
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type::after{content:var(--vac-price);flex:none;
  background:#fff;color:var(--vac-primary);border-radius:99px;padding:6px 14px;font:800 18px/1 Arial,Helvetica,sans-serif}
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)){padding-top:24px!important}
@media (max-width:640px){
  :root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type{margin:-16px -14px 14px!important;padding:10px 14px;border-radius:0;font-size:15px}
  :root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type::after{font-size:16px;padding:6px 10px}
}
/* the "Please fill in ..." list: one tidy error box */
:root body p.error:empty{display:none}
:root body p.error + div[style*="color:red"],:root body p.error > div[style*="color:red"]{background:#FEF2F2;border:1px solid #FECACA;border-left:4px solid #DC2626;
  border-radius:8px;padding:10px 14px;margin:0 0 14px;font:400 14px/1.6 Arial,Helvetica,sans-serif;color:#991B1B!important;columns:2 220px}
:root body p.error + div[style*="color:red"] b{font-weight:600}
/* the form table */
:root body table:has(> form[name="theForm"]),:root body table:has(input[name="license2"]){width:100%!important;max-width:760px;margin:0 auto!important;border-collapse:collapse}
:root body table:has(input[name="license2"]) td{font:400 15px/1.45 Arial,Helvetica,sans-serif;color:var(--vac-ink);padding:8px 6px!important;vertical-align:top}
:root body table:has(input[name="license2"]) > tbody > tr > td:first-child:not([colspan]){width:34%!important;text-align:left!important;padding-top:18px!important;font-weight:400}
:root body table:has(input[name="license2"]) hr{border:0;border-top:1px solid var(--vac-line);margin:6px 0}
:root body table:has(input[name="license2"]) :is(input[type="text"],select){height:44px;width:100%;max-width:420px;padding:0 12px!important;margin:4px 0!important;
  border:1px solid #D1D5DB!important;border-radius:8px!important;font:400 16px Arial,Helvetica,sans-serif!important;box-sizing:border-box;background-color:#fff}
:root body table:has(input[name="license2"]) :is(input[type="text"],select):focus{border-color:var(--vac-primary)!important;outline:3px solid #C7D2FE}
:root body table:has(input[name="license2"]) td:has(> select + select){display:flex;flex-wrap:wrap;gap:6px;align-items:center}
:root body table:has(input[name="license2"]) td:has(> select + select) > select{flex:1 1 90px;width:auto;max-width:160px}
:root body table:has(input[name="license2"]) td:has(> select + select) > :not(select){flex:1 0 100%}
:root body table:has(input[name="license2"]) tr[bgcolor] td{background:var(--vac-soft)!important}
:root body table:has(input[name="license2"]) .style5{font-weight:600}
:root body table:has(input[name="license2"]) div[style*="color:red"]{background:#FFFBEB;border:1px solid #FDE68A;border-radius:8px;padding:10px 12px;
  color:#92400E!important;font-size:14px}
:root body .note.red{color:#B91C1C!important;font-weight:600!important}
:root body #continue-button{color:var(--vac-muted);font-size:14px!important;padding-top:14px!important}
:root body #continue-button input[type="submit"]{min-width:240px;min-height:52px;font-size:18px!important;margin-top:6px}
@media (max-width:640px){
  :root body table:has(input[name="license2"]) > tbody > tr > td:first-child:not([colspan]){width:auto!important;padding:10px 0 0!important;font-weight:600}
  :root body table:has(input[name="license2"]) td{padding:4px 0!important}
  :root body table:has(input[name="license2"]) :is(input[type="text"],select){max-width:none}
  :root body #continue-button input[type="submit"]{width:100%}
}

/* ---- 12G. Home: end states, final test link ----
   When the course is finished or the test is locked for the day, the green
   lamp has no link, only words ("You're All Done!" / "Please try again
   tomorrow."). Same lamp box, words outside it, readable. */
:root body #stoplight_container td:not(:has(a)){display:flex!important;align-items:center;gap:16px}
:root body #stoplight_container td:not(:has(a))::before{content:"";flex:none;width:64px;height:64px;background-color:#1F2937}
:root body #green_light:not(:has(a))::before{border-radius:0 0 14px 14px;
  background:radial-gradient(circle,#BBF7D0 0 3px,#22C55E 9px 19px,#052E16 20px 22px,transparent 23px),#1F2937}
:root body #red_light:not(:has(a))::before{border-radius:14px 14px 0 0;
  background:radial-gradient(circle,#FCA5A5 0 3px,#EF4444 9px 19px,#450A0A 20px 22px,transparent 23px),#1F2937}
:root body #stoplight_container td:not(:has(a)) .light_text{color:#166534!important;font:700 17px/1.25 Arial,Helvetica,sans-serif!important;padding:8px 10px}
/* the red "come back tomorrow" state */
:root body #stoplight_container td:not(:has(a)) .light_text:not(:empty){background:#DCFCE7;border-radius:8px}
/* final test row under the chapter table */
:root body table[width="608"]{display:table!important;width:100%!important;margin:14px 0 0!important;border:0!important}
:root body table[width="608"] tr{display:table-row!important}
:root body table[width="608"] td{display:table-cell!important;background:none!important;border:0!important;padding:0!important;text-align:center!important}
:root body table[width="608"] td[style*="ff0000"] b{color:#166534;font:700 17px/1.2 Arial,Helvetica,sans-serif}
:root body a[href="start-test.php"]{display:inline-block;background:var(--vac-primary)!important;color:#fff!important;border-radius:8px;
  padding:13px 28px;font:700 17px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important;min-height:44px;box-sizing:border-box}
:root body a[href="start-test.php"]::after{content:" Take it now \203A"}
:root body a[href="start-test.php"]:hover{background:var(--vac-primary-dark)!important}

/* ---- 12H. Final test: start page, the test, pass and fail pages ---- */
/* start page: "You may only take the test once per calendar day!" */
:root body #aff_content div[align="left"]:has(> p > .step){max-width:640px;margin:0 auto!important;text-align:center}
:root body #aff_content div[align="left"] > p:has(> .step){background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;padding:12px 16px!important;
  color:#92400E;font:400 16px/1.5 Arial,Helvetica,sans-serif;text-align:left;margin:0 0 18px!important}
:root body #aff_content div[align="left"]:has(> p > .step) > br{display:none}
:root body #final_button{min-width:240px}
:root body #proctor:not(:has(:not(br))){display:none}
/* the test: intro card, then each question with clear space and big answer buttons */
:root body #aff_content div[align="center"]:has(> form[name="finaltest"]){max-width:720px;margin:0 auto 18px!important;text-align:left!important;
  background:var(--vac-page);border:1px solid var(--vac-line);border-radius:12px;padding:16px 18px!important;
  font:400 15px/1.55 Arial,Helvetica,sans-serif;color:var(--vac-ink);overflow-wrap:anywhere}
:root body div.final[style*="margin-left"]{max-width:720px;margin:0 auto!important;padding:0!important;font:400 16px/1.5 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body div.final[style*="margin-left"] > br{content:"";display:block;margin:0 0 12px}
:root body div.final[style*="margin-left"] > b{display:block;margin:22px 0 4px;padding-top:18px;border-top:1px solid var(--vac-line);
  font:700 17px/1.4 Arial,Helvetica,sans-serif}
:root body div.final[style*="margin-left"] > b:first-of-type{border-top:0;padding-top:0;margin-top:6px}
:root body div.final[style*="margin-left"] > br:first-child{display:none}
:root body div.final input[type="radio"]{width:22px;height:22px;margin:0 8px 0 4px!important;vertical-align:-5px;accent-color:var(--vac-primary);cursor:pointer}
:root body div[style*="margin-left:20px"]:has(> div.final input[type="submit"]){margin:24px auto 0!important;max-width:720px;text-align:center}
:root body div.final input[name="answers"]{min-width:240px;min-height:52px;font-size:18px!important}
/* result: failed */
:root body div.final:has(> p):not([style]){max-width:720px;margin:0 auto!important;text-align:left!important;font:400 15px/1.6 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body div.final:has(> p):not([style]) > p:first-child{background:#FEF2F2;border:1px solid #FECACA;border-left:4px solid #DC2626;border-radius:10px;
  padding:14px 16px;color:#991B1B;font:700 20px/1.3 Arial,Helvetica,sans-serif;margin:0 0 14px!important}
:root body div.final:has(> p):not([style]) > p:nth-child(2){font-size:17px;margin:0 0 14px!important}
:root body div.final:has(> p):not([style]) > p:nth-child(3){background:#fff;border:1px solid var(--vac-line);border-radius:10px;padding:14px 16px}
/* result: passed */
:root body #aff_content div[align="center"][style*="font-size: 18px"]{max-width:720px;margin:0 auto 14px!important;background:#ECFDF5;border:1px solid #A7F3D0;
  border-left:4px solid #16A34A;border-radius:10px;padding:14px 16px;color:#065F46;font:700 20px/1.4 Arial,Helvetica,sans-serif!important;text-align:left}
:root body #aff_content div[style*="max-width: 800px"]{max-width:720px!important;padding:0!important;text-align:left;font:400 16px/1.6 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body #aff_content div[style*="max-width: 800px"] span[style*="color:red"]{display:block;margin-top:12px;background:#FFFBEB;border:1px solid #FDE68A;
  border-radius:8px;padding:10px 12px;color:#92400E!important;font-weight:600}
/* "Return Home" on both result pages */
:root body .final_link{margin-top:18px}
:root body .final_link a{display:inline-block;background:var(--vac-primary)!important;color:#fff!important;border-radius:8px;padding:13px 32px;
  font:700 17px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important;min-height:44px;box-sizing:border-box}
:root body .final_link a:hover{background:var(--vac-primary-dark)!important}

/* ---- 12I. Change your profile information (page.php?template=change_reg) ---- */
:root body table#change_reg{display:table!important;width:100%!important;max-width:620px;margin:0 auto!important;border-collapse:collapse;text-align:left}
:root body table#change_reg > tbody{display:table-row-group!important}
:root body table#change_reg tr{display:table-row!important}
:root body table#change_reg td{display:table-cell!important;padding:7px 6px!important;vertical-align:middle;font:400 15px/1.4 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body table#change_reg td.change_label{width:38%;font-weight:600}
:root body table#change_reg .red{color:var(--vac-ink)!important;font-weight:700}
:root body table#change_reg :is(input[type="text"],select){height:44px;width:100%;max-width:none;margin:2px 0!important;padding:0 12px!important;
  border:1px solid #D1D5DB!important;border-radius:8px!important;font:400 16px Arial,Helvetica,sans-serif!important;box-sizing:border-box;background-color:#fff}
:root body table#change_reg :is(input[type="text"],select):focus{border-color:var(--vac-primary)!important;outline:3px solid #C7D2FE}
:root body table#change_reg td:has(> input[name="First_Name"]){display:flex!important;gap:8px}
:root body table#change_reg td:has(> select + select){display:flex!important;gap:6px}
:root body table#change_reg td:has(> select + select) > select{flex:1;width:auto}
:root body table#change_reg tr:first-child td{padding-bottom:12px!important}
:root body table#change_reg a[href="home.php"]::before{content:"\2039  "}
:root body table#change_reg tr:last-child td{padding-top:18px!important}
:root body table#change_reg tr:last-child div{text-align:left!important}
:root body table#change_reg tr:last-child td.change_submit div{text-align:right!important}
:root body table#change_reg input[value="Cancel"]{background:#fff!important;color:var(--vac-primary)!important;border:1px solid var(--vac-primary)!important;box-shadow:none}
@media (max-width:640px){
  :root body table#change_reg,:root body table#change_reg > tbody,:root body table#change_reg tr,:root body table#change_reg td{display:block!important;width:auto!important}
  :root body table#change_reg td{padding:3px 0!important}
  :root body table#change_reg td.change_label{padding-top:12px!important}
  :root body table#change_reg tr:first-child td:last-child{display:none!important}
  :root body table#change_reg tr:last-child{display:flex!important;flex-direction:column;gap:10px;padding-top:16px}
  :root body table#change_reg tr:last-child td{padding:0!important}
  :root body table#change_reg tr:last-child input{width:100%}
  :root body table#change_reg tr:last-child div{text-align:center!important}
}
/* "Please try again tomorrow." (test locked for today): amber, not green */
:root body #stoplight_container:has(#yellow_light a) #green_light:not(:has(a)) .light_text{background:#FFFBEB!important;color:#92400E!important;border:1px solid #FDE68A}
/* "You're All Done!": white words on solid green (Luis 11/17) */
:root body #stoplight_container:not(:has(#yellow_light a)) #green_light:not(:has(a)) .light_text{background:#15803D!important;color:#fff!important}
/* final-test row under the chapter table: centred */
:root body table[width="608"]:not([width="608px"]),:root body table[width="608"]:not([width="608px"]) > tbody,:root body table[width="608"]:not([width="608px"]) tr{display:flex!important;justify-content:center;align-items:center;gap:16px;width:100%!important}
:root body table[width="608"]:not([width="608px"]) td{display:block!important;width:auto!important}
:root body table[width="608"]:not([width="608px"]) td:not(:has(a)):has(b:empty){display:none!important}

/* ---- 12J. Registration start page (aRegistration/g/start.php) ---- */
:root body table#startTable,:root body table#startTable > tbody,:root body table#startTable > tbody > tr,:root body table#startTable > tbody > tr > td{display:block!important;width:auto!important;padding:0!important}
:root body table#startTable{max-width:820px;margin:0 auto!important;text-align:left;font:400 16px/1.6 Arial,Helvetica,sans-serif;color:var(--vac-ink)}
:root body #startTable h1{font:700 26px/1.25 Arial,Helvetica,sans-serif!important;color:var(--vac-ink);margin:0 0 14px!important;padding-bottom:12px;border-bottom:3px solid var(--vac-accent)}
:root body #startTable h1 br,:root body #startTable h1 table{display:none!important}
:root body #startTable p{font:inherit;margin:0 0 12px}
:root body #startTable .container{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
:root body #startTable .container > .row{display:flex!important;gap:24px;align-items:flex-start;max-width:none!important;margin:0!important;width:auto!important}
:root body #startTable .container > .row::before,:root body #startTable .container > .row::after{content:none!important}
:root body #startTable .container > .row > div{flex:1 1 0;min-width:0}
:root body #startTable .container > .row > div:has(> img,> b > img){flex:0 0 280px}
:root body #startTable .container img{display:block;width:100%;height:auto;border-radius:12px}
:root body #startTable .container br{display:none}
/* the page leaves a <b> open after the price, which turned the rest of the page bold */
:root body #startTable .container ~ * b,:root body #startTable .container > .row > div + div b,:root body #startTable td > b,:root body #startTable td > div > b{font-weight:inherit}
:root body #startTable .note b b,:root body #startTable .note > b{font-weight:700}
/* price line */
:root body #startTable .container > .row > div:first-child > p:nth-of-type(2){display:inline-block;margin:6px 0 0;padding:10px 16px;border-radius:10px;
  background:var(--vac-soft);border:1px solid var(--vac-line);font-size:17px}
:root body #startTable .container > .row > div:first-child > p:nth-of-type(2) b{font-weight:800;font-size:22px;color:var(--vac-primary)}
/* court order / CDL notes: one calm box (overrides the helper-text rule in 12E) */
:root body #startTable .note{display:block!important;margin:18px 0 0!important;padding:16px 18px!important;border:1px solid #FDE68A!important;border-left:4px solid #D97706!important;
  background:#FFFBEB!important;border-radius:10px!important;color:#78350F!important;font:400 15px/1.55 Arial,Helvetica,sans-serif!important}
:root body #startTable .note ul{margin:6px 0 12px 20px!important;padding:0}
:root body #startTable .note ul:last-child{margin-bottom:0!important}
:root body #startTable .note li{margin:0 0 6px;font:inherit}
:root body #startTable .note a{overflow-wrap:anywhere}
:root body #startTable br{display:none}
:root body #startTable div[class*="border"]{margin:14px 0 0;padding:12px 16px;border:1px solid var(--vac-line);border-radius:10px;background:var(--vac-page);font-size:14px;color:var(--vac-muted);text-align:left}
:root body #startTable div[class*="border"] p{margin:0;font-size:14px}
:root body #startTable div[align="center"]{margin-top:20px}
:root body #startTable input[name="startSubmit"]{min-width:260px;min-height:52px;font-size:18px!important}
@media (max-width:640px){
  :root body #startTable h1{font-size:22px!important}
  :root body #startTable .container > .row{flex-direction:column;gap:14px}
  :root body #startTable .container > .row > div:has(> img,> b > img){flex:none;width:100%;max-width:320px}
  :root body #startTable input[name="startSubmit"]{width:100%}
}
/* phones, before login (start and login pages): logo + Login + Register fit; Support stays in the footer */
@media (max-width:480px){
  :root body:not(:has(#stoplight_container,#Timer,.question-container,.mainbox,#payment-form,#cert_container,#final_button,form[name="finaltest"],div.final,.final_link,table#change_reg,form[name="theForm"])) > #header > .row:nth-child(3){display:none!important}
}

/* ===== 12K: due date passed (home) and "not quite done" pay reminder ===== */
/* due date passed: was a grey 20px bevelled table border with red bold text */
:root body #aff_content > #notice{display:block;position:static;margin:0 0 18px}
:root body #notice > table{width:100%!important;height:auto!important;border:1px solid #FECACA!important;border-left:5px solid #DC2626!important;
  border-collapse:separate;border-radius:12px;background:#FEF2F2!important;box-shadow:none}
:root body #notice > table td{border:0!important;padding:18px 22px!important;text-align:left!important}
:root body #notice > table td > br:first-child{display:none}
:root body #notice h2{margin:0 0 8px!important;font:700 20px/1.3 Arial,Helvetica,sans-serif!important;color:#991B1B!important;text-transform:none}
:root body #notice font{color:#7F1D1D!important;font:400 15px/1.55 Arial,Helvetica,sans-serif!important}
:root body #notice b{font-weight:400}
:root body #notice b > br{display:none}
:root body #notice a{display:inline-block;margin:2px 4px;padding:6px 12px;border-radius:8px;background:#DC2626;color:#fff!important;font-weight:700;text-decoration:none}
:root body #notice a:hover{background:#B91C1C}
@media (max-width:640px){:root body #notice > table td{padding:14px 16px!important}}

/* "You're not quite done yet" pay reminder (table#table1, fixed 741px wide) */
:root body #aff_content table#table1{width:100%!important;max-width:620px;margin:8px auto!important;border:1px solid var(--vac-line)!important;
  border-left:5px solid var(--vac-accent)!important;border-collapse:separate!important;border-radius:14px;background:var(--vac-soft)!important}
:root body table#table1 td{padding:22px 24px!important;text-align:left}
:root body table#table1 p{margin:0 0 14px!important}
:root body table#table1 p:last-child{margin:0!important;color:var(--vac-muted)}
:root body table#table1 font{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.5}
:root body table#table1 font[size="4"]{font-size:17px!important}
:root body table#table1 b > font[size="4"]{display:block;margin-bottom:4px;font-size:22px!important;font-weight:800;color:var(--vac-primary)}
:root body table#table1 font[size="2"]{display:block;margin-top:4px;font-size:14px!important;color:var(--vac-muted)}
:root body table#table1 a[href*="payment.php"]{display:inline-block;margin:0 0 12px;padding:14px 24px;border-radius:10px;background:var(--vac-primary);
  color:#fff!important;font:700 17px/1.2 Arial,Helvetica,sans-serif;text-decoration:none}
:root body table#table1 a[href*="payment.php"]:hover{background:var(--vac-primary-dark)}
:root body table#table1 a[href*="payment.php"] + br{display:none}
:root body table#table1 img{display:inline-block;height:28px;width:auto;margin:0 6px 0 0;vertical-align:middle}
@media (max-width:640px){
  :root body table#table1 td{padding:18px 16px!important}
  :root body table#table1 a[href*="payment.php"]{display:block;text-align:center}
}

/* ===== 12L: registration confirmation (confirmInfo.php: review details, pick username and password) ===== */
:root body #aff_content:has(#confirm-container) > h3{margin:0 0 6px!important;font:700 24px/1.3 Arial,Helvetica,sans-serif!important;color:#111827}
:root body #aff_content:has(#confirm-container) > p:has(> font:empty){display:none}
:root body #aff_content:has(#confirm-container) > p{margin:0 0 18px!important;font-size:15px;color:var(--vac-muted)}
:root body #confirm-container{max-width:640px;margin:0 auto}
/* the details the student typed: one clean card, labels left, answers right */
:root body #confirm-container > table:first-child{width:100%!important;margin:0 0 22px!important;border:1px solid var(--vac-line);border-radius:12px;
  border-collapse:separate!important;border-spacing:0!important;background:var(--vac-page)!important;overflow:hidden}
:root body #confirm-container > table:first-child td{padding:9px 16px!important;border:0!important;vertical-align:top;background:none!important}
:root body #confirm-container > table:first-child tr > td:first-child:not([colspan]){width:46%;font:600 14px/1.4 Arial,Helvetica,sans-serif!important;color:var(--vac-muted)}
:root body #confirm-container > table:first-child tr > td:first-child:not([colspan]) :is(b,font){font:inherit!important;color:inherit!important}
:root body #confirm-container > table:first-child tr > td + td{font:700 16px/1.4 Arial,Helvetica,sans-serif!important;color:#111827;overflow-wrap:anywhere}
:root body #confirm-container > table:first-child td[colspan]{padding:0!important}
:root body #confirm-container > table:first-child tr:first-child td[colspan]{display:none}
:root body #confirm-container > table:first-child tr:last-child td[colspan]{display:none}
:root body #confirm-container > table:first-child hr{margin:4px 0!important;border:0!important;border-top:1px solid var(--vac-line)!important;height:0}
/* username / password: label over a full-width box, the hint as helper text under it */
:root body #confirm-container > table:last-child,:root body #confirm-container > table:last-child > tbody,
:root body #confirm-container > table:last-child tr,:root body #confirm-container > table:last-child td{display:block!important;width:100%!important;height:auto!important;padding:0!important;border:0!important;background:none!important}
:root body #confirm-container > table:last-child{padding:18px 20px!important;border:1px solid var(--vac-line)!important;border-radius:12px;box-sizing:border-box;background:#fff!important}
:root body #confirm-container > table:last-child tr{margin:0 0 14px!important}
:root body #confirm-container > table:last-child tr:has(hr),:root body #confirm-container > table:last-child td:empty,
:root body #confirm-container > table:last-child tr:last-child > td:first-child{display:none!important}
:root body #confirm-container > table:last-child tr > td:first-child b{display:block;margin:0 0 6px;font:700 15px/1.3 Arial,Helvetica,sans-serif}
:root body #confirm-container input:is([type="text"],[type="password"]){display:block;width:100%!important;max-width:none;box-sizing:border-box}
:root body #confirm-container .small{display:block;margin:6px 0 0}
:root body #confirm-container .small font{display:block;padding:8px 12px;border-radius:8px;background:#FFFBEB;border:1px solid #FDE68A;color:#92400E!important;font:400 14px/1.45 Arial,Helvetica,sans-serif!important}
:root body #confirm-container .small font strong{font-weight:700;color:#78350F}
:root body #confirm-container input[type="submit"]{width:100%;min-height:50px;font-size:17px!important;margin-top:4px}
@media (max-width:640px){
  :root body #confirm-container > table:first-child tr > td:first-child:not([colspan]){width:42%}
  :root body #confirm-container > table:first-child td{padding:8px 12px!important}
  :root body #confirm-container > table:last-child{padding:16px 14px!important}
}
:root body #confirm-container input:is([type="text"],[type="password"]){min-height:44px;padding:10px 12px!important;border:1px solid #CBD5E1!important;border-radius:8px!important;font-size:16px!important;background:#fff!important}
:root body #confirm-container input:is([type="text"],[type="password"]):focus{outline:3px solid var(--vac-soft);border-color:var(--vac-primary)!important}

/* ---- 12G. Registration bar: price from the page (Virginia Driver Improvement Clinic Online) ----
   The price is real text on the page, inside the bar's first <p>:
     <p><b> ...course name... </b> <span class="vac-price">$00.00</span></p>
   It gets the same white pill the CSS-generated price used to have.
   --vac-price is none above, so the old ::after pill does not also show. */
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type::after{content:none!important}
:root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type > .vac-price{flex:none;
  background:#fff;color:var(--vac-primary);border-radius:99px;padding:6px 14px;font:800 18px/1 Arial,Helvetica,sans-serif;white-space:nowrap}
@media (max-width:640px){
  :root body #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type > .vac-price{font-size:16px;padding:6px 10px}
}


/* ---- 12P. (Luis 11/25): clinic header + chapter timer PINNED on every page ----
   One stack at the top of every student page, in this order:
     1. clinic header (brand logo, polished, sharp) - 64px, 58px on phones
     2. "Time left in this chapter" bar - pinned right under the header
     3. page content, starting 12px below them
   Works whether the timer sits at the top or bottom of the page source, so no
   template edit is needed. Clinics with their own bar (Low Cost, Easy N Quick)
   keep their own header height. */
:root body:has(> #header){--vac-head-h:64px}
@media (max-width:640px){:root body:has(> #header){--vac-head-h:58px}}
html:root body > #header{position:fixed!important;top:0!important;left:0!important;right:0!important;
  height:var(--vac-head-h)!important;min-height:0!important;overflow:hidden!important;z-index:50!important;
  background:var(--vac-head-bg)!important;
  box-shadow:0 1px 0 rgba(16,24,40,.06),0 8px 24px rgba(16,24,40,.08)!important}
/* brand: logo fits inside the bar, crisp edges, a touch more contrast */
html:root body > #header #logo,html:root body > #header #logo a{display:flex!important;align-items:center;margin:0!important;padding:0!important;line-height:0}
html:root body > #header #logo img{height:auto!important;width:auto!important;margin:0!important;
  max-height:calc(var(--vac-head-h) - 20px)!important;max-width:min(62vw,360px)!important;
  image-rendering:-webkit-optimize-contrast;filter:contrast(1.05) saturate(1.08) drop-shadow(0 1px 1px rgba(0,0,0,.10))}
/* timer: always pinned right under the header, full width */
html:root body #Timer,html:root body #course_note #Timer{position:fixed!important;top:var(--vac-head-h,0px)!important;
  left:0!important;right:0!important;width:auto!important;margin:0!important;z-index:45!important;border-radius:0!important}
/* breathing room: content starts 12px below the header (and the timer, on chapter pages) */
html:root body:has(> #header):not(:has(.enq-chrome,.lcb-chrome)){padding-top:calc(var(--vac-head-h) + 12px)!important}
html:root body:has(> #header):has(#Timer):not(:has(.enq-chrome,.lcb-chrome)){padding-top:calc(var(--vac-head-h) + var(--vac-timer-h) + 12px)!important}
html:root body:has(.enq-chrome,.lcb-chrome):has(#Timer){padding-top:calc(var(--vac-head-h) + var(--vac-timer-h) + 12px)!important}
/* pinned means pinned: nothing around the header or timer may carry a
   transform / filter / containment, or the "pinned" bar would scroll with the text */
html:root body :is(*:has(> #Timer),*:has(#Timer)):not(body){transform:none!important;filter:none!important;perspective:none!important;contain:none!important;will-change:auto!important}
html:root body > #header{transform:none!important;filter:none!important}


/* ---- 12Q. (Luis 11/25): registration start page cleanup ----
   Clinic name as a headline with a two-colour bar; photo first on phones in a
   clinic frame; intro as an easy-reading lead; price on its own line under the
   sentence; court-order / commercial notes as one calm card (not alarm pink);
   DMV notice as a quiet footnote; Continue pinned to the bottom on phones so
   it never scrolls away. Same photo for now (per-school photos later). */
html:root body{--reg-photo-radius:18px;--reg-photo-tilt:-1.2deg;--reg-photo-edge:6px solid var(--vac-primary);--reg-photo-shadow:0 18px 36px rgba(16,24,40,.20)}
html:root body table#startTable{max-width:1000px!important}
html:root body table#startTable > tbody > tr > td{padding:20px 16px 110px!important}
html:root body #startTable h1{font:800 clamp(26px,5vw,36px)/1.15 Montserrat,system-ui,sans-serif!important;color:var(--vac-primary)!important;text-align:center;border:0!important;padding:0!important;margin:4px 0 0!important;letter-spacing:-.01em}
html:root body #startTable h1::after{content:"";display:block;width:88px;height:5px;margin:14px auto 0;border-radius:4px;background:linear-gradient(90deg,var(--vac-primary) 0 60%,var(--vac-ink) 60% 100%)}
html:root body #startTable .container > .row{display:grid!important;grid-template-columns:1fr;gap:20px;margin:22px 0 0!important;align-items:center}
html:root body #startTable .container > .row > div{flex:none!important;min-width:0;width:auto!important;max-width:none!important;padding:0!important}
html:root body #startTable .container > .row > div:has(img){order:-1}
html:root body #startTable .container img{width:100%!important;aspect-ratio:16/10;object-fit:cover;border-radius:var(--reg-photo-radius)!important;border-bottom:var(--reg-photo-edge);box-shadow:var(--reg-photo-shadow);transform:rotate(var(--reg-photo-tilt))}
html:root body #startTable .container > .row > div:first-child > p:first-of-type{font:400 17px/1.65 system-ui,-apple-system,Segoe UI,Roboto,sans-serif!important;color:var(--vac-muted)!important;margin:0 0 16px!important}
html:root body #startTable .container > .row > div:first-child > p:first-of-type b{color:var(--vac-ink);font-weight:700}
html:root body #startTable .container > .row > div:first-child > p:nth-of-type(2){display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;margin:0!important;padding:14px 18px!important;border-radius:14px!important;background:var(--vac-soft)!important;border:1px solid color-mix(in srgb,var(--vac-primary) 18%,#fff)!important;font:600 15px/1.35 system-ui,sans-serif!important;color:var(--vac-ink)!important}
html:root body #startTable .container > .row > div:first-child > p:nth-of-type(2) b{font:800 32px/1 Montserrat,system-ui,sans-serif!important;color:var(--vac-primary)!important;white-space:nowrap}
html:root body #startTable .note{background:#fff!important;border:1px solid rgba(16,24,40,.10)!important;border-left:5px solid var(--vac-primary)!important;border-radius:14px!important;padding:18px 18px 8px!important;margin:24px 0 14px!important;box-shadow:0 6px 18px rgba(16,24,40,.06)!important;color:var(--vac-muted)!important}
html:root body #startTable .note > b{display:block;font:700 16px/1.3 Montserrat,system-ui,sans-serif!important;color:var(--vac-ink)!important;margin:0 0 6px}
html:root body #startTable .note > b ~ b{margin-top:14px;padding-top:14px;border-top:1px solid rgba(16,24,40,.10)}
html:root body #startTable .note li{font:400 15px/1.55 system-ui,sans-serif!important;color:var(--vac-muted)!important;margin:0 0 8px}
html:root body #startTable .note a,html:root body #startTable .border.border-dark a{color:var(--vac-primary)!important;font-weight:600}
html:root body #startTable .border.border-dark{border:0!important;background:#f7f8fa!important;border-radius:12px!important;padding:14px 16px!important;font:400 13.5px/1.5 system-ui,sans-serif!important;color:#6b7280!important;margin:0 0 16px!important}
html:root body #startTable input[type=submit]{min-height:52px!important;padding:0 32px!important;border:0!important;border-radius:999px!important;background:var(--vac-primary)!important;color:#fff!important;font:700 17px/1 Montserrat,system-ui,sans-serif!important;box-shadow:0 10px 24px rgba(16,24,40,.25)!important}
@media (max-width:767.98px){html:root body #startTable input[type=submit]{position:fixed!important;left:16px!important;right:16px!important;bottom:12px!important;z-index:60!important;width:auto!important;margin:0!important}}
@media (min-width:640px){html:root body #startTable .container > .row{grid-template-columns:1.1fr .9fr;gap:32px}html:root body #startTable .container > .row > div:has(img){order:2}}



/* ---- 12P2. (Luis 11/24): logo never runs under the header links ----
   The logo shrinks to fit its own space beside Login / Register; on small
   phones the header links are a touch tighter. */
html:root body > #header > .row:nth-child(2){flex:1 1 0!important;min-width:0!important}
html:root body > #header #logo,html:root body > #header #logo a{max-width:100%!important}
html:root body > #header #logo img{max-width:100%!important}
@media (max-width:420px){html:root body > #header :is(.top-bar,#reg_log) a{font-size:13.5px!important;padding:8px 6px!important}}


/* ===== 12H  HEADER RETRACTS (Luis/Andrea 2026-11-25) =====
   The brand header scrolls away with the page; only the course timer and the
   registration price bar stay pinned to the top. Browsers without scroll-driven
   animations (Firefox) keep the previous fixed-header behavior.
   :not(#vac0):not(#vac1) only raises specificity above the 12A rules. */
@property --vac-tt{syntax:"<length>";inherits:true;initial-value:0px}
@supports (animation-timeline: scroll()){
  html:root body:not(#vac0):not(#vac1) :is(#header,.lcb-chrome.lcb-bar,.enq-chrome.enq-bar){position:relative!important;top:auto!important}
  html:root body:is(:has(> #header),:has(.lcb-chrome.lcb-bar),:has(.enq-chrome.enq-bar)):not(#vac0):not(#vac1){padding-top:0!important}
  html:root body:has(#Timer):not(#vac0):not(#vac1) :is(#header,.lcb-chrome.lcb-bar,.enq-chrome.enq-bar){margin-bottom:var(--vac-timer-h)!important}
  html:root body:not(#vac0):not(#vac1) #Timer{position:fixed!important;top:var(--vac-tt)!important;bottom:auto!important;left:0!important;right:0!important;width:auto!important;margin:0!important;z-index:45!important}
  html:root body:has(#Timer):not(#vac0):not(#vac1){animation:vacHeadAway linear both;animation-timeline:scroll(root);animation-range:0px var(--vac-head-h,60px)}
  @keyframes vacHeadAway{from{--vac-tt:var(--vac-head-h,60px)}to{--vac-tt:0px}}
  html:root body:not(#vac0):not(#vac1) #aff_content:has(form[name="theForm"]):not(:has(#confirm-container)) > p:first-of-type{top:0!important}
  html:root:has(#Timer):not(#vac0):not(#vac1){scroll-padding-top:calc(var(--vac-timer-h) + 12px)!important}
}
