/* ============================================================
   TERRA NOVA — DELIVERIES STYLESHEET
   Modern, mobile-first design system for booking flow
   ============================================================ */

:root {
    /* Haul2Door brand palette — pulled from the logo */
    --tn-primary: #08274D;          /* logo navy */
    --tn-primary-dark: #051a36;     /* darker navy for hovers */
    --tn-gold: #EAA71D;             /* logo gold — reserved for highlights */
    --tn-gold-dark: #C4891A;
    --tn-accent: #08274D;           /* interactive accents match primary */
    --tn-accent-light: #eaf0f8;     /* soft navy tint */
    --tn-success: #16a34a;
    --tn-danger: #dc2626;
    --tn-text: #1e293b;
    --tn-text-muted: #64748b;
    --tn-border: #e2e8f0;
    --tn-bg: #f8fafc;
    --tn-card-bg: #ffffff;
    --tn-radius: 12px;
    --tn-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --tn-shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--tn-bg);
    color: var(--tn-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ──────────────────────────────────────────────── */

.tn-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--tn-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 0.6rem 0;
    z-index: 1050;
}

.tn-brand-name {
    color: var(--tn-primary) !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.tn-powered-by {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    line-height: 1.1;
}

.tn-powered-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tn-powered-logo {
    height: 24px;
    width: auto;
    margin-top: 2px;
}

/* ── Progress Bar ────────────────────────────────────────── */

.tn-progress-bar {
    background: var(--tn-card-bg);
    border-bottom: 1px solid var(--tn-border);
    padding: 1rem 0;
    margin-top: 78px;
    position: sticky;
    top: 62px;
    z-index: 100;
}

.tn-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
}

.tn-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    max-width: 160px;
    position: relative;
}

.tn-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--tn-border);
    z-index: 0;
}

.tn-step.completed:not(:last-child)::after {
    background: var(--tn-accent);
}

.tn-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--tn-border);
    color: var(--tn-text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tn-step.active .tn-step-circle {
    background: var(--tn-accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--tn-accent-light);
}

.tn-step.completed .tn-step-circle {
    background: var(--tn-success);
    color: #fff;
}

.tn-step-label {
    font-size: 0.7rem;
    color: var(--tn-text-muted);
    text-align: center;
    font-weight: 500;
}

.tn-step.active .tn-step-label {
    color: var(--tn-accent);
    font-weight: 600;
}

.tn-step.completed .tn-step-label {
    color: var(--tn-success);
}

/* ── Main Content ────────────────────────────────────────── */

.tn-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
}

/* ── Card ────────────────────────────────────────────────── */

.tn-card {
    background: var(--tn-card-bg);
    border-radius: var(--tn-radius);
    box-shadow: var(--tn-shadow);
    border: 1px solid var(--tn-border);
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.tn-card-header {
    margin-bottom: 1.5rem;
}

.tn-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tn-text);
    margin: 0 0 0.4rem;
}

.tn-subtitle {
    color: var(--tn-text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ── Features List ───────────────────────────────────────── */

.tn-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tn-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--tn-text-muted);
    padding: 0.5rem 0.75rem;
    background: var(--tn-bg);
    border-radius: 8px;
}

.tn-feature i {
    color: var(--tn-accent);
    font-size: 1rem;
}

/* ── Form Elements ───────────────────────────────────────── */

.tn-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tn-text);
    margin-bottom: 0.4rem;
}

.tn-input {
    border: 1.5px solid var(--tn-border);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--tn-card-bg);
}

.tn-input:focus {
    border-color: var(--tn-accent);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    outline: none;
}

