@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap");
/* ==========================================================================
   op-course.css  —  California Traffic School Operator Program
   (TVS Operator Course: 8-Hour Operator and 4-Hour Operator Renewal)
   BUILD 2026-11-24-B  (replaces 18-A: brighter colours, modern blue headers, payment page fit,
   login page, pinned timer bar, chapter and exam pages
   checked against the real pages, green Continue)

   ONE file, used on BOTH hosts:
     pay.universalecom.com/op/includes/css/op-course.css   (registration, username, shipping, payment)
     www.dmvoperatorcourse.com/includes/css/op-course.css  (login, Student Center, chapters, final exam, pass page)
   Link it as the LAST line of the <head> on both header templates:
     <link href="includes/css/op-course.css" type="text/css" rel="stylesheet" />
   (on pay.universalecom.com the path is /op/includes/css/op-course.css)
   Removing that line puts every page back as it is today.
   style.css, chapters.css, menu.css and lytebox.css are never edited.

   REQUIRED with this file: both header templates need the phone line
     <meta name="viewport" content="width=device-width, initial-scale=1" />
   Without it a phone draws the page 980px wide and shrinks it, and none of
   the phone rules below can run.

   Colours: bright blue header #1d4ed8 -> #3b82f6 · main buttons #2563eb
     links/accents #1d4ed8 · green Continue · light page #f4f8ff · Montserrat
   Chapter Continue: green, matching the phone page.

   Parts
     0  Colours, page, header, footer
     1  Registration layout and step bar
     2  Form fields (register, username, payment, login, edit profile)
     3  Messages (errors, returning student box)
     4  Buttons
     5  Shipping options
     6  Payment summary
     7  Login
     8  Student Center
     9  Chapter pages
    10  Final exam (timer bar, tap-anywhere answers)
    11  Pass page
    12  Phones
   ========================================================================== */

/* ---------- 0. Colours, page, header, footer ---------- */
:root {
  --op-navy:   #0f1f4b;  /* headings */
  --op-navy2:  #1d4ed8;  /* header start */
  --op-hdr2:   #3b82f6;  /* header end */
  --op-blue:   #1d4ed8;  /* links, accents */
  --op-sky:    #eaf1ff;
  --op-maroon: #2563eb;  /* main buttons: bright blue (was maroon) */
  --op-maroon-hv: #1d4ed8;
  --op-ink:    #1c2433;
  --op-slate:  #55627a;
  --op-rule:   #dfe5ec;
  --op-page:   #f4f8ff;
  --op-ok:     #0b6b4f;  --op-ok-bg:  #e6f5ef;
  --op-err:    #b42318;  --op-err-bg: #fef3f2;
  --op-warn-bg:#fff6e5;  --op-warn:   #8a5a00;
  --op-head: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --op-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
/* html:root beats the page's own inline  html{background:...}  rule */
html:root { background: var(--op-page) !important; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--op-body);
  color: var(--op-ink);
  background: var(--op-page);
  -webkit-text-size-adjust: 100%;
}
#wrapper { width: auto; }
body h1, body h2, body h3 { font-family: var(--op-head); color: var(--op-navy); letter-spacing: -.01em; }
body h2, body h3 { color: var(--op-blue); }
body p { font: inherit; line-height: 1.6; margin: 0 0 16px; }
body a { color: var(--op-blue); }

/* Header: one compact navy bar, logo left, links right */
#internal_header_container {
  height: auto;
  background: linear-gradient(100deg, var(--op-navy2) 0%, #2563eb 50%, var(--op-hdr2) 100%);
  border-bottom: 3px solid #93c5fd;
  box-shadow: 0 2px 12px rgba(37,99,235,.25);
}
#internal_header_container #header {
  position: static;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  width: auto; max-width: 1080px; margin: 0 auto; padding: 12px 20px;
}
#internal_header_container #internal_logo { position: static; }
#internal_header_container #internal_logo img { display: block; max-width: 300px; width: 100%; height: auto; }
#internal_header_container ul {
  position: static; top: auto; right: auto;
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none;
}
#header ul li { display: block; padding: 0; }
#header ul li a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font: 700 .9rem/1.3 var(--op-head); color: #fff; text-decoration: none;
}
#header ul li a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Login page header (different template: #header > #logo, then #landing_nav) */
#wrapper > #header {
  width: auto; height: auto; margin: 0; padding: 14px 20px;
  background: linear-gradient(100deg, var(--op-navy2) 0%, #2563eb 50%, var(--op-hdr2) 100%);
}
#wrapper > #header #logo { width: auto; max-width: 1080px; margin: 0 auto; float: none; }
#wrapper > #header #logo img { display: block; max-width: 300px; width: 100%; height: auto; }
#landing_nav {
  width: auto; height: auto; margin: 0; padding: 0 12px;
  background: #2563eb; border-bottom: 3px solid #93c5fd;
}
#landing_nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto; padding: 6px 0; list-style: none; max-width: 1080px; }
#landing_nav ul li { float: none; display: block; padding: 0; border: 0; background: none; }
#landing_nav ul li a { display: block; padding: 8px 16px; border-radius: 999px; font: 700 .9rem/1.3 var(--op-head); color: #fff; text-decoration: none; }
#landing_nav ul li a:hover { background: rgba(255,255,255,.14); }

