/* calculator/calculator-styles.css */

/* --- Base y Contenedor Principal --- */
body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font: 14px/1.6 'Arial Greek', 'Raleway', Arial, sans-serif;
    margin: 0;
}

.wizard-container {
    display: flex;
    flex-direction: row;
    width: 95%;
    max-width: 1300px;
    
    /* --- MODIFICACIÓN: MUY TRANSPARENTE (0.5) --- */
    background: rgba(255, 255, 255, 0.5); 
    
    /* Desenfoque fuerte (15px) */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* ------------------------------------------- */

    color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    height: calc(100vh - 100px);
    max-height: 700px;
}

/* --- Navegación Lateral Izquierda --- */
.wizard-nav {
    /* --- MODIFICACIÓN: Azul al 50% de opacidad --- */
    background-color: rgba(44, 62, 80, 0.5);
    /* --------------------------------------------- */
    
    color: white;
    padding: 15px 12px;
    width: 220px;
    flex-shrink: 0;
    overflow-y: auto; 
}

.wizard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-nav li {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 12px;
    font-weight: 600;
}

.wizard-nav li:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.wizard-nav li.active {
    background-color: rgba(231, 76, 60, 0.9); /* Rojo un poco transparente */
    color: #fff;
    font-weight: 700;
}

/* --- Contenido del Formulario (Derecha) --- */
.wizard-content {
    flex-grow: 1;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    height: 100%; 
    overflow: hidden;
}

#cityForm {
    width: 100% !important;
    border: none;
    box-shadow: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* --- Barra de Progreso --- */
#progress {
    margin-bottom: 12px;
    background-color: rgba(233, 236, 239, 0.5); /* Barra fondo transparente */
    border-radius: 5px;
    overflow: hidden;
    height: 6px;
    flex-shrink: 0;
}

#progress-complete {
    background-color: #e74c3c;
    width: 0%;
    height: 100%;
    transition: width 0.4s ease-in-out;
}

/* --- Contenido de cada Paso (SCROLL SIEMPRE VISIBLE) --- */
.tab-content {
    display: none;
    flex-grow: 1;
    
    /* Forzamos el mecanismo de scroll */
    overflow-y: scroll; 
    padding-right: 15px; 
    
    /* Propiedades para Firefox */
    scrollbar-width: thin; 
    scrollbar-color: #888 rgba(241, 241, 241, 0.2); 
}

/* --- ESTILOS AGRESIVOS PARA SCROLLBAR (Chrome, Edge, Safari) --- */
.tab-content::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 12px; 
    display: block; 
}

/* Track muy transparente */
.tab-content::-webkit-scrollbar-track {
    background-color: rgba(241, 241, 241, 0.2); 
    border-radius: 4px;
    border-left: 1px solid rgba(224, 224, 224, 0.2); 
}

/* El 'Thumb' */
.tab-content::-webkit-scrollbar-thumb {
    background-color: rgba(168, 168, 168, 0.8); 
    border-radius: 6px;
    border: 3px solid transparent; 
    background-clip: content-box; 
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(125, 125, 125, 0.9); 
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Títulos */
h3 {
    font-family: 'Arial Greek', 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: #222;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

/* --- Filas de Label + Input --- */
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group label {
    flex-basis: 60%;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50; /* Color oscuro sólido para leer bien */
    text-shadow: 0px 0px 1px rgba(255,255,255,0.5); /* Sombra suave para separar del fondo */
}

.form-group input {
    flex-basis: 35%;
    height: 30px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    
    /* Inputs al 60% de opacidad */
    background-color: rgba(255, 255, 255, 0.6); 
    
    background-image: none;
    border: 1px solid #999;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.form-group input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 8px rgba(102,175,233,.6);
    background-color: rgba(255, 255, 255, 0.9); /* Más sólido al escribir */
}

/* --- Campos auto-calculados --- */
.form-group input.auto-calc-input {
    background-color: rgba(44, 62, 80, 0.25);
    border: 1px solid #7f8c8d;
    color: #2c3e50;
    cursor: not-allowed;
}

.auto-calc-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #7f8c8d;
    font-size: 13px;
    cursor: help;
    position: relative;
}

.auto-calc-badge i {
    font-size: 14px;
}

.auto-calc-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* --- Indicador de scroll "más variables abajo" --- */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 2px;
    color: #4a4a4a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    pointer-events: none;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(180, 180, 185, 0.9) 50%, transparent);
    z-index: 2;
}

.scroll-hint i {
    font-size: 14px;
    animation: bounceDown 1.5s infinite;
}

.scroll-hint.hidden {
    opacity: 0;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Botones de Navegación --- */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(200, 200, 200, 0.4);
    flex-shrink: 0;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Arial Greek', sans-serif;
}

.nav-btn.prev {
    background-color: rgba(240, 240, 240, 0.7);
    color: #333;
    border-color: #bbb;
}
.nav-btn.prev:hover {
    background-color: rgba(240, 240, 240, 0.9);
}

.nav-btn.next {
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    border-color: #e74c3c;
}
.nav-btn.next:hover {
    background-color: #c0392b;
}

h3 i {
    margin-right: 12px;
    color: #e74c3c;
    font-size: 0.9em;
    width: 30px;
    text-align: center;
}