.tn-error {
    color: var(--tn-danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.tn-divider {
    border: none;
    border-top: 1px solid var(--tn-border);
    margin: 1.5rem 0;
}

/* ── Vehicle Grid ────────────────────────────────────────── */

.tn-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tn-vehicle-option {
    display: flex;
}

.tn-vehicle-option input {
    display: none;
}

.tn-vehicle-card {
    border: 2px solid var(--tn-border);
    border-radius: var(--tn-radius);
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.tn-vehicle-card:hover {
    border-color: var(--tn-accent);
    box-shadow: 0 2px 12px rgba(44, 90, 160, 0.12);
}

.tn-vehicle-option input:checked + .tn-vehicle-card {
    border-color: var(--tn-accent);
    background: var(--tn-accent-light);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.tn-vehicle-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.tn-vehicle-card .bi-truck {
    padding: 2rem 0 0.5rem;
}

.tn-vehicle-info {
    padding: 0.75rem 0.75rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tn-vehicle-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.tn-vehicle-card small {
    font-size: 0.78rem;
    line-height: 1.3;
}

/* ── Location Groups ─────────────────────────────────────── */

.tn-location-group {
    margin-bottom: 0.5rem;
}

.tn-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px dashed var(--tn-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--tn-accent);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.4rem;
}

.tn-add-btn:hover {
    background: var(--tn-accent-light);
    border-color: var(--tn-accent);
}

/* ── Loading Options ─────────────────────────────────────── */

.tn-loading-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tn-loading-option input {
    display: none;
}

.tn-loading-card {
    border: 2px solid var(--tn-border);
    border-radius: var(--tn-radius);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tn-radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid var(--tn-border);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tn-radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.tn-loading-option input:checked + .tn-loading-card .tn-radio-dot {
    border-color: var(--tn-accent);
}

.tn-loading-option input:checked + .tn-loading-card .tn-radio-dot::after {
    background: var(--tn-accent);
}

.tn-loading-card:hover {
    border-color: var(--tn-accent);
}

.tn-loading-option input:checked + .tn-loading-card {
    border-color: var(--tn-accent);
    background: var(--tn-accent-light);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.tn-loading-content {
    flex: 1;
}

.tn-loading-fee {
    white-space: nowrap;
}

/* ── Items ───────────────────────────────────────────────── */

.tn-item-row {
    margin-bottom: 0.5rem;
}

/* ── Price Display ───────────────────────────────────────── */

.tn-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.tn-price-label {
    font-size: 0.9rem;
    color: var(--tn-text-muted);
}

.tn-price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tn-text);
}

.tn-total-bar {
    background: var(--tn-bg);
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-radius);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.tn-total-amount {
    font-size: 1.3rem;
    color: var(--tn-accent);
}

/* ── Summary ─────────────────────────────────────────────── */

.tn-summary {
    background: var(--tn-bg);
    border: 1px solid var(--tn-border);
    border-radius: var(--tn-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.tn-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.tn-edit-link {
    font-size: 0.8rem;
    color: var(--tn-accent);
    text-decoration: none;
    font-weight: 500;
}

.tn-edit-link:hover {
    text-decoration: underline;
}

.tn-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tn-summary-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tn-accent);
}

.tn-summary-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.88rem;
}

.tn-summary-row strong {
    min-width: 120px;
    flex-shrink: 0;
    color: var(--tn-text);
}

.tn-summary-row span {
    color: var(--tn-text-muted);
}

/* ── Price Breakdown ─────────────────────────────────────── */

.tn-price-breakdown {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tn-border);
}

.tn-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--tn-text-muted);
}

.tn-breakdown-total {
    border-top: 2px solid var(--tn-text);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 1rem;
    color: var(--tn-text);
}

/* ── Items List ──────────────────────────────────────────── */

.tn-items-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.tn-items-list li {
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--tn-text-muted);
}

.tn-items-list li::before {
    content: '•';
    color: var(--tn-accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* ── Confirmation ────────────────────────────────────────── */

.tn-confirmation-icon {
    font-size: 4rem;
    color: var(--tn-success);
}

.tn-booking-ref {
    background: var(--tn-accent-light);
    border: 1px solid #d0e3ff;
    border-radius: var(--tn-radius);
    padding: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
}

.tn-ref-label {
    font-size: 0.75rem;
    color: var(--tn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tn-ref-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tn-accent);
    letter-spacing: 1px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.tn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    line-height: 1.4;
}

.tn-btn-primary {
    background: var(--tn-accent);
    color: #fff;
}

.tn-btn-primary:hover {
    background: #234d8c;
    color: #fff;
}

.tn-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.tn-btn-outline {
    background: transparent;
    color: var(--tn-text);
    border: 1.5px solid var(--tn-border);
}

.tn-btn-outline:hover {
    background: var(--tn-bg);
    border-color: var(--tn-text-muted);
    color: var(--tn-text);
}

/* ── Footer ──────────────────────────────────────────────── */

.tn-footer {
    background: var(--tn-primary);
    color: rgba(255,255,255,0.5);
    padding: 1.5rem 0;
    font-size: 0.8rem;
}

.tn-footer a {
    color: rgba(255,255,255,0.7);
}

.tn-footer a:hover {
    color: #fff;
}

/* ── Navbar Navigation Links ─────────────────────────────── */

.tn-nav-link {
    color: var(--tn-primary) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem !important;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.tn-nav-link:hover,
.tn-nav-link:focus {
    color: var(--tn-gold-dark) !important;
    background: var(--tn-accent-light);
}

.tn-nav-book-btn {
    background: var(--tn-primary);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.tn-nav-book-btn:hover {
    background: var(--tn-primary-dark);
    color: #fff !important;
}

.tn-nav-toggler {
    border-color: var(--tn-border) !important;
    padding: 0.3rem 0.5rem;
}

.tn-nav-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(8,39,77,0.15);
}

/* Mobile nav collapse styling */
#h2dNavbar.show,
#h2dNavbar.collapsing {
    border-top: 1px solid var(--tn-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

#h2dNavbar .tn-nav-link {
    display: block;
    padding: 0.55rem 0.5rem !important;
}

#h2dNavbar .tn-nav-book-btn {
    display: inline-block;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

/* ── Static page top spacing (no progress bar) ───────────── */

.tn-main--no-steps {
    margin-top: 78px;
}

/* ── Modern Static Pages ─────────────────────────────────── */

.tn-page {
    padding: 0;
    margin: 0 -12px;
}

.tn-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tn-primary) 0%, #0d3a6f 60%, var(--tn-primary-dark) 100%);
    color: #fff;
    padding: 4rem 1.5rem 5rem;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 3rem;
}

.tn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(234,167,29,0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 50%);
    pointer-events: none;
}