/* Login / Logout / Register on dmvoperatorcourse.com pages */
#reg_log { position: static; width: auto; display: flex; align-items: center; gap: 8px; order: 3; }
#reg_log #log, #reg_log #reg { float: none; margin: 0; width: auto; height: auto; background: none; font: 700 .9rem/1.3 var(--op-head); }
#reg_log #log a { display: block; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; }
#reg_log #reg a { display: block; border-radius: 999px; background: var(--op-maroon); color: #fff; text-shadow: none; }
#reg_log #reg a div { padding: 9px 18px; }
/* Signed in (the Logout link shows): hide the Register button */
#reg_log:has(a[href*="quit.php"]) #reg { display: none; }

/* Page body: one white card */
#content, #content.round {
  width: auto; max-width: 1040px;
  margin: 24px auto 0; padding: 28px 32px;
  background: #fff; border: 1px solid var(--op-rule); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(1,8,45,.04), 0 10px 30px rgba(1,8,45,.06);
  box-sizing: border-box;
}
#content::after { content: ""; display: block; clear: both; }

/* Footer */
#footer_container { margin-top: 32px; padding: 0 16px 24px; background: none; border: 0; }
#footer_container #footer { width: auto; max-width: 1040px; }
#footer ul { margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
#footer ul li { display: block; padding: 0; font-size: .95rem; }
#footer ul li a { display: block; padding: 8px 14px; color: var(--op-blue); font-weight: 700; }
#footer ul li a:hover { color: var(--op-navy); }
#copyright { color: var(--op-slate); font-size: .8rem; }

/* ---------- 1. Registration layout and step bar ---------- */
#registration_left_panel {
  float: left; width: 210px; margin: 0; padding: 0 22px 0 0;
  border-right: 1px solid var(--op-rule); box-sizing: content-box;
}
#registration_left_panel h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
#registration_left_panel p { font-size: .9rem; color: var(--op-slate); }
#registration_left_panel { counter-reset: step; }
#registration_left_panel .reg_bread,
#registration_left_panel #reg_bread {
  counter-increment: step;
  margin: 0 0 8px; padding: 0; background: none; border: 0;
  text-align: left; text-transform: none;
  font: 700 .95rem/1.3 var(--op-head);
}
#registration_left_panel .reg_bread .bread_container,
#registration_left_panel #reg_bread #bread_container {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1.5px solid var(--op-rule); border-radius: 12px;
  color: var(--op-slate); background: #fff;
}
#registration_left_panel .bread_container::before,
#registration_left_panel #bread_container::before {
  content: counter(step);
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; background: var(--op-sky); color: var(--op-blue);
}
/* The step you are on */
#registration_left_panel #reg_bread #bread_container {
  color: #fff; background: var(--op-navy); border-color: var(--op-navy);
}
#registration_left_panel #bread_container::before { background: var(--op-maroon); color: #fff; }

#registration_panel, #content #right_panel {
  float: none; width: auto; margin: 0 0 0 254px; padding: 0;
}
#registration_container { width: auto; max-width: 560px; margin: 0; }

/* Course intro and DMV notes */
#welcome h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 10px; color: var(--op-navy); }
#welcome p { line-height: 1.6 !important; color: var(--op-ink); }
#welcome p a {
  display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--op-sky); font-weight: 700; text-decoration: none;
}
#tvs_notes { margin: 0 0 18px; padding: 14px 18px; background: var(--op-sky); border-radius: 12px; }
#tvs_notes ul { padding: 0 0 0 20px; margin: 0; }
#tvs_notes ul li { padding: 0 0 8px; font-size: .95rem; line-height: 1.5; }
#tvs_notes ul li:last-child { padding-bottom: 0; }

/* Sections of the form */
.registration_subdivision {
  width: auto; margin: 0 0 18px; padding: 18px 20px 6px;
  background: #fff; border: 1px solid var(--op-rule); border-radius: 14px;
}
.subdivision_title {
  margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--op-rule);
  font: 800 1.05rem/1.3 var(--op-head); color: var(--op-navy);
}

