/* BrightUp Financial Coaching - Main Stylesheet */

/* Mobile Coach Selection Styles */
.coach-selection-card-mobile {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent !important;
    position: relative; /* Add positioning context for the checkmark */
}

.coach-selection-card-mobile:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6 !important;
}

.coach-selection-card-mobile.coach-card-selected {
    background-color: #e7f3ff;
    border-color: #0d6efd !important;
}

/* Mobile checkmark removed per user request */

/* Responsive spacing optimizations */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .american-housing-banner {
        margin-bottom: 1rem !important;
    }
    
    .landing-hero {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .logo-container {
        margin-bottom: 1rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Markdown Styling */
.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 1.75rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content ul, 
.markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content ul li, 
.markdown-content ol li {
    margin-bottom: 0.25rem;
}

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

.markdown-content code {
    background-color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.markdown-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    color: #666;
    margin-left: 0;
    margin-right: 0;
}

/* Additional fixes for markdown formatting */
.markdown-content {
    width: 100%;
    overflow-wrap: break-word;
}

/* Ensure headers like ### are rendered properly */
.markdown-content h3:first-child {
    margin-top: 0;
}

/* Make sure all content is processed as markdown, not just the title */
.markdown-content > p:first-child,
.markdown-content > h1:first-child,
.markdown-content > h2:first-child,
.markdown-content > h3:first-child {
    display: inline-block;
    width: 100%;
}

/* Improved bullet points */
.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ul ul {
    list-style-type: circle;
}

.markdown-content ul ul ul {
    list-style-type: square;
}

/* Base Elements */
body {
    font-family: 'Inter', sans-serif;
    color: #2A2A3A;
    line-height: 1.7;
    background-color: #FAFBFC;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Global mobile fixes to prevent horizontal scrolling */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure all text content wraps properly */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Ensure containers don't overflow */
    .container, .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure rows don't overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    
    /* Ensure all columns are properly constrained */
    [class*="col-"] {
        overflow-x: hidden;
    }
    
    /* Ensure all sections are properly contained */
    section {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Fix any potential table overflow */
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    /* Ensure flex containers don't overflow */
    .d-flex {
        flex-wrap: wrap;
    }
    
    /* Fix any potential list overflow */
    ul, ol {
        padding-left: 20px;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    /* But keep navbar logos at their intended size */
    .navbar-brand img {
        height: 40px !important;
        width: auto !important;
        max-width: none;
    }
    
    /* Ensure buttons don't overflow */
    .btn {
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1A2341;
    letter-spacing: -0.02em;
}

a {
    color: #FF8C1A;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #E67E00;
    text-decoration: none;
}

/* Modern Landing Page Elements */
.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(255, 140, 26, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A5568;
    margin-bottom: 8px;
}

.coaches-showcase {
    width: 100%;
}

.coach-image-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 140, 26, 0.1);
}

@media (min-width: 992px) {
    .coaches-showcase {
        max-width: 100%;
        width: 100%;
    }
}

.coach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-selection-card {
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
}

.coach-selection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: rgba(255, 140, 26, 0.3) !important;
}

.coach-card-selected {
    border-color: #FF8C1A !important;
    background-color: rgba(255, 140, 26, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Desktop checkmark removed per user request */

.coach-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.coach-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.coach-specialty {
    opacity: 0.8;
}

.coach-rating {
    font-size: 0.9rem;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FF8C1A;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem !important;
    line-height: 1.1;
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 140, 26, 0.2);
    border-radius: 50%;
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #FF8C1A;
}

.process-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.process-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(255, 140, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FF8C1A;
}

.process-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background-color: #FF8C1A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.process-title {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.process-description {
    color: #4A5568;
    font-size: 1rem;
    margin-bottom: 0;
}

.goal-card-check {
    background-color: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 0;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.goal-card-check:hover {
    border-color: #FF8C1A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.goal-card-check .form-check-input {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.goal-card-check:hover .form-check-input {
    opacity: 0.7;
}

.goal-card-check .form-check-input:checked {
    opacity: 1;
}

.goal-card-check .form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    padding-top: 10px;
}

.goal-card-check .form-check-label i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.goal-card-check input:checked + label {
    color: #FF8C1A;
    font-weight: 600;
}

.goal-card-check input:checked + label i {
    color: #FF8C1A;
}

/* Add a visible check mark in the top right corner when checked */
.goal-card-check input:checked ~ .form-check-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    color: #FF8C1A;
    font-size: 1rem;
    background-color: rgba(255, 140, 26, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add a subtle background color when checked */
.goal-card-check input:checked {
    background-color: #FF8C1A;
}

.goal-card-check input:checked ~ .form-check-label {
    background-color: rgba(255, 140, 26, 0.05);
    border-radius: 8px;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding-top: 18px;
    padding-bottom: 18px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand span {
    display: none; /* Hide the brand text */
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    color: #2D3748;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #FF8C1A;
}

.navbar-nav .nav-link.active {
    color: #FF8C1A;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    width: 20px;
    height: 2px;
    background-color: #FF8C1A;
}

.nav-link.btn-primary {
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    margin-left: 0.5rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #1A2341;
    z-index: 1;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FF8C1A;
    border-radius: 3px;
}

.section-title p {
    color: #4A5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,140,26,0.08) 0%, rgba(255,140,26,0) 70%);
    border-radius: 50%;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* Landing Hero Section */
.landing-hero {
    padding: 60px 0;
    background-color: #FAFBFC;
    background-image: linear-gradient(135deg, #FAFBFC 0%, #F0F4F9 100%);
    min-height: 100vh;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,140,26,0.05) 0%, rgba(255,140,26,0) 70%);
    z-index: 0;
}

.landing-hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 26px;
    line-height: 1.15;
    color: #1A2341;
    position: relative;
}

.landing-hero h2 {
    font-weight: 700;
    color: #2A3256;
    margin-bottom: 1.5rem;
}

.landing-hero .lead {
    font-size: 1.25rem;
    color: #4A5568;
    max-width: 90%;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.landing-hero .form-control,
.landing-hero .form-select {
    border-radius: 10px;
    padding: 14px 20px;
    border: 1px solid #E2E8F0;
    background-color: #fff;
    font-size: 1rem;
    color: #2D3748;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.landing-hero .form-control:focus,
.landing-hero .form-select:focus {
    border-color: #FF8C1A;
    box-shadow: 0 0 0 3px rgba(255,140,26,0.15);
}

.landing-hero .form-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.landing-hero .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
    border-color: #CBD5E0;
}

.landing-hero .form-check-input:checked {
    background-color: #FF8C1A;
    border-color: #FF8C1A;
}

.landing-hero .form-check-label {
    color: #4A5568;
    font-weight: 500;
}

/* Features */
.feature-box {
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 2.5rem;
    color: #FF8C1A;
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial {
    text-align: center;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    left: -10px;
    top: -20px;
    color: #f0f0f0;
    font-family: serif;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #1A1A2E;
    color: #fff;
    padding: 70px 0 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer a:hover {
    color: #FF8C1A;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #fff;
}

.social-icons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FF8C1A;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-primary {
    background-color: #FF8C1A;
    border-color: #FF8C1A;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #E67E00 !important;
    border-color: #E67E00 !important;
    box-shadow: 0 6px 14px rgba(255, 140, 26, 0.3) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #FF8C1A;
    border-color: #FF8C1A;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: #FF8C1A;
    border-color: #FF8C1A;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stats-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stats-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background-color: rgba(255,140,26,0.1);
    color: #FF8C1A;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

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

.form-control:focus, .form-select:focus {
    border-color: #FF8C1A;
    box-shadow: 0 0 0 0.25rem rgba(255,140,26,0.15);
}

.form-text {
    color: #718096;
    font-size: 0.85rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.25em;
    vertical-align: top;
    border: 1px solid #CBD5E0;
    border-radius: 0.25em;
    appearance: none;
    color-adjust: exact;
    transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: #FF8C1A;
    border-color: #FF8C1A;
}

.form-check-input:focus {
    border-color: #FF8C1A;
    box-shadow: 0 0 0 0.25rem rgba(255,140,26,0.15);
}

.form-check-label {
    margin-bottom: 0;
    color: #4A5568;
}

.invalid-feedback {
    color: #E53E3E;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Goal Cards */
.goal-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.goal-card-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.goal-card-body {
    padding: 20px;
}

.goal-progress {
    margin-top: 15px;
    margin-bottom: 15px;
}

.goal-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2D3748;
    background-color: #FAFBFC;
}

.accordion-button:not(.collapsed) {
    color: #FF8C1A;
    background-color: #FFF9F2;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #E2E8F0;
}

.accordion-button::after {
    background-size: 18px;
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 1.5rem;
    color: #4A5568;
    line-height: 1.7;
    border-top: 1px solid #EDF2F7;
    background-color: white;
}

/* Account Registration */
.account-register-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    background-color: #fff;
    overflow: hidden;
}

/* Client View Styles */
.metric-item {
    margin-bottom: 15px;
}

.metric-section {
    margin-bottom: 25px;
}

.metric-section h5 {
    color: #4A5568;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.chart-container, 
.pie-chart-container, 
.savings-chart-container {
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}

.bg-success.bg-opacity-25 {
    background-color: rgba(40, 167, 69, 0.25) !important;
}

.bg-danger.bg-opacity-25 {
    background-color: rgba(220, 53, 69, 0.25) !important;
}

.bg-primary.bg-opacity-25 {
    background-color: rgba(0, 123, 255, 0.25) !important;
}

.account-register-card .card-body {
    padding: 2.5rem;
}

.account-type-selector {
    margin-bottom: 1.5rem;
}

.account-type-selector .form-check {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

/* Existing user modal styles */
#existingUserModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#existingUserModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

#existingUserModal .modal-footer {
    border-top: none;
    padding-top: 0;
}

#existingUserModal .modal-body {
    padding: 1.5rem 2rem;
}

#existingUserModal .btn-primary {
    background-color: #FF8C1A;
    border-color: #FF8C1A;
    padding: 0.6rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#existingUserModal .btn-primary:hover {
    background-color: #F07800;
    border-color: #F07800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.3);
}

#existingUserModal .text-primary {
    color: #FF8C1A !important;
}

/* Real-time email validation styles */
.email-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    display: block;
    clear: both;
}

.text-warning {
    color: #f0b400 !important;
}

.text-success {
    color: #28a745 !important;
}

.email-login-prompt {
    margin-top: 0.5rem;
}

.email-login-prompt .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* Email exists indicator */
.email-exists {
    border-color: #f0b400 !important;
    background-color: #fffbeb !important;
    opacity: 1 !important;
    color: #333 !important;
}

/* Email checking animation */
.checking {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23FF8C1A" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 40px !important;
    transition: all 0.3s ease;
}

.account-type-selector .form-check:last-child {
    border-bottom: none;
}

.terms-agreement {
    background-color: #F9FAFB;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .landing-hero h1 {
        font-size: 3rem;
    }
    
    .landing-hero .lead {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    
    .landing-hero {
        padding: 40px 0;
    }
    
    .landing-hero::before {
        display: none; /* Hide the orange gradient on mobile */
    }
    
    .landing-hero h1 {
        font-size: 2.25rem;
    }
    
    .landing-hero h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header > div:last-child {
        margin-top: 15px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    /* Mobile-optimized Calendly modal */
    #calendlyModal .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        height: 100vh !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    #calendlyModal .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #calendlyModal .modal-header {
        padding: 1rem !important;
        background: #fff !important;
        border-bottom: 1px solid #e9ecef !important;
        flex-shrink: 0 !important;
        z-index: 1050 !important;
    }
    
    #calendlyModal .modal-body {
        padding: 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #calendly-modal-container {
        height: calc(100% + 200px) !important;
        min-height: calc(100% + 200px) !important;
        width: 100% !important;
        position: relative !important;
        padding-bottom: 200px !important;
    }
    
    /* Ensure iframe takes full height and handles overflow properly */
    #calendlyModal .modal-body iframe,
    #calendlyModal iframe {
        height: 100% !important;
        min-height: 100% !important;
        width: 100% !important;
        border: none !important;
        overflow-y: auto !important;
    }
    
    /* Override any Calendly widget height constraints on mobile */
    #calendlyModal [data-url*="calendly"] {
        height: 100% !important;
        min-height: 100% !important;
    }
    
    /* Add padding to ensure content is scrollable past the bottom */
    #calendlyModal .modal-body::after {
        content: '';
        display: block;
        height: 100px;
        width: 100%;
    }
    
    /* Force Calendly iframe to be scrollable */
    #calendlyModal iframe {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Ensure modal body allows scrolling */
    #calendlyModal .modal-body {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: scroll !important;
    }
}

