/**
 * Estilos para el formulario público de Entornos Evalúa.
 */

:root {
    --ee-primary-color: #0056b3;
    --ee-accent-color: #FF6B00;
}

#entornos-evalua-container {
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #fff;
}

.ee-step {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ee-step.active {
    display: flex;
}

.ee-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ee-form-field {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
}

.ee-form-field:nth-child(odd) {
    margin-right: 15px; /* Espacio entre columnas */
}

/* Asegurar que los inputs se extienden bien */
.ee-form-field input[type="text"],
.ee-form-field input[type="email"],
.ee-form-field input[type="tel"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ee-form-field input:focus {
    border-color: var(--ee-primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
    outline: none;
}

.ee-button {
    background-color: var(--ee-accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Se expande en móviles */
}

.ee-button:hover {
    background-color: #e65c00; /* Versión directa */
}

.ee-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adaptativo */
    gap: 15px;
    margin-top: 20px;
}

.ee-option-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    min-height: 100px; /* Para que todas las tarjetas tengan una altura mínima */
}

.ee-option-card:hover {
    border-color: var(--ee-accent-color);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.1);
    transform: translateY(-3px);
}

.ee-option-card.selected {
    background-color: var(--ee-primary-color);
    color: white;
    border-color: var(--ee-primary-color);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.ee-option-card.selected .ee-option-number {
    background-color: white;
    color: var(--ee-primary-color);
}

.ee-option-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #555;
    transition: all 0.3s ease;
}

.ee-option-text {
    flex-grow: 1;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ee-form-field {
        flex: 1 1 100%;
        margin-right: 0 !important;
    }

    .ee-options {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .ee-option-card {
        min-height: auto;
    }
}