/* ---------- 2. Form fields ---------- */
#registration_container .row,
#login_container .row .form_entry {
  margin: 0 0 14px; padding: 0; background: none; border: 0; text-align: left;
}
#registration_container label,
#registration_container label.form,
.form_entry label {
  display: block; float: none; padding: 0 0 6px;
  font: 700 .95rem/1.35 var(--op-body); color: #34405a;
}
#registration_container .desc, .desc { font-size: .82rem; font-weight: 400; color: var(--op-slate); }
#registration_container .contact_field,
.form_entry .contact_field,
#refer input,
#content input[type="text"],
#content input[type="password"],
#content input[type="email"],
#registration_container select,
#content select {
  box-sizing: border-box;
  min-height: 48px; padding: 10px 14px;
  font: 16px/1.3 var(--op-body); color: var(--op-ink);   /* 16px stops iPhone zooming in */
  background-color: #fff;
  border: 1.5px solid #c6d0dc; border-radius: 10px;
}
#registration_container .contact_field,
.form_entry .contact_field,
#content input[name="coupon"] { width: 100%; }
/* the page sets these two widths inline; the field must fill its row */
#content input[name="cardNum"] { width: 100% !important; }
#content input[name="cvc"]     { width: 120px !important; }
#content input[disabled], #content input[style*="f1f1f1"] { background: #f2f5f8 !important; color: var(--op-slate); }
#content input:focus, #content select:focus { outline: none; border-color: var(--op-blue); box-shadow: 0 0 0 4px rgba(29,78,216,.15); }
#content select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2334405a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 12px;
}
#registration_container .row > select { width: 100%; }

/* Rows with more than one box: date of birth, card expiration */
#registration_container .row:has(select[name="dobMonth"]),
#registration_container .row:has(select[name="expMonth"]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--op-slate); font-weight: 700;
}
#registration_container .row:has(select[name="dobMonth"]) > label,
#registration_container .row:has(select[name="expMonth"]) > label { flex: 0 0 100%; }
#registration_container .row:has(select[name="dobMonth"]) > select { flex: 1 1 0; min-width: 0; }
#registration_container .row:has(select[name="expMonth"]) > select { flex: 1 1 0; min-width: 0; }
#registration_container .row .note,
#content .note { display: block; margin-top: 6px; font-size: .85rem; color: var(--op-slate); }
#registration_container .row .note br, #registration_container .row:has(input[name="cvc"]) > br { display: none; }

/* School modality: three tap-anywhere chips */
#registration_container .row:has(.mod) { display: flex; flex-wrap: wrap; gap: 8px; }
#registration_container .row:has(.mod) > label { flex: 0 0 100%; }
#registration_container .row:has(.mod) > .clear { display: none; }
#registration_container .mod {
  position: relative; float: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px 11px 40px; min-height: 46px; box-sizing: border-box;
  font-size: 1rem; font-weight: 600;
  border: 1.5px solid #c6d0dc; border-radius: 999px; background: #fff; cursor: pointer;
}
#registration_container .mod input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; top: 0; right: 0;
}
#registration_container .mod::before {
  content: ""; position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border: 2px solid #9aa8bb; border-radius: 5px; background: #fff;
}
#registration_container .mod:has(input:checked) { border-color: var(--op-blue); background: var(--op-sky); }
#registration_container .mod:has(input:checked)::before {
  border-color: var(--op-blue); background: var(--op-blue)
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5 10 3 3 7-7'/%3e%3c/svg%3e") center/14px no-repeat;
}
#registration_container .mod:has(input:focus-visible) { outline: 3px solid var(--op-navy); outline-offset: 2px; }

/* Notifications opt-in: checkbox beside its label */
#registration_container .row:has(input.check) { display: flex; align-items: center; gap: 12px; }
#registration_container .row:has(input.check) > label { flex: 1 1 auto; padding: 0; }
#registration_container .row:has(input.check) > .clear { display: none; }
#registration_container input.check { width: 24px; height: 24px; margin: 0; accent-color: var(--op-blue); order: -1; }
#refer { margin-top: 10px; padding: 0; font-size: .95rem; background: none; }
#refer input { width: 100%; margin-top: 6px; }

