/* ============================================
   CAR BOOKING FORM — Premium UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* === CSS Custom Properties === */
:root {
    --cb-primary: #c61c25;
    --cb-primary-dark: #a0161d;
    --cb-primary-light: rgba(198, 28, 37, 0.08);
    --cb-primary-glow: rgba(198, 28, 37, 0.2);
    --cb-gradient: linear-gradient(135deg, var(--cb-primary) 0%, #a81820 100%);

    /* Backend-configurable colors */
    --cb-btn-color: #c61c25;
    --cb-btn-hover: #a0161d;
    --cb-price-color: #0f172a;
    --cb-progress-active: #c61c25;
    --cb-progress-completed: #10b981;

    --cb-dark: #0f172a;
    --cb-text: #334155;
    --cb-text-light: #64748b;
    --cb-text-muted: #94a3b8;
    --cb-bg: #ffffff;
    --cb-bg-subtle: #f8fafc;
    --cb-bg-section: #f1f5f9;
    --cb-border: #DADADA;
    --cb-border-light: #f1f5f9;
    --cb-radius: 10px;
    --cb-radius-lg: 20px;
    --cb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --cb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --cb-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --cb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --cb-success: #10b981;
    --cb-success-bg: #ecfdf5;
    --cb-error: #ef4444;
    --cb-error-bg: #fef2f2;
    --cb-warn: #f59e0b;
}

/* === Main Wrapper === */
.cb-wrapper {
    max-width: 860px;
    margin: 30px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cb-bg);
    padding: 36px 40px;
    border-radius: var(--cb-radius-lg);
    box-shadow: var(--cb-shadow-lg), 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--cb-border-light);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* === Step Progress Bar === */
.cb-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
    border-bottom: none;
    gap: 0;
}

.cb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    padding: 0;
    font-weight: 600;
    color: var(--cb-text-muted);
    cursor: default;
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: all var(--cb-transition);
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    white-space: nowrap;
}

.cb-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--cb-bg-section);
    border: 1px solid var(--cb-border);

    transition: all var(--cb-transition);
    position: relative;
    z-index: 2;
}

.cb-step.active .cb-step-icon {
    background: var(--cb-progress-active);
    border-color: var(--cb-progress-active);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.08);
}

.cb-step.active {
    color: var(--cb-progress-active);
    font-weight: 700;
}

.cb-step.completed .cb-step-icon {
    background: var(--cb-progress-completed);
    border-color: var(--cb-progress-completed);
}

.cb-step.completed {
    color: var(--cb-progress-completed);
}

/* Progress line between steps */
.cb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background: var(--cb-border);
    z-index: 1;
    transition: background var(--cb-transition);
}

.cb-step.completed:not(:last-child)::after {
    background: var(--cb-progress-completed);
}

.cb-step-label {
    font-size: 11px;
    max-width: 90px;
    line-height: 1.3;
    font-weight: 500;
}

/* === Language Toggle === */
.cb-lang-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 8px;
}

.cb-lang-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--cb-text-light);
}

.cb-lang-btn.active {
    background: var(--cb-primary);
    color: #fff;
    border-color: var(--cb-primary);
}

.cb-lang-btn.active:hover {
    background: var(--cb-primary-dark);
    border-color: var(--cb-primary-dark);
}

.cb-lang-btn:hover:not(.active) {
    background: #e2e8f0;
}



/* === Form Layout === */
.cb-step-content {
    display: none;
    animation: cbFadeInUp 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cb-step-content.active {
    display: block;
}

.cb-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cb-dark);
    margin: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}




.cb-flex-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}


.cb-input-group {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
}

.cb-col-2 {
    flex: 1 1 48%;
}


/* === Labels === */
.cb-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--cb-text);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.cb-label-hint {
    color: var(--cb-text-muted);
    font-weight: 400;
    font-size: 12px;
}

/* === Inputs === */
.cb-wrapper input[type="text"],
.cb-wrapper input[type="email"],
.cb-wrapper input[type="date"],
.cb-wrapper input[type="time"],
.cb-wrapper input[type="number"],
.cb-wrapper select,
.cb-wrapper textarea {
    height: 52px;
    padding: 0 16px;
    border: 1px solid #DADADA;
    border-radius: 10px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    background: #ffffff;
    color: var(--cb-dark);
    font-family: inherit;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}


