/* Importar la fuente Manrope desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* Aplicar la fuente Manrope a todo el formulario */
body, .cpe-calculadora {
    font-family: 'Manrope', sans-serif !important;
}

/* Barra de Progreso */
.cpe-calculadora .progress-bar {
    width: 100% !important;
    background-color: #e0e0e0 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.cpe-calculadora .progress-bar-fill {
    height: 10px !important;
    width: 0 !important;
    background-color: #00A443 !important; /* Verde corporativo */
    transition: width 0.3s ease-in-out !important;
}

/* Estilo de Formularios */
.cpe-calculadora .form-step {
    display: none !important;
}

.cpe-calculadora .form-step.active {
    display: block !important;
}

.cpe-calculadora {
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 20px !important;
    max-width: 600px !important;
    margin: 20px auto !important;
}

.cpe-calculadora h3 {
    margin-bottom: 10px !important;
    color: #333 !important;
    font-weight: 600 !important; /* Aplicar peso de fuente Manrope */
}

.cpe-calculadora label {
    font-weight: 600 !important; /* Aplicar peso de fuente Manrope */
    margin-top: 10px !important;
    display: block !important;
    cursor: pointer !important;
}

.cpe-calculadora .device-selection {
    margin-bottom: 20px !important;
}

.cpe-calculadora .device-item {
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
}

.cpe-calculadora .device-item i {
    margin-right: 10px !important;
}

.cpe-calculadora .question-item {
    margin-bottom: 20px !important;
}

.cpe-calculadora input[type="checkbox"] {
    margin-right: 10px !important;
}

.cpe-calculadora select,
.cpe-calculadora input[type="number"] {
    margin-bottom: 10px !important;
    padding: 8px !important;
    font-size: 14px !important;
    width: 100% !important;
    max-width: 300px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.cpe-calculadora button {
    padding: 6px 12px !important; /* Ajuste de tamaño de botón */
    font-size: 14px !important; /* Tamaño de texto del botón */
    font-weight: 600 !important; /* Aplicar peso de fuente Manrope */
    background-color: #00A443 !important; /* Verde corporativo */
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    margin-top: 10px !important;
    margin-right: 5px !important;
}

.cpe-calculadora button:hover {
    background-color: #AFBE01 !important; /* Amarillo corporativo */
}

/* Tooltips */
.cpe-calculadora .tooltip {
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.cpe-calculadora .tooltip .tooltiptext {
    visibility: hidden !important;
    width: 200px !important;
    background-color: #333 !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 5px !important;
    position: absolute !important;
    z-index: 1 !important;
    bottom: 150% !important;
    left: 50% !important;
    margin-left: -100px !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

.cpe-calculadora .tooltip:hover .tooltiptext {
    visibility: visible !important;
    opacity: 1 !important;
}

.cpe-calculadora .cpe-result {
    margin-top: 20px !important;
    padding: 15px !important;
    background-color: #e8f5e9 !important;
    border-left: 5px solid #00A443 !important; /* Verde corporativo */
    border-radius: 4px !important;
    font-size: 18px !important;
    font-weight: 700 !important; /* Aplicar peso de fuente Manrope */
    color: #2e7d32 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: none !important; /* Escondido por defecto */
}

.cpe-calculadora .cpe-result.hidden {
    display: none !important;
}

.cpe-calculadora .cpe-result.visible {
    display: block !important;
    opacity: 1 !important;
}

/* Asegúrate de que los contenedores sean visibles */
.cpe-calculadora #area_range_container, 
.cpe-calculadora #exact_area_container {
    display: none !important; /* Los ocultamos por defecto y mostramos con JavaScript */
}

/* Ajustes para Móviles */
@media (max-width: 768px) {
    .cpe-calculadora {
        padding: 10px !important; /* Ajustes para móviles */
        box-shadow: none !important; /* Simplifica el diseño en móviles */
    }
    
    .cpe-calculadora .device-selection label {
        display: block !important; /* Asegura que los labels sean visibles */
        margin-bottom: 10px !important; /* Añade espacio entre opciones */
    }

    .cpe-calculadora button {
        width: auto !important; /* Mantener botones ajustados en móviles */
        margin: 10px 0 !important; /* Espaciado vertical uniforme */
    }
}