/* Floating Phone Button - Positioned above Crisp chat */
.floating-phone-button {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #FF8C1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.floating-phone-button:hover {
    background-color: #E67E00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 140, 26, 0.5);
}

.floating-phone-button i {
    color: white;
    font-size: 24px;
}

/* Loan Officer Call Modal */
#loanOfficerCallModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#loanOfficerCallModal .modal-header {
    border-bottom: 1px solid #E2E8F0;
    padding: 1.5rem 2rem;
    background-color: #FAFBFC;
    border-radius: 16px 16px 0 0;
}

#loanOfficerCallModal .modal-title {
    color: #1A2341;
    font-weight: 700;
    font-size: 1.5rem;
}

#loanOfficerCallModal .modal-body {
    padding: 2rem;
}

#loanOfficerCallModal .modal-footer {
    border-top: none;
    padding: 0 2rem 2rem 2rem;
}

.call-modal-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 140, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.call-modal-icon i {
    font-size: 2.5rem;
    color: #FF8C1A;
}

/* Responsive adjustments for phone button */
@media (max-width: 767px) {
    .floating-phone-button {
        bottom: 85px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .floating-phone-button i {
        font-size: 22px;
    }
    
    #loanOfficerCallModal .modal-header {
        padding: 1rem 1.5rem;
    }
    
    #loanOfficerCallModal .modal-title {
        font-size: 1.25rem;
    }
    
    #loanOfficerCallModal .modal-body {
        padding: 1.5rem;
    }
    
    #loanOfficerCallModal .modal-footer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .call-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .call-modal-icon i {
        font-size: 2rem;
    }
}

/* Animation for phone button */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

.floating-phone-button.ring {
    animation: phoneRing 0.8s ease-in-out;
}

/* Language Switcher Styles */
.language-toggle {
    padding: 0.5rem 0.75rem;
}

.language-toggle .flag-icon {
    font-size: 1.25rem;
}

.language-toggle::after {
    margin-left: 0.25rem;
}

.language-dropdown {
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
}

.language-dropdown .dropdown-item.active {
    background-color: rgba(22, 163, 74, 0.1);
    color: inherit;
}

.language-dropdown .flag-icon {
    font-size: 1.1rem;
}