/* Reset e variabili CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f97316;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, rgb(83, 104, 198) 0%, rgb(73, 94, 178) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Call to Action Section Styles */
.cta-section {
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: #7B68EE;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 40px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: #f8f9ff;
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: rocket-bounce 2s ease-in-out infinite;
}

.cta-button:hover i {
    transform: translateX(5px) rotate(20deg) scale(1.1);
    animation: rocket-hover 0.6s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(2deg);
    }
}

@keyframes rocket-hover {
    0%, 100% {
        transform: translateX(5px) rotate(20deg) scale(1.1);
    }
    50% {
        transform: translateX(8px) rotate(25deg) scale(1.2);
    }
}

/* Responsive CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .cta-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.2rem;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-top: 25px;
    }
}

/* Dynamic Spacer Box */
.dynamic-spacer {
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Steps Section Styles */
.steps-section {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.step-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0.5;
}

.step-header {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.step-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.step-arrow {
    color: white;
    font-size: 1rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.step-button-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 320px;
    height: 60px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.step-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-button:hover::before {
    opacity: 1;
}

.step-button i {
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
}

.step-button span {
    z-index: 1;
    position: relative;
}

/* Step Active (Green) */
.step-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Step Active con effetto lampeggiante più evidente per il pulsante Calcola */
.step-active.calculate-ready {
    animation: calculate-pulse 1.5s ease-in-out infinite;
}

.step-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    animation: none;
}

.step-active:focus {
    animation: none;
    outline: 2px solid rgba(16, 185, 129, 0.6);
    outline-offset: 2px;
}

.step-active:active {
    animation: none;
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Step Inactive (Blue-Grey) */
.step-inactive {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
    opacity: 0.8;
}

.step-inactive:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

/* Step Inactive Disabled */
.step-inactive:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.step-inactive:disabled:hover {
    transform: none;
    opacity: 0.5;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

/* Responsive Steps */
@media (max-width: 768px) {
    .steps-section {
        gap: 2.5rem;
        padding: 1.5rem 1rem;
    }
    
    .step-box {
        padding: 1.25rem;
    }
    
    .step-label {
        font-size: 1.1rem;
    }
    
    .step-button {
        width: 280px;
        height: 56px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 50px;
    }
}

@media (max-width: 480px) {
    .steps-section {
        gap: 2rem;
        padding: 1rem 0.75rem;
    }
    
    .step-box {
        padding: 1rem;
    }
    
    .step-label {
        font-size: 1rem;
    }
    
    .step-button {
        width: 240px;
        height: 52px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 50px;
    }
}

@media (max-width: 320px) {
    .step-button {
        width: 200px;
        height: 48px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 50px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 80px;
}

.nav-item:hover {
    background: var(--bg-secondary);
}

.nav-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    z-index: 1002; /* Aumentato per essere sopra il menu dropdown */
    margin-bottom: 0.5rem;
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
    display: none;
    z-index: 1001;
}

/* Rimuovo l'hover per renderlo più user-friendly su mobile */
/* .nav-item:hover .language-dropdown {
    display: block;
} */

.lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-secondary);
}

.lang-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
    display: none;
    z-index: 1001;
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-option:hover {
    background: var(--bg-secondary);
}

.menu-option i {
    font-size: 0.9rem;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.account-info i {
    font-size: 1.2rem;
}

/* Color Picker Modal */
.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.color-picker-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.color-picker-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-secondary);
}

.color-picker-body {
    padding: 1rem;
}

.color-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.color-section label {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.color-section input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.color-picker-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.apply-btn, .reset-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.apply-btn {
    background: var(--primary-color);
    color: white;
}

.apply-btn:hover {
    background: var(--primary-dark);
}

.reset-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.reset-btn:hover {
    background: var(--bg-secondary);
}

/* Main Content */
.main-content {
    padding: 0.5rem 1rem 5rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}

.main-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
    position: relative;
    height: 1.25rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.title-level-1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin: 0;
}

.title-level-2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin: 0;
}

.title-level-3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin: 0;
}

/* Snapshot Title */
.snapshot-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 600;
    font-style: italic;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    text-align: center;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.title-line-1 {
    display: block;
    font-size: 2.8rem;
    line-height: 1;
}

.title-line-2 {
    display: block;
    font-size: 2.8rem;
    line-height: 1;
}

/* Animated Title Styles */
.animated-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    text-align: center;
    width: 100%;
    transform-origin: center bottom;
    backface-visibility: hidden;
}

.animated-title.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotateX(0deg);
}

.animated-title.inactive {
    transform: translate(-50%, -50%) rotateX(-90deg);
    opacity: 0;
}

.subtitle {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 1.5rem auto 0.5rem auto;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Form Styles - Design Migliorato */
.input-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideDown 0.3s ease-out;
}

