/* Main Wrapper */
.cb-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Poppins', 'Roboto', sans-serif;
    /* Prefer Poppins if loaded, or Roboto */
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Deep soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Steps */
.cb-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 2px solid #f0f0f0;
}

.cb-step {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: default;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    /* Overlap border */
}

.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.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cb-step-content.active {
    display: block;
}

.cb-flex-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.cb-input-group {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
}

.cb-col-2 {
    flex: 1 1 45%;
}

/* Inputs */
.cb-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.cb-wrapper input[type="text"],
.cb-wrapper input[type="email"],
.cb-wrapper input[type="date"],
.cb-wrapper input[type="time"],
.cb-wrapper textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
}

.cb-wrapper input:focus,
.cb-wrapper textarea:focus {
    border-color: var(--cb-primary, #0073aa);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

/* Map */
#cb-map-canvas {
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Cars Grid */
.cb-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.cb-car-card {
    display: block;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: #fff;
}

.cb-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.cb-car-radio {
    position: absolute;
    opacity: 0;
}

.cb-car-card:has(.cb-car-radio:checked) {
    border-color: var(--cb-primary, #0073aa);
    box-shadow: 0 0 0 2px var(--cb-primary, #0073aa), 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cb-car-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cb-car-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.cb-no-img {
    height: 160px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 500;
}

.cb-car-info {
    padding: 20px;
    flex-grow: 1;
}

.cb-car-info h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.cb-car-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.cb-car-features li::before {
    content: "✓ ";
    color: var(--cb-primary, #0073aa);
    font-weight: bold;
}

.cb-car-price {
    padding: 18px;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 18px;
    color: var(--cb-primary, #0073aa);
    letter-spacing: -0.5px;
}

/* Extras */
.cb-extra-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cb-extra-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cb-extra-item input {
    margin-right: 12px;
    transform: scale(1.2);
}

/* Totals */
.cb-total-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid #bae6fd;
}

.cb-total-summary h3 {
    margin: 0;
    color: #0c4a6e;
    font-size: 24px;
    font-weight: 800;
}

/* Buttons */
.cb-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.cb-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cb-btn-next,
.cb-btn-submit {
    background: var(--cb-primary, #0073aa);
    color: #fff;
    margin-left: auto;
}

.cb-btn-submit:hover,
.cb-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    filter: brightness(1.1);
}

.cb-btn-prev {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.cb-btn-prev:hover {
    background: #e2e8f0;
    color: #334155;
}

.cb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Checkbox/Radios */
.cb-radio-group {
    display: flex;
    gap: 20px;
}

.cb-radio-group label {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.cb-radio-group label:has(input:checked) {
    background: var(--cb-primary, #0073aa);
    color: #fff;
    border-color: var(--cb-primary, #0073aa);
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.2);
}

.cb-radio-group input {
    margin-right: 8px;
}

/* Utilities */
.cb-hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}