/**
 * TripDust Taxi Booking — Premium Blue Design System
 * Matches tripdust.com: Inter font, #2563eb blue, dark navy hero, subtle shadows
 */

/* ── Base ─────────────────────────────────────────────────── */
.td-taxi-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 56px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

/* ── Hero ─────────────────────────────────────────────────── */
.td-taxi-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
}

.td-taxi-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-taxi-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.td-taxi-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ── Trust Badges ─────────────────────────────────────────── */
.td-taxi-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}

.td-taxi-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.td-taxi-trust-badge svg {
    color: #2563eb;
    flex-shrink: 0;
}

/* ── Progress Steps ───────────────────────────────────────── */
.td-taxi-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
}

/* Background track */
.td-taxi-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

/* Animated fill line — uses scaleX so math is always exact */
.td-taxi-progress-fill {
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #2563eb;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.td-taxi-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.td-taxi-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.td-taxi-step-indicator.active .td-taxi-step-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.td-taxi-step-indicator.completed .td-taxi-step-number {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.td-taxi-step-number-text {
    line-height: 1;
}

.td-taxi-step-indicator.completed .td-taxi-step-number-text {
    display: none;
}

.td-taxi-step-indicator.completed .td-taxi-step-number::after {
    content: '✓';
    font-size: 15px;
    font-weight: 700;
}

.td-taxi-step-label {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}

.td-taxi-step-indicator.active .td-taxi-step-label {
    color: #2563eb;
    font-weight: 600;
}

.td-taxi-step-indicator.completed .td-taxi-step-label {
    color: #10b981;
}

/* ── Cards ────────────────────────────────────────────────── */
.td-taxi-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.td-taxi-card-header {
    padding: 28px 32px 0;
}

.td-taxi-card-body {
    padding: 20px 32px 32px;
}

.td-taxi-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.td-taxi-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.td-taxi-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ── Section Labels ───────────────────────────────────────── */
.td-taxi-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin: 24px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.td-taxi-section-label:first-child {
    margin-top: 0;
}

/* ── Passenger Counter ────────────────────────────────────── */
.td-taxi-pax-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.td-taxi-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

#td-taxi-booking-app .td-taxi-counter-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
}

#td-taxi-booking-app .td-taxi-counter-btn:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #eff6ff !important;
}

.td-taxi-counter-input {
    width: 64px;
    height: 44px;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

.td-taxi-pax-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Info note — amber (informational only) */
.td-taxi-pax-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    background: #fffbeb;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
    border: 1px solid #fde68a;
}

.td-taxi-pax-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

/* ── Vehicle Selection ────────────────────────────────────── */
.td-taxi-vehicles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    /* space for the recommended badge that pops above first card */
    padding-top: 2px;
}

.td-taxi-vehicle-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.td-taxi-vehicle-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.td-taxi-vehicle-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

.td-taxi-vehicle-option.recommended {
    position: relative;
}

.td-taxi-vehicle-option.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    right: 16px;
    background: #10b981;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.td-taxi-vehicle-icon {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-icon {
    background: #2563eb;
}

.td-taxi-vehicle-icon svg {
    width: 26px;
    height: 26px;
    color: #64748b;
    transition: color 0.2s;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-icon svg {
    color: #fff;
}

.td-taxi-vehicle-info {
    flex: 1;
}

.td-taxi-vehicle-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px;
}

