/* View: Views/Home/ContoTermicoUnificato.cshtml */
:root {
    --primary-color: #009fda;
    --primary-dark: #0088ba;
    --primary-light: #e6f7ff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header { display: none !important; }
#footer { display: none !important; }

/* ===== HERO (stile allineato al simulatore) ===== */
.ct-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
    padding: clamp(90px, 13vh, 150px) 0 clamp(40px, 6vh, 70px);
    margin-bottom: 10px;
}

    .ct-hero::before {
        content: "";
        position: absolute;
        top: -25%;
        left: 50%;
        transform: translateX(-50%);
        width: 900px;
        height: 520px;
        max-width: 130%;
        background: radial-gradient(ellipse at center, rgba(0, 159, 218, 0.10) 0%, rgba(0, 159, 218, 0) 70%);
        pointer-events: none;
        z-index: 0;
    }

.ct-hero-inner {
    position: relative;
    z-index: 1;
}

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6e6e73;
    background: #f5f5f7;
    border: 1px solid #e4edf5;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.ct-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.ct-hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.5;
    color: #6e6e73;
    max-width: 640px;
    margin: 0 auto 28px;
}

.ct-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.ct-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1d1d1f;
    background: #ffffff;
    border: 1px solid #e4edf5;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

    .ct-chip i {
        color: #009fda;
        font-size: 1.1rem;
    }

@media (max-width: 576px) {
    .ct-hero {
        padding-top: 80px;
    }

    .ct-hero-chips {
        flex-direction: column;
        align-items: center;
    }
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0;
    overflow: hidden;
}

.form-header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
}

.form-body {
    padding: 2.5rem;
}

.section-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}


label.form-group {
    color: black !important;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group, .radio-group {
    margin: 1rem 0;
}

.checkbox-item, .radio-item {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.checkbox-item:hover, .radio-item:hover {
    background: var(--bg-light);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

.info-note {
    background: linear-gradient(to right, var(--primary-light), white);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.info-note::before {
    content: 'ℹ';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: bold;
}

.info-note-content {
    flex: 1;
}

.info-note strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-note small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.nested-section {
    margin-left: 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.nested-section.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.required-star {
    color: var(--danger-color);
    font-weight: bold;
    margin-left: 2px;
}

.text-danger {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-body {
        padding: 1.5rem;
    }

    .section-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-header {
        padding: 1.5rem 1rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-icon {
        margin-bottom: 0.5rem;
    }
}
