/* BuyCar.uz Custom Styles */

/* Car cards */
.car-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}
.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.car-photo {
    height: 220px;
    object-fit: cover;
}
.car-photo-placeholder {
    height: 220px;
}

/* Step indicators */
.step-indicators {
    align-items: center;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #adb5bd;
}
.step-item.active {
    color: #0d6efd;
}
.step-item.completed {
    color: #198754;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid currentColor;
    font-size: 0.9rem;
}
.step-item.active .step-number {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.step-item.completed .step-number {
    background: #198754;
    color: #fff;
    border-color: #198754;
}
.step-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 8px;
}

/* Color swatches */
.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    cursor: pointer;
    display: inline-block;
    margin: 4px;
    transition: border-color 0.2s, transform 0.2s;
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: #0d6efd;
    transform: scale(1.2);
}

/* Form styling */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* Hero section */
.display-5 {
    color: #1a1a2e;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
}

/* Order summary */
#orderSummary table td {
    padding: 8px 12px;
}
#orderSummary table td:first-child {
    color: #6c757d;
    width: 40%;
}

/* Modal spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .car-photo, .car-photo-placeholder {
        height: 180px;
    }
    .step-label {
        display: none;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Price formatting */
.text-primary.fw-bold.fs-5 {
    letter-spacing: 0.5px;
}

/* QR Scanner */
#qrReader {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}
#qrReader video {
    border-radius: 8px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