.tn-hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--tn-gold);
    background: rgba(234,167,29,0.12);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tn-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.tn-hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.tn-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
}

.tn-page-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.tn-page-container--wide {
    max-width: 1140px;
}

/* Reset card max-width inside pages */
.tn-page-container .tn-card,
.tn-page-card {
    max-width: none;
    margin: 0 0 1.5rem;
    padding: 2rem 2.25rem;
}

@media (max-width: 575px) {
    .tn-page-container .tn-card,
    .tn-page-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--tn-radius);
    }

    .tn-hero {
        padding: 2.75rem 1.25rem 3.5rem;
        margin-bottom: 2rem;
        border-radius: 0 0 20px 20px;
    }
}

.tn-page-card {
    background: var(--tn-card-bg);
    border: 1px solid var(--tn-border);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(8,39,77,0.04);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
}

.tn-feature-tile {
    background: #fff;
    border: 1px solid var(--tn-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tn-feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(8,39,77,0.08);
    border-color: rgba(8,39,77,0.18);
}

.tn-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tn-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tn-primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.tn-feature-icon--gold {
    background: rgba(234,167,29,0.14);
    color: var(--tn-gold-dark);
}

.tn-feature-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tn-primary);
    margin: 0 0 0.5rem;
}

.tn-feature-tile p {
    color: var(--tn-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Mission / Vision pillars */
.tn-pillar {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--tn-border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tn-pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
}

.tn-pillar--mission::before { background: var(--tn-gold); }
.tn-pillar--vision::before { background: var(--tn-primary); }

.tn-pillar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--tn-gold-dark);
    margin-bottom: 0.5rem;
}

.tn-pillar--vision .tn-pillar-label { color: var(--tn-primary); }

.tn-pillar h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tn-primary);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.tn-pillar p {
    color: var(--tn-text);
    margin: 0;
    line-height: 1.7;
}

/* CTA banner */
.tn-cta-banner {
    background: linear-gradient(135deg, var(--tn-primary) 0%, var(--tn-primary-dark) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tn-cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(234,167,29,0.18), transparent 50%);
    pointer-events: none;
}

.tn-cta-banner h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 1;
}

.tn-cta-banner p {
    color: rgba(255,255,255,0.85);
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 1;
}

.tn-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tn-gold);
    color: #08274D !important;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(234,167,29,0.35);
}

.tn-cta-btn:hover {
    background: #f5b738;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(234,167,29,0.45);
    color: #08274D !important;
}

/* Legal / TOC styling */
.tn-legal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tn-legal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--tn-border);
    background: #fff;
    color: var(--tn-primary);
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.tn-legal-action-btn:hover {
    background: var(--tn-accent-light);
    color: var(--tn-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8, 39, 77, 0.08);
}

.tn-legal-toc {
    background: linear-gradient(135deg, var(--tn-accent-light) 0%, #fff 100%);
    border: 1px solid var(--tn-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tn-legal-toc h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tn-text-muted);
    font-weight: 700;
    margin: 0 0 1rem;
}

.tn-legal-toc ol {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.88rem;
}

.tn-legal-toc ol li {
    margin-bottom: 0.4rem;
    break-inside: avoid;
}

.tn-legal-toc a {
    color: var(--tn-primary);
    text-decoration: none;
    font-weight: 500;
}

.tn-legal-toc a:hover {
    text-decoration: underline;
    color: var(--tn-gold-dark);
}

@media (max-width: 575px) {
    .tn-legal-toc ol { columns: 1; }
    .tn-legal-actions { gap: 0.5rem; }
    .tn-legal-action-btn { width: 100%; justify-content: center; }
}

.tn-legal-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--tn-border);
    scroll-margin-top: 100px;
}