.cb-wrapper textarea {
    height: auto;
    padding: 14px 16px;
    min-height: 100px;
    resize: vertical;
}

.cb-wrapper input:focus,
.cb-wrapper select:focus,
.cb-wrapper textarea:focus {
    border-color: var(--cb-primary);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px var(--cb-primary-light);
}



/* Input with icon */
.cb-input-icon-wrap {
    position: relative;
    height: 52px;
}

.cb-input-icon-wrap .cb-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
    color: var(--cb-text-light);
}

.cb-input-icon-wrap input,
.cb-input-icon-wrap select {
    padding-left: 16px;
}



/* Location input with inline plus button */
.cb-location-input-wrap {
    display: flex;
    align-items: center;
}

.cb-location-input-wrap input {
    padding-right: 48px !important;
}

.cb-btn-add-stop-inline {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--cb-primary-light);
    color: var(--cb-primary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--cb-transition);
    z-index: 2;
}

.cb-btn-add-stop-inline:hover {
    background: var(--cb-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* Quantity Selector (+/-) */
.cb-quantity-selector {
    display: flex;
    align-items: center;
    background: var(--cb-bg-subtle);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);

    padding: 4px;
    height: 52px;
    position: relative;
    box-sizing: border-box;
    transition: border-color var(--cb-transition), box-shadow var(--cb-transition);
}

.cb-quantity-selector:has(input:focus) {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 4px var(--cb-primary-light);
}

.cb-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    color: var(--cb-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--cb-transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    z-index: 2;
}

.cb-qty-btn:hover {
    background: var(--cb-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--cb-primary-glow);
}

.cb-qty-btn:active {
    transform: scale(0.94);
}

.cb-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--cb-bg-section);
    color: var(--cb-text-muted);
    box-shadow: none;
    transform: none;
}

.cb-quantity-selector input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700;
    font-size: 17px;
    padding: 0 !important;
    width: 60px !important;
    min-width: 60px !important;
    pointer-events: none;
    box-shadow: none !important;
    color: var(--cb-dark);
}

/* Remove Arrows from number input */
.cb-quantity-selector input::-webkit-outer-spin-button,
.cb-quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* === Map === */
#cb-map-canvas {
    border: 1px solid var(--cb-border);

    border-radius: var(--cb-radius);
    overflow: hidden;
    box-shadow: var(--cb-shadow-md);
}

/* === Journey Info Badges === */
.cb-journey-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.cb-journey-info .cb-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--cb-primary-light);
    border: 1px solid rgba(0, 115, 170, 0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-primary);
}

.cb-journey-info .cb-info-badge .cb-badge-icon {
    font-size: 16px;
}

/* === Radio Groups (Trip Type) === */
.cb-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cb-radio-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cb-bg);
    padding: 11px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--cb-border);
    cursor: pointer;
    transition: all var(--cb-transition);
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    box-shadow: var(--cb-shadow-sm);
    gap: 6px;
}

.cb-radio-group label:hover {
    border-color: #cbd5e1;
    background: var(--cb-bg-subtle);
}

.cb-radio-group label:has(input:checked) {
    background: var(--cb-gradient);
    color: #fff;
    border-color: var(--cb-primary);
    box-shadow: 0 4px 12px var(--cb-primary-glow);
}

.cb-radio-group input[type="radio"] {
    display: none;
}

/* Legacy Add Stop button (hidden if not needed) */
.cb-btn-add-stop {
    display: none;
}


/* === Cars Grid === */
.cb-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.cb-car-card {
    display: block;
    cursor: pointer;
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);

    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: var(--cb-bg);
    box-shadow: var(--cb-shadow-sm);
}

.cb-car-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cb-shadow-md), 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.cb-car-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected car card */
.cb-car-card:has(.cb-car-radio:checked) {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 2px var(--cb-primary), 0 12px 30px rgba(0, 115, 170, 0.12);
    transform: translateY(-3px);
}

/* Selected checkmark badge */
.cb-car-card:has(.cb-car-radio:checked)::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--cb-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px var(--cb-primary-glow);
    animation: cbPopIn 0.3s ease;
}

.cb-car-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cb-car-img img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cb-car-card:hover .cb-car-img img {
    transform: scale(1.03);
}

.cb-car-img {
    overflow: hidden;
}

.cb-no-img {
    height: 175px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-text-muted);
    font-weight: 500;
    font-size: 14px;
}

