﻿:root {
    --bg: #f3f4f8;
    --bg2: #ebeef5;
    --surface: #ffffff;
    --surface2: #f8f9fc;
    --surface3: #f3f5fa;
    --border: #e3e7f0;
    --border2: #d3dae8;
    --text: #121826;
    --text2: #5b6474;
    --text3: #98a1b2;
    --primary: #d63031;
    --primary-soft: rgba(214, 48, 49, .10);
    --primary-soft-2: rgba(214, 48, 49, .16);
    --primary-ring: rgba(214, 48, 49, .24);
    --primary-strong: #b71c1c;
    --contrast: #f59e0b;
    --contrast-soft: rgba(245, 158, 11, .14);
    --inp-bg: #ffffff;
    --inp-border: #d7ddea;
    --inp-focus: var(--primary);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06), 0 8px 20px rgba(15, 23, 42, .04);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, .08), 0 16px 36px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 28px 64px rgba(15, 23, 42, .08);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --field-label: #999999;
    --main-bg: #ffffff;
    --border-color: #e2e8f0;
}

html[data-bs-theme="dark"] {
    --bg: #202020;
    --bg2: #27272b;
    --surface: #2d2d2f;
    --surface2: #343438;
    --surface3: #3a3a3f;
    --border: #47474c;
    --border2: #56565d;
    --text: #f5f5f5;
    --text2: #c4c4cb;
    --text3: #93939b;
    --primary: #ef5350;
    --primary-soft: rgba(239, 83, 80, .14);
    --primary-soft-2: rgba(239, 83, 80, .22);
    --primary-ring: rgba(239, 83, 80, .28);
    --primary-strong: #d32f2f;
    --contrast: #fbbf24;
    --sidebar-bg: #2f2f33;
    --contrast-soft: rgba(251, 191, 36, .18);
    --inp-bg: #282828;
    --inp-border: #4e4e55;
    --inp-focus: var(--primary);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .28);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .32), 0 8px 20px rgba(0, 0, 0, .24);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .42), 0 16px 36px rgba(0, 0, 0, .34);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .52), 0 28px 64px rgba(0, 0, 0, .42);
    --field-label: #888888;
    --main-bg: #2b2b2f;
    --border-color: #4a4a4f;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(214, 48, 49, .08) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 90% 100%, rgba(245, 158, 11, .07) 0%, transparent 55%);
        pointer-events: none;
        z-index: 0;
    }

html[data-bs-theme="dark"] body::before {
    background-image: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(239, 83, 80, .12) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 90% 100%, rgba(251, 191, 36, .08) 0%, transparent 55%);
}

.tc-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 32px auto 80px;
    padding: 0 20px;
}

.tc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tc-card-hd {
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface2) 100%);
    position: relative;
    overflow: hidden;
}

    .tc-card-hd::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--contrast) 45%, #ffd37a 100%);
    }

.tc-h1 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.tc-h1-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-soft-2);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

    .tc-h1-kicker::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 0 8px var(--primary), 0 0 14px var(--primary);
        animation: pulse-dot 1.8s ease-in-out infinite;
    }

    .tc-h1-kicker::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35), transparent 80%);
        transform: translateX(-100%);
        animation: shimmer 3s infinite;
    }

.tc-h1-main {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    display: inline-block;
    width: fit-content;
    background: linear-gradient(120deg, var(--primary), var(--contrast), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite, fadeUp .6s ease-out;
}

    .tc-h1-main::after {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(120deg, var(--primary), var(--contrast));
        filter: blur(12px);
        opacity: .32;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.tc-h1-note {
    color: var(--text2);
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(.6);
        opacity: .6;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(120%);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tc-theme-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border2);
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .18s, background .2s;
}

    .tc-theme-btn:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-sm);
        transform: translateY(-1px);
    }

    .tc-theme-btn:active {
        transform: scale(.96);
    }

.tc-theme-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .28s ease, transform .32s ease;
}

    .tc-theme-icon svg {
        width: 20px;
        height: 20px;
    }