/* ---------- 3. Messages ---------- */
/* Error lines the pages print in red (registration, username, login) */
#registration_panel > div[style*="color:red"],
#content #right_panel > div[style*="color:red"],
#login_container > div[style*="color:red"],
#content > p.error {
  margin: 0 0 18px; padding: 14px 16px;
  color: var(--op-err) !important; background: var(--op-err-bg);
  border: 1px solid #f4b7b0; border-left: 5px solid var(--op-err); border-radius: 10px;
  font-size: .98rem; line-height: 1.5; text-align: left;
}
#registration_panel > p.error:empty, #content #right_panel > p.error:empty { display: none; }
#login_container #forgot_password { margin-top: 8px; }
#login_container #forgot_password a { font-weight: 800; color: var(--op-blue); text-decoration: underline; }

/* "It looks like you've studied with us before!" — calm, clear, not alarm-red */
#overwrite {
  margin: 0 0 20px; padding: 18px 20px;
  background: var(--op-warn-bg); border: 1px solid #f0d49a; border-left: 5px solid #d99a00; border-radius: 12px;
  color: var(--op-ink); font-size: 1rem; font-weight: 400;
}
#overwrite h2[style] { color: var(--op-navy) !important; font-size: 1.15rem; margin: 0 0 8px; }
#overwrite h2[style]:last-child { color: var(--op-warn) !important; font-size: .95rem; font-weight: 700; margin: 12px 0 0; }
#overwrite h2[style]:last-child br { display: none; }
#overwrite p { color: var(--op-ink); font-size: .98rem; }
#overwrite input[type="button"] { font-size: 1rem !important; padding: 12px 22px !important; }

/* ---------- 4. Buttons ---------- */
#content input[type="submit"]:not([value*="ontinue"]),
#content input[type="button"]:not([value*="ontinue"]),
#content #upgrade_button a,
#content a[href*="payment.php"],
#post_test + br + p a,
#content a[href$="home.php"] {
  display: inline-block; min-height: 50px; margin: 6px 4px; padding: 12px 28px; box-sizing: border-box;
  font: 800 1.02rem/1.3 var(--op-head); letter-spacing: .01em;
  color: #fff; background: var(--op-maroon);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
  -webkit-appearance: none; appearance: none;
}
#content input[type="submit"]:not([value*="ontinue"]):hover, #content input[type="button"]:not([value*="ontinue"]):hover, #content a[href*="payment.php"]:hover { background: var(--op-maroon-hv); color: #fff; }
/* Back is quiet */
#content input[type="button"][value="Back"] {
  color: var(--op-navy); background: #fff; border: 1.5px solid #c6d0dc; box-shadow: none;
}
#content input[type="button"][value="Back"]:hover { background: var(--op-sky); }
/* Archive and Proceed: the returning-student action, blue */
#overwrite input[type="button"] { background: var(--op-blue); box-shadow: 0 4px 12px rgba(29,78,216,.25); }
#content input:focus-visible, #content a:focus-visible { outline: 3px solid var(--op-navy); outline-offset: 3px; }
/* Button rows sit centred with room to tap */
#content div[align="center"]:has(> input[type="submit"]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- 5. Shipping options ---------- */
#shipping_header {
  margin: 0 0 16px; padding: 18px 20px; text-align: left;
  background: var(--op-sky); border: 0; border-radius: 14px;
}
#shipping_header h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
#shipping_header #process_list { margin: 0 0 10px !important; padding-left: 20px; }
#shipping_header #process_list li { margin: 0 !important; font-size: .92rem !important; }
#shipping_header > div[style] { background: #fff !important; border-radius: 10px; font-size: .92rem !important; line-height: 1.5; }
form[name="form1"] .shipping_option {
  position: relative; margin: 0 0 10px; padding: 14px 16px 14px 48px;
  background: #fff; border: 1.5px solid #c6d0dc; border-radius: 12px; cursor: pointer;
}
form[name="form1"] .shipping_option > input[type="radio"] {
  position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; margin: 0; accent-color: var(--op-blue);
}
/* the whole card is the tap target (the label stretches over it) */
form[name="form1"] .shipping_option > label { display: block; font: 700 1.05rem/1.4 var(--op-head); color: var(--op-navy); cursor: pointer; }
form[name="form1"] .shipping_option > label::after { content: ""; position: absolute; inset: 0; }
form[name="form1"] .shipping_option .shipping_desc { display: block; margin-top: 2px; font: 400 .93rem/1.5 var(--op-body); color: var(--op-slate); }
form[name="form1"] .shipping_option .price { float: right; margin: 0 0 0 12px; font: 800 1.05rem/1.4 var(--op-head); color: var(--op-navy); }
form[name="form1"] .shipping_option:has(input:checked) { border-color: var(--op-blue); background: var(--op-sky); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
/* Coupon box */
form[name="form1"] .shipping_option:has(input[name="coupon"]) { padding: 16px; cursor: default; text-align: left; }
form[name="form1"] .shipping_option:has(input[name="coupon"]) div[align="center"] { text-align: left; font-weight: 700; }
form[name="form1"] .shipping_option input[name="coupon"] { display: block; margin-top: 6px; }

/* ---------- 6. Payment summary ---------- */
#registration_container .price_row {
  width: auto; margin: 0 0 8px; padding: 16px 18px; text-align: left;
  background: var(--op-sky); border: 0; border-radius: 14px;
}
#registration_container label.price {
  float: none; text-align: left; font: 600 1rem/1.5 var(--op-body); color: var(--op-ink); padding: 2px 0;
}
#registration_container label.price:last-of-type {
  margin-top: 8px; padding-top: 10px; border-top: 2px solid var(--op-navy);
  font: 800 1.2rem/1.4 var(--op-head); color: var(--op-navy);
}
#registration_container > br { display: none; }
#registration_container .divider {
  margin: 22px 0 12px; padding: 0 0 8px; background: none; border: 0; border-bottom: 1px solid var(--op-rule);
  text-align: left; text-transform: none; font: 800 1.05rem/1.3 var(--op-head); color: var(--op-navy);
}

