/* NFMSS ASCP - front-end styles (Navy / Red brand) */
:root {
	--ascp-navy: #1b2a4a;
	--ascp-navy-dark: #121d33;
	--ascp-red: #c41230;
	--ascp-slate: #44576b;
	--ascp-light: #f2f4f7;
}

.ascp-catalog, .ascp-lesson, .ascp-dashboard { font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #1f1f1f; }

.ascp-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 700; color: var(--ascp-red); }

.ascp-tier-block { border: 1px solid #e3e7ed; border-radius: 8px; padding: 20px 24px; margin-bottom: 24px; background: #fff; }
.ascp-tier-block h2 { color: var(--ascp-navy); display: flex; align-items: center; gap: 10px; }

.ascp-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.ascp-badge-unlocked { background: #e5f4ea; color: #1e7b34; }
.ascp-badge-locked { background: var(--ascp-light); color: var(--ascp-slate); }

.ascp-module-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ascp-module-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.ascp-module-list li:last-child { border-bottom: none; }
.ascp-module-num { font-weight: 700; color: var(--ascp-navy); min-width: 90px; }
.ascp-module-title { flex: 1; }

.ascp-status { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.ascp-status-complete { color: #1e7b34; }
.ascp-status-locked { color: #9aa4b2; }
.ascp-status-link, a.ascp-status-link { background: var(--ascp-navy); color: #fff !important; text-decoration: none; }

.ascp-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--ascp-navy-dark); border-radius: 8px; overflow: hidden; margin: 16px 0; }
.ascp-video-wrap iframe { width: 100%; height: 100%; border: 0; }
.ascp-video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #cfd8e6; text-align: center; padding: 20px; }
.ascp-video-placeholder p:first-child { font-size: 32px; margin-bottom: 8px; }

.ascp-btn { display: inline-block; background: var(--ascp-red); color: #fff !important; border: none; padding: 10px 22px; border-radius: 6px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.ascp-btn:hover { opacity: .9; }

.ascp-quiz-question { border: 1px solid #e3e7ed; border-radius: 8px; padding: 14px 18px; margin-bottom: 14px; }
.ascp-quiz-question legend { font-weight: 700; color: var(--ascp-navy); padding: 0 6px; }
.ascp-quiz-option { display: block; padding: 6px 0; }

.ascp-exam-security-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--ascp-navy-dark); color: #fff; border-radius: 8px; padding: 12px 18px; margin-bottom: 10px; }
.ascp-exam-security-bar .ascp-btn { padding: 6px 14px; font-size: 13px; }
.ascp-exam-timer { font-weight: 700; font-size: 14px; }
.ascp-exam-flag-count { font-size: 13px; color: #ffb4bd; }
.ascp-exam-integrity-note { font-style: italic; margin-top: 0; }
.ascp-quiz-form { -webkit-user-select: none; user-select: none; }

/* Phase 3: proctoring consent + live camera preview */
.ascp-consent-overlay { position: fixed; inset: 0; background: rgba(18,29,51,0.85); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ascp-consent-box { background: #fff; border-radius: 10px; padding: 30px; max-width: 480px; text-align: center; }
.ascp-consent-box h3 { color: var(--ascp-navy); margin-top: 0; }
.ascp-consent-box p { color: var(--ascp-slate); font-size: 14px; line-height: 1.6; }
.ascp-consent-box .ascp-btn { margin: 6px; }
.ascp-consent-decline { background: #6b7686 !important; }

.ascp-proctor-preview { position: fixed; bottom: 16px; right: 16px; z-index: 9999; border: 3px solid var(--ascp-red); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.ascp-proctor-preview video { display: block; width: 160px; height: 120px; object-fit: cover; }

.ascp-quiz-result { margin-top: 14px; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.ascp-quiz-result.ascp-pass { background: #e5f4ea; color: #1e7b34; }
.ascp-quiz-result.ascp-fail { background: #fbeaec; color: #a3202f; }

.ascp-note { color: var(--ascp-slate); font-size: 14px; }
.ascp-locked-notice { background: var(--ascp-light); border-radius: 8px; padding: 20px 24px; }

/* Program grouping on the Courses catalog page */
.ascp-program-block { margin-bottom: 40px; }
.ascp-program-title { color: var(--ascp-navy); border-bottom: 3px solid var(--ascp-red); padding-bottom: 8px; display: inline-block; }

/* CAD reading-based lesson content */
.ascp-cad-lesson { border-top: 1px solid #eef1f4; padding: 24px 0; }
.ascp-cad-lesson h2 { color: var(--ascp-navy); font-size: 20px; }
.ascp-cad-lesson h3 { color: var(--ascp-red); font-size: 16px; margin-top: 20px; }
.ascp-cad-bullet { margin: 4px 0; }

.ascp-inline-kc { background: var(--ascp-light); border-left: 4px solid var(--ascp-navy); border-radius: 6px; padding: 16px 20px; margin: 18px 0; }
.ascp-inline-kc-q { margin-top: 0; }
.ascp-inline-kc-options { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ascp-inline-kc-option { text-align: left; background: #fff; border: 1px solid #d7dce3; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.ascp-inline-kc-option:hover { border-color: var(--ascp-navy); }
.ascp-inline-kc.ascp-answered .ascp-inline-kc-option { cursor: default; }
.ascp-inline-kc-option.ascp-kc-correct { background: #e5f4ea; border-color: #1e7b34; font-weight: 600; }
.ascp-inline-kc-option.ascp-kc-incorrect { background: #fbeaec; border-color: #a3202f; }
.ascp-inline-kc-explain { font-size: 13px; color: var(--ascp-slate); font-style: italic; margin-bottom: 0; }

.ascp-progress-bar { background: var(--ascp-light); border-radius: 999px; height: 12px; overflow: hidden; margin: 8px 0; }
.ascp-progress-fill { background: var(--ascp-red); height: 100%; }
.ascp-dashboard-tier { border: 1px solid #e3e7ed; border-radius: 8px; padding: 18px 22px; margin-bottom: 18px; }

/* Certificate */
.ascp-certificate { max-width: 900px; margin: 20px auto; }
.ascp-cert-border { border: 6px double var(--ascp-navy); padding: 50px 40px; text-align: center; background: #fff; }
.ascp-cert-kicker { text-transform: uppercase; letter-spacing: 2px; color: var(--ascp-slate); font-weight: 700; font-size: 13px; }
.ascp-cert-title { color: var(--ascp-navy); font-size: 34px; margin: 10px 0; }
.ascp-cert-sub { color: var(--ascp-red); font-weight: 700; margin-bottom: 26px; }
.ascp-cert-awarded-to { color: var(--ascp-slate); }
.ascp-cert-name { font-size: 28px; font-weight: 700; color: var(--ascp-navy); margin: 8px 0 20px; }
.ascp-cert-tier { font-size: 20px; font-weight: 700; color: var(--ascp-red); margin-bottom: 30px; }
.ascp-cert-meta { display: flex; justify-content: center; gap: 50px; margin: 20px 0; font-size: 13px; }
.ascp-cert-footer { font-size: 11px; color: #999; margin-top: 30px; font-style: italic; }

@media print {
	.ascp-no-print { display: none; }
	.ascp-cert-border { border-width: 4px; }
}