.td-taxi-vehicle-capacity {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.td-taxi-vehicle-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.td-taxi-vehicle-tag {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.td-taxi-vehicle-price {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 5px;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-price {
    color: #1d4ed8;
}

.td-taxi-vehicle-check {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-check {
    background: #2563eb;
    border-color: #2563eb;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* ── Form Elements ────────────────────────────────────────── */
.td-taxi-form-group {
    margin-bottom: 16px;
}

.td-taxi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.td-taxi-form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
    font-size: 13px;
}

.td-taxi-input,
.td-taxi-select,
.td-taxi-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: all 0.2s ease;
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
}

.td-taxi-input:focus,
.td-taxi-select:focus,
.td-taxi-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.td-taxi-select:disabled {
    background: #f8fafc;
    cursor: not-allowed;
    color: #94a3b8;
}

.td-taxi-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Route Selection ──────────────────────────────────────── */
.td-taxi-route-results {
    margin-bottom: 8px;
}

.td-taxi-route-results>label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    font-size: 13px;
}

.td-taxi-routes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-taxi-route-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.td-taxi-route-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.td-taxi-route-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

.td-taxi-route-info {
    flex: 1;
}

.td-taxi-route-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 5px;
}

.td-taxi-route-type {
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.td-taxi-route-stops {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.td-taxi-route-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 15px;
    white-space: nowrap;
    margin-left: 16px;
}

.td-taxi-no-routes {
    padding: 36px 24px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    font-size: 14px;
}

/* ── Return Trip Fields ───────────────────────────────────── */
/* No CSS animation here — jQuery slideDown() handles the reveal */
.td-taxi-return-fields {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.td-taxi-return-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #2563eb;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Step 1: single centred CTA ──────────────────────────── */
.td-taxi-step-content[data-step="1"] .td-taxi-actions {
    justify-content: center;
}

.td-taxi-step-content[data-step="1"] .td-taxi-btn-primary {
    min-width: 200px;
}

/* ── WooCommerce / Elementor / Hello-theme button reset ─────
   Scoped to our container so we don't affect the wider page.
   WooCommerce injects: .woocommerce button.button { color: #515151 }
   Elementor injects button color via CSS variables.
   Only color/appearance are reset here so our class-level styles
   for .td-taxi-btn and .td-taxi-counter-btn are not clobbered. ── */
#td-taxi-booking-app button {
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.td-taxi-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-end;
}

#td-taxi-booking-app .td-taxi-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 13px 24px !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    border: none !important;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    text-decoration: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#td-taxi-booking-app .td-taxi-btn-primary {
    background: #2563eb !important;
    color: #fff !important;
    text-decoration: none !important;
}

#td-taxi-booking-app .td-taxi-btn-primary:hover:not(:disabled) {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

#td-taxi-booking-app .td-taxi-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#td-taxi-booking-app .td-taxi-btn-outline {
    background: #fff !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
}

#td-taxi-booking-app .td-taxi-btn-outline:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #374151 !important;
}

/* Back buttons — ghost style so they don't compete with primary CTA */
#td-taxi-booking-app .td-taxi-btn.td-taxi-prev {
    background: transparent;
    color: #94a3b8;
    border: none;
    box-shadow: none;
    padding-left: 8px;
    padding-right: 8px;
}

#td-taxi-booking-app .td-taxi-btn.td-taxi-prev:hover {
    color: #475569;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* ── Step 3 missing-fields hint ──────────────────────────── */
.td-taxi-step3-hint {
    display: none;
    font-size: 12px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 12px;
    text-align: center;
    line-height: 1.5;
}

/* ── Review Card ──────────────────────────────────────────── */
.td-taxi-review-summary {
    background: #f8fafc;
    border-radius: 14px;
    padding: 4px 20px 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.td-taxi-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.td-taxi-review-item:last-child {
    border-bottom: none;
}

.td-taxi-review-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.td-taxi-review-value {
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Price box — dark navy (matches site hero) */
.td-taxi-price-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 24px;
}

.td-taxi-price-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.td-taxi-price-value {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
}

.td-taxi-price-note {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 8px;
}

/* ── Inline Error Messages ────────────────────────────────── */
.td-taxi-step-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: fadeIn 0.25s ease;
}

.td-taxi-step-error svg {
    flex-shrink: 0;
    color: #dc2626;
}