/* ---------- 7. Login ---------- */
#login_container { width: auto; max-width: 440px; margin: 8px auto 24px; text-align: left; }
#login_container h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 16px; text-align: center; }
#login_container form > br { display: none; }
#login_container .row .form_entry input,
.form_entry input { width: 100%; }
#login_container form > input[type="submit"] { display: block; width: 100%; margin: 8px 0 0; }

/* ---------- 8. Student Center ---------- */
#menu_container { width: 100%; }
#menu_header { padding-bottom: 16px; }
#menu_header #welcome { float: none; font: 800 1.3rem/1.3 var(--op-head); color: var(--op-navy); margin-bottom: 12px; text-align: left; }
#menu_header ul { float: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#menu_header ul li { float: none; margin: 0; padding: 0; font: 700 1rem/1.3 var(--op-head); list-style: none; }
#menu_header ul li a {
  display: block; padding: 10px 18px; border-radius: 999px; text-decoration: none !important;
  background: var(--op-sky); color: var(--op-navy) !important;
}
#menu_header ul li#link_continue:not(:has(a)) { padding: 10px 4px; color: var(--op-ok); }
#menu_header ul li#link_continue a { background: var(--op-maroon); color: #fff !important; }
#menu_header ul li#link_logout a { background: #fff; border: 1.5px solid #c6d0dc; color: var(--op-slate) !important; }
/* the red "re-register for the 4-Hour" line */
#menu_header > div[style*="aa0000"] {
  margin-top: 16px !important; padding: 12px 16px; text-align: left;
  color: var(--op-navy) !important; background: var(--op-warn-bg); border-left: 5px solid #d99a00; border-radius: 10px;
}
.notice.round { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--op-rule); border-radius: 12px; font-size: .95rem; background: #fafcfd; }
.notice h3 { font-size: 1.05rem; margin: 0 0 4px; }
.notice img { max-width: 64px; height: auto; }

/* Progress bar and chapter table fit the screen */
#content table[height="300"], #content table[height="300"] > tbody, #content table[height="300"] > tbody > tr, #content table[height="300"] > tbody > tr > td { display: block; width: 100% !important; height: auto; padding: 0 !important; }
#content table[height="300"] > tbody > tr > td:empty,
#content table[height="300"] > tbody > tr > td[width="174"] { display: none; }
#prog_per { font: 800 1.1rem/1.3 var(--op-head); color: var(--op-navy); text-align: left; margin-bottom: 4px; }
#prog_bar { border: 0; border-radius: 999px; overflow: hidden; background: #e3e9f0; height: 14px; }
#prog_bar img { display: block; width: 100% !important; height: 14px !important; }
#menu_table { width: 100% !important; border-radius: 12px; overflow: hidden; border: 1px solid var(--op-rule); }
#menu_table .menu_header td { padding: 10px 8px; background: var(--op-navy); font: 700 .9rem/1.3 var(--op-head); }
#menu_table td.light { background: #f6f8fb; font-size: .9rem !important; border-bottom: 1px solid var(--op-rule); }
#menu_table td.dark { border-bottom: 1px solid var(--op-rule); }
#menu_table ul { margin: 0; padding: 8px 0; }
#menu_table .sections { font-size: 1rem; padding: 4px 12px; }
#menu_table .sections a div { color: var(--op-blue); font-weight: 700; }
#content table.menu_footer { width: 100% !important; margin-top: 10px; border: 1px solid var(--op-rule) !important; border-radius: 12px; background: #f6f8fb; }
#content table.menu_footer td { padding: 12px 8px; font-size: 1rem; }