.tc-theme-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--contrast);
}

.tc-theme-moon {
    opacity: 0;
    transform: rotate(-30deg) scale(.7);
    color: var(--primary);
}

html[data-bs-theme="dark"] .tc-theme-sun {
    opacity: 0;
    transform: rotate(30deg) scale(.7);
}

html[data-bs-theme="dark"] .tc-theme-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.tc-card-bd {
    padding: 24px 28px;
}

.tc-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.tc-section-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 14px;
}

.tc-section-title1 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text2);
}

.tc-section-unified {
    position: relative;
    overflow: visible;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

    .tc-section-unified::after {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
    }

.tc-section-body {
    padding-top: 2px;
}

.tc-step-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tc-step-num {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-soft), transparent);
    border: 1px solid var(--primary-soft-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: .04em;
    flex: 0 0 auto;
    box-shadow: var(--shadow-xs);
}

    .tc-step-num.contrast {
        background: linear-gradient(135deg, var(--contrast-soft), transparent);
        border-color: rgba(245, 158, 11, .22);
        color: var(--contrast);
    }

html[data-bs-theme="dark"] .tc-step-num.contrast {
    border-color: rgba(251, 191, 36, .26);
}

.tc-step-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-step-label {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.tc-step-sub {
    font-size: 14px;
    color: var(--text2);
}

.tc-request-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tc-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tc-pill,
.tc-mode-pill {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border2);
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    cursor: pointer;
    user-select: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}

.tc-pill {
    min-height: 100px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.tc-mode-pill {
    min-height: 84px;
    padding: 16px 18px;
}

    .tc-pill:hover,
    .tc-mode-pill:hover {
        border-color: rgba(214, 48, 49, .35);
        background: var(--surface);
        box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-md);
        transform: translateY(-2px);
    }

html[data-bs-theme="dark"] .tc-mode-pill:hover,
html[data-bs-theme="dark"] .tc-pill:hover {
    border-color: rgba(239, 83, 80, .42);
}

.tc-pill.active,
.tc-mode-pill.active {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: var(--primary-strong);
    box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-md);
    transform: translateY(-2px);
}

html[data-bs-theme="dark"] .tc-pill.active,
html[data-bs-theme="dark"] .tc-mode-pill.active {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: var(--primary);
}

.tc-pill-top,
.tc-mode-pill-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.tc-pill-text,
.tc-mode-pill-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.tc-pill-title,
.tc-mode-pill-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.tc-pill-sub,
.tc-mode-pill-sub {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text2);
}

.tc-pill.active .tc-pill-title,
.tc-pill.active .tc-pill-sub,
.tc-mode-pill.active .tc-mode-pill-title,
.tc-mode-pill.active .tc-mode-pill-sub {
    color: #ffffff;
}

.tc-pill.active .tc-pill-sub,
.tc-mode-pill.active .tc-mode-pill-sub {
    color: rgba(255,255,255,.82);
}

.tc-pill-check,
.tc-mode-pill-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border2);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background .2s, border-color .2s, transform .2s;
}

    .tc-pill-check::after,
    .tc-mode-pill-check::after {
        content: "";
        width: 9px;
        height: 5px;
        border-left: 2px solid transparent;
        border-bottom: 2px solid transparent;
        transform: rotate(-45deg) scale(.9);
        opacity: 0;
        margin-top: -2px;
        transition: opacity .18s, border-color .18s;
    }

.tc-pill.active .tc-pill-check,
.tc-mode-pill.active .tc-mode-pill-check {
    background: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.35);
    transform: scale(1.05);
}

    .tc-pill.active .tc-pill-check::after,
    .tc-mode-pill.active .tc-mode-pill-check::after {
        opacity: 1;
        border-color: #fff;
    }

.tc-info {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--text2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color .15s, color .15s, box-shadow .15s, background .15s;
    z-index: 2;
    position: relative;
}

    .tc-info:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-soft);
    }

    .tc-info:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--primary-ring);
        border-color: var(--primary);
    }