.td-taxi-error {
    color: #dc2626;
    background: #fef2f2;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* ── Loading ──────────────────────────────────────────────── */
.td-taxi-loading {
    text-align: center;
    padding: 48px 24px;
}

.td-taxi-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.td-taxi-loading p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.td-taxi-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.td-taxi-loading-box {
    background: #fff;
    padding: 40px 48px;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.td-taxi-loading-box p {
    color: #374151;
    font-weight: 500;
    margin-top: 16px;
    font-size: 15px;
}

/* ── Step Content Animation ───────────────────────────────── */
.td-taxi-step-content {
    display: none;
}

.td-taxi-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Flatpickr Blue Theme Overrides ───────────────────────── */
.td-taxi-container .flatpickr-calendar {
    font-family: 'Inter', sans-serif;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.td-taxi-container .flatpickr-day.selected,
.td-taxi-container .flatpickr-day.selected:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.td-taxi-container .flatpickr-day:hover,
.td-taxi-container .flatpickr-day.prevMonthDay:hover,
.td-taxi-container .flatpickr-day.nextMonthDay:hover {
    background: #eff6ff;
    border-color: #eff6ff;
}

.td-taxi-container .flatpickr-day.today {
    border-color: #2563eb;
}

.td-taxi-container .flatpickr-day.today:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.td-taxi-container .flatpickr-months .flatpickr-prev-month:hover svg,
.td-taxi-container .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #2563eb;
}

/* Readonly date input — show pointer cursor so it's clickable */
.td-taxi-container input[readonly].flatpickr-input {
    cursor: pointer;
    background: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
/* 680px rule removed — trust badges handled by horizontal scroll at mobile */

@media (max-width: 640px) {
    .td-taxi-container {
        padding: 24px 16px 40px;
    }

    .td-taxi-hero {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        border-radius: 16px;
        gap: 16px;
    }

    /* Trust badges: horizontal scroll strip on mobile */
    .td-taxi-trust-badges {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 24px;
    }

    .td-taxi-trust-badges::-webkit-scrollbar {
        display: none;
    }

    .td-taxi-trust-badge {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 14px;
    }

    .td-taxi-card-header {
        padding: 24px 20px 0;
    }

    .td-taxi-card-body {
        padding: 18px 20px 28px;
    }

    .td-taxi-title {
        font-size: 19px;
    }

    .td-taxi-step-label {
        font-size: 11px;
    }

    .td-taxi-form-row {
        grid-template-columns: 1fr;
    }

    .td-taxi-actions {
        flex-direction: column-reverse;
    }

    #td-taxi-booking-app .td-taxi-btn {
        width: 100%;
    }

    .td-taxi-vehicle-option {
        padding: 14px 16px;
    }

    .td-taxi-route-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .td-taxi-route-price {
        margin: 0;
        font-size: 16px;
        white-space: normal;
    }

    .td-taxi-price-value {
        font-size: 34px;
    }

    .td-taxi-review-value {
        max-width: 55%;
    }

    .td-taxi-step-content[data-step="4"] #td-taxi-add-to-cart {
        padding: 16px 20px;
        font-size: 15px;
    }

    .td-taxi-price-value {
        font-size: 36px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DESIGN ENHANCEMENTS — Premium polish layer
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: richer gradient + glass icon ──────────────────── */
.td-taxi-hero {
    background: linear-gradient(135deg, #1a3560 0%, #111827 60%, #0c1525 100%);
    position: relative;
    overflow: hidden;
}

.td-taxi-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.td-taxi-hero-icon {
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.td-taxi-hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.td-taxi-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ── Trust badges: subtle glow on hover ──────────────────── */
.td-taxi-trust-badge {
    transition: all 0.2s ease;
    font-weight: 600;
}

.td-taxi-trust-badge:hover {
    border-color: #bfdbfe;
    background: #f0f7ff;
    color: #1d4ed8;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
}

.td-taxi-trust-badge:hover svg {
    color: #1d4ed8;
}

/* ── Progress: larger tap targets + stronger active ring ─── */
.td-taxi-progress {
    margin-bottom: 32px;
}

.td-taxi-step-number {
    width: 44px;
    height: 44px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.td-taxi-step-indicator.active .td-taxi-step-number {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18), 0 2px 12px rgba(37, 99, 235, 0.3);
}

.td-taxi-progress::before {
    top: 22px;
}

.td-taxi-progress-fill {
    top: 22px;
}

.td-taxi-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-top: 9px;
}

/* ── Card: refined shadow + smooth rounding ──────────────── */
.td-taxi-card {
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
}

.td-taxi-card-header {
    padding: 32px 36px 0;
}

.td-taxi-card-body {
    padding: 22px 36px 36px;
}

/* Step badge: cleaner pill with dot */
.td-taxi-step-badge {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 5px 14px;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

/* Titles: stronger hierarchy */
.td-taxi-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 10px 0 4px;
}

.td-taxi-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* ── Passenger counter: more spacious, bigger number ─────── */
.td-taxi-pax-selector {
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.td-taxi-counter-input {
    width: 72px;
    height: 52px;
    font-size: 28px;
    border-radius: 12px;
}

#td-taxi-booking-app .td-taxi-counter-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 20px;
}

/* ── Vehicle cards: richer selected state ────────────────── */
.td-taxi-vehicle-option {
    border-radius: 16px;
    padding: 20px 22px;
    border: 1.5px solid #e8eef6;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.td-taxi-vehicle-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.td-taxi-vehicle-option.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 0 0 0 2px #2563eb, 0 4px 16px rgba(37, 99, 235, 0.12);
    transform: none;
}

.td-taxi-vehicle-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f1f5f9;
}

.td-taxi-vehicle-option.selected .td-taxi-vehicle-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.td-taxi-vehicle-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.td-taxi-vehicle-tag {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    border-radius: 6px;
    padding: 3px 9px;
}

/* ── Form inputs: cleaner, iOS-safe ─────────────────────── */
.td-taxi-input,
.td-taxi-select {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 15px;
}

.td-taxi-input:focus,
.td-taxi-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.td-taxi-textarea {
    min-height: 88px;
    font-size: 14px;
}

.td-taxi-form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #374151;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ── Section labels: stronger visual separator ───────────── */
.td-taxi-section-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #94a3b8;
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

/* ── Route options: cleaner cards ────────────────────────── */
.td-taxi-route-option {
    border-radius: 12px;
    border: 1.5px solid #e8eef6;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.td-taxi-route-option:hover {
    border-color: #93c5fd;
    transform: translateX(2px);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.td-taxi-route-option.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 0 0 0 2px #2563eb;
    transform: none;
}

.td-taxi-route-name {
    font-size: 15px;
    font-weight: 700;
}

.td-taxi-route-price {
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
}

/* ── Review step: boarding-pass look ─────────────────────── */
.td-taxi-review-summary {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.td-taxi-review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.td-taxi-review-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.td-taxi-review-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    max-width: 58%;
}

/* ── Price box: more impact ───────────────────────────────── */
.td-taxi-price-box {
    background: linear-gradient(135deg, #1a3560 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

.td-taxi-price-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.td-taxi-price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 6px;
}

.td-taxi-price-value {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.td-taxi-price-note {
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 0.2px;
}

/* ── Buttons: more presence ───────────────────────────────── */
#td-taxi-booking-app .td-taxi-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

#td-taxi-booking-app .td-taxi-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    text-decoration: none !important;
    letter-spacing: 0.2px;
}

#td-taxi-booking-app .td-taxi-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
    transform: translateY(-2px);
}

/* Step 4 Add to Cart: full-width for max impact */
.td-taxi-step-content[data-step="4"] .td-taxi-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
}

.td-taxi-step-content[data-step="4"] #td-taxi-add-to-cart {
    width: 100%;
    justify-content: center;
    padding: 17px 28px;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);
}

