/* =====================================================================
 * Terliz design system
 * Mirrors the look of terlizdrivingschool.co.ke (theme "terliz" v1.3.1):
 * Poppins, orange + deep navy, pill buttons, rounded cards, road stripe.
 * Shared by the public pages, the login screens and the staff app.
 * ===================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
    --orange: #f26a0d;
    --orange-600: #d95a05;
    --orange-50: #fff1e6;
    --navy: #1c2566;
    --navy-700: #141b4d;
    --navy-900: #0d1238;
    --blue: #3b3f97;
    --ink: #111827;
    --text: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --sand: #fff7ef;
    --green: #25d366;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(17, 24, 39, .18);
    --shadow-lg: 0 30px 60px -20px rgba(20, 27, 77, .35);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--text);
    --bs-link-color: var(--orange-600);
    --bs-link-color-rgb: 217, 90, 5;
    --bs-link-hover-color: var(--navy);
    --bs-link-hover-color-rgb: 28, 37, 102;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
    --bs-primary: var(--orange);
    --bs-primary-rgb: 242, 106, 13;
}

body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--orange-600); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Buttons (pill) ---------- */
.tz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font: 600 .95rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.tz-btn:hover { transform: translateY(-1px); }
.tz-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }
.tz-btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(242, 106, 13, .7); }
.tz-btn--primary:hover, .tz-btn--primary:focus { background: var(--orange-600); color: #fff; }
.tz-btn--dark { background: var(--navy); color: #fff; }
.tz-btn--dark:hover { background: var(--navy-700); color: #fff; }
.tz-btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.tz-btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.tz-btn--white { background: #fff; color: var(--navy); }
.tz-btn--white:hover { color: var(--orange-600); }
.tz-btn--outline-white { border-color: rgba(255, 255, 255, .55); color: #fff; }
.tz-btn--outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.tz-btn--wa { background: var(--green); color: #fff; }
.tz-btn--wa:hover { background: #1fb457; color: #fff; }
.tz-btn--sm { padding: .55em 1em; font-size: .85rem; }
.tz-btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.tz-btn--block { display: flex; width: 100%; }

/* ---------- Top bar & header ---------- */
.tz-topbar { background: var(--navy-700); color: #cfd3f5; font-size: .82rem; }
.tz-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.tz-topbar p { margin: 0; display: flex; align-items: center; gap: .4em; }
.tz-topbar .bi-patch-check, .tz-topbar .bi-shield-check { color: var(--orange); }
.tz-topbar__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.tz-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.tz-topbar a:hover { color: var(--orange); }

.tz-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.tz-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }

.tz-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.tz-brand img { width: 54px; height: auto; }
.tz-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.tz-brand__name { font-weight: 800; font-size: 1.45rem; color: var(--orange); letter-spacing: .02em; text-transform: uppercase; }
.tz-brand__sub { font-weight: 600; font-size: .74rem; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.tz-brand:hover .tz-brand__name { color: var(--orange-600); }

.tz-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.tz-nav a { display: flex; align-items: center; gap: .4em; padding: .55em .9em; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.tz-nav a:hover, .tz-nav a.is-active { color: var(--orange-600); background: var(--orange-50); }
.tz-nav .tz-nav__count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; }

/* ---------- Page banner (navy gradient + orange slab + road) ---------- */
.tz-hero { position: relative; overflow: hidden; color: #d3d7f5; padding: 52px 0 84px;
    background: radial-gradient(700px 420px at 92% -8%, rgba(242, 106, 13, .45), transparent 62%),
                linear-gradient(155deg, var(--navy) 0%, var(--navy-700) 60%, var(--navy-900) 100%); }
.tz-hero::before { content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.tz-hero__slab { position: absolute; right: -8%; top: -40%; width: 40%; height: 190%; border-radius: 60px; background: linear-gradient(160deg, var(--orange), var(--orange-600)); transform: rotate(14deg); pointer-events: none; }
.tz-hero__slab--line { right: -12%; background: none; border: 2px solid rgba(255, 255, 255, .22); border-radius: 70px; }
.tz-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.tz-hero__inner--single { grid-template-columns: 1fr; }
.tz-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: .35em; line-height: 1.15; }
.tz-hero__intro { max-width: 600px; font-size: 1.06rem; margin: 0; }
.tz-hero__kicker { display: block; font-weight: 600; color: #ffb27a; margin-bottom: .4rem; }
.tz-hero--compact { padding: 30px 0 62px; }
.tz-hero--compact .tz-hero__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .15em; }

.tz-road { position: relative; height: 34px; background: #0a0e2c; border-top: 3px solid var(--orange); }
.tz-road::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 40px, transparent 40px 76px); }
.tz-road--thin { height: 18px; }
.tz-road--thin::after { top: 6px; height: 3px; }

.tz-chip { display: inline-flex; align-items: center; gap: .5em; padding: .4em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tz-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }

.tz-crumbs { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; }
.tz-crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.tz-crumbs a { color: #ffb27a; text-decoration: none; }
.tz-crumbs [aria-current] { color: #fff; }

.tz-photo { position: relative; margin: 0; padding: 8px; background: #fff; border-radius: 24px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.tz-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 17px; }
.tz-float-tag { position: absolute; right: -6px; bottom: -14px; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 700; font-size: .88rem; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .45); white-space: nowrap; transform: rotate(3deg); }
.tz-float-tag i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; }

/* ---------- Sections & headings ---------- */
.tz-section { padding: 64px 0; }
.tz-section--sand { background: var(--sand); }
.tz-eyebrow { display: inline-block; margin-bottom: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-600); }
.tz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tz-card--raised { border-color: transparent; box-shadow: var(--shadow-lg); }

/* ---------- Course cards ---------- */
.tz-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.tz-course { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 1.25rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tz-course::before { content: ""; position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--orange), var(--blue)); }
.tz-course__media { display: block; margin: 0 -1.25rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; background: #eef0f3; }
.tz-course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tz-course__class { display: inline-block; align-self: flex-start; padding: .3em .8em; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .04em; margin-bottom: .6rem; }
.tz-course__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; line-height: 1.3; }
.tz-course__text { font-size: .84rem; color: var(--muted); flex: 1; margin-bottom: .8rem; }
.tz-course__price { font-size: 1.4rem; font-weight: 800; color: var(--orange-600); line-height: 1; }
.tz-course__check { position: absolute; z-index: 2; top: .8rem; right: .8rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: transparent; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); font-size: 1.1rem; transition: all .15s; }

/* Selectable variant (radio inside a label) */
.tz-course-pick { cursor: pointer; }
.tz-course-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tz-course-pick:hover .tz-course { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tz-course-pick:hover .tz-course__media img { transform: scale(1.05); }
.tz-course-pick input:checked + .tz-course { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 106, 13, .25), var(--shadow); }
.tz-course-pick input:checked + .tz-course .tz-course__check { background: var(--orange); color: #fff; border-color: #fff; }
.tz-course-pick input:focus-visible + .tz-course { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- M-Pesa & fee boxes ---------- */
.tz-pay { position: relative; overflow: hidden; padding: 1.5rem; border-radius: var(--radius); color: #d3d7f5; border-bottom: 4px solid var(--orange);
    background: radial-gradient(360px 220px at 100% 0%, rgba(242, 106, 13, .45), transparent 70%), linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%); }
.tz-pay h3 { color: #fff; font-size: 1.05rem; }
.tz-pay__label { font-weight: 700; color: #ffb27a; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.tz-mpesa { display: flex; gap: .8rem; margin: 0 0 1rem; }
.tz-mpesa div { flex: 1; padding: .75rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.tz-mpesa dt { font-size: .76rem; font-weight: 500; opacity: .85; }
.tz-mpesa dd { margin: 0; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.tz-nocash { margin: 0; font-size: .86rem; font-weight: 500; color: #e7e9fb; }

.tz-fees { padding: 1.5rem; border-radius: var(--radius); background: var(--sand); border: 1px dashed #f5b88a; }
.tz-fees h3 { font-size: 1.05rem; }
.tz-fee-list { list-style: none; padding: 0; margin: 0; }
.tz-fee-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #f3dcc6; font-size: .92rem; }
.tz-fee-list li:last-child { border: 0; }
.tz-fee-list strong { color: var(--ink); white-space: nowrap; }

/* ---------- Forms ---------- */
.tz-form .form-label, .tz-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .4rem; }
.tz-form .form-control, .tz-form .form-select { border-radius: 12px; border-color: var(--line); padding: .75rem 1rem; font-size: 1rem; }
.tz-form .form-control:focus, .tz-form .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .22rem rgba(242, 106, 13, .18); }
.tz-step { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 1.1rem; }
.tz-step span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem; flex: none; }
.tz-step--2 span { background: var(--blue); }
.tz-step--3 span { background: var(--orange); }

.tz-option { display: block; cursor: pointer; margin: 0; }
.tz-option input { position: absolute; opacity: 0; pointer-events: none; }
.tz-option__box { display: flex; gap: .75rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; transition: all .15s; }
.tz-option__box i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); font-size: 1.1rem; }
.tz-option__box strong { display: block; color: var(--ink); }
.tz-option__box small { color: var(--muted); }
.tz-option:hover .tz-option__box { border-color: #f5b88a; }
.tz-option input:checked + .tz-option__box { border-color: var(--orange); background: var(--sand); }
.tz-option input:checked + .tz-option__box i { background: var(--orange); color: #fff; }
.tz-option input:focus-visible + .tz-option__box { outline: 3px solid var(--navy); outline-offset: 2px; }

.tz-more { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.tz-more summary { position: relative; padding: 1rem 3.2rem 1rem 1.2rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.tz-more summary::-webkit-details-marker { display: none; }
.tz-more summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-50); color: var(--orange-600); font-size: 1.2rem; font-weight: 600; }
.tz-more[open] summary::after { content: "–"; background: var(--orange); color: #fff; }
.tz-more__body { padding: 0 1.2rem 1.2rem; }

.tz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.tz-footer { background: var(--navy-900); color: #aab0e6; padding: 56px 0 0; font-size: .92rem; }
.tz-footer a { color: #d3d7f5; text-decoration: none; }
.tz-footer a:hover { color: var(--orange); }
.tz-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; }
.tz-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.tz-footer__motto { color: var(--orange); font-weight: 700; }
.tz-footer__office { margin-bottom: 1rem; line-height: 1.6; }
.tz-footer__office strong { color: #fff; }
.tz-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.tz-footer__list li { display: flex; gap: .55rem; align-items: center; }
.tz-footer__list i { color: var(--orange); }
.tz-footer__pay { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; }
.tz-footer__pay strong { color: #fff; font-size: 1.35rem; letter-spacing: .06em; }
.tz-footer__pay span { font-size: .8rem; }
.tz-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; padding: 1.3rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .83rem; }
.tz-footer--slim { padding: 0; }
.tz-footer--slim .tz-footer__bottom { margin-top: 0; border-top: 0; }

/* ---------- Floating WhatsApp ---------- */
.tz-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.tz-wa-float:hover { transform: scale(1.07); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tz-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .tz-hero__inner { grid-template-columns: 1fr; }
    .tz-hero__visual { display: none; }
    .tz-hero__slab { width: 70%; right: -40%; }
}
@media (max-width: 640px) {
    .tz-header__inner { min-height: 66px; }
    .tz-brand img { width: 44px; }
    .tz-brand__name { font-size: 1.2rem; }
    .tz-brand__sub { font-size: .66rem; }
    .tz-hero { padding: 34px 0 64px; }
    .tz-hero__slab { width: 46%; right: -40%; opacity: .9; }
    .tz-hero__slab--line { display: none; }
    .tz-section { padding: 40px 0; }
    .tz-footer__grid { grid-template-columns: 1fr; }
    .tz-mpesa dd { font-size: 1.25rem; }
    .tz-topbar__hide-sm { display: none !important; }
    .tz-wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
