/* Driver Screening pages (/driver-screening/...) and the home page band.
   Everything is scoped under .ds so the site-wide styles in Site.Master are not touched. */
.ds {
    /* Same family as the drug testing pages (modern-style.css / Site.Master): slate text, teal + cyan accents.
       Dark surfaces use the site's teal-to-cyan gradient, ending on cyan-700 so white text stays readable. */
    --ds-ink: #0F172A;
    --ds-teal: #0F766E;
    --ds-teal-dark: #0D6E64;
    --ds-cyan: #0891B2;
    --ds-grad: linear-gradient(135deg, #0F766E 0%, #0E7490 100%);
    --ds-mint: #5EEAD4;
    --ds-tint: #F0FDFA;
    --ds-tint-strong: #CCFBF1;
    --ds-bg: #F8FAFC;
    --ds-text: #1E293B;
    --ds-muted: #475569;
    --ds-border: #E2E8F0;
    --ds-white: #FFFFFF;
    --ds-radius: 16px;
    --ds-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ds-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-family: var(--ds-body);
    color: var(--ds-text);
    background: var(--ds-bg);
    font-size: 16px;
    line-height: 1.6;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds h1, .ds h2, .ds h3, .ds h4 { font-family: var(--ds-head); color: var(--ds-ink); letter-spacing: -0.01em; margin: 0 0 .5em; line-height: 1.2; text-transform: none; }
.ds p { margin: 0 0 1em; }
.ds a { color: var(--ds-teal); }
.ds a:hover { color: var(--ds-teal-dark); }
.ds img { max-width: 100%; height: auto; display: block; }
.ds-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ds-section { padding: 56px 0; }
.ds-section--white { background: var(--ds-white); border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); }
.ds-section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.ds-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-teal); margin-bottom: .5rem; }
.ds-h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.ds-lead { font-size: 1.1rem; color: var(--ds-muted); }

/* Breadcrumb */
.ds-crumbs { padding: 16px 0 0; font-size: .875rem; color: var(--ds-muted); }
.ds-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ds-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ds-border); }
.ds-crumbs a { color: var(--ds-muted); text-decoration: none; }
.ds-crumbs a:hover { color: var(--ds-teal); text-decoration: underline; }

/* Hero */
.ds-hero { padding: 24px 0 48px; background: linear-gradient(180deg, var(--ds-tint) 0%, var(--ds-bg) 100%); }
.ds-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ds-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .4em; }
.ds-hero-sub { font-size: 1.15rem; color: var(--ds-muted); max-width: 40em; }
.ds-hero-img { border-radius: var(--ds-radius); overflow: hidden; border: 1px solid var(--ds-border); background: var(--ds-white); aspect-ratio: 16 / 10; }
.ds-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ds-hero-price { font-family: var(--ds-head); color: var(--ds-ink); font-size: 1.1rem; margin: 0 0 1rem; }
.ds-hero-price strong { font-size: 2.25rem; }
.ds-hero-price span { color: var(--ds-muted); font-family: var(--ds-body); font-size: 1rem; }

/* Quick answer (AEO) */
.ds-answer { background: var(--ds-white); border: 1px solid var(--ds-border); border-left: 4px solid var(--ds-teal); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
.ds-answer-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-teal); margin: 0 0 4px; }
.ds-answer p { margin: 0; color: var(--ds-text); }

/* Buttons: one primary, one secondary */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s; text-align: center; line-height: 1.2; }
.ds a.ds-btn--primary, .ds-btn--primary { background: var(--ds-grad); color: var(--ds-white); border-color: var(--ds-teal); }
.ds a.ds-btn--primary:hover, .ds-btn--primary:hover { background: var(--ds-teal-dark); border-color: var(--ds-teal-dark); color: var(--ds-white); }
.ds a.ds-btn--secondary, .ds-btn--secondary { background: var(--ds-white); color: var(--ds-teal); border-color: var(--ds-teal); }
.ds a.ds-btn--secondary:hover, .ds-btn--secondary:hover { background: var(--ds-tint); color: var(--ds-teal-dark); }
.ds a.ds-btn--dark, .ds-btn--dark { background: var(--ds-grad); color: var(--ds-white); border-color: var(--ds-teal); }
.ds a.ds-btn--dark:hover, .ds-btn--dark:hover { background: var(--ds-teal-dark); border-color: var(--ds-teal-dark); color: var(--ds-white); }
.ds-btn:focus-visible, .ds a:focus-visible, .ds summary:focus-visible { outline: 3px solid var(--ds-cyan); outline-offset: 2px; }