/* Form Title Styles */
.form-title {
    text-align: center;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-title h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Buttons Section */
.buttons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

/* Spacer div for 30px space */
.spacer-30px {
    height: 30px;
    width: 100%;
    background: transparent;
}

.button-container {
    display: flex;
    justify-content: center;
}

/* Step Labels */
.step-label {
    display: flex;
    justify-content: center;
    margin-bottom: 0.1rem;
}

.step-label span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Arrow Icon */
.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    margin: 0.1rem 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Main Action Button - Base Style */
.main-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
    width: 320px;
    height: 64px;
    position: relative;
    overflow: hidden;
    opacity: 0.7;
    transform: scale(0.95);
    border: 2px solid rgba(107, 114, 128, 0.3);
}

/* Pulsante 1 "Inserisci i tuoi dati" - PRIORITÀ MASSIMA */
#show-form-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
    border: 3px solid rgba(16, 185, 129, 0.5);
    opacity: 1;
    transform: scale(1.05);
    animation: pulseGreen 2s ease-in-out infinite;
    font-size: 1.1rem;
    font-weight: 700;
}

#show-form-btn:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
    animation: none;
}

#show-form-btn i {
    color: #fef2f2;
    font-size: 1.2rem;
}

/* Animazione di pulsazione per il pulsante primario */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 16px 50px rgba(16, 185, 129, 0.6);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
        transform: scale(1.05);
    }
}

/* Pulsante 2 "Calcola" - SECONDARIO */
#calculate-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
    border: 2px solid rgba(100, 116, 139, 0.3);
    opacity: 0.6;
    transform: scale(0.9);
}

#calculate-btn:hover {
    transform: translateY(-3px) scale(0.95);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
    background: linear-gradient(135deg, #475569, #334155);
    opacity: 0.8;
}

/* Button 2: Stato disabilitato (campi non compilati) */
#calculate-btn.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    opacity: 0.3 !important;
    transform: scale(0.85) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.1) !important;
    border: 2px solid rgba(156, 163, 175, 0.2) !important;
}

/* Button 2: Stato attivo (tutti i campi compilati) */
#calculate-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    animation: pulseGreen 2s infinite !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    border: 3px solid #34d399 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

#calculate-btn.active:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.7);
    }
}

/* Action Buttons Container */
.action-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    max-width: 800px;
    padding: 0 1rem;
}

.comparison-section,
.simulator-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    min-width: 300px;
    margin: 0;
    padding: 0;
}

/* Stili comuni per tutti i pulsanti azione */
.action-btn {
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 80px;
    text-align: center;
    color: white;
    box-sizing: border-box;
    line-height: 1.2;
    text-decoration: none;
    margin: 0;
    position: relative;
}

.action-btn i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Garantisce che i pulsanti abbiano la stessa altezza */
.action-btn span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Pulsante Comparazione */
.comparison-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.comparison-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Pulsante Simulatore */
.simulator-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.simulator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Country Comparison Section */
.comparison-results-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease-out;
}

.comparison-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
}

.comparison-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Comparison Chart */
.comparison-chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    min-height: 400px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 120px;
}

.chart-bar {
    width: 80px;
    display: flex;
    flex-direction: column;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bar-segment {
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.bar-segment.lived {
    background: #9ca3af;
}

.bar-segment.healthy {
    background: #10b981;
}

.bar-segment.unhealthy {
    background: #ef4444;
}

.chart-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.chart-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.comparison-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-results-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .comparison-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .comparison-chart-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .chart-column {
        max-width: 80px;
    }
    
    .chart-bar {
        width: 60px;
    }
    
    /* Action Buttons Container responsive */
    .action-buttons-container {
        flex-direction: column;
        gap: 1rem;
        margin: 1rem auto;
        align-items: center;
        max-width: 320px;
        padding: 0 1rem;
    }
    
    .comparison-section,
    .simulator-section {
        max-width: none;
        min-width: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        height: 60px;
        width: 100%;
        max-width: 280px;
        line-height: 1.1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Stili specifici per iPhone 7 e dispositivi piccoli */
@media (max-width: 375px) {
    .action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        height: 55px;
        max-width: 260px;
        line-height: 1.0;
    }
    
    .action-btn i {
        font-size: 1rem;
    }
}

/* Pulsante 3 "Scopri" - TERZIARIO */
#step3-btn {
    background: linear-gradient(135deg, #71717a, #52525b);
    box-shadow: 0 4px 15px rgba(113, 113, 122, 0.15);
    border: 2px solid rgba(113, 113, 122, 0.2);
    opacity: 0.5;
    transform: scale(0.88);
}

#step3-btn:hover {
    transform: translateY(-2px) scale(0.92);
    box-shadow: 0 6px 20px rgba(113, 113, 122, 0.25);
    background: linear-gradient(135deg, #52525b, #3f3f46);
    opacity: 0.7;
}

#step3-btn i {
    color: #d4d4d8;
}

.main-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-action-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .main-action-btn {
        width: 300px;
        height: 60px;
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-action-btn {
        width: 280px;
        height: 56px;
        font-size: 0.85rem;
        padding: 0.875rem 1.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .form-group label {
        font-size: 0.7rem;
        min-width: 90px;
    }
    
    .form-title h3 {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        height: 32px;
        max-width: 140px;
    }
    
    .form-group {
        gap: 0.4rem;
        margin-bottom: 0.3rem;
        padding: 0.15rem 0;
    }
}

.main-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #5b5ee8, #4338ca);
}

.main-action-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}



