/* ==========================================================================
   7 Days and Holidays Traffic School (affiliate 449, TVS #E9558)
   Registration + student pages, English and Spanish
   BUILD 2026-11-19-A

   One file. Loads on top of global.css, register.css, chapters.css, menu.css.
   Every rule starts with "html body" so it wins no matter where the link sits.
   Styling only: no page text, no form fields and no scripts are changed.

   BRAND COLOURS: change the four values below to rebrand for another school.
   ========================================================================== */

html {
	--brand: #1f3a5f;        /* main colour: headings, buttons, active step */
	--brand-dark: #162a45;   /* button hover */
	--accent: #e0a526;       /* gold line and highlights */
	--ink: #1f2933;          /* body text */
	--muted: #5b6673;        /* small print */
	--line: #d5dbe3;         /* borders */
	--soft: #f4f6f9;         /* page background and quiet panels */
	--ok: #1d7a46;
	--warn: #b42318;
}

/* ---------- 1. Base ---------- */

html body {
	background: var(--soft);
	color: var(--ink);
	font: normal 16px/1.5 -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	-webkit-text-size-adjust: 100%;
}
html body *, html body *::before, html body *::after { box-sizing: border-box; }
html body img { max-width: 100%; height: auto; }
html body a { color: var(--brand); }
html body h1, html body h2, html body h3 { color: var(--brand); font-family: inherit; }
html body .maincontent table { max-width: 100%; }

/* ---------- 2. Header and footer (same frame on every page) ---------- */

html body .hdr {
	max-width: 850px;
	margin: 16px auto 0;
	padding: 18px 24px;
	background: #fff;
	border-top: 4px solid var(--brand);
	border-bottom: 3px solid var(--accent);
	border-radius: 8px 8px 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
html body .hdr > div { margin: 0; }
html body .hdr > div:first-child { width: auto !important; }
html body .hdr > div:last-child { float: none !important; text-align: right; color: var(--muted); line-height: 1.4; }
html body .hdr img { max-height: 70px; width: auto; display: block; }
html body .hdr a span { color: var(--brand) !important; font-weight: bold; }
html body .hdr span[style*="padding-left"] { padding-left: 0 !important; display: block; color: var(--muted); }

html body .maincontent {
	max-width: 850px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
html body .ftr {
	max-width: 850px;
	margin: 0 auto 24px;
	border-top: 0;
	color: var(--muted);
	padding: 12px 16px;
}

/* ---------- 3. Buttons ---------- */

html body .maincontent input[type="submit"],
html body .maincontent input[type="button"] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	min-height: 46px;
	padding: 11px 26px;
	margin: 4px;
	font-family: inherit;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
	color: #fff;
	background: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 6px;
	cursor: pointer;
}
html body .maincontent input[type="submit"]:hover { background: var(--brand-dark); }
html body .maincontent input[type="button"] {
	color: var(--brand);
	background: #fff;
	border-color: var(--line);
}
html body .maincontent input[type="submit"]:disabled {
	opacity: .45;
	cursor: not-allowed;
}
html body .maincontent input[type="radio"],
html body .maincontent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	vertical-align: middle;
	accent-color: var(--brand);
}

/* ---------- 4. Registration: steps ---------- */

html body #registration_left_panel {
	float: none;
	width: auto;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
html body #registration_left_panel br { display: none; }
html body #registration_left_panel h1,
html body #registration_left_panel h2 {
	flex: 0 0 100%;
	margin: 0;
	font-size: 24px;
	font-weight: bold;
}
html body #registration_left_panel p {
	flex: 0 0 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--muted);
}
html body #registration_left_panel .reg_bread,
html body #registration_left_panel #reg_bread {
	flex: 1 1 0;
	min-width: 0;
	margin: 6px 0;
	padding: 0;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
	font-size: 13px;
	letter-spacing: .03em;
}
html body #registration_left_panel #reg_bread {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
html body #registration_left_panel .bread_container,
html body #registration_left_panel #bread_container {
	border: 0;
	padding: 9px 4px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- 5. Registration: form ---------- */