/* Price cards */
.ds-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ds-card { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 24px; display: flex; flex-direction: column; }
.ds-card--accent { border: 2px solid var(--ds-teal); }
.ds-card--current { box-shadow: 0 0 0 3px var(--ds-mint); border-color: var(--ds-teal); }
.ds-card-title { font-size: 1.2rem; margin-bottom: .35rem; }
.ds-card-title a { color: inherit; text-decoration: none; }
.ds-card-title a:hover { text-decoration: underline; }
.ds-badge { display: inline-block; align-self: flex-start; background: var(--ds-tint-strong); color: var(--ds-teal-dark); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: .5rem; }
.ds-card-tag { color: var(--ds-muted); font-size: .95rem; min-height: 3em; }
.ds-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.ds-price-amt { font-family: var(--ds-head); font-size: 2.75rem; font-weight: 700; color: var(--ds-ink); line-height: 1; }
.ds-price-unit { color: var(--ds-muted); font-size: .95rem; }
.ds-checks { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.ds-checks li { position: relative; padding-left: 26px; margin-bottom: .6rem; font-size: .95rem; }
.ds-checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--ds-teal); border-bottom: 2px solid var(--ds-teal); transform: rotate(-45deg); }
.ds-card-actions { display: flex; flex-direction: column; gap: 10px; }
.ds-card-actions .ds-btn { width: 100%; }
.ds-card-more { font-size: .9rem; text-align: center; }
.ds-card--dark { background: var(--ds-grad); border-color: var(--ds-teal); color: #F0FDFA; }
.ds-card--dark .ds-card-title, .ds-card--dark .ds-price-amt { color: var(--ds-white); }
.ds-card--dark .ds-card-tag, .ds-card--dark .ds-price-unit { color: #CCFBF1; }
.ds-card--dark .ds-badge { background: var(--ds-white); color: var(--ds-teal-dark); }
.ds-card--dark .ds-checks li::before { border-color: var(--ds-white); }
.ds-card--dark strong { color: var(--ds-white); }
.ds-card--dark a.ds-btn--primary { background: var(--ds-white); border-color: var(--ds-white); color: var(--ds-teal-dark); }
.ds-card--dark a.ds-btn--primary:hover { background: var(--ds-tint-strong); border-color: var(--ds-tint-strong); color: var(--ds-teal-dark); }
.ds-card--dark .ds-card-more, .ds-card--dark .ds-card-more a { color: var(--ds-white); }
.ds-fleet { margin-top: 24px; background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ds-fleet p { margin: 0; }
.ds-fleet-title { font-family: var(--ds-head); font-weight: 700; color: var(--ds-ink); font-size: 1.1rem; }
.ds-fleet-text { color: var(--ds-muted); }
.ds-fineprint { text-align: center; font-size: .85rem; color: var(--ds-muted); margin: 16px 0 0; }

/* Content blocks */
.ds-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ds-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.ds-tile { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 24px; }
.ds-tile h3 { font-size: 1.15rem; }
.ds-tile h3 a, .ds-prose h2 a { color: var(--ds-ink); text-decoration: none; }
.ds-tile h3 a:hover, .ds-prose h2 a:hover { color: var(--ds-teal); text-decoration: underline; }
.ds-tile p:last-child { margin-bottom: 0; }
.ds-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ds-tint-strong); color: var(--ds-teal); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ds-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.ds-prose h2:first-child { margin-top: 0; }
.ds-prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.ds-prose ul, .ds-prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.ds-prose li { margin-bottom: .4em; }
.ds-figure { border-radius: var(--ds-radius); overflow: hidden; border: 1px solid var(--ds-border); margin: 0; }
.ds-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ds-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 20px; }
.ds-pricebox { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 24px; }
.ds-pricebox .ds-price { margin-bottom: .5rem; }
.ds-pricebox .ds-btn { width: 100%; margin-top: 10px; }
.ds-pricebox-note { font-size: .875rem; color: var(--ds-muted); margin: .75rem 0 0; }
.ds-links { list-style: none; padding: 0; margin: 0; }
.ds-links li { border-top: 1px solid var(--ds-border); }
.ds-links li:first-child { border-top: 0; }
.ds-links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; font-weight: 500; }
.ds-links a span { color: var(--ds-muted); font-weight: 400; white-space: nowrap; }

