/* Risk Test Specific Styles */
.test-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.test-progress-bar {
    flex: 1;
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.test-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #20c997);
    border-radius: 4px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 500;
    color: #495057;
    min-width: 100px;
    font-size: 0.9rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Risk Profile Selection */
.risk-selection {
    text-align: center;
    padding: 20px 10px;
}

.risk-selection h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #212529;
}

.risk-selection p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #6c757d;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.profile-card.conservative::before {
    background: linear-gradient(90deg, #6c757d, #495057);
}

.profile-card.moderate::before {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

.profile-card.aggressive::before {
    background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: transparent;
}

.profile-card.conservative:hover {
    border-color: #6c757d;
    box-shadow: 0 15px 35px rgba(108, 117, 125, 0.2);
}

.profile-card.moderate:hover {
    border-color: #0d6efd;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.2);
}

.profile-card.aggressive:hover {
    border-color: #dc3545;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
}

.profile-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-card p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1rem;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.profile-card li {
    padding: 6px 0;
    color: #495057;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.profile-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Test Questions */
.test-questions {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
}

.question-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.question-container h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #212529;
}

.question-content {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.option:hover {
    background: rgba(13, 110, 253, 0.05);
    border-color: #0d6efd;
}

.option.selected {
    background: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.option::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.option.selected::before {
    background: #0d6efd;
    border-color: #0d6efd;
}

.option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 19px;
    transform: translateY(-50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nav-btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.nav-btn.primary {
    background: #0d6efd;
    color: white;
}

.nav-btn.primary:hover:not(:disabled) {
    background: #0b5ed7;
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.nav-btn.secondary:hover:not(:disabled) {
    background: #e9ecef;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Test Results */
.test-results {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 10px;
}

.results-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.result-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.score-breakdown {
    margin-bottom: 30px;
}

.score-breakdown h3 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.score-chart {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.score-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.recommendations h3 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.recommendation-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid;
}

.recommendation-card.time {
    border-left-color: #0d6efd;
}

.recommendation-card.allocation {
    border-left-color: #20c997;
}

.recommendation-card.strategy {
    border-left-color: #fd7e14;
}

.recommendation-card h4 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.recommendation-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.suggestion-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.suggestion-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.suggestion-item h5 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.suggestion-percentage {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d6efd;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 12px 30px;
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    min-width: 150px;
}

.cta-button:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

.secondary-button {
    padding: 12px 30px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    min-width: 150px;
}

.secondary-button:hover {
    background: #e9ecef;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-cards {
        grid-template-columns: 1fr;
    }
    
    .question-container {
        padding: 20px;
    }
    
    .test-navigation {
        flex-direction: column;
    }
    .test-navigation .nav-btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .cta-button, .action-buttons .secondary-button {
        width: 100%;
    }
    
    .score-chart {
        flex-direction: column;
    }
    
    .recommendation-cards,
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    .result-header h2 {
        font-size: 1.8rem;
    }
    .result-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .test-progress-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .progress-text {
        min-width: auto;
        text-align: center;
    }
    .risk-selection h1 {
        font-size: 1.5rem;
    }
    .risk-selection p {
        font-size: 0.9rem;
    }
    .profile-card {
        padding: 15px;
    }
    .profile-icon {
        font-size: 2rem;
    }
    .profile-card h3 {
        font-size: 1.1rem;
    }
    .profile-card p {
        font-size: 0.9rem;
    }
    .profile-card li {
        font-size: 0.85rem;
    }

    .question-container {
        padding: 15px;
    }
    .question-container h2 {
        font-size: 1.1rem;
    }
    .question-content {
        font-size: 0.9rem;
    }
    .option {
        padding: 12px;
        font-size: 0.9rem;
    }

    .result-header h2 {
        font-size: 1.5rem;
    }
    .result-header p {
        font-size: 0.9rem;
    }
    .score-value {
        font-size: 1.3rem;
    }
    .recommendation-card h4 {
        font-size: 0.95rem;
    }
    .recommendation-card p {
        font-size: 0.85rem;
    }
    .suggestion-item h5 {
        font-size: 0.9rem;
    }
    .suggestion-percentage {
        font-size: 1.1rem;
    }
    .cta-button, .secondary-button, .nav-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}