html body #registration_panel {
	float: none;
	width: auto;
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
}
html body #registration_panel > p { margin: 0 0 6px; padding: 0; }
html body #registration_container { width: auto; }

html body .registration_subdivision {
	width: auto !important;
	margin: 0 0 18px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
html body .subdivision_title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--accent);
	color: var(--brand);
	font-size: 18px;
}
html body .desc { font-size: 13px; color: var(--muted); }
html body .registration_subdivision > p { font-size: 14px !important; }

html body #registration_container .frm_row,
html body #registration_container .frm_row.dark,
html body #registration_container .row,
html body #registration_container .reg_row {
	margin: 0;
	padding: 10px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid #edf0f4;
	text-align: left;
}
html body #registration_container label.form {
	display: block;
	float: none;
	width: 100%;
	padding: 0 0 5px;
	font-size: 15px;
	color: var(--ink);
	text-align: left;
}
html body #registration_container label.form > div { width: auto !important; }

html body #registration_container .contact_field,
html body .form_entry .contact_field,
html body #refer input,
html body #registration_container select {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ink);
	background: #fff;
	border: 1px solid #b9c2ce;
	border-radius: 6px;
}
html body #registration_container .contact_field:focus,
html body #registration_container select:focus,
html body #login_panel .login_form:focus {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}
html body #registration_container input.check {
	width: 18px;
	min-height: 0;
	padding: 0;
	margin: 6px 0 0;
}
/* three-part dates sit side by side */
html body #registration_container #birthday select,
html body #registration_container select[name^="due"],
html body #registration_container select[name^="exp"],
html body #registration_container select[name="cardType"] {
	width: auto;
}
html body #registration_container input[name="cardNum"] { width: 100% !important; max-width: 320px; }
html body #registration_container input[name="cvc"] { width: 90px !important; }
html body #registration_container #leaID { width: 70px !important; }
html body #registration_container table[align="right"] { float: none; width: 100%; margin: 0; }
html body #registration_container td { text-align: left; }

/* Yes / No answers inside tables (security questions) */
html body #registration_container td label,
html body .maincontent form table td label {
	float: none;
	display: inline;
	width: auto;
	padding: 0 0 0 4px;
	font-weight: normal;
	font-size: 15px;
}
html body #registration_container table[cellspacing="5"],
html body .maincontent form > table[cellspacing="5"] {
	width: 100%;
	max-width: 520px;
	margin: 12px auto;
	border-collapse: collapse;
	font-size: 15px !important;
}
html body .maincontent table[cellspacing="5"] td {
	padding: 9px 6px !important;
	border-bottom: 1px solid #edf0f4;
	text-align: left;
	white-space: nowrap;
}
html body .maincontent table[cellspacing="5"] td:first-child { white-space: normal; width: 100%; }

html body ul.course_desc { margin: 4px 0 0 18px; list-style: disc; }
html body ul.course_desc li { font-size: 13px; }
html body #registration_container .reg_row ul.course_desc { margin-left: 18px; }

html body #registration_container .row_err {
	background: #fdecea;
	border: 1px solid var(--warn);
	border-radius: 6px;
	text-align: left;
}
html body #registration_container .row_err label { color: var(--warn); }
html body .maincontent .button { margin-top: 18px; text-align: center; }

/* ---------- 6. DMV legal notice: Proceed on top, notice underneath ---------- */

html body #tvs_disclaimer {
	display: flex;
	flex-direction: column;
	padding: 0;
}
html body #tvs_disclaimer > * { margin-left: 0; margin-right: 0; }
html body #tvs_disclaimer > div:first-child { order: -2; }
html body #tvs_disclaimer #proceed_container {
	order: -1;
	margin: 8px 0 18px !important;
	padding: 14px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 8px;
}
html body #tvs_disclaimer p { font-size: 14px; line-height: 1.55; }
html body #tvs_disclaimer > div:first-child p { font-size: 17px; color: var(--brand); }
html body ul#disclaimer_list { margin: 6px 0 16px; }
html body ul#disclaimer_list li { margin-left: 24px; font-size: 14px; }

/* ---------- 7. Upgrades (tracker offer) ---------- */

