/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.official-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-placeholder {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.company-name {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.login-btn {
    background: #2563eb;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #1d4ed8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-top: 2rem;
}

.questionnaire-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Questionnaire Container */
.questionnaire-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    background: #f1f5f9;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2563eb;
    background: #2563eb;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span:not(.radio-custom) {
    color: #2563eb;
}

/* Results */
.results-container {
    text-align: center;
    padding: 2rem 0;
}

.results-container h3 {
    margin-bottom: 2rem;
}

.results-header {
    margin-bottom: 2rem;
}

.risk-score {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.risk-level {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.risk-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.risk-level.conservative {
    background: #dcfce7;
    color: #166534;
}

.risk-level.moderate-conservative {
    background: #fef3c7;
    color: #92400e;
}

.risk-level.moderate {
    background: #dbeafe;
    color: #1e40af;
}

.risk-level.moderate-aggressive {
    background: #fed7aa;
    color: #c2410c;
}

.risk-level.aggressive {
    background: #fee2e2;
    color: #991b1b;
}

.risk-description {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.risk-characteristics {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

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

.characteristic-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.characteristic-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.characteristic-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.asset-allocation {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.asset-allocation h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.allocation-chart {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.allocation-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    min-width: 120px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.allocation-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.allocation-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.allocation-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

.investment-recommendations {
    margin: 2rem 0;
}

.investment-recommendations h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.investment-recommendations ul {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.investment-recommendations li {
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.5;
}

.disclaimer {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.disclaimer p {
    color: #92400e;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

#prevBtn {
    margin-right: auto;
}

#nextBtn {
    margin-left: auto;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-section a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-section a:hover {
    color: #dbeafe;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom a {
    color: #93c5fd;
    text-decoration: none;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.loading-state h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.loading-state p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Results Layout */
.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.results-header .risk-score {
    color: white;
    font-size: 4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.results-header .risk-level {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.results-header .risk-subtitle {
    color: rgba(255,255,255,0.9);
}

/* Progress Enhancements */
.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.completion-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Form Auto-save Indicator */
.auto-save-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.auto-save-indicator.show {
    opacity: 1;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .loading-state {
        padding: 2rem 1rem;
    }
    
    .results-header {
        padding: 1.5rem;
    }
    
    .results-header .risk-score {
        font-size: 3rem;
    }
    
    .characteristic-grid {
        grid-template-columns: 1fr;
    }
    
    .auto-save-indicator {
        top: 80px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Logo Mobile Responsiveness */
@media (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }
    
    .official-logo {
        height: 35px;
        max-width: 120px;
    }
    
    .logo-placeholder {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .company-name {
        font-size: 0.9rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .results-header {
        padding: 2rem 1.5rem;
    }
    
    .results-header h3 {
        font-size: 2rem;
    }
    
    .results-main {
        padding: 2rem;
    }
    
    .conclusion {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .conclusion-content h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .questionnaire-header {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .questionnaire-header h1 {
        font-size: 1.75rem;
    }

    .description {
        font-size: 1rem;
    }

    .radio-option {
        padding: 0.75rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }
}

/* Error States */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #dc2626;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #16a34a;
}

/* Enhanced Results Page Styling */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.results-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

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

.results-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.results-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.results-main {
    margin-bottom: 2rem;
    padding: 3rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.results-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.results-explanation {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.explanation-header i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.explanation-header h4 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.risk-profile-guide {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.risk-level {
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.risk-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    transition: all 0.4s ease;
    border-radius: 0 4px 4px 0;
}

.risk-level::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    transition: width 0.4s ease;
}

.risk-level:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.risk-level:hover::after {
    width: 6px;
}

.risk-level-header {
    margin-bottom: 1rem;
}

.risk-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.risk-level:hover .risk-badge::before {
    left: 100%;
}

.risk-level h5 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
}

.risk-level p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.allocation-visual {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.allocation-bar {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin-bottom: 1rem;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.allocation-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(255, 255, 255, 0.3) 100%);
    animation: shimmer-bar 2s ease-in-out infinite;
}

@keyframes shimmer-bar {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.equity-portion, .fixed-income-portion {
    height: 100%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.allocation-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 1rem;
}

.equity-label {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equity-label::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 2px;
    display: inline-block;
}

.fixed-label {
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fixed-label::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 2px;
    display: inline-block;
}

/* Risk Level Specific Styles */
.risk-level.aggressive::before { background: #dc2626; }
.aggressive-badge { background: #dc2626; color: white; }
.aggressive-equity { width: 90%; background: #10b981; }
.aggressive-fixed { width: 10%; background: #ef4444; }

.risk-level.moderate-aggressive::before { background: #ea580c; }
.moderate-aggressive-badge { background: #ea580c; color: white; }
.mod-aggressive-equity { width: 80%; background: #10b981; }
.mod-aggressive-fixed { width: 20%; background: #ef4444; }

.risk-level.moderate::before { background: #d97706; }
.moderate-badge { background: #d97706; color: white; }
.moderate-equity { width: 60%; background: #10b981; }
.moderate-fixed { width: 40%; background: #ef4444; }

.risk-level.moderate-conservative::before { background: #059669; }
.moderate-conservative-badge { background: #059669; color: white; }
.mod-conservative-equity { width: 40%; background: #10b981; }
.mod-conservative-fixed { width: 60%; background: #ef4444; }

.risk-level.conservative::before { background: #0891b2; }
.conservative-badge { background: #0891b2; color: white; }
.conservative-equity { width: 20%; background: #10b981; }
.conservative-fixed { width: 80%; background: #ef4444; }

.conclusion {
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.conclusion::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

.conclusion-icon {
    font-size: 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.conclusion-content {
    position: relative;
    z-index: 1;
}

.conclusion-content h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.conclusion-content p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

.img-mission {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.img-mission h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.img-mission p {
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

/* Mobile Responsiveness for Results */
@media (max-width: 768px) {
    .results-header {
        padding: 1.5rem;
    }
    
    .results-icon {
        font-size: 2rem;
    }
    
    .results-header h3 {
        font-size: 1.5rem;
    }
    
    .results-explanation {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .explanation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .explanation-header h4 {
        font-size: 1.25rem;
    }
    
    .risk-level {
        padding: 1.5rem;
    }
    
    .risk-level h5 {
        font-size: 1rem;
    }
    
    .conclusion {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .conclusion-icon {
        font-size: 2rem;
    }
    
    .conclusion-content h4 {
        font-size: 1.25rem;
    }
    
    .allocation-labels {
        flex-direction: column;
        gap: 0.25rem;
    }
}