.tc-pill.active .tc-info {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.30);
    color: rgba(255,255,255,.90);
}

    .tc-pill.active .tc-info:hover {
        background: rgba(255,255,255,.28);
        color: #fff;
    }

.tc-tooltip-wide {
    --bs-tooltip-max-width: 380px;
    text-align: left;
    white-space: normal;
}

.tc-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tc-field {
    display: flex;
    flex-direction: column;
}

    .tc-field label,
    .tc-field .form-label {
        font-family: var(--font-body);
        font-size: 15.5px;
        font-weight: 600;
        color: var(--field-label);
        margin-bottom: 6px;
        letter-spacing: .01em;
    }

.tc-inp,
.tc-sel,
.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    background-color: var(--inp-bg);
    border: 1.5px solid var(--inp-border);
    border-radius: var(--radius-md);
    padding: .68rem .85rem;
    min-height: 44px;
    line-height: 1.5;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
    width: 100%;
}

    .tc-inp::placeholder,
    .form-control::placeholder {
        color: var(--text3) !important;
    }

    .tc-inp:focus,
    .tc-sel:focus,
    .form-control:focus,
    .form-select:focus {
        border-color: var(--inp-focus);
        box-shadow: 0 0 0 3px var(--primary-ring), inset 0 1px 2px rgba(0,0,0,.04);
        background-color: var(--inp-bg);
    }

    .tc-inp[readonly] {
        background: var(--surface2);
        color: var(--text2);
        cursor: default;
    }

html[data-bs-theme="dark"] .form-select option {
    background-color: #2d2d2f;
    color: var(--text);
}

.tc-checks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tc-opt-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1.5px solid var(--inp-border);
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
}

    .tc-opt-pill:hover {
        border-color: var(--border2);
        background: var(--surface);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

    .tc-opt-pill.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 2px 10px var(--primary-ring);
    }

html[data-bs-theme="dark"] .tc-opt-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(239,83,80,.28);
}

.tc-checkline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, box-shadow .15s, transform .1s, background .15s;
}

    .tc-checkline:hover {
        border-color: rgba(214,48,49,.30);
        box-shadow: 0 0 0 3px var(--primary-ring);
        background: var(--surface);
        transform: translateY(-1px);
    }

.tc-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid var(--inp-border);
    background: var(--inp-bg);
    margin-top: 1px;
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

    .tc-check-input:checked {
        background: var(--primary);
        border-color: var(--primary);
    }

        .tc-check-input:checked::after {
            content: "";
            width: 9px;
            height: 5px;
            border-left: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(-45deg);
            margin-top: -1px;
        }

    .tc-check-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--primary-ring);
    }

.tc-check-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.tc-check-title {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.tc-check-sub {
    color: var(--text2);
    font-size: 12px;
}

.tc-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.tc-map {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border2);
    overflow: hidden;
    height: 300px;
    width: 100%;
    box-shadow: var(--shadow-xs);
}

.tc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-danger {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: .03em;
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-strong) 100%);
    border: none;
    border-radius: var(--radius-md);
    padding: .72rem 1.6rem;
    color: #fff;
    box-shadow: 0 2px 12px var(--primary-ring), var(--shadow-sm);
    transition: opacity .18s, transform .18s, box-shadow .18s, filter .18s;
    cursor: pointer;
}

    .btn-danger:hover {
        opacity: .96;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(214,48,49,.30), var(--shadow-md);
        color: #fff;
        filter: saturate(1.04);
    }

    .btn-danger:active {
        transform: scale(.97);
        box-shadow: 0 2px 8px var(--primary-ring);
    }

.btn-outline-secondary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .02em;
    background: transparent;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-md);
    padding: .67rem 1.4rem;
    color: var(--text2);
    transition: border-color .18s, background .18s, color .18s, transform .18s, box-shadow .18s;
    cursor: pointer;
}

    .btn-outline-secondary:hover {
        border-color: var(--text2);
        background: var(--surface2);
        color: var(--text);
        transform: translateY(-1px);
        box-shadow: var(--shadow-xs);
    }

    .btn-outline-secondary:active {
        transform: scale(.97);
    }

