/* =========================================================================
 * Simulator — Loaded conditionally on home and pages embedding the simulator.
 * ====================================================================== */

.simulator-section {
 background: linear-gradient(180deg, rgba(79, 70, 229, 0.04) 0%, rgba(79, 70, 229, 0.08) 50%, rgba(79, 70, 229, 0.04) 100%);
 padding: 80px 0; position: relative; overflow: hidden;
 border-top: 1px solid rgba(79, 70, 229, 0.1);
 border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}
.simulator-section::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%); pointer-events: none; }
.simulator-section::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%); pointer-events: none; }
.simulator-container { max-width: 800px; margin: 0 auto; }
.simulator-header { text-align: center; margin-bottom: 40px; }
.simulator-header h2 { margin-bottom: 16px; }
.simulator-header p { color: var(--gray-600); font-size: 1.125rem; }
.simulator-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 40px; position: relative; }
.simulator-progress { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.simulator-progress::before { content: ''; position: absolute; top: 20px; left: 40px; right: 40px; height: 3px; background: var(--gray-200); z-index: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.progress-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; color: var(--gray-500); }
.progress-step.active .progress-circle { background: var(--primary); color: var(--white); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2); }
.progress-step.completed .progress-circle { background: var(--success); color: var(--white); }
.progress-step.completed .progress-circle span { display: none; }
.progress-step.completed .progress-circle::after { content: ''; width: 12px; height: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.progress-label { font-size: 0.75rem; color: var(--gray-500); text-align: center; max-width: 80px; }
.progress-step.active .progress-label { color: var(--primary); font-weight: 600; }
.simulator-step { display: none; animation: simFadeIn 0.4s ease; contain: content; }
.simulator-step.active { display: block; }
@keyframes simFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.step-question { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; text-align: center; }
.step-subtitle { color: var(--gray-500); text-align: center; margin-bottom: 32px; }
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.options-grid.single-column { grid-template-columns: 1fr; }
.option-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; display: flex; align-items: flex-start; gap: 16px; background: var(--white); }
.option-card:hover { border-color: var(--primary-light); background: rgba(79, 70, 229, 0.02); }
.option-card.selected { border-color: var(--primary); background: rgba(79, 70, 229, 0.05); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.option-radio { width: 24px; height: 24px; border: 2px solid var(--gray-300); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, opacity 0.2s ease; margin-top: 2px; }
.option-card.selected .option-radio { border-color: var(--primary); background: var(--primary); }
.option-card.selected .option-radio::after { content: ''; width: 8px; height: 8px; background: var(--white); border-radius: 50%; }
.option-content h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.option-content p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }
.option-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); color: var(--primary); }
.option-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.option-card.selected .option-icon { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); }
.simulator-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.btn-sim { padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; display: flex; align-items: center; gap: 8px; border: none; }
.btn-sim-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-sim-secondary:hover { background: var(--gray-200); }
.btn-sim-primary { background: var(--primary); color: var(--white); }
.btn-sim-primary:hover { background: var(--primary-dark); }
.btn-sim-primary:disabled { background: var(--gray-300); cursor: not-allowed; }
.btn-sim-accent { background: var(--accent); color: var(--white); }
.btn-sim-accent:hover { background: var(--accent-dark); }
.btn-sim-accent:disabled { background: var(--gray-300); cursor: not-allowed; }
.simulator-results { display: none; animation: simFadeIn 0.5s ease; contain: content; }
.simulator-results.active { display: block; }
.results-header { text-align: center; margin-bottom: 32px; }
.results-header .icon-success { width: 80px; height: 80px; background: linear-gradient(135deg, var(--success) 0%, #059669 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; }
.results-header h3 { font-size: 1.5rem; margin-bottom: 8px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.result-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.result-card.highlight { background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); border: 1px solid rgba(79, 70, 229, 0.2); }
.result-card.warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%); border: 1px solid rgba(245, 158, 11, 0.2); }
.result-label { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.result-value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); }
.result-card.highlight .result-value { color: var(--primary); }
.result-card.warning .result-value { color: #D97706; }
.result-note { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
.results-recommendation { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.results-recommendation h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.results-recommendation p { opacity: 0.9; line-height: 1.6; margin: 0; }
.results-steps { margin-bottom: 32px; }
.results-steps h4 { font-size: 1rem; margin-bottom: 16px; color: var(--gray-900); }
.step-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.step-item:last-child { border-bottom: none; }
.step-number { width: 32px; height: 32px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; flex-shrink: 0; }
.step-item-content h5 { font-size: 0.95rem; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.step-item-content p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }
.results-cta { display: flex; gap: 16px; justify-content: center; }
.results-disclaimer { margin-top: 24px; padding: 16px; background: var(--gray-50); border-radius: var(--radius-md); font-size: 0.8rem; color: var(--gray-500); text-align: center; }
@media (max-width: 768px) {
 .simulator-card { padding: 24px; }
 .simulator-progress { overflow-x: auto; padding-bottom: 10px; }
 .progress-label { display: none; }
 .options-grid { grid-template-columns: 1fr; }
 .results-grid { grid-template-columns: 1fr; }
 .results-cta { flex-direction: column; }
 .simulator-nav { flex-direction: column-reverse; }
 .btn-sim { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
 .simulator-card { padding: 20px 16px; }
 .option-card { padding: 16px 12px; gap: 12px; }
 .option-icon { width: 40px; height: 40px; }
 .option-icon svg { width: 20px; height: 20px; }
}
