/* Custom styles for Insurance Calculator */

:root {
    --primary-blue: #4285f4;
    --text-dark: #2c3e50;
    --text-medium: #666;
    --bg-light: #f5f5f5;
    --card-bg: #ffffff;
    --max-content-width: 1400px;
}

body {
    font-family: Lato, Arial, sans-serif;
    background: linear-gradient(to bottom, 
        #ddd 0%, 
        #ddd 400px,
        #999 100%);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.has-bg-image::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.5) 400px,
        rgba(255, 255, 255, 1) 800px
    );
    pointer-events: none;
    z-index: -1;
}

.card {
    border-radius: 12px;
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 2.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group-text {
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #666;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

/* Header Styles */
.navbar {
    background-color: transparent !important;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(221, 221, 221, 0.8) !important;
    padding: 0.5rem 0;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 0.9em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666 !important;
    text-decoration: none;
    font-weight: 300;
    padding: 0;
    display: inline-block;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(180deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    font-size: 0.9em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666 !important;
    line-height: 30px;
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link[href="https://mwright.com"] {
        display: none;
    }
}

h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.debt-entries-container, .education-entries-container, .mortgage-entries-container {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}

.debt-entry, .education-entry {
    background-color: transparent;
    width: 100%;
}

.debt-entry .row,
.education-entry .row {
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.debt-entry .row > div,
.education-entry .row > div {
    padding: 0.5rem;
}

.debt-entry .form-select,
.education-entry .form-select,
.debt-entry .input-group,
.education-entry .input-group {
    margin: 0;
}

/* Override Bootstrap's default form-select padding */
.debt-entry .form-select,
.education-entry .form-select {
    padding: 0.5rem;
    height: auto;
}

/* Override Bootstrap's default input-group padding */
.debt-entry .input-group .form-control,
.education-entry .input-group .form-control,
.debt-entry .input-group .input-group-text,
.education-entry .input-group .input-group-text {
    padding: 0.5rem;
    height: auto;
}

/* Remove the separator styles */
.debt-entry:not(:last-child),
.education-entry:not(:last-child) {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Override Bootstrap's g-3 class for these specific elements */
.debt-entry .row.g-3,
.education-entry .row.g-3 {
    --bs-gutter-y: 0;
    row-gap: 0 !important;
}

/* Style the remove button container */
.debt-entry .btn-link,
.education-entry .btn-link {
    padding: 0.5rem;
}

.remove-entry {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-entry:hover {
    color: #bd2130;
}

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Summary card styles */
#resultsCard {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    background-color: var(--card-bg);
    margin-bottom: 2rem;
}

#itemizedList {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin: 1rem -1.5rem;
    padding: 0 1.5rem 1rem;
}

#itemizedList .table {
    margin-bottom: 0;
}

#itemizedList .table td {
    padding: 0.4rem;
    border: none;
}

#itemizedList .table td:last-child {
    font-weight: 500;
    min-width: 100px;
}

.summary-cards .card {
    background-color: rgba(245, 245, 245, 0.5) !important;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.summary-cards .card:hover {
    transform: translateY(-2px);
}

.summary-cards .card-body {
    padding: 1.5rem;
}

.summary-cards h3 {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 2rem;
    text-align: center;
}

.summary-cards .card-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    #resultsCard {
        position: static;
        margin-top: 2rem;
    }
    
    .calculator-wrapper {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 8rem 0 4rem;
    margin-bottom: 2rem;
}

.hero-section .company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-section .page-title {
    font-size: 2.75rem;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.hero-section .btn-orange {
    font-size: .9rem;
    padding: 12px 24px;
    text-transform: uppercase;
    border-width: 0;
    border-radius: 8px;
}

.hero-section .btn-orange i {
    margin-right: 0.75rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Main Content Wrapper */
.content-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Calculator Layout */
.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 40px;
}

/* Scroll Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mb-3 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-blue);
}

.mb-3 i {
    font-size: 1.2em;
} 

.mb-3 i.bi-x {
    color: #fff;
}

.card-body .mb-4 {
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.expand-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-width: 2px;
    transition: all 0.3s ease;
}

.expand-button i {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.expand-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.collapse {
    transition: all 0.3s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.col-md4.debt-type-select {
    width: 25%;
}

/* Dropdown styling for long text */
.form-select {
    padding-right: 2rem !important; /* Ensure space for the dropdown arrow */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Style for selected option text */
.form-select option {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Custom arrow positioning */
.form-select {
    background-position: right 0.5rem center;
}

.debt-entry .form-select,
.education-entry .form-select {
    min-width: 100%;
    max-width: 100%;
}

/* Contact Button and Modal Styles */
.btn-orange {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e65c00;
    border-color: #e65c00;
    color: white;
    transform: translateY(-1px);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-header .btn-close {
    box-shadow: none;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

#contactForm .form-label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-medium);
}

#contactForm .form-control {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#contactForm .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}   

.page-subtitle {
    font-weight: normal !important;
}

.page-subtitle a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
}

.page-subtitle a:hover {
    color: #3367d6;
}

.page-subtitle a i {
    margin-right: 0.25rem;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #999;
    padding: 60px 0;
    margin-top: 60px;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.site-footer ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer ul li a:hover {
    color: #fff;
}

.site-footer .footer-description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer i {
    font-size: 1.1em;
}

/* Configurator Panel Styles */
.configurator {
    position: fixed;
    top: 0;
    right: -800px;
    width: 800px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1100;
}

.configurator.open {
    right: 0;
}

.configurator-toggle {
    position: absolute;
    left: -48px;
    top: 100px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.configurator-toggle:hover {
    color: #3367d6;
}

.configurator-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 120px;
}

.configurator-content h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.config-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 60px;
    padding-bottom: 0;
}

.config-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.configurator .form-label {
    font-size: 0.9rem;
    letter-spacing: normal;
    text-transform: capitalize;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: block;
}

.configurator .mb-3 {
    margin-bottom: 1.5rem !important;
    display: block;
}

.configurator .form-control,
.configurator .form-select {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    display: block;
}

.configurator .form-control-color {
    padding: 0.375rem;
    height: 38px;
}

.configurator .image-upload-container {
    margin-top: 0.25rem;
}

/* Address stack styles */
.address-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-stack .form-control {
    margin-bottom: 0 !important;
}

/* Social media entry styles */
.social-media-entry {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.social-media-entry .form-select {
    flex: 1;
}

.social-media-entry .form-control {
    flex: 2;
}

.social-media-entry .remove-social {
    margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .configurator {
        width: 100%;
        right: -100%;
    }
    
    .configurator-toggle {
        display: none; /* Hide gear icon on mobile */
    }
    
    .configurator-content .row {
        flex-direction: column;
    }
    
    .configurator-content .col-6 {
        width: 100%;
    }
}

.configurator .form-control:focus,
.configurator .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

/* Image upload container styles */
.image-upload-container {
    position: relative;
}

.image-upload-container .remove-image {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    margin-top: -0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.configurator-actions {
    position: fixed;
    bottom: 0;
    width: 800px;
    background: white;
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 1101;
    transform: translateX(800px);
    transition: transform 0.3s ease;
}

.configurator.open .configurator-actions {
    transform: translateX(0);
}

.configurator-actions .btn {
    min-width: 120px;
    margin: 0 auto
}

@media (max-width: 991.98px) {
    .configurator-actions {
        width: 100%;
        transform: translateX(100%);
    }
}

.configurator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.configurator-header h3 {
    margin-bottom: 0;
}

.configurator-close {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.configurator-close:hover {
    color: var(--text-dark);
}

@media (max-width: 991.98px) {
    .configurator {
        width: 100%;
        right: -100%;
    }
    
    .configurator-toggle {
        display: none; /* Hide gear icon on mobile */
    }
    
    .configurator-content .row {
        flex-direction: column;
    }
    
    .configurator-content .col-6 {
        width: 100%;
    }
}

/* Contact Form Styles */
.goal-options {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.goal-options .form-check {
    padding-left: 2rem;
}

.goal-options .form-check-input {
    margin-left: -2rem;
    width: 1.25rem;
    height: 1.25rem;
    border-color: #ccc;
    cursor: pointer;
}

.goal-options .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.goal-options .form-check-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    padding-top: 0.15rem;
}

.goal-options .form-check:hover .form-check-label {
    color: var(--primary-blue);
}

/* Landing Page Styles */
.landing-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-section-landing {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section-landing h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.hero-note {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    padding: 2rem;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.trusted-by {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.partner-logos img:hover {
    opacity: 1;
}

.features-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 600px;
}

#finisher-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.features-section .content-wrapper {
    position: relative;
    z-index: 2;
}

/* Remove the old animation container styles */
.animation-container {
    display: none;
}

/* Remove the wave animation styles since we're using Finisher header */
.features-section::before,
.features-section::after {
    display: none;
}

@keyframes wave {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: -200% bottom;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-medium);
}

.stats-row {
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.core-features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 0 auto;
    line-height: 1.6;
    max-width: 90%;
}

.feature-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.benefits-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    position: relative;
    overflow: visible;
}

.benefits-section .content-wrapper {
    position: relative;
    z-index: 2;
}

.benefits-section .section-header {
    text-align: left;
    margin: 0 0 3rem;
    max-width: none;
}

.benefits-section .section-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.benefits-section .row {
    position: relative;
}

.benefits-section .col-lg-6:first-child {
    padding-right: 4rem;
}

.benefits-section .col-lg-6:last-child {
    position: static;
}

.benefits-section .benefits-image {
    position: absolute;
    top: -100px;
    left: 50%;
    bottom: -100px;
    width: 60%;
}

.benefits-section .benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefits-grid {
    display: grid;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-item i {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-content {
    flex: 1;
}

.benefit-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial {
    position: relative;
    z-index: 2;
    max-width: 50%;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.testimonial blockquote {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.testimonial cite {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    margin-top: 1rem;
    display: block;
}

@media (max-width: 991.98px) {
    .benefits-section .col-lg-6:first-child {
        padding-right: 2rem;
        padding-bottom: 400px;
    }

    .benefits-section .benefits-image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 50%;
        right: -2rem;
        transform: translateX(-50%);
        width: 100%;
        height: 350px;
    }

    .benefits-section .benefits-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial {
        max-width: 100%;
    }
}

.built-for-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.audience-item:hover {
    transform: translateY(-5px);
}

.audience-item i {
    display: block;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.cta-section {
    padding: 100px 0;
    background: #fff;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .hero-section-landing {
        padding: 80px 0 60px;
    }
    
    .hero-section-landing h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .benefits-section .col-lg-6:first-child {
        padding-right: 2rem;
        padding-bottom: 50vh;
    }

    .benefits-section .benefits-image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: -2rem;
        height: 45vh;
    }

    .testimonial {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section-landing h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .feature-card,
    .benefit-card {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial blockquote {
        font-size: 1.1rem;
    }
}

/* Override any Bootstrap classes that might interfere */
.benefits-section .debt-entries-container,
.benefits-section .education-entries-container,
.benefits-section .mortgage-entries-container {
    background-color: var(--bg-light) !important;
    border-radius: 8px !important;
}

/* Ensure container has proper display */
#debtEntries, #educationEntries, #mortgageEntries {
    display: block;
    width: 100%;
}

/* Calculator Features Section */
.calculator-features-section {
    padding: 100px 0;
    background: #fff;
}

.calculator-features-section .section-header {
    margin-bottom: 3rem;
}

.calculator-features-section .features-content {
    padding-right: 2rem;
}

.calculator-features-section .row > .col-lg-8 {
    width: 50%;
}

.calculator-features-section .row > .col-lg-4 {
    width: 50%;
}

.calculator-features-section .lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.calculator-features-section h4 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.calculator-features-section .feature-list {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.calculator-features-section .feature-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.calculator-features-section .promise {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
}

.calculator-features-section .features-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    justify-content: space-between;
}

.calculator-features-section .feature-image {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.calculator-features-section .feature-image:hover {
    transform: translateY(-5px);
}

.calculator-features-section .feature-image img {
    width: 100%;
    border-radius: 4px;
}

@media (max-width: 991.98px) {
    .calculator-features-section .features-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .calculator-features-section .features-images {
        gap: 1.5rem;
    }
}