/* =========================================
   1. GLOBAL & SHARED STYLES 
   (Applied to all pages)
   ========================================= */

/* --- Page Background --- */
body {
    background-color: white !important;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

/* --- Container & Main Card --- */
.container {
    padding: 0 15px; /* Mobile padding */
}

/* The Main White Box (Used on Step 1, 2, 3...) */
.main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-top: 4px solid #0066cc; /* Blue top accent */
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* --- Typography --- */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- Continue Button (Shared) --- */
.btn-continue {
    background: linear-gradient(90deg, #0066cc 0%, #00c2cb 100%);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-continue:hover {
    opacity: 0.95;
    color: white;
}


/* =========================================
   2. STEPPER NAVIGATION (SHARED)
   ========================================= */

.stepper-container {
    background: white;
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    overflow-x: auto;
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    min-width: 600px;
}

/* Grey Background Line */
.stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

/* Blue Active Progress Line */
/* This is the base rule. We change width using specific classes below. */
.stepper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    height: 2px;
    background: #0066cc;
    z-index: 0;
    transition: width 0.3s ease;
    width: 0%; /* Default 0 */
}

/* --- Dynamic Progress Widths --- */
/* Add class="stepper progress-step-2" to HTML in Step 2, etc. */
.stepper.progress-step-2::after { width: 16%; }
.stepper.progress-step-3::after { width: 33%; }
.stepper.progress-step-4::after { width: 50%; }
.stepper.progress-step-5::after { width: 66%; }
.stepper.progress-step-6::after { width: 83%; }
.stepper.progress-step-7::after { width: 100%; }

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    white-space: nowrap;
}

/* Active Step Styling */
.step-item.active .step-circle {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}
.step-item.active .step-label {
    color: #0066cc;
    font-weight: 600;
}

/* Completed Step Styling */
.step-item.completed .step-circle {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}
.step-item.completed .step-label {
    color: #374151;
}


/* =========================================
   3. STEP 1 SPECIFIC STYLES (Forms)
   ========================================= */

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #111827;
    width: 100%;
    background-color: #f9fafb;
    box-sizing: border-box; /* Fix width issues */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
    background-color: white;
}

/* Custom Currency Input Group */
.input-group-custom {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9fafb;
}

.input-group-custom:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: white;
}

.currency-select {
    background: #f3f4f6;
    border: none;
    padding: 0 16px;
    font-weight: 500;
    color: #374151;
    border-right: 1px solid #e5e7eb;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 25px;
}

.currency-input {
    border: none;
    flex: 1;
    padding: 12px 16px;
    outline: none;
    background: transparent;
    color: #111827;
    width: 100%;
}

.helper-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 6px;
}

/* Checkbox Styling */
.custom-check-container {
    display: flex;
    align-items: center;
    margin: 25px 0;
    cursor: pointer;
}

.custom-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #0066cc;
    cursor: pointer;
}

.check-label {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 400;
}

#monthly-section {
    display: none;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

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


/* =========================================
   4. STEP 2 & 3 SPECIFIC STYLES (Cards & Grid)
   ========================================= */

/* The Green/Teal Summary Card (Used in Steps 2 & 3) */
.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 0 auto 15px auto;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-left: 5px solid #10b981; /* Green accent */
}

.summary-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 5px;
}

.summary-details {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Grid for Step 2 Objectives */
.objective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .objective-grid {
        grid-template-columns: 1fr;
    }
}

/* Option Cards (Step 2) */
.option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    background: white;
}