.tc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tc-mini {
    font-size: 11.5px;
    color: var(--text3);
    font-weight: 500;
    letter-spacing: .04em;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface2) 100%);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 16px;
    position: relative;
}

    .modal-header::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--contrast) 50%, #ffd37a 100%);
    }

.modal-title.tc-modal-head {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -.01em;
}

.modal-body {
    padding: 22px 24px;
}

    .modal-body .form-control,
    .modal-body .form-select {
        background-color: var(--inp-bg);
        border-color: var(--inp-border);
        color: var(--text);
    }

    .modal-body .form-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--field-label);
        margin-bottom: 6px;
    }

    .modal-body .btn-danger {
        padding: .6rem 1.4rem;
        font-size: 13px;
    }

    .modal-body .btn-secondary {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 13px;
        background: var(--surface2);
        border: 1.5px solid var(--border2);
        border-radius: var(--radius-md);
        padding: .58rem 1.2rem;
        color: var(--text2);
        transition: background .15s, border-color .15s, color .15s, transform .15s;
        cursor: pointer;
    }

        .modal-body .btn-secondary:hover {
            background: var(--surface);
            border-color: var(--border2);
            color: var(--text);
            transform: translateY(-1px);
        }

    .modal-body .btn-outline-danger {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 13px;
        background: transparent;
        border: 1.5px solid var(--primary);
        border-radius: var(--radius-md);
        padding: .58rem 1.2rem;
        color: var(--primary);
        transition: background .15s, color .15s, box-shadow .15s;
        cursor: pointer;
    }

        .modal-body .btn-outline-danger:hover {
            background: var(--primary-soft);
            box-shadow: 0 0 0 3px var(--primary-ring);
        }

        .modal-body .btn-outline-danger:disabled {
            opacity: .4;
            cursor: default;
        }

.tc-help {
    font-size: 12px;
    color: var(--text2);
}

.alert-danger {
    background: var(--primary-soft);
    border: 1px solid rgba(214,48,49,.22);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 10px 14px;
}

.tc-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8,13,20,.35);
    backdrop-filter: blur(4px);
}

    .tc-loader.show {
        display: flex;
    }

    .tc-loader .tc-loader-card {
        background: var(--surface);
        border: 1px solid var(--border2);
        border-radius: var(--radius-lg);
        padding: 14px 20px;
        box-shadow: var(--shadow-lg);
        display: inline-flex;
        align-items: center;
        gap: 12px;
        color: var(--text);
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 14px;
    }

    .tc-loader .spinner-border {
        width: 20px;
        height: 20px;
        border-width: 2.5px;
        color: var(--primary);
    }

.pac-container,
.datepicker-dropdown {
    z-index: 2000 !important;
}

html[data-bs-theme="dark"] .datepicker-dropdown {
    background: var(--surface) !important;
    border: 1px solid var(--border2) !important;
    box-shadow: var(--shadow-lg) !important;
}

html[data-bs-theme="dark"] .datepicker-picker {
    background: var(--surface) !important;
    color: var(--text) !important;
}

html[data-bs-theme="dark"] .datepicker-header .datepicker-controls .button {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border2) !important;
}

html[data-bs-theme="dark"] .datepicker-view .days .day,
html[data-bs-theme="dark"] .datepicker-view .months .month,
html[data-bs-theme="dark"] .datepicker-view .years .year,
html[data-bs-theme="dark"] .datepicker-view .decades .decade {
    color: var(--text) !important;
}

html[data-bs-theme="dark"] .datepicker-view .dow {
    color: var(--text2) !important;
}

html[data-bs-theme="dark"] .datepicker-view .day:hover,
html[data-bs-theme="dark"] .datepicker-view .month:hover,
html[data-bs-theme="dark"] .datepicker-view .year:hover {
    background: var(--surface2) !important;
}