.td-taxi-step-content[data-step="4"] .td-taxi-prev {
    width: 100%;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Tablet (768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
    .td-taxi-container {
        padding: 28px 20px 48px;
    }

    .td-taxi-hero {
        padding: 28px 32px;
        gap: 20px;
    }

    .td-taxi-hero-title {
        font-size: 22px;
    }

    .td-taxi-card-header {
        padding: 24px 24px 0;
    }

    .td-taxi-card-body {
        padding: 16px 24px 28px;
    }

    /* Ensure form inputs meet touch target minimums on tablet */
    .td-taxi-input,
    .td-taxi-select {
        min-height: 44px;
    }
}

/* ── Small mobile (480px) ─────────────────────────────────── */
@media (max-width: 480px) {
    .td-taxi-hero {
        padding: 22px 20px;
    }

    .td-taxi-hero-title {
        font-size: 19px;
    }

    .td-taxi-hero-sub {
        font-size: 13px;
    }

    .td-taxi-hero-icon {
        width: 52px;
        height: 52px;
    }

    .td-taxi-step-label {
        font-size: 10px;
    }

    .td-taxi-step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* Inputs: larger touch targets */
    .td-taxi-input,
    .td-taxi-select,
    .td-taxi-textarea {
        min-height: 48px;
        font-size: 16px;
        /* prevents iOS zoom on focus */
    }

    #td-taxi-booking-app .td-taxi-btn {
        min-height: 48px;
        font-size: 15px;
    }

    #td-taxi-booking-app .td-taxi-counter-btn {
        width: 48px;
        height: 48px;
    }

    .td-taxi-pax-selector {
        gap: 16px;
        padding: 20px;
    }

    .td-taxi-title {
        font-size: 17px;
    }

    /* Review items: stack label above value on very small screens */
    .td-taxi-review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .td-taxi-review-value {
        max-width: 100%;
        text-align: left;
    }

    .td-taxi-price-value {
        font-size: 30px;
    }

    /* Vehicle cards: better mobile layout */
    .td-taxi-vehicle-option {
        padding: 14px 16px;
        gap: 12px;
    }

    .td-taxi-vehicle-icon {
        width: 44px;
        height: 44px;
    }

    .td-taxi-vehicle-icon svg {
        width: 22px;
        height: 22px;
    }

    .td-taxi-vehicle-name {
        font-size: 14px;
    }

    .td-taxi-vehicle-capacity {
        font-size: 12px;
    }

    /* Route options: better mobile layout */
    .td-taxi-route-option {
        padding: 12px 14px;
    }

    .td-taxi-route-name {
        font-size: 14px;
    }

    .td-taxi-route-price {
        font-size: 15px;
        margin-top: 8px;
    }

    /* Form rows: ensure single column */
    .td-taxi-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Return fields: better spacing */
    .td-taxi-return-fields {
        padding: 16px;
    }

    /* Loading box: smaller on mobile */
    .td-taxi-loading-box {
        padding: 32px 24px;
        margin: 0 20px;
    }
}