.option-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-card.selected {
    border-color: #0066cc;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.option-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

/* Icon Colors */
.icon-green { background-color: #10b981; }
.icon-blue { background-color: #0066cc; }
.icon-purple { background-color: #8b5cf6; }
.icon-orange { background-color: #f97316; }

.option-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.option-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Risk Levels (Step 2) */
.risk-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.risk-bars {
    display: flex;
    gap: 4px;
    flex: 1;
    max-width: 120px;
}

.bar-segment {
    height: 6px;
    flex: 1;
    background-color: #e5e7eb;
    border-radius: 3px;
}

.risk-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.active-bar-green { background-color: #10b981; }
.active-bar-blue { background-color: #0066cc; }
.active-bar-purple { background-color: #8b5cf6; }
.active-bar-orange { background-color: #f97316; }

/* =========================================
   5. STEP 3 SPECIFIC STYLES (Sector Cards)
   ========================================= */

.header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.filter-icon {
    color: #0066cc;
}

.group-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

/* Unique Sector Card Style */
.sector-card {
    background-color: #f0f9ff; /* Light blue background */
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sector-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.status-badge {
    background-color: #0066cc;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.sector-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* Info Box */
.info-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.info-box p {
    margin: 0;
    font-size: 0.85rem;
    color: #0f172a;
    line-height: 1.5;
}

.info-highlight {
    font-weight: 700;
    color: #0066cc;
}
/* --- ETF Selection Specific Styles --- */

.etf-sector-group {
    margin-bottom: 2.5rem;
}

.etf-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-left: 0.25rem; /* Slight alignment adjust */
}

/* The clickable card wrapper for the radio */
.etf-option-card {
    display: flex;
    align-items: center; /* Vertically center radio with text */
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.etf-option-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Active State (toggled via JS) */
.etf-option-card.selected {
    border-color: #3b82f6; /* Blue border */
    background-color: #f8fafc; /* Very light gray/blue tint */
    box-shadow: 0 0 0 1px #3b82f6; /* Thicker border effect */
}

/* Radio Button Styling */
.etf-radio {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 1.25rem;
    accent-color: #3b82f6; /* Use browser native blue */
    cursor: pointer;
    flex-shrink: 0;
}

.etf-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.etf-main-info {
    font-size: 1rem;
    color: #1e293b;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.etf-ticker {
    font-weight: 700;
    color: #0f172a;
}

.etf-name {
    font-weight: 400;
    color: #334155;
}

.etf-meta {
    font-size: 0.85rem;
    color: #64748b; /* Muted gray for AUM/Expense */
    font-weight: 400;
}

/* Stepper progress for Step 4 */
.progress-step-4::before {
    width: 50%; /* Adjusts the blue line length */
}
/* --- Step 5: Risk Assessment Styles --- */

/* Stepper Progress for Step 5 */
.progress-step-5::before {
    width: 83%; /* Fills line almost to end */
}

/* Container for the 3 cards */
.risk-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Individual Risk Card */
.risk-option-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure equal height */
}

/* Hide default radio button */
.risk-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hover State */
.risk-option-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Selected State */
.risk-option-card.selected {
    border-color: #3b82f6;
    background-color: #f8fafc;
    box-shadow: 0 0 0 1px #3b82f6; /* Blue ring effect */
}

/* Icon Wrapper */
.risk-icon-wrapper {
    background-color: #f1f5f9;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #334155;
}

.risk-option-card.selected .risk-icon-wrapper {
    background-color: #e0f2fe; /* Light blue bg when selected */
    color: #0284c7; /* Blue icon when selected */
}

/* Typography */
.risk-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.risk-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

/* Risk Meter (The dashes) */
.risk-meter {
    display: flex;
    gap: 6px;
    margin-top: auto; /* Push to bottom of card */
}

.dash {
    width: 24px;
    height: 6px;
    background-color: #e2e8f0; /* Default gray */
    border-radius: 4px;
}

.dash.filled {
    background-color: #1d4ed8; /* Blue for filled steps */
}

/* Note Box at bottom */
.note-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.note-box strong {
    color: #1e293b;
}

/* Responsive adjustments for Risk Cards */
@media (max-width: 768px) {
    .risk-options-container {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 1rem;
    }

    .risk-option-card {
        padding: 1.5rem;
        flex-direction: row; /* Horizontal layout on mobile */
        align-items: center;
        text-align: left;
        justify-content: flex-start;
        gap: 1rem;
    }

    .risk-icon-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .risk-meter {
        display: none; /* Hide meter on very small screens if clustered, or adjust */
    }

    /* Re-structure inner content for mobile row layout */
    .risk-option-card > div:not(.risk-icon-wrapper):not(.risk-meter) {
         flex: 1;
    }
}

/* --- Step 3: Sectors Specific Styles --- */

/* Stepper Progress for Step 3 */
.progress-step-3::before {
    width: 33%; /* Progress line length */
}

/* Green Accent Summary Cards */
/* Overrides standard summary-card just for this look if desired */
.summary-card.accent-left {
    border-left: 4px solid #10b981; /* Green sidebar */
    padding-left: 1.5rem;
}

/* Subsection Label */
.subsection-label {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* Grid for Sectors */
.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns on Desktop */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Sector Card Styling */
.sector-card {
    background-color: #f8fafc; /* Very light gray/blue */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow 0.2s;
}

.sector-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sector-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.sector-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    padding-right: 10px; /* Space between text and badge */
    line-height: 1.4;
}

/* 'Included' Badge */
.sector-badge {
    background-color: #2563eb; /* Bright Blue */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.sector-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Blue Info Box */
.info-box-blue {
    background-color: #eff6ff; /* Light Blue Bg */
    border: 1px solid #dbeafe; /* Blue Border */
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    color: #1e40af; /* Dark Blue Text */
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box-blue strong {
    color: #172554; /* Darker Blue for Bold */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sectors-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
    }

    .sector-card-header {
        align-items: center;
    }
}
/* Link Wrapper Styles */
.option-card-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
    display: block; /* Ensure it takes up space */
}

.option-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Ensure the inner option-card still behaves correctly inside the link */
.option-card-link .option-card {
    height: 100%; /* Fill the link height */
    cursor: pointer;
}
/* =========================================
   STEP 3 (BALANCED GROWTH) STYLES
   ========================================= */

/* --- 1. General Typography & Spacing --- */
.content-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.icon-funnel {
    margin-right: 12px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subsection-label {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.75rem;
}

/* --- 2. Default (Included) Sector Card --- */
.default-sector-card {
    /* Light Cyan/Blue tint background to signify 'active/included' */
    background-color: #f0f9ff;
    border: 1px solid #bae6fd; /* Light blue border */
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.sector-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sector-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.sector-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.status-badge.included {
    background-color: #2563eb; /* Royal Blue */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- 3. Optional Sectors Grid --- */
.optional-sectors-grid {
    display: grid;
    /* 2 columns by default */
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* --- 4. Selectable Option Card --- */
.sector-option-card {
    background-color: #fff;
    border: 1px solid #e2e8f0; /* Gray border */
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start; /* Align checkbox with top of text */
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sector-option-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Hide actual Checkbox */
.sector-option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Circular Checkbox */
.custom-checkbox-circle {
    height: 22px;
    width: 22px;
    min-width: 22px; /* Prevent shrinking */
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%; /* Make it a circle */
    margin-right: 15px;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px; /* Align slightly with text title */
}

/* Checked State Styles */
.sector-option-card input:checked ~ .custom-checkbox-circle {
    background-color: #2563eb; /* Blue fill */
    border-color: #2563eb;
}

/* Checkmark inside circle (CSS pseudo-element) */
.sector-option-card input:checked ~ .custom-checkbox-circle::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Highlight border of card when checked */
.sector-option-card input:checked ~ .sector-option-content {
    /* Optional: Bold text or color change if desired */
}
.sector-option-card:has(input:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
}

/* Content inside option card */
.sector-option-content {
    display: flex;
    flex-direction: column;
}

/* --- 5. Info Box & Button (Reused) --- */
.info-box-blue {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-continue-gradient {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    transition: opacity 0.2s ease;
}

.btn-continue-gradient:hover {
    opacity: 0.95;
}

/* --- 6. Responsive --- */
@media (max-width: 768px) {
    .optional-sectors-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}
/* =========================================
   STEP 3 (LONG-TERM GROWTH) STYLES
   ========================================= */

/* --- 1. General Typography & Spacing --- */
.content-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.icon-funnel {
    margin-right: 12px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subsection-label {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.75rem;
}

/* --- 2. Default (Included) Sector Card --- */
/* The light blue box showing the mandatory sector */
.default-sector-card {
    background-color: #f0f9ff; /* Light Cyan/Blue background */
    border: 1px solid #bae6fd; /* Light blue border */
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.sector-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sector-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.sector-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* "Included" Blue Badge */
.status-badge.included {
    background-color: #2563eb; /* Royal Blue */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- 3. Optional Sectors Grid --- */
.optional-sectors-grid {
    display: grid;
    /* Two columns for desktop */
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* --- 4. Selectable Option Card (Checkbox) --- */
.sector-option-card {
    background-color: #fff;
    border: 1px solid #e2e8f0; /* Standard gray border */
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start; /* Align checkbox with top of text */
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sector-option-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Hide actual HTML Checkbox */
.sector-option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Circular Checkbox Styling */
.custom-checkbox-circle {
    height: 22px;
    width: 22px;
    min-width: 22px; /* Prevent shrinking */
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%; /* Make it circular */
    margin-right: 15px;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px; /* Visual alignment with text */
}

/* Checked State - Circle Fill */
.sector-option-card input:checked ~ .custom-checkbox-circle {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Checked State - Checkmark Icon */
.sector-option-card input:checked ~ .custom-checkbox-circle::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Checked State - Card Border Highlight */
.sector-option-card:has(input:checked) {
    border-color: #2563eb;
    background-color: #eff6ff; /* Very faint blue background */
}

.sector-option-content {
    display: flex;
    flex-direction: column;
}

/* --- 5. Info Box & Button --- */
.info-box-blue {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-continue-gradient {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    /* Gradient Blue to Green */
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    transition: opacity 0.2s ease;
}

.btn-continue-gradient:hover {
    opacity: 0.95;
}

/* --- 6. Responsive --- */
@media (max-width: 768px) {
    /* Stack grid to single column on mobile */
    .optional-sectors-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   STEP 6 (LOGIN / REGISTER) STYLES
   ========================================= */

/* --- 1. Summary Stack (The 3 cards at top) --- */
.summary-stack-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-stack-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    /* The Green Accent Line on the left */
    border-left: 5px solid #10b981; /* Emerald Green */
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stack-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
}

.stack-value {
    font-size: 0.9rem;
    color: #64748b;
}


/* --- 2. Main Login Card Layout --- */
.login-card-wrapper {
    text-align: center; /* Center content initially */
    padding: 3rem 2rem; /* Generous padding */
    border-top: 4px solid #2563eb; /* Blue accent line on main card */
}

/* Icon Circle */
.login-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* Gradient Circle Background */
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- 3. Form Styling --- */
.login-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left; /* Reset text align for form elements */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Input with Icon Wrapper */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to input */
}

.form-control-custom {
    width: 100%;
    padding: 12px 12px 12px 45px; /* Left padding creates space for icon */
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #334155;
    transition: border-color 0.2s;
    background-color: #f8fafc;
}

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

.form-control-custom::placeholder {
    color: #94a3b8;
}

/* --- 4. Gradient Button --- */
/* (Reusing the class from previous steps for consistency) */
.btn-continue-gradient {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: opacity 0.2s ease;
}

.btn-continue-gradient:hover {
    opacity: 0.95;
}


/* --- 5. Trust Signals & Footer --- */
.trust-signals {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center; /* Center align for the list */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #475569;
}

.trust-item svg {
    min-width: 18px; /* Prevent shrinking */
}

.login-footer-disclaimer {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 6. Responsive Tweaks --- */
@media (max-width: 576px) {
    .login-card-wrapper {
        padding: 2rem 1.25rem;
    }

    .trust-item {
        align-items: flex-start; /* Top align icon on small screens wrapping text */
        text-align: left;
    }
}
/* =========================================
   RESULTS PAGE STYLES
   ========================================= */

/* --- 1. Auth Summary Card (Top) --- */
.auth-summary-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid #10b981; /* Green accent */
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.auth-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
}

.auth-email {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- 2. Main Results Card Wrapper --- */
.results-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #10b981; /* Green Top Border */
}

/* --- 3. Header --- */
.results-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.results-subheading {
    font-size: 0.9rem;
    color: #64748b;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download:hover {
    background-color: #e2e8f0;
}

/* --- 4. Metrics Grid --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    border-radius: 8px;
    padding: 1.25rem;
}

/* Color Variants */
.metric-blue { background-color: #eff6ff; border: 1px solid #dbeafe; }
.metric-purple { background-color: #fdf2f8; border: 1px solid #fce7f3; }
.metric-green { background-color: #f0fdf4; border: 1px solid #dcfce7; }

.metric-icon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.metric-subtext {
    font-size: 0.75rem;
    color: #64748b;
}

/* --- 5. Chart Section --- */
.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.chart-container {
    background-color: #fff;
    /* Optional: Grid background can be CSS, but I used SVG lines for accuracy */
    position: relative;
    padding-bottom: 1rem;
}

.performance-chart {
    width: 100%;
    height: 300px;
    overflow: visible;
}

.chart-text {
    font-size: 10px;
    fill: #64748b;
    font-family: sans-serif;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 40px; /* Align with graph area */
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 5px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.blue-dot { background-color: #fff; border: 2px solid #2563eb; width: 10px; height: 10px; }
.grey-dot { background-color: #94a3b8; width: 6px; height: 6px; }

.legend-text.highlight {
    color: #2563eb;
    font-weight: 500;
}

.chart-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1.5rem;
}

/* --- 6. Allocation & ETF Grid --- */
.allocation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pie-chart-wrapper {
    background-color: #f8fafc; /* Light gray box background */
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 250px;
}

/* Generic Pie Chart (Solid Blue for demo) */
.pie-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
/* Fades from blue to light blue */
background: conic-gradient(#2563eb, #60a5fa);
    position: relative;
}

/* Optional: To make it a donut if needed, add a ::after with smaller white circle */
/* .pie-chart::after { content: ""; position: absolute; ... } */
/* But the image is solid, but with a slice line. Since it's 100%, solid is fine. */

.pie-label-side {
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
}

.etf-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.etf-group {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%; /* Match height of pie box roughly */
    max-height: 250px;
}

.etf-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.etf-tag {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* --- 7. Portfolio Summary Box --- */
.portfolio-summary-box {
    background-color: #eff6ff; /* Light Blue/Cyan */
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.s-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
}

/* --- 8. Action Buttons --- */
.action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-explore {
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-explore:hover { opacity: 0.95; }

.btn-start-over {
    background-color: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-start-over:hover { background-color: #eff6ff; }

/* --- 9. Warning / Disclaimer Box --- */
.warning-box {
    background-color: #fffbeb; /* Light Yellow */
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.8rem;
    color: #92400e; /* Brown/Orange Text */
    line-height: 1.5;
}

/* --- 10. Responsive --- */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr; /* Stack metrics */
    }

    .allocation-row {
        grid-template-columns: 1fr; /* Stack Pie and ETF lists */
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr; /* 2 cols instead of 4 */
        gap: 1.5rem;
    }

    .action-buttons-row {
        grid-template-columns: 1fr; /* Stack buttons */
    }

    .chart-x-axis {
        font-size: 0.6rem; /* Smaller text on mobile */
    }
}
/* FORCE HIDE NATIVE INPUTS
   This removes the default browser square/circle so you only see your custom one.
*/
.etf-option-card input[type="checkbox"],
.etf-option-card input[type="radio"],
.sector-option-card input[type="checkbox"],
.sector-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    display: none !important; /* Use !important to override any bootstrap defaults */
}

/* Ensure the custom circle looks clickable */
.custom-checkbox-circle {
    cursor: pointer;
}
/* 1. Base style for the custom circle (Empty state) */
.custom-checkbox-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%; /* Makes it a circle */
    background-color: white;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

/* 2. ACTIVE STATE: When the hidden input is checked */
.etf-option-card input:checked + .custom-checkbox-circle {
    background-color: #0d6efd; /* Bootstrap Blue */
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); /* Soft blue glow */
}

/* 3. WHITE DOT: Creates the "selected" indicator inside the blue circle */
.etf-option-card input:checked + .custom-checkbox-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

/* 4. OPTIONAL: Highlight the entire card border when selected (Modern touch) */
/* Note: This works in modern browsers that support :has, otherwise it just skips */
.etf-option-card:has(input:checked) {
    border-color: #0d6efd;
    background-color: #f8fbff;
}
/* --- Google Auth & Divider Styles --- */

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider::before { margin-right: .5em; }
.auth-divider::after { margin-left: .5em; }

/* The Google Button */
.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-auth:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Updated to target SVG or IMG to remain flexible */
.btn-google-auth svg,
.btn-google-auth img {
    display: block;
    /* Clean rendering */
    flex-shrink: 0;
}