.tn-legal-section:last-child { border-bottom: none; }

.tn-legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tn-primary);
    margin: 0 0 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.tn-legal-section h2 .tn-legal-num {
    font-size: 0.78rem;
    color: var(--tn-gold-dark);
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(234,167,29,0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.tn-legal-section p,
.tn-legal-section li {
    color: var(--tn-text);
    line-height: 1.75;
}

.tn-legal-section ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.tn-legal-section ul li {
    margin-bottom: 0.35rem;
}

.tn-legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--tn-accent-light);
    color: var(--tn-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact rows */
.tn-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.15s;
}

.tn-contact-row + .tn-contact-row { margin-top: 0.5rem; }

.tn-contact-row:hover { background: var(--tn-accent-light); }

.tn-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tn-accent-light);
    color: var(--tn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tn-contact-row .tn-contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--tn-text-muted);
    margin: 0 0 0.15rem;
}

@media print {
    .tn-navbar,
    .tn-footer,
    .tn-legal-actions,
    .tn-legal-toc {
        display: none !important;
    }

    .tn-main,
    .tn-main--no-steps {
        padding-top: 0 !important;
    }

    .tn-page-card,
    .tn-legal-section {
        border: none !important;
        box-shadow: none !important;
    }
}

.tn-contact-row a,
.tn-contact-row p {
    color: var(--tn-primary);
    font-weight: 600;
    text-decoration: none;
    margin: 0;
    font-size: 0.98rem;
}

.tn-contact-row .tn-contact-sub {
    color: var(--tn-text-muted);
    font-weight: 400;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

/* Inline form styling tweaks */
.tn-form-card .form-label {
    color: var(--tn-primary);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}

.tn-form-card .form-control,
.tn-form-card .form-select {
    border-color: var(--tn-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tn-form-card .form-control:focus,
.tn-form-card .form-select:focus {
    border-color: var(--tn-primary);
    box-shadow: 0 0 0 0.2rem rgba(8,39,77,0.12);
}

.tn-submit-btn {
    background: linear-gradient(135deg, var(--tn-primary) 0%, var(--tn-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
    width: 100%;
}

.tn-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(8,39,77,0.25);
    color: #fff;
}

/* Driver-network coming-soon */
.tn-coming-soon {
    background: linear-gradient(135deg, #fff 0%, var(--tn-accent-light) 100%);
    border: 1px solid var(--tn-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.tn-coming-soon-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--tn-primary), var(--tn-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(8,39,77,0.25);
}

.tn-perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.tn-perk {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--tn-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.tn-perk i {
    color: var(--tn-gold);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.tn-perk strong {
    color: var(--tn-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.1rem;
}

.tn-perk span {
    color: var(--tn-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}



@media (max-width: 768px) {
    .tn-card {
        padding: 1.25rem;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .tn-title {
        font-size: 1.25rem;
    }

    .tn-features {
        grid-template-columns: 1fr;
    }

    .tn-step-label {
        display: none;
    }

    .tn-steps {
        gap: 0;
    }

    .tn-price-amount {
        font-size: 1.8rem;
    }

    .tn-progress-bar {
        margin-top: 56px;
        top: 56px;
    }

    .tn-summary-row {
        flex-direction: column;
        gap: 0;
    }

    .tn-summary-row strong {
        min-width: auto;
    }

    .tn-loading-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tn-brand-name {
        font-size: 0.95rem;
    }

    .tn-powered-logo {
        height: 18px;
    }

    .tn-vehicle-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .tn-navbar .container {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .tn-brand-name {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
    }

    .tn-powered-by {
        flex-shrink: 0;
    }

    .tn-powered-logo {
        height: 14px;
    }

    .tn-powered-label {
        font-size: 0.5rem;
    }
}

@media (max-width: 280px) {
    .tn-navbar .container {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .tn-brand-name {
        font-size: 0.8rem;
        overflow: visible;
        text-overflow: unset;
        flex-shrink: 0;
    }

    .tn-powered-by {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }

    .tn-powered-label {
        font-size: 0.45rem;
    }

    .tn-powered-logo {
        height: 12px;
        margin-top: 0;
    }

    .tn-progress-bar {
        margin-top: 80px;
        top: 80px;
    }

    .tn-main {
        padding-top: 2.5rem;
    }
}