/* Step 3 Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show .popup-modal {
    transform: scale(1) translateY(0);
}

.popup-header {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-content {
    padding: 2rem;
    text-align: center;
}

.popup-icon {
    margin-bottom: 1.5rem;
}

.popup-icon i {
    font-size: 3rem;
    color: #8b5cf6;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    padding: 1.5rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-message {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.popup-actions {
    display: flex;
    justify-content: center;
}

.popup-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-actions .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.popup-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Responsive popup */
@media (max-width: 600px) {
    .popup-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-header {
        padding: 1rem 1.5rem;
    }
    
    .popup-title {
        font-size: 1.1rem;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-icon i {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        padding: 1.25rem;
    }
    
    .popup-message {
        font-size: 1rem;
    }
}

/* Input Section Animation già definita sopra */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
}

@keyframes calculate-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        transform: scale(1);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    25% {
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
        transform: scale(1.03);
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    }
    50% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        transform: scale(1);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    75% {
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
        transform: scale(1.03);
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    }
    100% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        transform: scale(1);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
}

.lifetime-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.2rem;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group.required label::after {
    content: " *";
    color: var(--danger-color);
}

.form-group label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.75rem;
    text-align: left;
    min-width: 110px;
    flex-shrink: 0;
    letter-spacing: 0.1px;
}