html body #shipping_header {
	margin: 0 0 14px;
	padding: 14px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 8px;
}
html body #shipping_header h1 { margin: 0; font-size: 20px; font-weight: bold; }
html body #shipping_header p { margin: 0; padding: 0; }
html body .postage_panel { margin: 0; padding: 0; }
html body .option,
html body .option_on,
html body .option_off {
	margin: 0 0 10px;
	padding: 16px;
	background: #fffaf0;
	border: 2px solid var(--accent);
	border-radius: 8px;
	font-size: 17px;
	color: var(--ink);
}
html body div.option:hover { background: #fff5dd; }
html body .option input { float: left; margin: 4px 10px 0 0; }
html body .option .envelope { float: left; margin: 0 10px 0 0; }
html body .option .envelope img { max-height: 44px; }
html body .option .price,
html body .price {
	float: right;
	margin: 0 0 0 10px;
	font-weight: bold;
	font-size: 18px;
	color: var(--brand);
}
html body .maincontent .note {
	display: block;
	margin: 10px 0 0;
	font-size: 13px !important;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	color: var(--muted);
}
html body .shipping_option {
	margin: 0 0 10px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
}
html body .shipping_option label.form {
	display: inline !important;
	float: none !important;
	width: auto !important;
}

/* ---------- 8. Payment ---------- */

html body #registration_container .price_row {
	width: auto;
	max-width: 380px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 8px;
	text-align: left;
}
html body #registration_container label.price {
	float: none;
	display: block;
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
	font-weight: normal;
	text-align: left;
	color: var(--ink);
}
html body #registration_container .price_row label.price:last-of-type {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
	font-size: 17px;
	font-weight: bold;
	color: var(--brand);
}
html body #registration_container .divider {
	margin: 18px 0 6px;
	padding: 0 0 6px;
	background: none;
	border: 0;
	border-bottom: 2px solid var(--accent);
	text-align: left;
	text-transform: none;
	font-size: 18px;
	color: var(--brand);
}
html body #registration_container .row > div[style*="width:300px"] { max-width: 100%; float: none !important; }
html body .payment-errors { color: var(--warn) !important; }

/* ---------- 9. Login ---------- */

html body #login_container { width: auto; margin: 10px auto 0; }
html body #login_container form br { display: none; }
html body #login_panel {
	width: auto !important;
	max-width: 380px;
	height: auto;
	margin: 16px auto;
	padding: 24px;
	background: #fff !important;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	color: var(--ink);
}
html body #login_panel .label {
	padding: 0 0 5px !important;
	text-align: left !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.3;
}
html body #login_panel .login_form {
	width: 100%;
	min-height: 46px;
	margin: 0 0 14px;
	padding: 9px 11px;
	font-size: 16px;
	border: 1px solid #b9c2ce;
	border-radius: 6px;
}
html body #login_panel > div[align="right"] { padding: 4px 0 0 !important; text-align: center; }
html body #login_panel input[type="submit"] { width: 100%; margin: 0; }
html body #login_container > div[style*="color:red"] {
	max-width: 380px;
	margin: 0 auto;
	padding: 12px 14px;
	background: #fdecea;
	border: 1px solid var(--warn);
	border-radius: 6px;
	color: var(--warn) !important;
	font-size: 14px;
	text-align: left;
}
html body #forgot_password { margin-top: 8px; }
html body #forgot_password a { color: var(--brand); font-weight: bold; text-decoration: underline; }

/* ---------- 10. Student center ---------- */

html body #menu_header { padding: 0 0 6px; }
html body #welcome { float: none; font-size: 17px; }
html body #due { width: auto; font-size: 14px; color: var(--muted); }
html body #due br { display: none; }
html body #menu_header ul {
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 4px;
	padding: 0;
	list-style: none;
}
html body #menu_header ul li,
html body #menu_header ul li#link_continue,
html body #menu_header ul li#link_edit,
html body #menu_header ul li#link_logout {
	float: none;
	width: auto !important;
	margin: 0;
	padding: 0;
	list-style: none;
	list-style-image: none;
	font-size: 15px;
}
html body #menu_header ul li a {
	display: block;
	padding: 11px 18px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--brand);
}
html body #menu_header ul li#link_continue a {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
html body #menu_header ul li#link_logout a { color: var(--warn); }

