/* ESTILOS PRINCIPALES DEL FORMULARIO */
.fvehiculos-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.fvehiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.fvehiculos-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #333;
}

.fvehiculos-form input[type="text"],
.fvehiculos-form input[type="number"],
.fvehiculos-form input[type="tel"],
.fvehiculos-form textarea,
.fvehiculos-form select {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    margin-top: 5px;
}

.fvehiculos-submit {
    background: #2271b1;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.fvehiculos-submit:hover {
    background: #1a5d8e;
}

.fvehiculos-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fvehiculos-success {
    background: #e0ffe0;
    padding: 10px;
    border-left: 5px solid #4caf50;
    margin-bottom: 20px;
}

/* BOTÓN WHATSAPP */
.whatsapp-contact-btn {
    background-color: #25D366 !important;
    color: white !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.whatsapp-contact-btn i {
    font-size: 14px !important;
    margin-right: 6px !important;
}

.whatsapp-contact-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25) !important;
}

/* GALERÍA */
.gallery-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-item .remove-gallery-img {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.gallery-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

input[type="file"] {
    font-size: 14px;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* LOADING */
.fvehiculos-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* BÚSQUEDA DE CATEGORÍAS */
.category-search-container {
    margin-bottom: 10px;
}

.category-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.category-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.category-select-wrapper {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.category-select-wrapper select {
    width: 100%;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.category-select-wrapper select option {
    padding: 8px 10px;
}

/* MÓVIL */
@media (max-width: 768px) {
    .fvehiculos-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-contact-btn {
        display: inline-flex !important;
        margin-top: 8px !important;
    }
}