/* Chapter review pop-up (lytebox) fits a phone */
#lbOuterContainer { max-width: 96vw !important; box-sizing: border-box; }
#lbIframeContainer { padding: 6px !important; }
#lbIframeContainer iframe { width: 100% !important; max-width: 100% !important; height: 70vh !important; }
#lbDetailsContainer { max-width: 96vw !important; }

/* ---------- 9. Chapter pages (chapters.css) ---------- */
#content #main_chapter_container { float: none; width: auto; max-width: 780px; margin: 0 auto; padding: 8px 0; text-align: left; }
#content #content_chapter_container { padding: 0; font-size: 17px; line-height: 1.65; }
#content #content_chapter_container p,
#content #content_chapter_container li { font-family: var(--op-body); font-size: 17px; line-height: 1.65; }
#content .chapter_title {
  width: auto; height: auto; padding: 0 0 8px; margin: 0 0 16px; background: none;
  font: 800 1.7rem/1.25 var(--op-head); color: var(--op-navy); letter-spacing: -.01em; border-bottom: 3px solid var(--op-maroon);
}
#content .section_title { padding: 18px 0 6px; font: 800 1.3rem/1.3 var(--op-head); color: var(--op-blue); }
#content .section_sub { padding: 14px 0 4px; font: 700 1.1rem/1.3 var(--op-head); color: var(--op-navy); }
#content #content_chapter_container img,
#content #main_chapter_container img { max-width: 100%; height: auto; }
#content #main_chapter_container table,
.mainbox table { margin: 16px 0; max-width: 100%; }
#content #chapter_tag { border-radius: 12px; font-size: .95rem; }
/* Timer: one bar pinned across the top of the screen (chapter pages and the final exam).
   The chapter Continue button is left as it is. */
#content #Timer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
  width: auto; min-height: 54px; margin: 0; padding: 8px 16px; box-sizing: border-box;
  font: 800 1.05rem/1.3 var(--op-head); color: var(--op-ok);
  background: #fff; border-bottom: 3px solid var(--op-hdr2); box-shadow: 0 4px 14px rgba(15,31,75,.12);
}
#content #TimerText { font: 800 1.45rem/1.2 var(--op-head); color: #b42318; font-variant-numeric: tabular-nums; }
/* Time is up (the page swaps the countdown for "You can move on now!") */
#content #Timer:not(:has(#TimerText)) { background: var(--op-ok-bg); border-bottom-color: var(--op-ok); }
#content #Timer:not(:has(#TimerText))::after { content: "Scroll down and click Continue."; font-weight: 700; color: var(--op-ink); }
body:has(#Timer) { padding-top: 54px; }
#content div[align="center"]:has(> #Timer) { height: 0; }

/* The note about the timer: a calm blue info box, not a red alarm */
#content #course_note {
  margin: 0 0 20px; padding: 14px 16px; text-align: left;
  font-size: .95rem; line-height: 1.5; color: var(--op-ink);
  background: var(--op-sky); border-left: 5px solid var(--op-hdr2); border-radius: 10px;
}
#content #course_note div[align="center"] { text-align: left; margin-top: 6px; }
#content #course_note strong[style] { color: var(--op-navy) !important; }

/* Continue: big and green, easy to tap */
#content #Continue {
  width: 100%; max-width: 520px; margin: 24px auto 8px; padding: 0; line-height: 1.2; box-sizing: border-box;
  background: linear-gradient(#e4f69c, #b9df52); border: 1px solid #9cc43e; border-radius: 10px; font-size: 1.2rem;
}
#content #Continue br, #content #Continue_disabled br { display: none; }
#content #Continue a { display: block; padding: 14px 20px; color: #1f4d5a; font: 800 1.2rem/1.2 var(--op-head); text-decoration: none; }
#content #Continue_disabled {
  width: 100%; max-width: 520px; margin: 24px auto 8px; padding: 14px 20px; line-height: 1.2; box-sizing: border-box;
  background: #eef1f5; border: 1px solid #d5dbe3; border-radius: 10px; color: #9aa6b5; font: 800 1.2rem/1.2 var(--op-head);
}