.form-group input,
.form-group select {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    width: 120px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    text-align-last: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 0.7rem;
    padding-right: 1.8rem;
    height: 30px;
    flex-shrink: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(83, 104, 198, 0.6);
    box-shadow: 0 0 0 3px rgba(83, 104, 198, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(83, 104, 198, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
}

/* Stili specifici per i menu select per migliorare l'allineamento */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    padding: 0.5rem 1rem;
    text-align: left;
}

/* Rimuove la freccia di default del browser per i select */
.form-group select::-ms-expand {
    display: none;
}

/* Assicura che il testo sia sempre allineato a sinistra */
.form-group select:invalid,
.form-group select option[value=""] {
    color: #6b7280;
}

/* Error messages removed for compact layout */

/* Additional Parameters */
.additional-params-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.toggle-params-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.toggle-params-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-params-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.additional-params {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Calculate Button Section */
.calculate-section {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
}

.calculate-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 767px) {
    .main-title-container {
        height: 4rem; /* Aumentato ulteriormente per contenere i titoli più grandi */
        perspective: 800px;
    }
    
    .title-level-1 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 1rem;
    }
    
    .title-level-2 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 1rem;
    }
    
    .title-level-3 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 1rem;
    }
    
    .snapshot-title {
        font-family: 'Dancing Script', cursive;
        font-size: 3rem; /* Ridotto a 48px */
        font-weight: 600;
        font-style: italic;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 1rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.3px;
    }
    
    .subtitle {
        font-size: 0.75rem;
        font-style: italic;
        line-height: 1.4;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .app-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .main-content {
        padding: 2rem 0.5rem 6rem 0.5rem;
    }
    
    .input-section {
        padding: 0.8rem;
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculate-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .navbar {
        top: 0;
        bottom: auto;
        border-top: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .nav-item {
        flex-direction: column;
        gap: 0.25rem;
        min-width: 80px;
    }
    
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 6rem 2rem 2rem 2rem;
    }
    
    .main-title-container {
        height: 4rem;
        perspective: 1200px;
    }
    
    .title-level-1 {
        font-size: 1.3rem;
    }
    
    .title-level-2 {
        font-size: 1.3rem;
    }
    
    .title-level-3 {
        font-size: 1.3rem;
    }
    
    .snapshot-title {
        font-family: 'Dancing Script', cursive;
        font-size: 2rem; /* Ridotto per tablet */
        font-weight: 600;
        font-style: italic;
        margin-bottom: 2rem; /* Aumentato del +300% da 0.5rem a 2rem */
        letter-spacing: 0.8px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Dropdown verso il basso su desktop */
    .language-dropdown {
        bottom: auto;
        top: 100%;
        margin-top: 0.5rem;
    }
    
    .menu-dropdown {
        bottom: auto;
        top: 100%;
        margin-top: 0.5rem;
    }
    
    .account-dropdown {
        bottom: auto;
        top: 100%;
        margin-top: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }
    
    .main-title-container {
        height: 4.5rem;
        perspective: 1400px;
    }
    
    .title-level-1 {
        font-size: 1.5rem;
    }
    
    .title-level-2 {
        font-size: 1.5rem;
    }
    
    .title-level-3 {
        font-size: 1.5rem;
    }
    
    .snapshot-title {
        font-family: 'Dancing Script', cursive;
        font-size: 3rem; /* Stessa grandezza del title-level-3 */
        font-weight: 600;
        font-style: italic;
        margin-bottom: 2rem; /* Aumentato del +300% da 0.5rem a 2rem */
        letter-spacing: 1px;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.25rem 0.5rem; /* Ridotto ulteriormente il padding verticale */
    }
    
    .nav-item {
        padding: 0.15rem 0.25rem; /* Ridotto ulteriormente il padding degli elementi */
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-decoration: none;
        color: inherit;
    }
    
    .nav-item i {
        font-size: 1rem; /* Ridotto ulteriormente la dimensione delle icone */
    }
    
    .nav-item span {
        font-size: 0.65rem; /* Ridotto ulteriormente la dimensione del testo */
    }
    
    .snapshot-title {
        font-family: 'Dancing Script', cursive;
        font-size: 2.0rem; /* Ridotto da 2.5rem a 2.0rem per mobile */
        font-weight: 600;
        font-style: italic;
        margin-bottom: 2rem; /* Aumentato del +300% da 0.5rem a 2rem */
        letter-spacing: 0.8px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .main-title-container {
        height: 3.5rem; /* Aumentato ulteriormente per contenere i titoli più grandi */
        perspective: 600px;
    }
    
    .title-level-1 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.1;
        padding: 0 0.5rem;
    }
    
    .title-level-2 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.1;
        padding: 0 0.5rem;
    }
    
    .title-level-3 {
        font-size: 1.2rem; /* Unificato alla dimensione più piccola */
        line-height: 1.1;
        padding: 0 0.5rem;
    }
    
    .snapshot-title {
        font-family: 'Dancing Script', cursive;
        font-size: 1.8rem; /* Ridotto per adattarsi su una riga */
        font-weight: 600;
        font-style: italic;
        line-height: 1.3;
        padding: 0 0.5rem;
        margin-bottom: 1rem; /* Aumentato del +300% da 0.25rem a 1rem */
        letter-spacing: 0.2px;
    }
    
    .subtitle {
        font-size: 0.675rem;
        font-style: italic;
        padding: 0 0.5rem;
    }
    
    .app-header {
        padding: 0.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .main-content {
        padding: 1rem 0.25rem 6rem 0.25rem;
    }
    
    .input-section {
        padding: 1rem;
        margin: 0 0.25rem 1rem 0.25rem;
        border-radius: 12px;
    }
    
    /* Layout responsivo per mobile: ritorna al layout verticale */
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
        padding: 0.4rem 0;
    }
    
    .form-group label {
        min-width: auto;
        text-align: left;
        font-size: 0.7rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        width: 100%;
        height: 28px;
    }
    
    .calculate-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.calculate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.calculate-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Stili specifici per il grafico della vita */

/* Graph Results Section */
.graph-results-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

/* Simulator Section */
.simulator-section {
    margin-top: 2rem;
    text-align: center;
}

.simulator-btn {
    background: linear-gradient(135deg, var(--accent-color), #9c27b0);
    color: white;
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: simulatorPulse 2s ease-in-out infinite;
}

.simulator-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #9c27b0, var(--accent-color));
    animation-play-state: paused;
}

.simulator-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: simulatorBorderGlow 3s linear infinite;
    opacity: 0.8;
}

.simulator-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 15px;
    z-index: -1;
}

.simulator-btn i {
    font-size: 1.2rem;
}

/* Probability Section */
.probability-section {
    margin-top: 2rem;
    text-align: center;
}

.probability-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: probabilityPulse 2s ease-in-out infinite;
}

.probability-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #059669, #047857);
    animation-play-state: paused;
    color: white;
    text-decoration: none;
}

.probability-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #10b981, #34d399, #6ee7b7, #a7f3d0, #d1fae5);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: probabilityBorderGlow 3s linear infinite;
    opacity: 0.8;
}

.probability-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 15px;
    z-index: -1;
}

.probability-btn i {
    font-size: 1.2rem;
}

/* Animazioni per il pulsante probabilità */
@keyframes probabilityPulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
}

@keyframes probabilityBorderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== STILI PER PAGINA PROBABILITÀ DI SOPRAVVIVENZA ===== */

/* Professional Navbar */
.professional-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.brand-icon i {
    font-size: 1.5rem;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: #10b981;
    transform: translateY(-2px);
}

.nav-link.current-page {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-link i {
    font-size: 1rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.navbar-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(16, 185, 129, 0.01));
    pointer-events: none;
}