/* Steps */
.ds-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: ds-step; }
.ds-steps li { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 24px; counter-increment: ds-step; }
.ds-steps li::before { content: counter(ds-step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--ds-grad); color: var(--ds-white); font-family: var(--ds-head); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.ds-steps h3 { font-size: 1.1rem; }
.ds-steps p { margin: 0; color: var(--ds-muted); font-size: .95rem; }

/* Comparison table */
.ds-table-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-white); }
.ds-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.ds-table th, .ds-table td { padding: 12px 16px; border-bottom: 1px solid var(--ds-border); text-align: center; }
.ds-table th:first-child, .ds-table td:first-child { text-align: left; }
.ds-table thead th { font-family: var(--ds-head); color: var(--ds-ink); background: var(--ds-tint); }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-yes { color: var(--ds-teal); font-weight: 700; }
.ds-no { color: #94A3B8; }

/* FAQ */
.ds-faq { max-width: 880px; margin: 0 auto; }
.ds-faq details { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: 12px; margin-bottom: 12px; }
.ds-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ds-teal); border-bottom: 2px solid var(--ds-teal); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.ds-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ds-faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.ds-faq-a { padding: 0 20px 16px; color: var(--ds-muted); }
.ds-faq-a p:last-child { margin-bottom: 0; }