html body #progress_meter,
html body #progress_meter tbody,
html body #progress_meter tr,
html body #progress_meter td { display: block; width: auto !important; height: auto; }
html body #prog_per { font-weight: bold; color: var(--brand); }
html body #prog_bar {
	width: 706px;
	max-width: 100%;
	margin: 6px auto 16px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--soft);
}
html body #prog_bar img { display: block; max-width: none; transform-origin: left top; }
html body #menu_table { width: 100% !important; border: 1px solid var(--line); }
html body #menu_table td { padding: 10px 8px; font-size: 15px !important; }
html body #menu_table .menu_header td {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand);
	font-size: 14px !important;
}
html body #menu_table .light { background: var(--soft); border-bottom: 1px solid var(--line); }
html body #menu_table .dark { background: #fff; border-bottom: 1px solid #edf0f4; }
html body #menu_table ul { margin: 0; padding: 0; }
html body #menu_table .sections { padding: 0; font-size: 15px; }
html body #menu_table .sections a { color: var(--brand); }
html body #menu_table .sections a div { margin: 0 !important; }
html body .menu_footer {
	width: 100% !important;
	margin-top: 10px;
	background: var(--soft);
	border: 1px solid var(--line);
}
html body .menu_footer td { padding: 10px; border: 0; }

/* ---------- 11. Course chapter ---------- */

html body div#dock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
}
html body .dock_content { float: none; width: auto; font-family: inherit; font-size: 14px; color: var(--muted); }
html body .dock_content a {
	display: inline-block;
	min-width: 32px;
	margin: 0 0 0 6px;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	text-align: center;
	color: var(--brand);
}
html body #course_content { padding: 24px 8px 0; border: 0; }
html body #course_content h2 { padding: 10px 0; font-size: 24px; color: var(--brand); }
html body #course_content h3 { padding: 10px 0; font-size: 20px; color: var(--brand); }
html body #course_content h4 { padding: 8px 0; font-size: 17px; }
html body #course_content p,
html body #course_content p a,
html body #course_content ul li,
html body #course_content ol li { font-size: 15px; line-height: 1.65; }
html body #course_content ul,
html body #course_content ol { margin: 12px 0; padding-left: 28px; }
html body .joke_time { width: auto; margin: 0; }
html body .one_liners,
html body .insurance_claims,
html body .real_jokes {
	float: none;
	width: auto !important;
	margin: 10px 0 30px;
	overflow: hidden;
	border-width: 2px;
	border-radius: 8px;
}
html body .joke_text p { font-size: 14px !important; }

html body #Continue,
html body #Continue_disabled {
	width: auto;
	margin: 24px auto;
	padding: 0;
	background: none;
	border: 0;
	line-height: 1.2;
	font-size: 17px;
	text-align: center;
}
html body #Continue br,
html body #Continue_disabled br { display: none; }
html body #Continue a {
	display: inline-block;
	min-width: 220px;
	padding: 14px 30px;
	background: var(--brand);
	border-radius: 6px;
	color: #fff;
}
html body #Continue a:hover { background: var(--brand-dark); }
html body #Continue_disabled { color: var(--muted); }
html body #Timer { width: auto; margin: 20px auto 0; background: none; text-align: center; color: var(--ok); }

/* ---------- 12. Quiz, final exam and results ---------- */

html body .mainbox { padding: 0 4px; }
html body .mainbox p { font-size: 15px; }
html body .question { margin: 22px 0 6px; font-size: 17px; color: var(--ink); }
html body .answer { margin: 0 0 0 4px; padding: 7px 0; font-size: 15px; }
html body .answer label { display: inline; float: none; font-weight: normal; }
html body .explanation {
	margin: 8px 0 18px;
	padding: 12px 14px;
	background: var(--soft);
	border-left: 4px solid var(--accent);
	border-radius: 0 6px 6px 0;
	font-size: 14px;
}
html body .example { font-size: 13px; font-weight: bold; }
html body .final p { padding: 6px 0; font-size: 17px; }

