/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern Navy Theme Hero Section */
.hero {
    background: linear-gradient(135deg, #4C5680 0%, #5A6B8A 25%, #4C5680 50%, #3A4A6B 75%, #2C3E50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(76, 86, 128, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(90, 107, 138, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideIn 1s ease-out 0.6s forwards;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-ai {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(15px);
    animation: descriptionFadeIn 1s ease-out 0.9s forwards;
}

@keyframes descriptionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: ctaSlideIn 1s ease-out 1.2s forwards;
}

@keyframes ctaSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
}

.cta-button.primary {
    background: linear-gradient(45deg, #2C3E50, #34495E);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.5);
    background: linear-gradient(45deg, #1A252F, #2C3E50);
}

.cta-button.secondary {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    background: linear-gradient(45deg, #F57C00, #FFA726);
}

.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.hero-feature {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(25px);
    animation: featureSlideIn 1s ease-out 1.5s forwards;
}

@keyframes featureSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4C5680, #5A6B8A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text {
    text-align: left;
}

.feature-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF9800;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .feature-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-text {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
}

.nav-link.active {
    color: #e74c3c;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e74c3c;
}


/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
/* Old hero styles - commented out for new dark green theme
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}
*/

/* Old carousel styles - commented out for new dark green theme
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: white;
    border-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.carousel-buttons {
    display: flex;
    gap: 8px;
}

.carousel-prev, .carousel-next {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}
*/

/* Welcome Section */
.welcome {
    padding: 4rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(76, 86, 128, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(76, 86, 128, 0.08) 1px, transparent 1px),
        linear-gradient(45deg, rgba(76, 86, 128, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(76, 86, 128, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 1;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.welcome-text {
    line-height: 1.8;
}

.welcome-paragraph {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.welcome-paragraph:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    color: #666;
    font-size: 0.9rem;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.page-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    white-space: nowrap;
}

/* Home Buying Guide Section */
.home-buying-guide {
    padding: 4rem 0;
    background-color: #fff;
}

/* Refinance Guide Section */
.refinance-guide {
    padding: 4rem 0;
    background-color: #fff;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.apply-section .section-title {
    color: white;
}

.guide-text {
    line-height: 1.8;
}

.guide-paragraph {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.guide-paragraph:last-child {
    margin-bottom: 0;
}

/* Loan Programs Section */
.loan-programs {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.programs-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.programs-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-icon {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.program-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.program-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Apply Section */
.apply-section {
    padding: 4rem 0;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.apply-content {
    max-width: 600px;
    margin: 0 auto;
}

.apply-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info {
    margin-top: 1rem;
}

.phone-info {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.online-info {
    font-size: 1rem;
    color: white;
}

.apply-online-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-online-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Profile Page Styles */
.profile-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.profile-card .card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
}

.profile-card .card-header h2,
.profile-card .card-header .card-title {
    color: white !important;
    font-weight: 600;
}

.profile-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white !important;
}

.edit-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.card-content {
    padding: 2rem;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
}

.profile-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.profile-form .form-input {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.profile-form .form-input:focus {
    outline: none;
    border-color: #4C5680;
    box-shadow: 0 0 0 3px rgba(76, 86, 128, 0.1);
    background-color: white;
}

.profile-form .form-input.editing {
    background-color: white;
    border-color: #4C5680;
}

.profile-form .form-input[readonly] {
    cursor: default;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A6B8A, #6B7A9A);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 86, 128, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #4C5680;
    border: 1px solid #4C5680;
}

.btn-outline:hover {
    background: #4C5680;
    color: white;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.setting-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.setting-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 2rem;
}

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

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

.modal-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.modal-form .form-input:focus {
    outline: none;
    border-color: #4C5680;
    box-shadow: 0 0 0 3px rgba(76, 86, 128, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4C5680;
    border-color: #4C5680;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Inline Forms */
.inline-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.form-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.settings-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.settings-form .form-input:focus {
    outline: none;
    border-color: #4C5680;
    box-shadow: 0 0 0 3px rgba(76, 86, 128, 0.1);
}

.settings-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #495057;
}

.settings-form .checkbox-label input[type="checkbox"] {
    display: none;
}

.settings-form .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.settings-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4C5680;
    border-color: #4C5680;
}

.settings-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .inline-form {
        padding: 1.5rem;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.apply-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.phone-info, .online-info {
    font-size: 1.1rem;
    margin: 0;
}

.phone-info a, .online-info a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-info a:hover, .online-info a:hover {
    color: #66BB6A;
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.company-name {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
}

/* Contact Form Section */
.contact-form-section {
    padding: 4rem 0;
    background-color: #fff;
}

.form-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.full-width {
    width: 100%;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.login-content {
    max-width: 500px;
    margin: 0 auto;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.login-links {
    margin-top: 2rem;
    text-align: center;
}

.login-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.95rem;
}

.login-link:hover {
    text-decoration: underline;
}

/* Team/Branch Locations Section */
.branch-locations-section {
    padding: 4rem 0;
    background-color: #fff;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
}

.branch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.branch-tab {
    border: 1px solid #d6dce5;
    background: #fff;
    color: #2c3e50;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.branch-tab:hover,
.branch-tab.active {
    border-color: #70b94f;
    background: #70b94f;
    color: #fff;
    box-shadow: 0 4px 10px rgba(112, 185, 79, 0.25);
}

.branch-location {
    margin-bottom: 4rem;
}

.branch-title {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 1rem;
}

.branch-address {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-name {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0;
    line-height: 1.4;
}

.member-email {
    font-size: 0.9rem;
    color: #4C5680;
    margin: 0.25rem 0;
    font-weight: 500;
}

.member-nmls {
    font-size: 0.9rem;
    color: #4CAF50;
    margin: 0.25rem 0;
}

.loan-officer-cta {
    display: inline-block;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 86, 128, 0.2);
}

.loan-officer-cta:hover {
    background: linear-gradient(135deg, #5A6B8A, #6B7A9A);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 86, 128, 0.3);
    color: white;
    text-decoration: none;
}

.member-website {
    font-size: 0.85rem;
    color: #999;
    margin: 0.25rem 0;
}

/* Mortgage Tools Section */
.mortgage-tools-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.tools-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Tab Menu */
.tab-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e5e9;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.tab-button.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.calculator-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.calculator-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.calculate-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.calculator-results {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#paymentResults {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calculator-results h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.results-grid {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.result-item.total {
    border-top: 2px solid #4CAF50;
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.result-label {
    color: #666;
    font-weight: 500;
}

.result-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-item.total .result-value {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Qualification Calculator Styles */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.section-heading {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.qualification-status {
    border-top: 2px solid #4CAF50;
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.qualification-status .result-value {
    color: #4CAF50;
    font-size: 1.2rem;
}

.qualification-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

.qualification-notes h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.qualification-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.qualification-notes li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Application Form Section */
.application-section {
    padding: 4rem 0;
    background-color: #fff;
}

.application-content {
    max-width: 800px;
    margin: 0 auto;
}

.application-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.application-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

.privacy-notice {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row.full-width-row {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Profile Page Styles */
.profile-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

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

.profile-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-nav {
    width: 100%;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #4C5680;
}

.sidebar-link.active {
    background-color: #e3f2fd;
    color: #4C5680;
    border-left-color: #4C5680;
    font-weight: 600;
}

.sidebar-link svg {
    flex-shrink: 0;
}

.profile-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 600px;
    width: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.info-item label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    font-size: 1rem;
}

.edit-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    display: none;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.form-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-form {
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4C5680;
    border-color: #4C5680;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-description {
    margin: 0.5rem 0 0 2rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.leads-content {
    max-width: 100%;
}

.leads-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4C5680;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.leads-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

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

.leads-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.leads-table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: #f8f9fa;
    color: #4C5680;
}

/* Mobile responsive for profile page */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-sidebar {
        position: static;
        order: 2;
    }
    
    .profile-content {
        order: 1;
        padding: 1.5rem;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .sidebar-item {
        flex-shrink: 0;
    }
    
    .sidebar-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-link.active {
        border-left: none;
        border-bottom-color: #4C5680;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .leads-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .col-name,
    .col-email,
    .col-phone,
    .col-status,
    .col-actions {
        display: block;
    }
    
    .col-name::before { content: "Name: "; font-weight: 600; }
    .col-email::before { content: "Email: "; font-weight: 600; }
    .col-phone::before { content: "Phone: "; font-weight: 600; }
    .col-status::before { content: "Status: "; font-weight: 600; }
    .col-actions::before { content: "Actions: "; font-weight: 600; }
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-card .card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4C5680, #5A6B8A);
    color: white;
}

.profile-card .card-header h2,
.profile-card .card-header .card-title {
    color: white !important;
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.profile-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white !important;
}

.profile-card .card-content {
    padding: 2rem;
}

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

.profile-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.profile-card .form-group p {
    margin: 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
}

.profile-card .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Inline Forms */
.inline-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: none;
}

/* Profile form specific styles */
#profileForm {
    display: none;
}

#profileForm .form-input {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

#profileForm .form-input:not([readonly]) {
    background-color: #fff;
    border-color: #4C5680;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.form-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4C5680;
    box-shadow: 0 0 0 3px rgba(76, 86, 128, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Mobile responsive for profile page */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-card .card-content {
        padding: 1.5rem;
    }
    
    .inline-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.footer-text {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ecf0f1;
}

.footer-contact {
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #2c3e50;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.legal-text {
    color: #95a5a6;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 600px;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.equal-housing-logo {
    display: flex;
    align-items: center;
}

.ehl-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.scroll-to-top {
    background: #2c3e50;
    border: none;
    color: #ecf0f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 0;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid #eee;
    }
    
    .nav.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        overflow: visible !important;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        text-align: left;
        font-size: 1.1rem;
        border-radius: 0;
        margin-left: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-paragraph {
        font-size: 1rem;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .programs-section-title {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    /* Mobile scroll animations - reduce movement for better UX */
    .slide-in-left, .slide-in-right {
        transform: translateY(20px);
    }
    
    .slide-in-left.visible, .slide-in-right.visible {
        transform: translateY(0);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Mortgage Calculator Section */
.mortgage-calculator-section {
    padding: 4rem 0;
    background: #ffffff;
}

.calculator-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.calculator-section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
}

.calculator-card:hover .card-arrow {
    transform: translateX(5px);
    color: #007bff;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.calculator-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-arrow {
    font-size: 1.5rem;
    color: #007bff;
    transition: all 0.3s ease;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .calculator-cards {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .calculator-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .calculator-section-title {
        font-size: 2rem;
    }
}

/* Today's Mortgage Rate Section */
.today-rates-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.rates-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.rates-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.rates-section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.rate-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.rate-header {
    margin-bottom: 1rem;
}

.rate-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.rate-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.rate-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.rates-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rates-update {
    color: #666;
    font-size: 0.9rem;
}

.more-detail-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.more-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rate-card {
        padding: 1.5rem;
    }
    
    .rates-section-title {
        font-size: 2rem;
    }
    
    .rates-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .rate-value {
        font-size: 3rem;
    }
    
    .page-subtitle {
        white-space: normal;
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
}
