/* Traffic Challan — TrucksBuses */
.tc-page {
    --tc-red: #d81416;
    --tc-red-dark: #b91214;
    --tc-accent: #e85d04;
    --tc-accent-soft: #fff4ec;
    --tc-ink: #1a1d23;
    --tc-muted: #6b7280;
    --tc-border: #e5e7eb;
    --tc-bg: #f3f4f6;
    --tc-surface: #ffffff;
    --tc-blue: #dbeafe;
    --tc-blue-text: #1d4ed8;
    --tc-shadow: 0 8px 24px rgba(18, 38, 58, 0.06);
    background: var(--tc-bg);
    color: var(--tc-ink);
    padding-bottom: 48px;
}

.tc-page.tc-page--paybar { padding-bottom: 110px; }

.tc-page .breadCrumn {
    background: #fff;
    border-bottom: 1px solid var(--tc-border);
}

.tc-page--results .tc-hero,
.tc-page--results .tc-section,
.tc-page--results .tc-section--muted {
    display: none !important;
}

/* ——— Hero search ——— */
.tc-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 40px;
    background:
        radial-gradient(1200px 420px at 10% -20%, rgba(216, 20, 22, 0.14), transparent 55%),
        radial-gradient(900px 380px at 90% 0%, rgba(18, 38, 58, 0.08), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    border-bottom: 1px solid var(--tc-border);
}

.tc-hero__bg {
    position: absolute;
    inset: auto -10% -40% auto;
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    background: repeating-linear-gradient(-18deg, transparent, transparent 12px, rgba(18,38,58,.035) 12px, rgba(18,38,58,.035) 13px);
    pointer-events: none;
}

.tc-hero__inner { position: relative; max-width: 760px; }

.tc-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-red);
}

.tc-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.tc-hero__sub {
    margin: 0 0 22px;
    max-width: 38rem;
    font-size: 16px;
    line-height: 1.55;
    color: var(--tc-muted);
}

.tc-search {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--tc-shadow);
}

.tc-search__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.tc-search__row { display: flex; gap: 10px; flex-wrap: wrap; }

.tc-search__field {
    flex: 1 1 240px;
    display: flex;
    border: 1.5px solid #d7dde6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.tc-search__field:focus-within {
    border-color: var(--tc-red);
    box-shadow: 0 0 0 3px rgba(216, 20, 22, 0.18);
}

.tc-search__prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #f4f6f9;
    border-right: 1px solid #e5e9ef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--tc-muted);
}

.tc-search__field input {
    flex: 1;
    border: 0;
    outline: 0;
    min-height: 52px;
    padding: 0 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: transparent;
}

.tc-search__btn {
    flex: 0 0 auto;
    min-height: 52px;
    min-width: 160px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--tc-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.tc-search__btn:hover:not(:disabled) { background: var(--tc-red-dark); }
.tc-search__btn:disabled { opacity: .75; cursor: wait; }

.tc-search__btn-spin {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tcSpin .7s linear infinite;
    vertical-align: middle;
}

.tc-search__hint { margin: 10px 0 0; font-size: 12px; color: var(--tc-muted); }
.tc-search__error { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #b91c1c; }

.tc-city-intro {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--tc-border);
    font-size: 14px;
    color: var(--tc-muted);
}
.tc-city-intro strong { color: var(--tc-ink); }
.tc-city-intro p { margin: 6px 0 0; }

/* ——— Results dashboard ——— */
.tc-results {
    padding: 20px 0 28px;
    background: var(--tc-bg);
}

.tc-dash {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.tc-side {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 16px;
    position: sticky;
    top: 12px;
}

.tc-side__vehicle {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tc-border);
}

.tc-side__plate {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
}

.tc-side__change {
    border: 0;
    background: none;
    color: var(--tc-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.tc-side__nav { display: grid; gap: 8px; }

.tc-side__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--tc-ink);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.tc-side__tab em {
    font-style: normal;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.tc-side__tab.is-active {
    background: var(--tc-accent-soft);
    border-color: #fdba74;
    color: #9a3412;
}

.tc-side__tab.is-active em {
    background: #fff;
    color: #9a3412;
}

.tc-main { min-width: 0; }

.tc-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.tc-ov-card {
    background: #eceff3;
    border-radius: 14px;
    padding: 18px 20px;
}

.tc-ov-card__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.tc-ov-card__count {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tc-ov-card__amt {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.tc-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tc-list-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
}

.tc-list-head p {
    margin: 0;
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-deselect {
    border: 0;
    background: none;
    color: var(--tc-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
}

.tc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tc-grid__none {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--tc-border);
    border-radius: 12px;
    color: var(--tc-muted);
}

.tc-ext-head {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 8px;
}

.tc-ext-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
}

.tc-ext-head p {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--tc-muted);
}

/* Challan card — Cars24 style */
.tc-item {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s, box-shadow .15s;
}

.tc-item.is-checked {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #93c5fd inset;
}

.tc-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tc-item__type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--tc-blue);
    color: var(--tc-blue-text);
    font-size: 11px;
    font-weight: 800;
}

.tc-check {
    position: relative;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.tc-check input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.tc-check span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
}

.tc-check input:checked + span {
    background: #2563eb;
    border-color: #2563eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.tc-item__no {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    word-break: break-all;
}

.tc-copy {
    border: 0;
    background: none;
    color: #9ca3af;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.tc-copy:hover,
.tc-copy.is-copied { color: var(--tc-accent); }

.tc-item__fine {
    margin: 2px 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tc-item__issued {
    margin: 0;
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-item__place {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.tc-item__place svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #9ca3af;
}

.tc-item__foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tc-item__since {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #4b5563;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tc-item.is-paid .tc-item__since {
    background: #ecfdf5;
    color: #047857;
}

.tc-item__details {
    border: 0;
    background: none;
    color: var(--tc-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

/* Empty */
.tc-empty {
    text-align: center;
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: var(--tc-shadow);
    max-width: 520px;
    margin: 24px auto;
}

.tc-empty__icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #047857;
    font-size: 24px;
    font-weight: 800;
}

.tc-empty h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.tc-empty p { margin: 0 0 16px; color: var(--tc-muted); }

.tc-change-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--tc-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Sticky pay bar */
.tc-paybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--tc-border);
    box-shadow: 0 -8px 24px rgba(0,0,0,.06);
    padding: 12px 0;
}

.tc-paybar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tc-paybar__total span {
    display: block;
    font-size: 12px;
    color: var(--tc-muted);
    font-weight: 600;
}

.tc-paybar__total strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2px;
}

.tc-paybar__btn {
    min-height: 48px;
    min-width: 200px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--tc-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: not-allowed;
    opacity: .55;
}

.tc-paybar__btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Details modal */
.tc-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}

.tc-modal__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(84vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.tc-modal__close {
    position: absolute;
    top: 10px; right: 12px;
    border: 0;
    background: #f3f4f6;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}

.tc-modal__panel h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    padding-right: 36px;
}

.tc-modal__panel h4 {
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 800;
}

.tc-modal__dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 0;
}

.tc-modal__dl .tc-modal__full { grid-column: 1 / -1; }

.tc-modal__dl dt {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tc-muted);
}