/* Text-size bar above the chapter */
#content #dock {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  width: auto; height: auto; margin: 0 0 16px; padding: 10px 14px; box-sizing: border-box;
  background: #f3f6fb; border: 1px solid var(--op-rule); border-radius: 12px;
}
#content #dock .dock_content { float: none; width: auto; padding: 0; font: 700 .9rem/1.4 var(--op-head); color: var(--op-slate); }
#content #dock .dock_content:first-child { color: var(--op-navy); }
#content #dock .dock_content a { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; margin: 0 0 0 4px; border-radius: 8px; background: #fff; border: 1px solid var(--op-rule); color: var(--op-blue); }
#content #content_chapter_container h2 { text-decoration: none; margin: 8px 0 14px; font: 800 1.6rem/1.25 var(--op-head); color: var(--op-navy); }
#content #content_chapter_container h3 { margin: 26px 0 10px; font: 800 1.3rem/1.3 var(--op-head); color: var(--op-blue); }
#content #content_chapter_container h4 { margin: 22px 0 8px; font: 700 1.1rem/1.3 var(--op-head); color: var(--op-navy); }
#content #main_chapter_container td { text-align: left; font-size: .95rem; }
#content #main_chapter_container td[bgcolor] { text-align: center; }

/* "You're not quite done yet" pay page (view.php): the fixed 741px table fits the screen */
#content > div[align="center"] > table#table1 { width: 100% !important; max-width: 100%; table-layout: fixed; }
#content table#table1 td { white-space: normal; overflow-wrap: anywhere; text-align: left; }
#content table#table1 font[size="4"] { font: 800 1.35rem/1.3 var(--op-head); color: var(--op-navy); }
#content table#table1 font[size="2"] { display: block; margin-top: 6px; font-size: .9rem; color: var(--op-slate); }
#content table#table1 a[href*="payment.php"] { margin: 12px 0 10px; padding: 14px 30px; font-size: 1.1rem; }
#content table#table1 img { vertical-align: middle; margin: 4px 4px 0 0; max-width: 60px; height: auto; }

/* ---------- 10. Final exam ---------- */
#content > div[align="center"] > p strong { color: var(--op-navy); }
/* Take The Test! */
#content form input#test {
  height: auto; min-height: 56px; margin: 8px 0; padding: 14px 34px;
  background: var(--op-maroon); font-size: 1.15rem;
}
#content #finaltest_review_container { margin: 0 0 20px; text-align: left; }
#content #finaltest_review_container > p[style] { color: var(--op-ink) !important; padding: 12px 16px; background: var(--op-sky); border-radius: 12px; }
#content #finaltest_review_container > a { display: block; width: 100%; text-decoration: none; }
#content #finaltest_review_container { justify-items: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
#content #finaltest_review_container > p,
#content #finaltest_review_container > .clear { grid-column: 1 / -1; }
#content #finaltest_review_container .finaltest_review {
  float: none; width: auto; margin: 0; padding: 12px 14px; height: 100%; box-sizing: border-box;
  font-size: .95rem; font-weight: 600; color: var(--op-blue);
  background: #fff; border: 1.5px solid var(--op-rule); border-radius: 10px;
}
#content #finaltest_review_container .finaltest_review:hover { border-color: var(--op-blue); background: var(--op-sky); }
form[name="finaltest"] > div[align="center"] { color: var(--op-slate); line-height: 1.6; }
#content #final_note {
  width: auto; max-width: 680px; margin: 12px auto; padding: 12px 16px; text-align: left;
  color: var(--op-warn); background: var(--op-warn-bg); border-left: 5px solid #d99a00; border-radius: 10px; font-weight: 700;
}
form[name="finaltest"] > div[style*="margin-left:20px"] { margin: 0 !important; }

#content .question {
  margin: 22px 0 10px; padding: 0;
  font: 700 1.08rem/1.5 var(--op-body); color: var(--op-navy);
}
/* Answers: the whole box is the tap target (the radio stretches over it) */
#content .answer {
  position: relative; margin: 0 0 8px; padding: 13px 14px 13px 48px; min-height: 52px; box-sizing: border-box;
  font-size: 1rem; line-height: 1.45;
  background: #fff; border: 1.5px solid #c6d0dc; border-radius: 12px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
#content .answer input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
#content .answer::before {
  content: ""; position: absolute; left: 16px; top: 15px;
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9aa8bb; background: #fff; box-sizing: border-box;
}
#content .answer:hover { border-color: var(--op-blue); }
#content .answer:has(input:checked) { border-color: var(--op-blue); background: var(--op-sky); font-weight: 700; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
#content .answer:has(input:checked)::before { border: 6px solid var(--op-blue); }
#content .answer:has(input:focus-visible) { outline: 3px solid var(--op-navy); outline-offset: 2px; }
form[name="finaltest"] input[type="submit"] { min-width: 240px; margin-top: 18px; }

