/* =================================================================
   ESTILOS PARA LA PÁGINA DE COTIZAR (TRABAJANDO CON JOTFORM)
   ================================================================== */

   .cotizar-body {
    background-image: url('../images/fondo-cotizar.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cotizar-main {
    padding: 80px 40px;
}
.form-container-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--text-light);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 60px 80px;
}
.form-header {
    text-align: center;
    margin-bottom: 50px;
}
.form-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 15px 0;
}
.form-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Adaptación de los estilos del formulario Jotform --- */
.zp-form-title { display: none; }

.zp-form-grid {
    display: grid;
    /* --- CAMBIO: Una sola columna por defecto --- */
    grid-template-columns: 1fr; 
    gap: 20px;
}

/* --- CAMBIO: Nueva sección para la previsualización del modelo --- */
.modelo-preview-container {
    display: none; /* Oculto hasta que se seleccione un modelo */
    text-align: center;
    margin: 20px 0;
}
.modelo-preview-container img {
    max-width: 80%;
    height: 180px;
    object-fit: contain;
    animation: fadeIn 0.5s; /* Animación sutil de aparición */
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* El título de "Información de Contacto" */
.form-subtitle {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 20px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}


/* El resto de los estilos se mantienen casi igual */
.zp-form-field {
    position: relative;
    padding-top: 15px;
}
.zp-form-field.full-width {
    grid-column: 1 / -1;
}
.zp-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
select.zp-input {
    background-image: url("data:image/svg+xml,..."); /* Tu SVG de flecha */
    /* ... otros estilos de select ... */
}
.zp-input, .zp-textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 1rem;
    background-color: transparent;
}
/* Estilo para el ícono de flecha en los selects */
select.zp-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

.zp-input:focus, .zp-textarea:focus {
    outline: none;
    border-bottom-color: var(--text-dark);
}

.zp-form-action {
    text-align: center;
    margin-top: 40px;
}
.zp-button {
    padding: 15px 50px;
    border-radius: 50px;
    border: none;
    background-color: var(--toyota-red);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.zp-button:hover {
    background-color: var(--toyota-red-dark);
}


/* Responsividad */
@media (max-width: 992px) {
    .cotizar-wrapper {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    .cotizar-image-column {
        min-height: 300px; /* Altura mínima para la imagen en móvil */
        order: 1; /* La imagen va primero */
    }
    .cotizar-form-column {
        order: 2; /* El formulario va después */
    }
}