/* Main Wrapper */
.cb-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Steps */
.cb-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}
.cb-step {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    color: #bbb;
    cursor: default;
}
.cb-step.active {
    color: var(--cb-primary, #0073aa);
    border-bottom: 3px solid var(--cb-primary, #0073aa);
}

/* Form Layout */
.cb-step-content {
    display: none;
    animation: fadeIn 0.5s;
}
.cb-step-content.active {
    display: block;
}

.cb-flex-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.cb-input-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}
.cb-col-2 {
    flex: 1 1 45%;
}

/* Inputs */
.cb-wrapper input[type="text"],
.cb-wrapper input[type="email"],
.cb-wrapper input[type="date"],
.cb-wrapper input[type="time"],
.cb-wrapper textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
.cb-wrapper label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* Cars Grid */
.cb-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.cb-car-card {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cb-car-radio {
    position: absolute;
    opacity: 0;
}
.cb-car-card:has(.cb-car-radio:checked) {
    border-color: var(--cb-primary, #0073aa);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.cb-car-inner {
    background: #fff;
}
.cb-car-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.cb-no-img {
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.cb-car-info {
    padding: 15px;
}
.cb-car-info h4 {
    margin: 0 0 10px;
    font-size: 18px;
}
.cb-car-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #666;
}
.cb-car-features li::before {
    content: "• ";
}
.cb-car-price {
    padding: 15px;
    background: #fafafa;
    text-align: center;
    border-top: 1px solid #eee;
    font-weight: bold;
    color: var(--cb-primary, #0073aa);
}

/* Extras */
.cb-extra-item {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
}

/* Totals */
.cb-total-summary {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}
.cb-total-summary h3 {
    margin: 0;
    color: var(--cb-primary, #0073aa);
}

/* Buttons */
.cb-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.cb-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.cb-btn-next, .cb-btn-submit {
    background: var(--cb-primary, #0073aa);
    color: #fff;
    margin-left: auto; /* Push to right */
}
.cb-btn-submit:hover, .cb-btn-next:hover {
    filter: brightness(1.1);
}
.cb-btn-prev {
    background: #e0e0e0;
    color: #555;
    margin-right: auto;
}
.cb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utilities */
.cb-hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox alignment */
.cb-radio-group label {
    margin-right: 15px;
    cursor: pointer;
}