html body #finaltest_review_container { margin: 0 0 20px; }
html body #finaltest_review_container > p { color: var(--ink) !important; font-size: 14px; }
html body .finaltest_review {
	width: calc(50% - 6px);
	margin: 3px;
	padding: 9px 10px;
	font-size: 14px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--brand);
}
html body #final_note {
	width: auto;
	margin: 12px 0;
	padding: 12px 14px;
	background: #fdecea;
	border: 1px solid var(--warn);
	border-radius: 6px;
	color: var(--warn);
}
html body #submit_container input[type="submit"] { font-size: 17px; padding: 13px 30px; }

html body #achtung,
html body #acknowledgement {
	margin: 0 0 16px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	text-align: left;
}
html body #achtung { background: #fffaf0; border-color: var(--accent); }
html body #achtung h2,
html body #acknowledgement h2 { font-size: 19px; }
html body #achtung p,
html body #acknowledgement p { padding: 0 0 10px; font-size: 15px; }

/* "Return to Student Center" box on the results page */
html body .maincontent div[style*="A02020"] {
	width: auto !important;
	max-width: 300px;
	padding: 13px 18px;
	background: var(--brand) !important;
	border: 0 !important;
	border-radius: 6px;
}

/* ---------- 13. Phones ---------- */

@media only screen and (max-width: 640px) {
	html body .hdr {
		margin-top: 0;
		padding: 14px 16px;
		border-radius: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	html body .hdr > div:last-child { text-align: left; font-size: 13px; }
	html body .hdr img { max-height: 56px; }
	html body .maincontent { padding: 16px; border-radius: 0; }
	html body .registration_subdivision { padding: 14px; }
	html body #registration_left_panel h1,
	html body #registration_left_panel h2 { font-size: 21px; }
	html body #registration_left_panel .reg_bread,
	html body #registration_left_panel #reg_bread { font-size: 11px; }
	html body #registration_container .contact_field { width: 100%; }

	html body .maincontent input[type="submit"],
	html body .maincontent input[type="button"] { min-width: 120px; }

	/* progress bar keeps its true proportion on a narrow screen */
	html body #prog_bar img { transform: scaleX(tan(atan2(calc(100vw - 34px), 706px))); }

	html body #menu_table td { padding: 9px 5px; font-size: 14px !important; }
	html body #course_content { padding: 16px 0 0; }
	html body .img_l,
	html body .img_r { float: none; display: block; padding: 6px 0; text-align: center; }
	html body .joke_guy { display: none; }
	html body .finaltest_review { width: 100%; margin: 3px 0; }
	html body .answer { margin-left: 0; }
	html body #achtung,
	html body #acknowledgement { padding: 14px; }
}
/* 7 Days and Holidays - FIX 2026-11-23-B: Continue button + videos */
:root body a#Continue{display:block!important;visibility:visible!important;opacity:1!important;
  box-sizing:border-box;width:100%!important;max-width:340px;margin:24px auto 28px!important;
  padding:16px 20px!important;border:0!important;border-radius:10px;
  background:#1e3a5f!important;color:#fff!important;
  font:700 18px/1.2 Arial,Helvetica,sans-serif!important;text-align:center;text-decoration:none!important;
  box-shadow:0 4px 12px rgba(30,58,95,.25);line-height:1.2!important}
:root body a#Continue:hover,:root body a#Continue:focus-visible{background:#152b47!important;outline:3px solid rgba(30,58,95,.35);outline-offset:2px}
:root body a#Continue::after{content:" \2192"}
:root body a#Continue ~ br,:root body .mainbox:has(> a#Continue) > br{display:none}
:root body .mainbox:has(> a#Continue) > span[style*="bold"]{display:block;margin:18px 0 0}
:root body div#Continue a{color:#fff!important}
:root body #course_content :is(video,iframe,embed,object),
:root body .movie_container,:root body .movie_label,:root body .movie_sub,
:root body div[id^="transcript"],:root body div[id^="transcript"] p.content{max-width:100%!important;box-sizing:border-box}
:root body #course_content :is(video,embed,object){height:auto!important}
:root body #course_content iframe{width:100%!important;height:auto!important;aspect-ratio:16/9}
