/**
 * Vehicle Compatibility Filter - Public Styles
 *
 * @package VCF\Assets\CSS
 * @since 1.0.0
 */

/* ===== GENEL WRAPPER ===== */
.vcf-form-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vcf-form-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    color: #d60000;
}

/* ===== FORM - YATAY LAYOUT ===== */
.vcf-vehicle-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

/* ===== ALANLAR ===== */
.vcf-field {
    flex: 1;
    min-width: 140px;
}

.vcf-field-submit {
    flex: 0 0 auto;
}

/* ===== LABELS ===== */
.vcf-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcf-required {
    color: #d60000;
}

/* ===== SELECT / DROPDOWN ===== */
.vcf-select {
    width: 100%;
    padding: 0;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d60000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vcf-select:hover {
    border-color: #ccc;
}

.vcf-select:focus {
    outline: none;
    border-color: #d60000;
    box-shadow: 0 0 0 3px rgba(214, 0, 0, 0.1);
}

.vcf-select.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== BUTTON ===== */
.vcf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #d60000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(214, 0, 0, 0.3);
}

.vcf-button:hover {
    background-color: #b50000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(214, 0, 0, 0.4);
}

.vcf-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(214, 0, 0, 0.3);
}

.vcf-button-primary {
    background-color: #d60000;
}

.vcf-button-primary:hover {
    background-color: #b50000;
}

/* ===== HATA MESSAJI ===== */
.vcf-error {
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #d60000;
    background-color: #fff5f5;
    border: 1px solid #d60000;
    border-radius: 6px;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .vcf-vehicle-form {
        flex-direction: column;
        gap: 14px;
    }

    .vcf-field {
        flex: none;
        width: 100%;
    }

    .vcf-field-submit {
        flex: none;
        width: 100%;
    }

    .vcf-button {
        width: 100%;
    }
}

/* ===== WOODMART TEMA UYUMU ===== */
.vcf-form-wrapper.woodmart-shop-loop-start {
    margin-bottom: 20px;
}

/* Sidebar widget uyumu */
.widget .vcf-vehicle-form {
    flex-direction: column;
}

/* ===== RTL DESTEĞİ ===== */
.rtl .vcf-select {
    padding: 0;
    background-position: left 14px center;
}

.rtl .vcf-button {
    text-align: center;
}