.cb-car-info {
    padding: 16px 18px;
    flex-grow: 1;
}

.cb-car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cb-car-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--cb-dark);
}

.cb-car-capacity {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--cb-text-light);
    background: var(--cb-bg-section);
    padding: 4px 10px;
    border-radius: 6px;
}

.cb-car-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: var(--cb-text-light);
    line-height: 1.5;
}

.cb-car-features li {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    gap: 6px;
}

.cb-car-features li::before {
    content: "✓";
    color: var(--cb-success);
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

.cb-car-price {
    padding: 16px 18px;
    background: #f8fafc;
    border-top: 1px solid var(--cb-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cb-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cb-price-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--cb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.cb-price-amount {
    color: var(--cb-price-color);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.cb-price-loading {
    color: var(--cb-text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Choose Button */
.cb-btn-choose {
    padding: 10px 20px;
    background: #10b981;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--cb-transition);
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.cb-car-card:hover .cb-btn-choose {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* Selected State */
.cb-car-card:has(.cb-car-radio:checked) .cb-btn-choose {
    background: #059669;
    box-shadow: none;
}

.cb-car-card:has(.cb-car-radio:checked) .cb-btn-choose::after {
    content: " ✓";
}




/* === Extras === */
.cb-extras-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--cb-border-light);
    animation: cbFadeInUp 0.4s ease;
}

.cb-extras-wrapper {
    background: #f8fafc;
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius);
    padding: 24px;
}


.cb-extras-section h3 {
    margin-top: 0;
}

.cb-extras-list {
    display: grid;
    gap: 10px;
}

.cb-extra-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--cb-bg);
    border: 1.5px solid var(--cb-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--cb-transition);
    font-size: 14px;
}

.cb-extra-item:hover {
    background: var(--cb-bg-subtle);
    border-color: #cbd5e1;
}

.cb-extra-item:has(input:checked) {
    border-color: var(--cb-primary);
    background: var(--cb-primary-light);
}

.cb-extra-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.15);
    accent-color: var(--cb-primary);
    flex-shrink: 0;
}

/* === Buttons === */
.cb-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

.cb-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cb-transition);
    letter-spacing: 0.3px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.cb-btn-next,
.cb-btn-submit,
.cb-select-car-btn {
    background: var(--cb-btn-color);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cb-btn-submit:hover,
.cb-btn-next:hover,
.cb-select-car-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--cb-btn-hover);
}

.cb-btn-next:active,
.cb-btn-submit:active,
.cb-select-car-btn:active {
    transform: translateY(0);
}

.cb-btn-next:disabled,
.cb-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.3);
}

.cb-btn-prev {
    background: var(--cb-bg);
    color: var(--cb-text-light);
    border: 1.5px solid var(--cb-border);
    box-shadow: var(--cb-shadow-sm);
}

.cb-btn-prev:hover {
    background: var(--cb-bg-subtle);
    color: var(--cb-text);
    border-color: #cbd5e1;
}

/* === Payment Methods === */
.cb-payment-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1.5px solid var(--cb-border-light);
}

.cb-payment-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cb-payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1.5px solid var(--cb-border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--cb-bg);
    transition: all var(--cb-transition);
    font-weight: 500;
    font-size: 14px;
}

.cb-payment-method .cb-payment-icon {
    font-size: 20px;
}

.cb-payment-method:hover {
    border-color: #cbd5e1;
    background: var(--cb-bg-subtle);
}

.cb-payment-method:has(input:checked) {
    border-color: var(--cb-primary);
    background: var(--cb-primary-light);
    color: var(--cb-primary);
    box-shadow: 0 0 0 1px var(--cb-primary);
}

.cb-payment-method input[type="radio"] {
    display: none;
}

.cb-payment-info {
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 13px;
    color: #b8860b;
}

/* === Total Summary === */
.cb-total-summary {
    background: linear-gradient(135deg, var(--cb-dark) 0%, #1e293b 100%);
    padding: 28px;
    border-radius: var(--cb-radius);
    text-align: center;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
}

.cb-total-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--cb-primary-glow), transparent 70%);
    border-radius: 50%;
}

.cb-total-summary h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cb-total-summary #cb-final-price {
    color: var(--cb-price-color, #38bdf8);
    font-size: 28px;
}

