/* ============================================================
   Car Valuator – 4 Cascading Dropdowns
   ============================================================ */

.cv-wrap  { width: 100%; box-sizing: border-box; }

/* Flex row containing all 4 dropdowns */
.cv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Each dropdown column */
.cv-col {
    flex: 1 1 160px;
    min-width: 140px;
    position: relative;
}

/* Select element */
.cv-select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    appearance: none;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cv-select:focus {
    outline: none;
    border-color: #F5C518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

.cv-select:disabled {
    background-color: #f7f7f7;
    color: #aaa;
    cursor: not-allowed;
}

.cv-select option { color: #222; }

/* Inline spinner */
.cv-spin {
    display: none;
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    border: 2px solid #ddd;
    border-top-color: #F5C518;
    border-radius: 50%;
    animation: cv-spin 0.55s linear infinite;
    pointer-events: none;
}
.cv-spin.on { display: inline-block; }

@keyframes cv-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Responsive */
@media (max-width: 600px) {
    .cv-col { flex: 1 1 100%; }
}