html[data-bs-theme="dark"] .datepicker-view .day.prev,
html[data-bs-theme="dark"] .datepicker-view .day.next {
    color: var(--text3) !important;
}

html[data-bs-theme="dark"] .datepicker-footer {
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
}

    html[data-bs-theme="dark"] .datepicker-footer .datepicker-controls .button {
        background: var(--surface2) !important;
        color: var(--text) !important;
        border: 1px solid var(--border2) !important;
    }

html[data-bs-theme="dark"] #map .gm-style .gm-style-mtc button,
html[data-bs-theme="dark"] #map .gm-style button.gm-control-active,
html[data-bs-theme="dark"] #map .gm-style .gm-fullscreen-control,
html[data-bs-theme="dark"] #map .gm-style .gm-svpc,
html[data-bs-theme="dark"] #map .gm-style .gmnoprint > div {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border2) !important;
    box-shadow: var(--shadow-md) !important;
}

    html[data-bs-theme="dark"] #map .gm-style .gm-fullscreen-control img,
    html[data-bs-theme="dark"] #map .gm-style button.gm-control-active img,
    html[data-bs-theme="dark"] #map .gm-style .gm-svpc img,
    html[data-bs-theme="dark"] #map .gm-style .gm-style-mtc button img {
        filter: invert(1) grayscale(1) brightness(1.15) !important;
    }

#RequirementSection.d-none,
#MakeModelSection.d-none {
    display: none !important;
}

@media (max-width: 860px) {
    .tc-request-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .tc-grid2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 660px) {
    .tc-mode-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tc-card-hd,
    .tc-card-bd {
        padding: 18px 16px;
    }

    .tc-wrap {
        margin: 16px auto 60px;
        padding: 0 12px;
    }

    .tc-actions,
    .tc-foot {
        justify-content: stretch;
    }

    .btn-danger,
    .btn-outline-secondary,
    .modal-body .btn-secondary,
    .modal-body .btn-outline-danger {
        width: 100%;
    }

    .tc-h1-main {
        line-height: 1.1;
    }
}
.tc-capacity-row {
    display: contents;
}

@media (max-width: 576px) {
    .tc-capacity-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.tc-installation-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tc-installation-radio-card {
    position: relative;
    margin: 0;
    cursor: pointer;
}

    .tc-installation-radio-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.tc-installation-radio-ui {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 16px;
    border: 1.5px solid var(--inp-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    box-shadow: var(--shadow-xs);
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}

.tc-installation-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    position: relative;
    flex: 0 0 auto;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

    .tc-installation-radio-dot::after {
        content: "";
        position: absolute;
        inset: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #fff;
        transform: translate(-50%, -50%) scale(0);
        transition: transform .18s ease;
    }

.tc-installation-radio-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    transition: color .18s;
}

.tc-installation-radio-card:hover .tc-installation-radio-ui {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-sm);
    transform: translateY(-1px);
}

.tc-installation-radio-card input[type="radio"]:checked + .tc-installation-radio-ui {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: var(--primary-strong);
    box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-sm);
}

    .tc-installation-radio-card input[type="radio"]:checked + .tc-installation-radio-ui .tc-installation-radio-dot {
        background: rgba(255,255,255,.18);
        border-color: #fff;
    }

        .tc-installation-radio-card input[type="radio"]:checked + .tc-installation-radio-ui .tc-installation-radio-dot::after {
            transform: translate(-50%, -50%) scale(1);
        }

    .tc-installation-radio-card input[type="radio"]:checked + .tc-installation-radio-ui .tc-installation-radio-text {
        color: #fff;
    }

.tc-installation-radio-card input[type="radio"]:focus + .tc-installation-radio-ui {
    box-shadow: 0 0 0 3px var(--primary-ring), var(--shadow-sm);
}

@media (max-width: 576px) {
    .tc-installation-radio-grid {
        grid-template-columns: 1fr;
    }
}