/* Quick Retirement Calculator Styles */

/* Header Navigation */
.quick-retirement-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.header-brand:hover {
    color: #667eea;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.header-link:hover {
    text-decoration: underline;
}

.quick-retirement-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
}

/* Form Container */
.form-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix, .input-suffix {
    position: absolute;
    color: #666;
    font-weight: 500;
}

.input-prefix {
    left: 12px;
    font-size: 1.1rem;
}

.input-suffix {
    right: 12px;
    color: #888;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
}

.form-control.with-prefix {
    padding-left: 32px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f2ff;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.2rem;
}

.existing-user-link {
    text-align: center;
    padding: 1.5rem;
    color: #666;
}

.existing-user-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.existing-user-link a:hover {
    text-decoration: underline;
}

/* Results Styles */
.results-header {
    margin-bottom: 2rem;
}

.status-banner {
    text-align: center;
    padding: 2.5rem 1rem;
    border-radius: 12px;
    color: white;
}

.status-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-banner p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.95;
}

.status-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.status-yellow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.status-red {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

.result-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.result-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #444;
}

/* Savings Projection */
.projection-headline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.projection-headline strong {
    color: #667eea;
    font-size: 1.4rem;
}

.shortfall-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-text {
    color: #d63384;
    font-weight: 600;
    font-size: 1.1rem;
}

.confidence-range {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.range-label {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
}

.range-visual {
    padding: 1rem 0;
}

.range-bar {
    position: relative;
    height: 80px;
    background: linear-gradient(to right, #ffc107 0%, #28a745 50%, #17a2b8 100%);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.range-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
    z-index: 0;
}

.range-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.range-point::before {
    content: '●';
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.range-point small {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: capitalize;
}

.income-projection {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.income-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
}

.income-likely {
    color: #666;
    margin: 0;
}

.good-news {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    border-radius: 6px;
}

.good-news ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.good-news li {
    margin-bottom: 0.5rem;
    color: #155724;
}

/* Action Items */
.action-items {
    background: #fff8e1;
    border: 2px solid #ffc107;
}

.action-option {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.action-option strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.action-option p {
    margin: 0;
    color: #555;
}

.action-button {
    margin-top: 1.5rem;
    text-align: center;
}

.action-note {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Assumptions */
.assumptions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-button {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
}

.link-button:hover {
    text-decoration: underline;
}

.assumptions-summary ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.assumptions-summary li {
    margin-bottom: 0.5rem;
    color: #555;
}

.assumption-actions {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: #5568d3;
}

/* Refinement Section */
.refinement-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f0f7ff;
    border: 2px solid #667eea;
    border-radius: 8px;
}

.refinement-section h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.refinement-intro {
    color: #555;
    margin-bottom: 1.5rem;
}

.refinement-form .form-group {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.refinement-form label {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.impact-text {
    color: #667eea !important;
    font-weight: 600;
    font-size: 0.95rem !important;
}

.refinement-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Detailed Scenarios */
.detailed-scenarios {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.scenario-card {
    border: 2px solid;
    border-radius: 8px;
    padding: 1.5rem;
}

.scenario-conservative {
    border-color: #ffc107;
    background: #fff8e1;
}

.scenario-likely {
    border-color: #28a745;
    background: #d4edda;
}

.scenario-optimistic {
    border-color: #17a2b8;
    background: #d1ecf1;
}

.scenario-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.scenario-assumptions, .scenario-results {
    margin-bottom: 1rem;
}

.scenario-assumptions ul, .scenario-results ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.scenario-assumptions li, .scenario-results li {
    margin-bottom: 0.25rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
    text-align: center;
}

.cta-actions {
    margin: 2rem 0 1rem 0;
}

.cta-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .status-banner h1 {
        font-size: 1.6rem;
    }
    
    .range-bar {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .range-bar::before {
        display: none;
    }
    
    .range-point {
        font-size: 1rem;
    }
    
    .range-point::before {
        font-size: 1.2rem;
    }
    
    .detailed-scenarios {
        gap: 1rem;
    }
    
    .assumptions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