/* Did-not-pass page (finaltest.php, "Sorry you didn't pass the test") */
#content .final { max-width: 680px; margin: 0 auto; text-align: left; }
#content .final > p:first-child {
  margin: 0 0 14px; padding: 14px 16px; text-align: center;
  font: 800 1.3rem/1.3 var(--op-head); color: var(--op-err); background: var(--op-err-bg); border-radius: 12px;
}
#content .final > div:has(> p > b) { display: inline-block; margin: 0 8px 10px 0; }
#content .final > div > p { margin: 0; padding: 8px 14px; background: #f3f6fb; border: 1px solid var(--op-rule); border-radius: 999px; font-size: .95rem; text-align: left; }
#content .final > div:has(> p > b):nth-of-type(3) { display: block; margin: 8px 0 8px; }
#content .final > div:has(> p > b):nth-of-type(3) > p { padding: 0; background: none; border: 0; font: 800 1.05rem/1.4 var(--op-head); color: var(--op-navy); }
#content .final > div[style*="background:#eee"] {
  margin: 0 0 8px !important; padding: 12px 14px 12px 40px !important; position: relative; text-align: left;
  background: #fff !important; border: 1.5px solid var(--op-rule); border-radius: 10px; font-size: .98rem; line-height: 1.45;
}
#content .final > div[style*="background:#eee"]::before { content: "\2717"; position: absolute; left: 14px; top: 11px; font-weight: 800; color: var(--op-err); }
#content .final + p { margin: 18px 0 0; text-align: center; }

/* ---------- 11. Pass page ---------- */
#content > div[align="center"] > div[align="center"][style*="font-size: 18px"] {
  width: auto !important; max-width: 520px; margin: 0 auto 8px; padding: 22px; border-radius: 16px; box-sizing: border-box;
  background: var(--op-ok-bg); color: var(--op-ok); font: 700 1.1rem/1.6 var(--op-head);
}
#content > div[align="center"] > div[align="center"][style*="font-size: 18px"] > div:first-child { font-size: 1.4rem; font-weight: 800; }
#post_test { margin-top: 20px; }
#post_shipping { width: auto; max-width: 560px; margin: 16px auto 0; padding: 18px 20px; border: 1px solid var(--op-rule); border-radius: 14px; text-align: left; }
#upgrade_button img { max-width: 100%; height: auto; }

/* ---------- 12. Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  #internal_header_container #header { padding: 10px 14px; gap: 6px 10px; }
  #internal_header_container #internal_logo img { max-width: 210px; }
  #header ul li a { padding: 7px 10px; font-size: .85rem; }
  #content, #content.round { margin: 12px 10px 0; padding: 18px 16px; border-radius: 14px; }

  /* Steps become a numbered bar across the top */
  #registration_left_panel { float: none; width: auto; padding: 0 0 14px; margin: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--op-rule); }
  #registration_left_panel > p, #registration_left_panel > br { display: none; }
  #registration_left_panel h1 { font-size: 1.2rem; margin-bottom: 10px; }
  #registration_left_panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  #registration_left_panel > h1 { grid-column: 1 / -1; }
  #registration_left_panel .reg_bread, #registration_left_panel #reg_bread { margin: 0; font-size: .7rem; }
  #registration_left_panel .bread_container, #registration_left_panel #bread_container {
    flex-direction: column; gap: 4px; padding: 8px 2px !important; text-align: center; border-radius: 10px;
  }
  #registration_panel, #content #right_panel { margin: 0; }
  .registration_subdivision { padding: 14px 14px 4px; }

  #reg_log { order: 0; }
  #menu_table .menu_header td:first-child, #menu_table td.light { display: none; }
  #menu_table td[colspan="2"] { width: auto; }
  #menu_table .sections > div, #menu_table .sections a div { float: none !important; margin: 0 !important; }

  #content #Timer { padding: 6px 10px; min-height: 48px; font-size: .95rem; }
  #content #TimerText { font-size: 1.25rem; }
  body:has(#Timer) { padding-top: 48px; }
  #content #main_chapter_container table { float: none; width: 100% !important; margin: 16px 0 !important; }
  #content #main_chapter_container td { display: block; width: auto !important; }
  #wrapper > #header { padding: 10px 14px; }
  #wrapper > #header #logo img { max-width: 220px; }
  #content table#table1 a[href*="payment.php"] { display: block; text-align: center; }
  .answer { padding-left: 46px; }
  form[name="finaltest"] > div[align="center"] br { display: none; }
}
@media (max-width: 380px) {
  #registration_left_panel .reg_bread, #registration_left_panel #reg_bread { font-size: .62rem; }
  #content input[type="submit"], #content input[type="button"] { width: 100%; margin: 4px 0; }
}
