/* OWG Induction Trail — front-end styles. All classes are prefixed
   "owg-" to avoid colliding with the active theme or other plugins. */

.owg-induction-root { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1d2327; }
.owg-induction-root h2 { margin-top: 0; font-size: 22px; }
.owg-induction-root h3 { font-size: 17px; margin: 18px 0 6px; }

.owg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.owg-logo { height: 96px; width: auto; max-width: 100%; }
.owg-header-right { display: flex; align-items: center; gap: 14px; font-size: 14px; }
@media (max-width: 480px) {
    .owg-logo { height: 64px; }
}
.owg-learner-name { font-weight: 600; }
.owg-link { color: #b5121b; text-decoration: none; }
.owg-link:hover { text-decoration: underline; }
.owg-linkbtn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }

.owg-progressbar-wrap { margin: 6px 0 20px; }
.owg-progressbar-label { font-size: 13px; color: #555; margin-bottom: 4px; }
.owg-progressbar-track { background: #e9e9e9; border-radius: 999px; height: 10px; overflow: hidden; }
.owg-progressbar-fill { background: linear-gradient(90deg, #b5121b, #e2401f); height: 100%; border-radius: 999px; transition: width .3s ease; }

.owg-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.owg-help { color: #555; font-size: 14px; margin-top: -4px; }
.owg-back-link { display: inline-block; margin-bottom: 12px; color: #555; text-decoration: none; font-size: 14px; }
.owg-back-link:hover { text-decoration: underline; }

.owg-field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.owg-field { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; box-sizing: border-box; }

.owg-btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid #ccc; background: #f5f5f5; color: #1d2327; text-decoration: none; cursor: pointer; font-size: 14px; margin-top: 16px; }
.owg-btn-primary { background: #b5121b; border-color: #b5121b; color: #fff; }
.owg-btn-primary:hover { background: #8f0e15; color: #fff; }
.owg-btn-disabled { opacity: .5; cursor: not-allowed; }

.owg-flash { padding: 12px 14px; border-radius: 6px; margin: 14px 0; font-size: 14px; }
.owg-flash-success { background: #eaf7ec; border: 1px solid #b7e1bd; color: #1e6b2c; }
.owg-flash-error { background: #fdecea; border: 1px solid #f3b8b3; color: #8a1c14; }

.owg-trail { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.owg-trail-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #eee; border-radius: 8px; }
.owg-status-completed { background: #f8fdf9; }
.owg-status-locked { opacity: .6; }
.owg-trail-badge { width: 32px; height: 32px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.owg-status-completed .owg-trail-badge { background: #2e9e46; color: #fff; }
.owg-trail-body { flex: 1; }
.owg-trail-body h3 { margin: 0 0 4px; font-size: 15px; }
.owg-trail-body p { margin: 0; font-size: 13.5px; color: #666; }
.owg-meta { font-size: 12.5px; color: #888; margin-top: 4px !important; }
.owg-tag { font-size: 11px; background: #fdf1d0; color: #8a6d1a; padding: 2px 6px; border-radius: 4px; }

.owg-timer { font-size: 13px; color: #777; }

.owg-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 14px 0; background: #000; border-radius: 8px; overflow: hidden; }
.owg-video-wrap iframe, .owg-video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.owg-slide { margin: 18px 0; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.owg-slide ul { margin: 0; padding-left: 20px; }
.owg-slide li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.5; }

.owg-quiz-question { margin: 20px 0; }
.owg-quiz-qtext { font-weight: 600; margin-bottom: 8px; }
.owg-opt { display: block; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.owg-opt:hover { background: #fafafa; }
.owg-opt input { margin-right: 8px; }

.owg-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.owg-table th, .owg-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }

.owg-certificate { text-align: center; padding: 48px 24px; }
.owg-cert-logo { height: 120px; margin-bottom: 16px; }
.owg-footer-note { text-align: center; font-size: 12.5px; color: #888; margin-top: 28px; }
.owg-cert-name { font-size: 24px; font-weight: 700; margin: 12px 0; }

@media print {
    .owg-header, .owg-back-link { display: none !important; }
}