.cb-price-breakdown {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.cb-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

/* === Terms === */
.cb-terms-section {
    margin: 16px 0;
}

.cb-terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--cb-text-light);
}

.cb-terms-label input[type="checkbox"] {
    accent-color: var(--cb-primary);
    transform: scale(1.15);
    flex-shrink: 0;
}

/* === Toast Notification === */
.cb-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    z-index: 99999;
    animation: cbSlideInRight 0.4s ease, cbFadeOut 0.4s ease 3.5s forwards;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-toast-error {
    background: var(--cb-error-bg);
    color: var(--cb-error);
    border: 1px solid #fecaca;
}

.cb-toast-success {
    background: var(--cb-success-bg);
    color: var(--cb-success);
    border: 1px solid #a7f3d0;
}

.cb-toast-warn {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* === Success Message === */
.cb-success-msg {
    text-align: center;
    padding: 50px 30px;
}

.cb-success-checkmark {
    width: 64px;
    height: 64px;
    background: var(--cb-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: cbPopIn 0.5s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.cb-success-checkmark span {
    font-size: 32px;
    color: #fff;
}

.cb-success-msg h3 {
    font-size: 1.5rem;
    color: var(--cb-dark);
    margin-bottom: 10px;
}

.cb-success-msg p {
    color: var(--cb-text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* === Vehicle Price Bar (estimated price after selecting) === */
.cb-vehicle-price {
    margin-top: 16px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: right;
    background: var(--cb-success-bg);
    padding: 12px 16px;
    border-radius: 10px;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* === Utilities === */
.cb-hidden {
    display: none !important;
}

/* === Animations === */
@keyframes cbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cbPopIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cbSlideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cbFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes cbPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.cb-loading-pulse {
    animation: cbPulse 1.2s ease-in-out infinite;
}

/* ================================================
   RESPONSIVE — MOBILE FIRST
   ================================================ */

@media screen and (max-width: 768px) {
    .cb-wrapper {
        padding: 20px 18px;
        margin: 12px;
        border-radius: 16px;
        box-shadow: var(--cb-shadow-md);
    }

    /* Step bar: compact */
    .cb-steps {
        gap: 0;
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .cb-step-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .cb-step-label {
        font-size: 10px;
        max-width: 70px;
    }

    .cb-step:not(:last-child)::after {
        top: 19px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    /* Fields stack */
    .cb-flex-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    .cb-input-group,
    .cb-col-2 {
        flex: 1 1 100%;
    }

    /* Larger touch targets */
    .cb-wrapper input[type="text"],
    .cb-wrapper input[type="email"],
    .cb-wrapper input[type="date"],
    .cb-wrapper input[type="time"],
    .cb-wrapper input[type="number"],
    .cb-wrapper select,
    .cb-wrapper textarea {
        font-size: 16px;
        /* Prevents iOS zoom */
        padding: 14px;
    }

    .cb-input-icon-wrap input,
    .cb-input-icon-wrap select {
        padding-left: 42px;
    }

    /* Buttons stack */
    .cb-nav-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .cb-btn {
        width: 100%;
        padding: 15px;
        font-size: 15px;
        text-align: center;
    }

    .cb-btn-next,
    .cb-btn-submit,
    .cb-select-car-btn {
        margin-left: 0;
    }

    /* Cars: single column */
    .cb-car-card {
        flex: 1 1 100%;
    }

    .cb-car-img img {
        height: 190px;
    }


    /* Payment: stack */
    .cb-payment-options {
        flex-direction: column;
    }

    /* Radio: full width */
    .cb-radio-group label {
        flex: 1;
        padding: 12px 16px;
    }

    /* Total summary */
    .cb-total-summary {
        padding: 22px 18px;
    }

    .cb-total-summary h3 {
        font-size: 20px;
    }

    .cb-total-summary #cb-final-price {
        font-size: 24px;
    }

    /* Toast: full width */
    .cb-toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .cb-section-title {
        font-size: 1.05rem;
    }
}

@media screen and (max-width: 480px) {
    .cb-wrapper {
        padding: 16px 14px;
        margin: 8px;
        border-radius: 14px;
    }

    .cb-step-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .cb-step:not(:last-child)::after {
        top: 17px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .cb-step-label {
        font-size: 9px;
    }

    .cb-car-price {
        font-size: 15px;
        padding: 10px 14px;
    }

    .cb-section-title {
        font-size: 1rem;
    }
}