/* Page Background Effects */
.page-background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.bg-gradient-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite reverse;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(16, 185, 129, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(16, 185, 129, 0.08), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(16, 185, 129, 0.06), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(16, 185, 129, 0.05), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particles 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes particles {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200px); }
}

/* Main Content Adjustments */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .navbar-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-icon i {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .navbar-menu {
        gap: 0.1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
}

/* Interactive Calculator */
.interactive-calculator {
    margin-bottom: 4rem;
}

.calculator-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.calculator-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calculator-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.form-input,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: var(--bg-primary);
}

.form-input:hover,
.form-select:hover {
    border-color: #10b981;
}

.current-result {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.current-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-header i {
    font-size: 1.5rem;
    color: #10b981;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.recalculate-section {
    text-align: center;
}

.recalculate-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    animation: probabilityPulse 2s ease-in-out infinite;
}

.recalculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
    animation-play-state: paused;
}

.recalculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    animation-play-state: paused;
}

.recalculate-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #10b981, #34d399, #6ee7b7, #a7f3d0, #d1fae5);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: probabilityBorderGlow 3s linear infinite;
    opacity: 0.8;
}

.recalculate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 15px;
    z-index: -1;
}

.recalculate-btn i {
    font-size: 1.2rem;
}

/* Responsive Design per Calculator */
@media (max-width: 768px) {
    .calculator-card {
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .current-result {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .recalculate-btn {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
    }
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Explanation Card */
.probability-explanation {
    margin-bottom: 4rem;
}

.explanation-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.explanation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.explanation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.explanation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.explanation-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.explanation-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.explanation-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.factors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.factors-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.factors-list li:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

.factors-list li i {
    font-size: 1.5rem;
    color: #10b981;
    min-width: 24px;
}

.factors-list li span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Probability Ranges */
.probability-ranges {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.range-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.range-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.range-card.high::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.range-card.medium::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.range-card.low::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.range-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.range-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.range-card.high .range-icon {
    color: #10b981;
}

.range-card.medium .range-icon {
    color: #f59e0b;
}

.range-card.low .range-icon {
    color: #ef4444;
}

.range-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.range-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

/* Improvement Tips */
.improvement-tips {
    margin-bottom: 4rem;
}

.tips-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tips-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.tips-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.tips-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tips-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.tips-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tip-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
}

.tip-item:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.tip-icon {
    font-size: 2rem;
    color: #10b981;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    margin-bottom: 4rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.1);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.cta-btn.secondary {
    background: transparent;
    color: #10b981;
    border-color: #10b981;
}

.cta-btn.secondary:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .explanation-card,
    .tips-card,
    .cta-card {
        padding: 2rem;
    }
    
    .factors-list {
        grid-template-columns: 1fr;
    }
    
    .ranges-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Professional Footer */
.professional-footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-logo i {
    font-size: 2rem;
    color: #10b981;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b0b0b0;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #10b981;
    transform: translateX(5px);
}

.footer-link i {
    font-size: 1rem;
    width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #404040;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #808080;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.footer-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-container {
        padding: 3rem 1rem 2rem;
    }
}

/* Animazioni per il pulsante simulatore */
@keyframes simulatorPulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
}

@keyframes simulatorBorderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.graph-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Life Graph Container */
.life-graph-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.life-graph {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    width: 100%;
}

/* Life Dot */
.life-dot {
    width: 31px; /* Aumentato del 25% da 25px */
    height: 31px; /* Aumentato del 25% da 25px */
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    background: transparent;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    position: relative;
}

.life-dot.visible {
    opacity: 1;
    transform: scale(1);
}

/* Dot Types */
.life-dot.lived {
    background: #10b981; /* Stesso verde del pulsante "Calcola" attivo */
    border: 1px solid #000000; /* Bordo nero sottile */
}

.life-dot.healthy {
    background: #3b82f6; /* Blu elettrico vivace per anni in buona salute */
    border: 1px solid #000000; /* Bordo nero sottile */
}

.life-dot.unhealthy {
    background: #f97316; /* Arancione fiammante vivace per anni in cattiva salute */
    border: 1px solid #000000; /* Bordo nero sottile */
}

.life-dot.unlived {
    background: transparent;
    border: 1px solid #000000; /* Bordo nero sottile */
    opacity: 0.3;
}

/* Year numbers inside dots */
.year-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px; /* Aumentato del 25% da 10px */
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Graph Legend */
.graph-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 2.5rem;
}

.legend-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.legend-item.total {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.legend-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.legend-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
}

.legend-item.total .legend-icon {
    color: var(--primary-color);
}

.legend-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Loading Spinner Styles */
.legend-value-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
}