/* Call to action band */
.ds-cta { background: var(--ds-grad); color: #F0FDFA; border-radius: var(--ds-radius); padding: 40px 32px; text-align: center; }
.ds-cta h2 { color: var(--ds-white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ds-cta p { color: #E6FFFA; max-width: 640px; margin-left: auto; margin-right: auto; }
.ds-cta .ds-actions { justify-content: center; }
.ds-cta a.ds-btn--primary { background: var(--ds-white); border-color: var(--ds-white); color: var(--ds-teal-dark); }
.ds-cta a.ds-btn--primary:hover { background: var(--ds-tint-strong); border-color: var(--ds-tint-strong); color: var(--ds-teal-dark); }
.ds-cta a.ds-btn--secondary { background: transparent; color: var(--ds-white); border-color: rgba(255,255,255,.7); }
.ds-cta a.ds-btn--secondary:hover { background: rgba(255,255,255,.1); color: var(--ds-white); }

.ds-note { background: #FFF8E6; border: 1px solid #F1DFAE; border-radius: 12px; padding: 14px 18px; font-size: .95rem; color: #5B4A1C; }
.ds-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ds-related a { display: block; background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ds-text); }
.ds-related a:hover { border-color: var(--ds-teal); }
.ds-related strong { display: block; font-family: var(--ds-head); color: var(--ds-ink); margin-bottom: 4px; }
.ds-related span { font-size: .9rem; color: var(--ds-muted); }

/* Home page band */
.ds-band { padding: 56px 0; border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); }
.ds-band-link { text-align: center; margin: 20px 0 0; font-weight: 600; }

/* Enrollment package cards (PublicPackageCatalog) line */
.package-screening-addon a { color: #0F766E; font-weight: 600; text-decoration: none; }
.package-screening-addon a:hover { text-decoration: underline; }
.tile-fleet .package-screening-addon a, .tile-fleet .package-screening-addon a span { color: #5EEAD4; }

/* Order form (/driver-screening/order) */
.ds-order { max-width: 880px; margin: 0 auto; }
.ds-order-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.ds-panel { background: var(--ds-white); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); padding: 28px; margin-bottom: 20px; }
.ds-panel h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.ds-panel-sub { color: var(--ds-muted); font-size: .95rem; margin-bottom: 16px; }
.ds-note { background: var(--ds-tint); border-left: 4px solid var(--ds-teal); border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-size: .95rem; }
.ds-msg { border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-size: .95rem; }
.ds-msg[hidden] { display: none; }
.ds-msg--error { background: #FDECEC; border: 1px solid #F3B9B9; color: #8A1C1C; }
.ds-msg--ok { background: #E9F7EF; border: 1px solid #B5E1C6; color: #165C33; }
.ds-pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ds-pkg { position: relative; display: block; border: 2px solid var(--ds-border); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--ds-white); }
.ds-pkg:hover { border-color: var(--ds-mint); }
.ds-pkg.is-on { border-color: var(--ds-teal); background: var(--ds-tint); box-shadow: 0 0 0 3px rgba(20, 184, 166, .25); }
.ds-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.ds-pkg:focus-within { outline: 3px solid var(--ds-cyan); outline-offset: 2px; }
.ds-pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ds-pkg-name { font-family: var(--ds-head); font-weight: 700; color: var(--ds-ink); }
.ds-pkg-price { font-family: var(--ds-head); font-weight: 700; color: var(--ds-ink); white-space: nowrap; }
.ds-pkg-price small { font-family: var(--ds-body); font-weight: 400; color: var(--ds-muted); font-size: .8rem; }
.ds-pkg .ds-checks { margin: 0; }
.ds-pkg .ds-checks li { font-size: .9rem; margin-bottom: .35rem; }
.ds-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .95rem; }
.ds-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ds-teal); }
.ds-addon { border: 1px solid var(--ds-border); border-radius: 12px; padding: 14px 16px; margin-top: 14px; background: var(--ds-bg); }
.ds-addon[hidden] { display: none; }
.ds-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ds-field--full { grid-column: 1 / -1; }
.ds-label { display: block; font-size: .875rem; font-weight: 600; color: var(--ds-ink); margin-bottom: 6px; }
.ds-req { color: #B42318; }
.ds-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 10px; background: var(--ds-white); color: var(--ds-text); font: inherit; }
.ds-input:focus { outline: 3px solid rgba(8, 145, 178, .35); outline-offset: 1px; border-color: var(--ds-teal); }
textarea.ds-input { min-height: 96px; resize: vertical; }
.ds-hint { font-size: .8rem; color: var(--ds-muted); margin: 6px 0 0; }
.ds-driver { border: 1px solid var(--ds-border); border-radius: 12px; padding: 16px; background: var(--ds-bg); margin-bottom: 12px; }
.ds-driver-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ds-driver-top h3 { font-size: 1rem; margin: 0; }
.ds-driver-grid { display: grid; grid-template-columns: 3fr 2fr 1fr; gap: 12px; }
.ds-linkbtn { background: none; border: 0; padding: 4px; color: #B42318; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.ds-linkbtn[hidden], .ds-btn[hidden] { display: none; }
.ds-summary { border: 1px solid var(--ds-border); border-radius: 12px; padding: 18px; background: var(--ds-bg); }
.ds-summary[hidden] { display: none; }
.ds-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; padding: 3px 0; }
.ds-summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--ds-border); margin-top: 10px; padding-top: 10px; font-family: var(--ds-head); font-weight: 700; color: var(--ds-ink); font-size: 1.25rem; }
.ds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ds-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.ds-submit-row p { margin: 0; font-size: .9rem; color: var(--ds-muted); }
.ds-btn[disabled] { opacity: .65; cursor: wait; }

@media (max-width: 1100px) {
    .ds-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ds-hero-grid, .ds-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .ds-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .ds-aside { position: static; }
    .ds-hero-img { order: -1; }
}
@media (max-width: 600px) {
    .ds-wrap { padding: 0 16px; }
    .ds-section { padding: 40px 0; }
    .ds-cards, .ds-steps, .ds-related { grid-template-columns: 1fr; }
    .ds-card-tag { min-height: 0; }
    .ds-actions .ds-btn { width: 100%; }
    .ds-cta { padding: 32px 20px; }
    .ds-fleet .ds-btn { width: 100%; }
    .ds-panel { padding: 20px 16px; }
    .ds-pkgs, .ds-fields, .ds-driver-grid { grid-template-columns: 1fr; }
    .ds-submit-row .ds-btn { width: 100%; }
}
