/* [Rest of the CSS remains the same] */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-rgb: 99, 102, 241; /* Added for RGBA usage */
    --accent: #31053c;
    --accent-dark: #D93A86; /* Added for hover/active states */
    --accent-rgb: 236, 72, 153; /* Added for RGBA usage */
    --text-dark: #1F2937;
    --background: #F9FAFB;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background);
    min-height: 100vh;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.nav-links a:hover {
    background-color: rgba(75, 34, 122, 0.05);
    transform: translateX(5px);
}

.nav-links .talk-button {
    background-color: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary) 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
}

.nav-links .talk-button:hover {
    background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary) 45%, var(--accent) 100%) !important;
    background-position: 100% 100% !important;
    transform: translateY(-2px);
}

.menu-button {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: var(--primary);
    display: block;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: var(--primary);
    color: white;
}

.toggle-tab {
    position: fixed;
    left: 100px;
    top: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 55;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-tab.collapsed {
    transform: rotate(180deg);
}

.toggle-tab svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    stroke-width: 2;
}

.main-content {
    padding-top: 84px;
    min-height: calc(100vh - 64px);
}

.main-content.expanded {
    margin-left: 0;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: 1.25rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.footer {
    background-color: rgb(235, 232, 252,.5);
    padding: 3rem 1rem;
}

.footer.expanded {
    margin-left: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.dashboard-card h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-bar {
    background: rgba(243, 244, 246, 0.7);
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    margin: 0.5rem 0 2rem 0;
}

.progress {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.next-steps ul {
    list-style: none;
    margin-top: 1.5rem;
}

.next-steps li {
    padding: 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.next-steps li:last-child {
    border-bottom: none;
}

.next-steps li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
}

.next-steps h3 {
    margin-bottom: 1rem;
}

.offer, .opportunity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.merchant, .opportunity span:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.discount, .opportunity span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.learn-more {
    background-color: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary) 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    display: block;
    cursor: pointer;
}

.learn-more:hover {
    background-image: linear-gradient(45deg, var(--primary) 0%, var(--primary) 45%, var(--accent) 100%) !important;
    background-position: 100% 100% !important;
    transform: translateY(-2px);
}

.savings-preview {
    background: rgba(243, 244, 246, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.savings-preview strong {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.future-message {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

.footer-links h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex !important;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 0;
        align-items: center;
    }

    .nav-links a {
        margin-left: 2rem;
        padding: 0.5rem 1rem;
    }

    .hero-banner {
        padding: 6rem 3rem;
    }

    .hero-banner h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
    
    .toggle-tab {
        display: none;
    }

    .footer {
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Center dashboard card content on mobile */
    .dashboard-card {
        align-items: center; /* Center direct children like h2 and milestone-stepper */
        padding: 2rem; /* Adjust padding for mobile if needed */
    }

    .dashboard-card h2 {
        text-align: center; /* Ensure the heading text itself is centered */
        margin-bottom: 1.5rem; /* Add some space below the heading */
    }

    /* Milestone Stepper Mobile Optimizations */
    .milestone-stepper {
        /* width: 100%; */ /* REMOVED - to allow .dashboard-card to center this block */
        display: flex; 
        flex-direction: column;
        align-items: center; /* This centers the .milestone-step children within this stepper block */
        gap: 1.5rem; 
    }

    .milestone-step {
        /* width: 100%; Removed: Let align-items on parent + max-width handle centering */
        max-width: 380px; /* Max width of the step block, it will be centered */
        display: flex; /* To arrange marker and label */
        flex-direction: row;
        align-items: center; /* Vertically align marker and label within the step */
        gap: 1rem; 
        padding: 0.5rem; /* Padding within the step */
        text-align: left; 
    }

    .step-marker {
        width: 60px; 
        height: 60px; 
        margin-bottom: 0; 
    }
    
    .milestone-step .step-marker-inner .icon {
        font-size: 2.2rem; 
    }

    .step-label {
        font-size: 0.9rem; 
        flex-grow: 1; 
    }

    .step-connector {
        display: none; /* Hide connectors on mobile */
    }
    /* End Milestone Stepper Mobile Optimizations */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.progress-container1 {
    margin-bottom: 1.5rem;
}

.form-step {
    display: none;
    min-height: 0;
}

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

.button-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.month-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}

/* Expense Tracking Modal Specific Styles */
.expense-tracking-modal .modal-overlay {
    z-index: 1050;
    padding: 1rem;
    overflow-y: auto;
}

.expense-tracking-modal .modal-container {
    max-height: 60vh !important;
    overflow-y: auto;
    margin: auto;
}

.expense-tracking-modal .modal-content {
    overflow-y: auto;
}

/* Close button styles */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}

.close-button:hover {
    color: #333;
}

@media (max-width: 768px) {
    /* Mobile styles for expense tracking modal only */
    .expense-tracking-modal .modal-overlay {
        align-items: center;
        padding: 1rem;
    }

    .expense-tracking-modal .modal-container {
        margin: 0;
        max-height: 50vh !important;
        width: 92%;
        position: relative;
        top: auto;
    }

    .expense-tracking-modal .modal-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .expense-tracking-modal .modal-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        padding-right: 2rem;
    }

    .expense-tracking-modal .modal-content ol {
        padding-left: 1rem;
        margin-bottom: 0.75rem;
    }

    .expense-tracking-modal .modal-content ol li {
        margin-bottom: 0.5rem;
    }

    .expense-tracking-modal .modal-content p {
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .expense-tracking-modal .close-button {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
        font-size: 1.25rem;
    }

    /* State 529 modal mobile adjustments */
    .state-529-modal .close-button {
        top: 15px;
        right: 15px;
    }

    .state-529-modal .modal-content h2 {
        padding-right: 2.5rem;
    }
}

.progress-container1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-bar-container1 {
    width: 100%;
    height: 0.5rem;
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar1 {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
}

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

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* .form-select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
    cursor: pointer;
} */

.button {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background-color: var(--primary);
    color: white;
}

.button-primary:hover {
    background-color: var(--primary-dark);
}

.button-secondary {
    background-color: var(--border);
    color: var(--text-dark);
}

.button-secondary:hover {
    background-color: #D1D5DB;
}

/* Footer Styles */


/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #16a34a;
    padding: 1rem;
    border-radius: 0.375rem;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.375rem;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

/* Add loading spinner styles */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-select {
position: relative;
width: 100%;
}

.select-selected {
padding: 0.625rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
font-size: 0.875rem;
background-color: white;
cursor: pointer;
position: relative;
padding-right: 2rem;
}

.select-selected::after {
content: "▼";
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
}

.select-selected.active::after {
transform: translateY(-50%) rotate(180deg);
}

.select-items {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: white;
border: 1px solid var(--border);
border-radius: 0.375rem;
margin-top: 0.25rem;
max-height: 300px;
overflow-y: auto;
z-index: 1000;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.select-items div {
padding: 0.625rem;
cursor: pointer;
}

.select-items div:hover {
background-color: rgba(99, 102, 241, 0.1);
}

.hidden {
display: none;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.copyright {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Add these new styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.popup-close {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background-color: var(--primary-dark);
}

/* Update these styles */
@media (max-width: 768px) {
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-container button {
        width: 100%;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-container {
        max-width: 90%;
        margin: 0.5rem;
    }

    /* Mobile styles for expense tracking modal */
    .modal-overlay .modal-container {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-overlay .modal-content {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .modal-overlay .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .modal-overlay .modal-content ol {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-overlay .modal-content p {
        margin-bottom: 1rem;
    }

    .modal-overlay .button-primary {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }

    .modal-overlay .close-button {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
}

.modal-container {
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.close-button:hover {
    color: #333;
}

/* Global styles */
button {
    cursor: pointer;
}

.expense-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.month-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.month-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-description {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Add this new style for the Get Money Now button hover effect */
#getMoneyButton:hover {
    transform: translateY(-3px);
    background: #B8860B !important; /* Darker gold */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Housing Entries Styles */
.housing-entry {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.housing-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.housing-entry .remove-entry-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.housing-entry .remove-entry-button:hover {
    color: #ff4d4d;
}

.housing-entry .edit-entry-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    transition: color 0.2s;
}

.housing-entry .edit-entry-button:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.missing-months-alert {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 237, 213, 0.5);
    border-left: 4px solid #F97316;
    border-radius: 0.25rem;
}

#housingEntriesContainer {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

#noHousingMessage {
    color: var(--text-dark);
    font-style: italic;
    padding: 1rem;
    background-color: rgba(240, 240, 240, 0.5);
    border-radius: 0.5rem; /* Ensured semicolon */
    text-align: center;
}

/* Milestone Stepper Styles */
.milestone-stepper {
    display: flex;
    justify-content: space-around; /* Adjusted for better spacing with fewer items */
    align-items: flex-start;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    position: relative; /* For absolute positioning of connectors if needed */
}

.milestone-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1; /* Allow steps to grow */
    max-width: 100px; /* Max width for each step content */
    position: relative; /* For connector positioning */
    cursor: pointer; /* Indicate clickability */
    padding: 0 5px; /* Add some horizontal padding */
}

.milestone-step.disabled {
    cursor: not-allowed;
}

.step-marker {
    width: 48px; /* Increased size */
    height: 48px; /* Increased size */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.25rem; /* Slightly larger font for icons/numbers */
    border: 2px solid transparent; /* Base transparent border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem; /* Space between marker and label */
    position: relative; /* For 3D effect and icon centering */
    background-color: #E0E0E0; /* Base for 3D effect */
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.15), 0 3px 4px rgba(0,0,0,0.1); /* 3D shadow */
}

.step-marker-inner { /* New element for the colored "top" surface */
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease;
}

/* Pending State */
.milestone-step.pending .step-marker-inner {
    background-color: #BDBDBD; /* Darker grey for top surface */
}
.milestone-step.pending .step-marker .icon {
    color: #757575;
}
.milestone-step.pending .step-label {
    color: #A0AEC0;
}

/* Active State (Purple) */
.milestone-step.active .step-marker-inner {
    background-color: var(--primary); /* Purple */
}
.milestone-step.active .step-marker .icon {
    color: white;
}
.milestone-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}
.milestone-step.active .step-marker { /* Optional: slightly more pronounced shadow for active */
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.2), 0 4px 6px rgba(var(--primary-rgb),0.3), 0 0 0 3px rgba(var(--primary-rgb),0.2);
}

/* Completed State (Green) */
.milestone-step.completed .step-marker-inner {
    background-color: #4CAF50; /* Green */
}
.milestone-step.completed .step-marker .icon {
    color: white;
    font-size: 1.5rem; /* Larger checkmark */
}
.milestone-step.completed .step-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Gold Step (Get My Money Now) */
.milestone-step.gold-step .step-marker-inner {
    background-color: #D4AF37; /* Gold */
}
.milestone-step.gold-step .step-marker .icon {
    color: white;
}
.milestone-step.gold-step .step-label {
    color: #B8860B; /* Darker gold for label */
    font-weight: 700;
}
.milestone-step.gold-step.disabled .step-marker-inner {
    background-color: #EACD76; /* Lighter, less saturated gold for disabled */
}
.milestone-step.gold-step.disabled .step-marker .icon {
    color: #A1883A; /* Muted gold icon */
}
 .milestone-step.gold-step.disabled .step-label {
    color: #A1883A;
}
.milestone-step.gold-step.disabled .step-marker {
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.1), 0 3px 4px rgba(0,0,0,0.05); /* Less prominent shadow when disabled */
}


.step-label {
    font-size: 0.75rem; /* Smaller labels to fit */
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    line-height: 1.2;
}

.step-marker .icon { /* Class for icon characters */
    transition: color 0.3s ease;
}

.step-connector {
    flex-grow: 1;
    height: 4px; /* Thicker line */
    margin-top: calc(48px / 2 - 4px / 2); /* Vertically center with 48px markers */
    min-width: 20px;
    background-color: var(--border); /* Default pending connector */
    transition: background-color 0.4s ease;
    border-radius: 2px;
}

.step-connector.completed {
    background-color: var(--primary); /* Purple for completed connector line */
}
.step-connector.active { /* Connector leading to an active step or from a completed to active */
     background-color: var(--primary); /* Purple, to show path up to active step */
}
 .step-connector.gold-path { /* Connector leading to an enabled gold step */
    background-color: #D4AF37;
}

/* New Accelerate Benefit Modal Styles */
#accelerateBenefitModal .modal-container {
    max-width: 450px; /* Slightly wider for the content */
    text-align: center;
}

#accelerateBenefitModal .modal-content h2 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

#accelerateBenefitModal .modal-content p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

#accelerateBenefitModal .button-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 0.75rem; /* Space between buttons */
    margin-top: 1rem;
}

#accelerateBenefitModal .button { /* General button styling if needed */
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}
/* End New Accelerate Benefit Modal Styles */
/* Basic styles for the secure connection animation overlay */
#secureConnectionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column; /* Stack spinner and text vertically */
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Ensure it's above other modals */
    color: white;
    text-align: center;
}

#secureConnectionOverlay .spinner-large { /* Using a class for a potentially larger spinner */
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary); /* Use primary color */
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px; /* Space between spinner and text */
}

#secureConnectionOverlay p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Style for SSN input to allow placeholder visibility with dashes */
#ssnInput::placeholder {
  color: #a0aec0; /* Or your preferred placeholder color */
}





    /* --- Intro Onboarding Modal Redesign --- */
    #introOnboardingModal .intro-modal-container {
        background: linear-gradient(135deg, #f8fbff 0%, #e9f5ff 100%);
        border-radius: 1.5rem;
        box-shadow: 0 8px 32px rgba(60, 120, 200, 0.12), 0 1.5px 6px rgba(0,0,0,0.04);
        padding: 0;
        max-width: 420px;
        width: 92vw;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }
    #introOnboardingModal .intro-modal-content {
        padding: 2.5rem 2rem 2rem 2rem;
        border-radius: 1.5rem;
        background: white;
        box-shadow: 0 2px 12px rgba(60, 120, 200, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .intro-illustration {
        margin-bottom: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 72px;
        height: 72px;
        background: #e9f5ff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    }
    .intro-title {
        font-size: 2rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.7rem;
        letter-spacing: -0.5px;
    }
    .intro-lead {
        font-size: 1.1rem;
        color: #334155;
        margin-bottom: 0.7rem;
        font-weight: 500;
        line-height: 1.5;
    }
    .intro-body {
        font-size: 1rem;
        color: #475569;
        margin-bottom: 0.7rem;
        line-height: 1.6;
    }
    .intro-continue-btn {
        margin-top: 1.2rem;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.85rem 2.2rem;
        border-radius: 2rem;
        background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        border: none;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.10);
        transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
        cursor: pointer;
    }
    .intro-continue-btn:hover, .intro-continue-btn:focus {
        background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
        transform: translateY(-2px) scale(1.03);
    }
    @media (max-width: 600px) {
        #introOnboardingModal .intro-modal-container {
            max-width: 98vw;
            border-radius: 1rem;
        }
        #introOnboardingModal .intro-modal-content {
            padding: 1.2rem 0.7rem 1.5rem 0.7rem;
            border-radius: 1rem;
        }
        .intro-title {
            font-size: 1.3rem;
        }
        .intro-lead, .intro-body {
            font-size: 0.98rem;
        }
        .intro-continue-btn {
            font-size: 1rem;
            padding: 0.7rem 1.5rem;
        }
        .intro-illustration {
            width: 56px;
            height: 56px;
        }
    }

/* --- Stronger specificity for Intro Onboarding Modal --- */
#introOnboardingModal > .modal-container.intro-modal-container {
    background: linear-gradient(135deg, #f8fbff 0%, #e9f5ff 100%) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 8px 32px rgba(60, 120, 200, 0.12), 0 1.5px 6px rgba(0,0,0,0.04) !important;
    padding: 0 !important;
    max-width: 420px !important;
    width: 92vw !important;
    margin: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
}
#introOnboardingModal > .modal-container.intro-modal-container > .modal-content.intro-modal-content {
    padding: 2.5rem 2rem 2rem 2rem !important;
    border-radius: 1.5rem !important;
    background: white !important;
    box-shadow: 0 2px 12px rgba(60, 120, 200, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}