.tc-modal__dl dd {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.tc-modal__offences {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tc-modal__offences li {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.tc-modal__offences strong { display: block; }
.tc-modal__offences span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tc-muted);
}

.tc-modal__paylink {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--tc-ink);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Content sections below */
.tc-section { padding: 36px 0 8px; }

.tc-section--muted {
    background: #eef1f5;
    margin-top: 28px;
    padding: 36px 0 28px;
    border-top: 1px solid var(--tc-border);
    border-bottom: 1px solid var(--tc-border);
}

.tc-section__title {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tc-section__lead {
    margin: 0 0 20px;
    color: var(--tc-muted);
    font-size: 15px;
}

.tc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tc-steps li {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 18px;
}

.tc-steps__num {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--tc-red);
}

.tc-steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.tc-steps p { margin: 0; font-size: 14px; color: var(--tc-muted); line-height: 1.45; }

.tc-why {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tc-why article {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 16px;
}

.tc-why h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.tc-why p { margin: 0; font-size: 13px; color: var(--tc-muted); line-height: 1.45; }

.tc-prose { max-width: 48rem; }
.tc-prose p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--tc-muted);
}

.tc-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--tc-border);
    background: #fff;
}

.tc-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.tc-table th, .tc-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--tc-border);
    font-size: 14px;
}
.tc-table th { background: #f7f8fb; font-weight: 800; }
.tc-table tr:last-child td { border-bottom: 0; }
.tc-footnote { margin: 10px 0 0; font-size: 12px; color: var(--tc-muted); }

.tc-cities { display: flex; flex-wrap: wrap; gap: 8px; }

.tc-city {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--tc-border);
    background: #fff;
    color: var(--tc-ink) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.tc-city:hover,
.tc-city.is-active {
    border-color: var(--tc-red);
    color: var(--tc-red) !important;
}

.tc-faq details {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.tc-faq summary {
    cursor: pointer;
    list-style: none;
    min-height: 52px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
}

.tc-faq summary::-webkit-details-marker { display: none; }

.tc-faq details p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tc-muted);
}

@keyframes tcSpin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
    .tc-dash { grid-template-columns: 1fr; }
    .tc-side { position: static; }
    .tc-side__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .tc-steps, .tc-why { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .tc-hero { padding: 24px 0 28px; }
    .tc-search { padding: 14px; }
    .tc-search__btn { width: 100%; }
    .tc-overview { grid-template-columns: 1fr; }
    .tc-grid { grid-template-columns: 1fr; }
    .tc-steps, .tc-why { grid-template-columns: 1fr; }
    .tc-paybar__inner { flex-direction: column; align-items: stretch; }
    .tc-paybar__btn { width: 100%; min-width: 0; }
    .tc-modal__dl { grid-template-columns: 1fr; }
    .tc-page.tc-page--paybar { padding-bottom: 140px; }
}
