/* ======================================= */
/* VARIABILI BASE (Opzionale ma consigliato) */
/* ======================================= */
:root {
    --primary-color: #004d99; /* Blu scuro (Corporate) */
    --secondary-color: #f7b32b; /* Giallo/Arancio (Accento energetico) */
    --background-color: #f9f9f9;
    --border-color: #ccc;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* ======================================= */
/* STILE GENERALE DEL CONTENITORE */
/* ======================================= */
.innova-simulator-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
}

.innova-simulator-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.innova-simulator-container .description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* ======================================= */
/* FIELDSET E GRUPPI DI INPUT */
/* ======================================= */
.innova-simulator-container fieldset {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.innova-simulator-container legend {
    font-weight: bold;
    color: var(--primary-color);
    padding: 0 10px;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group input[type="number"],
.form-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; /* Include padding e border nella larghezza */
}

.form-group small {
    display: block;
    color: #777;
    margin-top: 5px;
    font-size: 0.85em;
}

/* Stile per il range slider e output */
.form-group input[type="range"] {
    padding: 0;
    height: 25px;
}
.form-group output {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: var(--secondary-color);
}


/* ======================================= */
/* BOTTONE CALCOLA */
/* ======================================= */
.innova-button-calculate {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Testo scuro su accento chiaro */
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.innova-button-calculate:hover {
    background-color: #e6a218; /* Scurisce leggermente all'hover */
}

/* ======================================= */
/* AREA RISULTATI */
/* ======================================= */
.innova-results-box {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.innova-results-box .placeholder-text {
    color: #999;
    font-style: italic;
}

.innova-results-box .error {
    color: var(--error-color);
    font-weight: bold;
}
.innova-results-box .success-message {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
}
.innova-results-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
}
.innova-results-box li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.innova-results-box li strong {
    float: right;
    color: var(--primary-color);
}

/* ======================================= */
/* STILE DEL GATING (LEAD MAGNET) */
/* ======================================= */
.gated-content {
    border: 3px solid var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    background-color: #fff8e6; /* Sfondo leggero per evidenziare */
}

.gated-content h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-top: 0;
}

.gated-content p {
    font-size: 1.1em;
    color: #444;
}

.gated-content .button-primary {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.gated-content .button-primary:hover {
    background-color: #003a73;
}

.disclaimer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #888;
    text-align: center;
}