/* Pagina Diagnosi - Styling */

.diagnosi-page {
    background: #f7fafc;
}

.diagnosi-hero {
    background: linear-gradient(135deg, #438ef9 0%, #ff6331 100%);
    color: white;
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.diagnosi-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.diagnosi-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.diagnosi-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.diagnosi-badges .badge i {
    margin-right: 0.5rem;
}

.diagnosi-cta-hero {
    margin-top: 2.5rem;
    text-align: center;
}

.diagnosi-cta-hero .btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(67, 142, 249, 0.3);
    transition: all 0.3s ease;
}

.diagnosi-cta-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(67, 142, 249, 0.4);
}

/* What section */
.diagnosi-what {
    margin: 3rem 0;
}

.diagnosi-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.diagnosi-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diagnosi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.diagnosi-card--is {
    border-left: 4px solid #48bb78;
}

.diagnosi-card--isnot {
    border-left: 4px solid #f56565;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-icon--success {
    color: #48bb78;
}

.card-icon--danger {
    color: #f56565;
}

.diagnosi-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.diagnosi-list {
    list-style: none;
    padding: 0;
}

.diagnosi-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

.diagnosi-list li:before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.diagnosi-card--is .diagnosi-list li:before {
    color: #48bb78;
}

.diagnosi-card--isnot .diagnosi-list li:before {
    color: #f56565;
}

/* How section */
.diagnosi-how {
    margin: 4rem 0;
    text-align: center;
}

.diagnosi-how h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.diagnosi-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.diagnosi-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #438ef9, #ff6331);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.diagnosi-step p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Benefits section */
.diagnosi-benefits {
    margin: 4rem 0;
    text-align: center;
}

.diagnosi-benefits h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #438ef9;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* CTA section */
.diagnosi-cta {
    margin: 5rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #438ef9 0%, #ff6331 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(67, 142, 249, 0.3);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-note {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.diagnosi-form-container {
    margin: 2rem 0;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: white;
    color: #438ef9;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    max-width: 100%;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Diagnosis Questionnaire Styles */
#diagnosis-questionnaire {
    max-width: 700px;
    margin: 2rem auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.question-container {
    min-height: 350px;
    margin-bottom: 2rem;
}

.question-step {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.question-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: 3px solid transparent;
}

.radio-option:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.radio-option.checked {
    border-color: #438ef9;
    background: #e6f3ff;
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label {
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
    flex: 1;
}

/* Checkbox options */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkbox-option.checked {
    border-color: #438ef9;
    background: #e6f3ff;
}

.checkbox-label {
    flex: 1;
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Textarea input */
.textarea-input {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3748;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    box-sizing: border-box;
}

.textarea-input:focus {
    outline: none;
    border-color: #438ef9;
    box-shadow: 0 0 0 3px rgba(67, 142, 249, 0.1);
}

/* Email input */
.email-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #2d3748;
    margin: 2rem auto;
    display: block;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: #438ef9;
    box-shadow: 0 0 0 3px rgba(67, 142, 249, 0.1);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-navigation .btn-primary,
.form-navigation .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-navigation .btn-secondary {
    background: white;
    color: #438ef9;
    border: 2px solid white;
}

.form-navigation .btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.form-navigation .btn-primary {
    background: white;
    color: #438ef9;
    border: 2px solid white;
}

.form-navigation .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-submit {
    background: #48bb78 !important;
    color: white !important;
    border: 2px solid #48bb78 !important;
}

.btn-submit:hover {
    background: #38a169 !important;
    border-color: #38a169 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .diagnosi-hero h1 {
        font-size: 2rem;
    }
    
    .hero-intro {
        font-size: 1.05rem;
    }
    
    .diagnosi-badges {
        gap: 1rem;
    }
    
    .diagnosi-badges .badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .diagnosi-grid-two {
        grid-template-columns: 1fr;
    }
    
    .diagnosi-steps {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    rem 1rem;
        border-radius: 15px;
        margin: 0 0.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-note {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        border-radius: 12px;
        margin: 0 1rem;
        white-space: normal;
        text-align: center
        max-width: 100%;
        border-radius: 12px;
    }
    
    .diagnosi-cta {
        margin: 3rem 0;
    }
}
