/* Safety Driver Training – Tutor LMS dashboard tab */
.sdt-fe { --sdt-yellow: #fbf115; --sdt-charcoal: #33363b; --sdt-ink: #26282c; --sdt-grey: #676767; --sdt-line: #e3e5eb; color: var(--sdt-ink); }
.sdt-fe__title { margin: 0 0 18px; font-size: 22px; }
.sdt-fe h4 { margin: 28px 0 10px; font-size: 16px; }
.sdt-msg { background: #fdf9b8; border-left: 4px solid var(--sdt-yellow); padding: 10px 14px; margin-bottom: 18px; }

/* Next lesson: the thing students come here for */
.sdt-next { display: flex; border: 1px solid var(--sdt-line); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.sdt-next__time { background: var(--sdt-charcoal); color: #fff; padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; min-width: 130px;
  background-image: repeating-linear-gradient(180deg, var(--sdt-yellow) 0 14px, transparent 14px 26px); background-size: 4px 100%; background-repeat: no-repeat; background-position: right center; }
.sdt-next__time strong { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--sdt-yellow); }
.sdt-next__info { padding: 14px 20px; }
.sdt-next__info p { margin: 0 0 4px; }

.sdt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 8px; border: 1px solid var(--sdt-line); border-radius: 8px; }
.sdt-stats div { padding: 12px 16px; border-left: 1px solid var(--sdt-line); }
.sdt-stats div:first-child { border-left: 0; }
.sdt-stats dt { font-size: 13px; color: #676767; }
.sdt-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.sdt-list, .sdt-feedback { list-style: none; margin: 0; padding: 0; }
.sdt-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sdt-line); }
.sdt-list li > span:first-child { flex: 1; }
.sdt-list form { margin: 0; }
.sdt-link { background: none; border: 0; color: #b32d2e; cursor: pointer; padding: 0; text-decoration: underline; }

.sdt-tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #eef0f3; }
.sdt-tag--scheduled { background: #fdf9b8; color: #575000; }
.sdt-tag--requested, .sdt-tag--pending { background: #e7f0fb; color: #1d4f8c; }
.sdt-tag--completed, .sdt-tag--pass { background: #e3f3ea; color: #1e7a46; }
.sdt-tag--no_show, .sdt-tag--fail { background: #fbeaea; color: #b32d2e; }

.sdt-request { margin-top: 22px; border: 1px solid var(--sdt-line); border-radius: 8px; padding: 0 18px; }
.sdt-request summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.sdt-request form, .sdt-slot__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 18px; }
.sdt-fe label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.sdt-fe .sdt-wide { grid-column: 1 / -1; }
.sdt-fe input, .sdt-fe select, .sdt-fe textarea { font-weight: 400; }
.sdt-fe form > button { justify-self: start; }

.sdt-feedback li { padding: 12px 0; border-bottom: 1px solid var(--sdt-line); }
.sdt-feedback__head { display: flex; justify-content: space-between; color: #676767; font-size: 14px; }
.sdt-feedback p { margin: 6px 0 0; }
.sdt-score { color: var(--sdt-charcoal); letter-spacing: 2px; }
.sdt-score span { color: #d5d8de; }

.sdt-day { border-left: 3px solid var(--sdt-yellow); padding-left: 14px; }
.sdt-slot { border-bottom: 1px solid var(--sdt-line); }
.sdt-slot summary { cursor: pointer; padding: 10px 0; display: flex; gap: 10px; align-items: center; }
.sdt-slot summary strong { font-variant-numeric: tabular-nums; min-width: 3em; }
.sdt-slot__meta { color: #676767; font-size: 14px; margin: 0 0 10px; }
.sdt-slot--completed summary { opacity: 0.7; }

@media (max-width: 600px) {
  .sdt-request form, .sdt-slot__form { grid-template-columns: 1fr; }
  .sdt-stats div { border-left: 0; border-top: 1px solid var(--sdt-line); }
  .sdt-stats div:first-child { border-top: 0; }
}

.sdt-fe__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sdt-fe__brand img { width: 44px; height: 44px; object-fit: contain; }
.sdt-fe__brand .sdt-fe__title { margin: 0; }
.sdt-next__time { background-color: #676767; }

/* ===== v2 ===== */
.sdt-fe__hint { color: #5b616e; font-size: 14px; margin: 0 0 10px; }
.sdt-notes { margin: 0 0 18px; }
.sdt-note { border-radius: 8px; padding: 10px 14px; margin: 0 0 8px; background: #eef0f3; }
.sdt-note.is-new { box-shadow: inset 4px 0 0 var(--sdt-yellow); }
.sdt-note--ok, .sdt-note--progress { background: #e3f3ea; }
.sdt-note--warn { background: #fbeaea; }
.sdt-note__head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sdt-note__head span { color: #5b616e; }
.sdt-note p { margin: 4px 0 0; font-size: 14px; }
.sdt-timeline, .sdt-update, .sdt-reqcard { border: 1px solid var(--sdt-line); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.sdt-timeline__head, .sdt-update__head, .sdt-reqcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sdt-update__head span, .sdt-reqcard__head span { color: #5b616e; font-size: 14px; }
.sdt-timeline__bar { position: relative; height: 12px; background: var(--sdt-charcoal); border-radius: 3px; margin: 10px 0 8px; }
.sdt-timeline__bar span { display: block; height: 100%; background: var(--sdt-yellow); border-radius: 3px; }
.sdt-timeline__bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #1d1f22; border: 1px solid #fff; }
.sdt-timeline p, .sdt-update p { margin: 4px 0; font-size: 15px; }
.sdt-good { color: #1e7a46; } .sdt-warn { color: #7a4f00; } .sdt-bad { color: #b32d2e; }
.sdt-update ul { list-style: none; margin: 8px 0; padding: 0; }
.sdt-update li { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.sdt-lv-0 { color: #5b616e; } .sdt-lv-1 { color: #7a4f00; } .sdt-lv-2 { color: #1e7a46; }
.sdt-choice { border: 1px solid var(--sdt-line); border-radius: 6px; padding: 8px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sdt-choice legend { font-weight: 700; padding: 0 4px; }
.sdt-reqopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--sdt-line); border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.sdt-reqopt span { display: flex; flex-direction: column; }
.sdt-reqopt em { font-style: normal; font-size: 13px; font-weight: 600; }
.sdt-reqopt--free { border-color: #7bc89a; background: #f3faf6; } .sdt-reqopt--free em { color: #1e7a46; }
.sdt-reqopt--booked em, .sdt-reqopt--off em, .sdt-reqopt--maintenance em { color: #b32d2e; }
.sdt-reqopt form { margin: 0; }
.sdt-decline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--sdt-line); padding-top: 10px; margin-top: 6px; }
.sdt-decline button { grid-column: 1 / -1; justify-self: start; }
.sdt-tag--declined { background: #fbeaea; color: #b32d2e; }
@media (max-width: 600px) { .sdt-choice, .sdt-decline { grid-template-columns: 1fr; } }

/* ===== Phones, tablets and iPads ===== */
.sdt-fe input, .sdt-fe select, .sdt-fe textarea { font-size: 16px; min-height: 44px; box-sizing: border-box; max-width: 100%; }
.sdt-fe textarea { min-height: 80px; }
.sdt-fe button, .sdt-fe .tutor-btn { min-height: 44px; }
.sdt-link { min-height: 44px; padding: 0 6px; }
.sdt-slot summary, .sdt-request summary { min-height: 44px; }
@media (max-width: 600px) {
  .sdt-fe__title { font-size: 19px; }
  .sdt-next { flex-direction: column; }
  .sdt-next__time { flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; background-image: none; border-bottom: 4px dashed var(--sdt-yellow); }
  .sdt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdt-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sdt-list li { flex-wrap: wrap; }
  .sdt-reqopt { flex-wrap: wrap; }
  .sdt-reqopt form, .sdt-reqopt form button { width: 100%; }
  .sdt-decline button, .sdt-request form > button, .sdt-slot__form > button { width: 100%; justify-self: stretch; }
  .sdt-feedback__head { flex-wrap: wrap; gap: 4px; }
}

/* ===== Enrol and pay online ===== */
.sdt-enrol form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 18px; }
.sdt-packs { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sdt-packs legend { font-weight: 700; margin-bottom: 6px; }
.sdt-pack { flex-direction: row !important; align-items: center; gap: 10px !important; border: 1px solid var(--sdt-line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.sdt-pack:has(input:checked) { border-color: var(--sdt-charcoal); box-shadow: inset 4px 0 0 var(--sdt-yellow); }
.sdt-pack input { min-height: 0 !important; width: 20px; height: 20px; }
.sdt-pack span { display: flex; flex-direction: column; }
.sdt-pack em { font-style: normal; color: #5b616e; }
.sdt-check-row { flex-direction: row !important; align-items: center; gap: 10px !important; }
.sdt-check-row input { min-height: 0 !important; width: 20px; height: 20px; }
.sdt-proof { background: #fffbea; border: 2px dashed #e2b300; border-radius: 8px; padding: 10px 12px; }
.sdt-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--sdt-charcoal); color: #fff; border-radius: 8px; padding: 12px 14px; }
.sdt-total strong { font-size: 28px; color: var(--sdt-yellow); }
.sdt-total em { font-style: normal; font-size: 14px; color: #d3d5d9; flex-basis: 100%; }
.sdt-nego summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sdt-nego label { margin-top: 8px; }
.sdt-next { border: 1px solid var(--sdt-line); border-radius: 8px; padding: 8px 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sdt-next legend { font-weight: 700; padding: 0 4px; }
.sdt-next[hidden] { display: none; }
.sdt-owe { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; background: #fff6cc; display: flex; flex-direction: column; gap: 2px; }
.sdt-owe.is-late { background: #fbeaea; }
@media (max-width: 600px) { .sdt-enrol form, .sdt-next { grid-template-columns: 1fr; } }

/* Student tells the office their case (2.10) */
.sdt-case { background: #fff; border: 1px solid #e0e0e0; border-left: 6px solid #A12626; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.sdt-case h4 { margin: 0 0 6px; font-size: 18px; }
.sdt-case__why { margin: 0 0 10px 18px; color: #555A61; }
.sdt-case__last { background: #FAFAFB; padding: 6px 10px; border-radius: 4px; }
.sdt-msg--err { border-left-color: #A12626; background: #FBE6E6; }
.sdt-case form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .sdt-case form { grid-template-columns: 1fr; } .sdt-case form > button { width: 100%; justify-self: stretch; } }

/* Pick and drop (2.13) */
.sdt-pickup { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.sdt-pickup legend { font-weight: 600; margin-bottom: 6px; }
.sdt-pickup__where { display: grid; gap: 8px; background: #FAFAFB; border-radius: 8px; padding: 10px 12px; }
.sdt-pickup__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sdt-pickup__btns .button { min-height: 44px; padding: 0 14px; border: 1px solid #9A9A9A; border-radius: 6px; background: #fff; cursor: pointer; }
.sdt-pickup__out { margin: 0; font-weight: 600; }

/* Personal details on enrolment (2.14) */
.sdt-person { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sdt-person > legend { font-weight: 700; padding: 0 4px; }
.sdt-inline { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sdt-inline legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.sdt-inline label { flex-direction: row !important; align-items: center; font-weight: 400 !important; min-height: 36px; }
.sdt-challenges { grid-column: 1 / -1; }
.sdt-challenges .sdt-wide { flex-basis: 100%; flex-direction: column !important; align-items: stretch !important; font-weight: 600 !important; }
.sdt-hint { flex-basis: 100%; margin: 0; font-size: 13px; color: #555A61; }
.sdt-slot__warn { margin: 4px 0; background: #FFF8D6; border-left: 3px solid #FBF115; padding: 4px 8px; font-size: 14px; }
@media (max-width: 600px) { .sdt-person { grid-template-columns: 1fr; } }

/* Pause (2.15) */
.sdt-paused { display: grid; gap: 6px; background: #EEF0F2; border-left: 6px solid #33363B; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; }
.sdt-pause form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 16px; }
@media (max-width: 600px) { .sdt-pause form { grid-template-columns: 1fr; } }

/* Safety Membership (2.17) */
.sdt-member-card { display: grid; gap: 2px; background: #33363B; color: #fff; border-radius: 14px; padding: 18px 20px; margin: 0 0 16px; border-left: 8px solid #FBF115; }
.sdt-member-card span { color: #FBF115; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sdt-member-card strong { font-size: 22px; }
.sdt-member-card b { font-size: 28px; color: #FBF115; letter-spacing: .04em; }
.sdt-member-card em { font-style: normal; color: #D3D5D9; }
.sdt-member-btn { display: inline-block; background: #FBF115; color: #1F2124 !important; font-weight: 700; padding: 12px 22px; border-radius: 26px; text-decoration: none; }
.sdt-membership .sdt-enrol form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 18px; }
@media (max-width: 600px) { .sdt-membership .sdt-enrol form { grid-template-columns: 1fr; } }

/* Instructor: my vehicle (2.18) */
.sdt-myveh form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 16px; }
.sdt-myveh .sdt-plate { font-weight: 700; background: #FBF115; border: 2px solid #26282c; border-radius: 4px; padding: 1px 6px; font-size: 13px; letter-spacing: .05em; }
@media (max-width: 600px) { .sdt-myveh form { grid-template-columns: 1fr; } }

/* Phone camera photos and contract (2.19) */
.sdt-cam { border: 1px dashed #A9AEB5; border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: #FAFAFB; }
.sdt-cam__label { font-weight: 700; }
.sdt-cam__have { color: #1E6B3F; font-weight: 600; font-size: 13px; }
.sdt-cam__hint, .sdt-cam__msg { margin: 0; font-size: 14px; color: #555A61; }
.sdt-cam__video, .sdt-cam__shot { width: 100%; max-height: 360px; object-fit: contain; background: #000; border-radius: 8px; }
.sdt-cam__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sdt-cam__btns button { min-height: 48px; padding: 0 18px; border-radius: 8px; border: 0; font-weight: 700; cursor: pointer; background: #FBF115; color: #1F2124; }
.sdt-cam__btns .sdt-cam__again { background: #fff; border: 1px solid #33363B; }
.sdt-contract { border: 2px solid #FBF115; border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.sdt-contract legend { font-weight: 700; padding: 0 6px; }
.sdt-contract__text { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 10px; max-height: 320px; overflow: auto; }


/* ===== 2.20 clean-up ===== */
.sdt-fe__brand { display: flex; align-items: center; gap: 12px; border-bottom: 4px solid var(--sdt-yellow); padding-bottom: 10px; margin-bottom: 16px; }
.sdt-fe__brand img { width: 44px; height: 44px; }
.sdt-fe__brand .sdt-fe__title { margin: 0; }
.sdt-next--none { background: #fafafa; }
.sdt-more { border: 1px solid var(--sdt-line); border-radius: 8px; margin: 18px 0 0; }
.sdt-more > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; box-sizing: border-box; }
.sdt-more > :not(summary) { padding: 0 16px 12px; }
.sdt-doc-link { font-weight: 700; color: var(--sdt-ink); }
.sdt-fe .tutor-btn-primary { background: var(--sdt-yellow) !important; color: var(--sdt-ink) !important; border-color: var(--sdt-yellow) !important; font-weight: 700; }
.sdt-fe button, .sdt-fe .tutor-btn, .sdt-fe select, .sdt-fe input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }

/* 2.21 – My Safety Driver page */
.sdt-portal__login { max-width: 420px; background: #fff; border: 1px solid var(--sdt-line); border-radius: 8px; padding: 16px; margin: 0 0 18px; }
.sdt-portal__login input[type=text], .sdt-portal__login input[type=password] { width: 100%; min-height: 44px; box-sizing: border-box; }
.sdt-portal__login .button-primary { background: var(--sdt-yellow); color: var(--sdt-ink); border: 0; font-weight: 700; min-height: 44px; padding: 0 22px; border-radius: 6px; }
.sdt-portal__new .tutor-btn { margin: 0 8px 8px 0; }

/* Paynow (2.22) */
.sdt-paynow{display:grid;gap:6px}
.sdt-paynow .sdt-radio{display:flex !important;flex-direction:row !important;align-items:center;gap:10px;min-height:44px;font-weight:600;margin:0}
.sdt-paynow .sdt-radio input{width:20px !important;height:20px !important;margin:0 !important;flex:none;min-height:0 !important}
.sdt-paywait{border-left:6px solid #FBF115}
.sdt-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
/* Make payment – payment partners */
.sdt-paynow legend{font-weight:800;font-size:1.15em}
.sdt-partners__intro{margin:0 0 4px}
.sdt-partners{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:6px}
.sdt-partner{position:relative;display:block !important;margin:0 !important;cursor:pointer}
.sdt-partner input{position:absolute !important;opacity:0;width:1px !important;height:1px !important;min-height:0 !important}
.sdt-partner__tile{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border:2px solid #d6d6d0;border-radius:10px;background:#fff;font-weight:700;line-height:1.2}
.sdt-partner__tile i{flex:none;width:30px;height:30px;border-radius:7px;color:#fff;font-style:normal;font-weight:800;display:grid;place-items:center}
.sdt-partner input:checked+.sdt-partner__tile{border-color:#232323;background:#FFFBD0;box-shadow:inset 0 0 0 1px #232323}
.sdt-partner input:focus-visible+.sdt-partner__tile{outline:3px solid #FBF115;outline-offset:2px}
.sdt-partners__safe{font-size:.9em;color:#676767;margin:2px 0 0}