.loading-spinner.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.legend-item.total .legend-value {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.legend-symbol {
    width: 31px; /* Stessa grandezza dei pallini del grafico */
    height: 31px; /* Stessa grandezza dei pallini del grafico */
    border-radius: 50%;
    border: 1px solid #000000; /* Bordo nero sottile */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simbolo X bianco all'interno dei pallini della legenda */
.legend-symbol::after {
    content: "×";
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.legend-symbol.lived {
    background: #10b981; /* Stesso verde del pulsante "Calcola" attivo */
}

.legend-symbol.healthy {
    background: #3b82f6; /* Blu elettrico vivace per anni in buona salute */
}

.legend-symbol.unhealthy {
    background: #f97316; /* Arancione fiammante vivace per anni in cattiva salute */
}

.legend-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-item.total .legend-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Stili per la probabilità di sopravvivenza */
.legend-item.survival-probability {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid #10b981;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.legend-item.survival-probability .legend-icon {
    color: #10b981;
}

.legend-item.survival-probability .legend-value {
    font-size: 1.25rem;
    color: #10b981;
}

.legend-item.survival-probability .legend-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Animations */
@keyframes dotAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.life-dot.animate {
    animation: dotAppear 0.6s ease-out forwards;
}

.life-dot.fade-out {
    animation: dotFadeOut 0.3s ease-out forwards;
}

@keyframes dotFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Responsive Design for Graph */
@media (max-width: 768px) {
    .life-graph {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.4rem;
    }
    
    .life-dot {
        width: 25px; /* Aumentato del 25% da 20px */
        height: 25px; /* Aumentato del 25% da 20px */
    }
    
    .year-number {
        font-size: 11px; /* Aumentato del 25% da 9px */
    }
    
    .life-graph-container {
        padding: 1rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .graph-legend {
        max-width: 100%;
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .legend-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .legend-symbol {
        width: 25px; /* Stessa grandezza dei pallini del grafico su tablet */
        height: 25px; /* Stessa grandezza dei pallini del grafico su tablet */
    }
    
    .legend-symbol::after {
        font-size: 14px; /* Simbolo X più piccolo su tablet */
    }
    
    .legend-icon {
        font-size: 1.25rem;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .life-graph {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.2rem;
        max-width: 100%;
    }
    
    .life-dot {
        width: 19px; /* Aumentato del 25% da 15px */
        height: 19px; /* Aumentato del 25% da 15px */
    }
    
    .year-number {
        font-size: 10px; /* Aumentato del 25% da 8px */
    }
    
    .life-graph-container {
        padding: 0.5rem;
        margin: 0 0.25rem 2rem 0.25rem;
    }
    
    .legend-symbol {
        width: 19px; /* Stessa grandezza dei pallini del grafico su mobile */
        height: 19px; /* Stessa grandezza dei pallini del grafico su mobile */
    }
    
    .legend-symbol::after {
        font-size: 11px; /* Simbolo X più piccolo su mobile */
    }
    
    .graph-title {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .graph-legend {
        padding: 0.5rem;
        gap: 0.5rem;
        margin: 0 0.25rem;
    }
    
    .legend-item {
        padding: 0.25rem 0.5rem;
        min-height: 1.75rem;
    }
    
    .legend-left {
        min-width: 50px;
        gap: 0.25rem;
    }
    
    .legend-icon {
        font-size: 1rem;
        min-width: 16px;
    }
    
    .legend-value {
        font-size: 0.9rem;
    }
    
    .legend-text {
        font-size: 0.7rem;
    }
}

/* Very Small Mobile Screens */
@media (max-width: 375px) {
    .life-graph {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.15rem;
        padding: 0.25rem;
    }
    
    .life-dot {
        width: 16px; /* Aumentato del 25% da 13px */
        height: 16px;
    }
    
    .year-number {
        font-size: 9px; /* Aumentato del 25% da 7px */
    }
    
    .legend-symbol {
        width: 16px; /* Stessa grandezza dei pallini del grafico su dispositivi molto piccoli */
        height: 16px; /* Stessa grandezza dei pallini del grafico su dispositivi molto piccoli */
    }
    
    .legend-symbol::after {
        font-size: 9px; /* Simbolo X più piccolo su dispositivi molto piccoli */
    }
    
    .graph-title {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Loading State for Graph */
.graph-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Graph Container Responsive */
@media (min-width: 1024px) {
    .life-graph {
        max-width: 700px;
        gap: 0.6rem;
    }
    
    .life-dot {
        width: 38px; /* Aumentato del 25% da 30px */
        height: 38px; /* Aumentato del 25% da 30px */
    }
    
    .year-number {
        font-size: 15px; /* Aumentato del 25% da 12px */
    }
    
    .legend-symbol {
        width: 38px; /* Stessa grandezza dei pallini del grafico su desktop grandi */
        height: 38px; /* Stessa grandezza dei pallini del grafico su desktop grandi */
    }
    
    .legend-symbol::after {
        font-size: 22px; /* Simbolo X più grande su desktop grandi */
    }
}

/* Large Desktop Screens */
@media (min-width: 1440px) {
    .life-graph {
        max-width: 900px;
        gap: 0.8rem;
    }
    
    .life-dot {
        width: 44px; /* Aumentato del 25% da 35px */
        height: 44px;
    }
    
    .year-number {
        font-size: 18px; /* Aumentato del 25% da 14px */
    }
    
    .legend-symbol {
        width: 44px; /* Stessa grandezza dei pallini del grafico su desktop extra grandi */
        height: 44px; /* Stessa grandezza dei pallini del grafico su desktop extra grandi */
    }
    
    .legend-symbol::after {
        font-size: 26px; /* Simbolo X più grande su desktop extra grandi */
    }
}

/* Smooth scrolling for graph section */
.graph-results-section {
    scroll-margin-top: 2rem;
}

/* Enhanced hover effects */
.life-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Legend item enhanced styling */
.legend-item {
    position: relative;
    overflow: hidden;
}

.legend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.legend-item:hover::before {
    left: 100%;
}

/* ========================================
   DESKTOP LAYOUT IMPROVEMENTS
   ======================================== */

/* Desktop improvements (768px and above) */
@media (min-width: 768px) {
    /* Input section - much wider for desktop */
    .input-section {
        max-width: 1000px !important;
        padding: 2.5rem !important;
        margin: 0 auto 3rem auto !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Form grid - better distribution for desktop */
    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
        align-items: start !important;
    }
    
    /* Form groups - better layout for desktop */
    .form-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
        border-bottom: none !important;
    }
    
    /* Form labels - better for desktop */
    .form-group label {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #374151 !important;
        min-width: auto !important;
        margin-bottom: 0.5rem !important;
        text-align: left !important;
    }
    
    /* Input container removed for compact layout */
    
    /* Form inputs and selects - full width for desktop */
    .form-group input,
    .form-group select {
        width: 100% !important;
        max-width: none !important;
        padding: 0.6rem 0.8rem !important;
        padding-right: 2.2rem !important;
        font-size: 0.8rem !important;
        height: 36px !important;
        box-sizing: border-box !important;
        text-align: left !important;
        text-align-last: left !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.7rem center !important;
        background-size: 0.9rem !important;
    }
    
    /* Error message removed for compact layout */
    
    /* Main action buttons - larger for desktop */
    .main-action-btn {
        width: 400px !important;
        height: 70px !important;
        font-size: 1.2rem !important;
        padding: 1.5rem 3rem !important;
    }
    
    /* Step labels - larger for desktop */
    .step-label span {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Buttons section - better spacing for desktop */
    .buttons-section {
        margin: 3rem 0 !important;
        gap: 1rem !important;
    }
}

/* Large desktop improvements (1200px and above) */
@media (min-width: 1200px) {
    /* Input section - even wider */
    .input-section {
        max-width: 1200px !important;
        padding: 3rem !important;
    }
    
    /* Form grid - three columns for better distribution */
    .form-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 2.5rem !important;
    }
    
    /* Form groups - even better spacing */
    .form-group {
        margin-bottom: 2rem !important;
    }
    
    /* Form labels - larger */
    .form-group label {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Form inputs and selects - larger */
    .form-group input,
    .form-group select {
        padding: 0.8rem 1rem !important;
        padding-right: 2.8rem !important;
        font-size: 0.9rem !important;
        height: 42px !important;
        text-align: left !important;
        text-align-last: left !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.9rem center !important;
        background-size: 1rem !important;
    }
    
    /* Main action buttons - larger */
    .main-action-btn {
        width: 450px !important;
        height: 80px !important;
        font-size: 1.3rem !important;
        padding: 1.75rem 3.5rem !important;
    }
    
    /* Step labels - larger */
    .step-label span {
        font-size: 1.1rem !important;
    }
    
    /* CTA Button - larger */
    .cta-button {
        padding: 2rem 4rem !important;
        font-size: 1.5rem !important;
        margin-top: 50px !important;
    }
    
    .cta-button i {
        font-size: 1.4rem !important;
    }
    
    /* Step buttons - larger */
    .step-button {
        width: 360px !important;
        height: 68px !important;
        font-size: 1.1rem !important;
        border-radius: 50px !important;
        padding: 1rem 2.5rem !important;
    }
}

/* Extra large desktop improvements (1600px and above) */
@media (min-width: 1600px) {
    /* Input section - maximum width */
    .input-section {
        max-width: 1400px !important;
        padding: 3.5rem !important;
    }
    
    /* Form grid - maximum spacing */
    .form-grid {
        gap: 3rem !important;
    }
    
    /* Form groups - maximum spacing */
    .form-group {
        margin-bottom: 2.5rem !important;
    }
    
    /* Form labels - maximum size */
    .form-group label {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Form inputs and selects - maximum size */
    .form-group input,
    .form-group select {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        height: 48px !important;
    }
    
    /* Main action buttons - maximum size */
    .main-action-btn {
        width: 500px !important;
        height: 90px !important;
        font-size: 1.4rem !important;
        padding: 2rem 4rem !important;
    }
    
    /* Step labels - maximum size */
    .step-label span {
        font-size: 1.2rem !important;
    }
    
    /* CTA Button - maximum size */
    .cta-button {
        padding: 2.5rem 5rem !important;
        font-size: 1.7rem !important;
        margin-top: 60px !important;
    }
    
    .cta-button i {
        font-size: 1.6rem !important;
    }
    
    /* Step buttons - maximum size */
    .step-button {
        width: 400px !important;
        height: 72px !important;
        font-size: 1.2rem !important;
    }
}

/* ========================================
   DESKTOP TEXT IMPROVEMENTS - LARGER FONTS AND WIDER TEXT BOXES
   ======================================== */

/* Desktop text improvements (768px and above) */
@media (min-width: 768px) {
    /* Main title - much larger for desktop */
    .snapshot-title {
        font-size: 4rem !important;
        margin: 0 0 2.5rem 0 !important;
        letter-spacing: 0.5px !important;
        max-width: 800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 3.2rem !important;
    }
    
    /* Confucius quote - larger and wider */
    .subtitle {
        font-size: 1.4rem !important;
        max-width: 900px !important;
        margin: 1.5rem auto 2rem auto !important;
        line-height: 1.7 !important;
        padding: 0 2rem !important;
    }
    
    /* Expandable section title - larger and wider */
    .expandable-section h3 {
        font-size: 2.2rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.4 !important;
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 2rem !important;
    }
    
    /* Expandable section content - larger and wider */
    .expandable-section p {
        font-size: 1.5rem !important;
        line-height: 1.8 !important;
        margin-bottom: 2rem !important;
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 2rem !important;
    }
    
    /* Read more button - larger */
    .read-more-btn {
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
        margin-top: 1.5rem !important;
    }
    
    /* Expandable section container - wider */
    .expandable-section {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
    }
}

/* Large desktop text improvements (1200px and above) */
@media (min-width: 1200px) {
    /* Main title - even larger */
    .snapshot-title {
        font-size: 5rem !important;
        margin: 0 0 3rem 0 !important;
        max-width: 1000px !important;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 4rem !important;
    }
    
    /* Confucius quote - even larger */
    .subtitle {
        font-size: 1.6rem !important;
        max-width: 1100px !important;
        margin: 1.5rem auto 2.5rem auto !important;
        padding: 0 3rem !important;
    }
    
    /* Expandable section title - even larger */
    .expandable-section h3 {
        font-size: 2.6rem !important;
        margin-bottom: 2.5rem !important;
        max-width: 1200px !important;
        padding: 0 3rem !important;
    }
    
    /* Expandable section content - even larger */
    .expandable-section p {
        font-size: 1.7rem !important;
        line-height: 1.9 !important;
        margin-bottom: 2.5rem !important;
        max-width: 1200px !important;
        padding: 0 3rem !important;
    }
    
    /* Read more button - even larger */
    .read-more-btn {
        font-size: 1.4rem !important;
        padding: 1.25rem 2.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Expandable section container - even wider */
    .expandable-section {
        max-width: 1400px !important;
        padding: 0 3rem !important;
    }
}

/* Extra large desktop text improvements (1600px and above) */
@media (min-width: 1600px) {
    /* Main title - maximum size */
    .snapshot-title {
        font-size: 6rem !important;
        margin: 0 0 3.5rem 0 !important;
        max-width: 1200px !important;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 4.8rem !important;
    }
    
    /* Confucius quote - maximum size */
    .subtitle {
        font-size: 1.8rem !important;
        max-width: 1300px !important;
        margin: 1.5rem auto 3rem auto !important;
        padding: 0 4rem !important;
    }
    
    /* Expandable section title - maximum size */
    .expandable-section h3 {
        font-size: 3rem !important;
        margin-bottom: 3rem !important;
        max-width: 1400px !important;
        padding: 0 4rem !important;
    }
    
    /* Expandable section content - maximum size */
    .expandable-section p {
        font-size: 1.9rem !important;
        line-height: 2 !important;
        margin-bottom: 3rem !important;
        max-width: 1400px !important;
        padding: 0 4rem !important;
    }
    
    /* Read more button - maximum size */
    .read-more-btn {
        font-size: 1.6rem !important;
        padding: 1.5rem 3rem !important;
        margin-top: 2.5rem !important;
    }
    
    /* Expandable section container - maximum width */
    .expandable-section {
        max-width: 1600px !important;
        padding: 0 4rem !important;
    }
    
    /* Step buttons - maximum size */
    .step-button {
        width: 400px !important;
        height: 72px !important;
        font-size: 1.2rem !important;
        border-radius: 50px !important;
        padding: 1rem 3rem !important;
    }
}
