/* 01890 Real Estate Assistant - Main Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #2980b9;  /* Improved contrast */
    --accent-color: #c0392b;     /* Improved contrast */
    --success-color: #27ae60;
    --warning-color: #d68910;    /* Improved contrast */
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #5a6c7d;       /* Improved contrast */
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Focus styles for accessibility */
    --focus-color: #4a90e2;
    --focus-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --text-muted: #333333;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Buttons and Interactive Elements */
button, .btn, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px; /* Minimum touch target size for accessibility */
    min-width: 44px;
    position: relative;
    font-family: inherit;
}

button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

button:focus, .btn:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
}

button:disabled, .btn:disabled, input[type="submit"]:disabled, input[type="button"]:disabled {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Form Elements */
input, textarea, select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    min-height: 44px; /* Accessibility: minimum touch target */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    border-color: var(--focus-color);
    box-shadow: var(--focus-shadow);
}

input:invalid, textarea:invalid {
    border-color: var(--accent-color);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-error {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: inline-block;
    margin-left: 8px;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Alert/Notification Styles */
.alert {
    padding: 16px;
    margin: 16px 0;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    position: relative;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--accent-color);
}

.alert-info {
    background-color: #cce7ff;
    color: #004085;
    border-left-color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: var(--card-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.nav-logo {
    font-size: 24px;
    margin-right: 10px;
}

.nav-title {
    font-size: 24px;
    font-weight: bold;
    margin-right: 8px;
}

.nav-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
}

.nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Cards */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Property Analysis Specific */
.analysis-result {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.offer-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.offer-scenario {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.offer-scenario:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.offer-scenario.recommended {
    border-color: var(--success-color);
    background: #f8fff8;
}

.scenario-title {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.scenario-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.scenario-probability {
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Status Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading States */
.loading {
    color: var(--warning-color);
    font-weight: bold;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

.footer-content p {
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .offer-matrix {
        grid-template-columns: 1fr;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--accent-color); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Enhanced Landing Page Styles - Google Compliant */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.value-props {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 15px;
}

.value-icon {
    font-size: 18px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Hero-specific button optimizations */
.btn-hero-primary {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
}

.btn-hero-secondary {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
}

.social-proof {
    background: var(--card-background);
    padding: 32px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-solution {
    margin-bottom: 48px;
}

.problem-card, .solution-card {
    background: var(--card-background);
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.problem-card {
    border-left: 3px solid var(--accent-color);
}

.solution-card {
    border-left: 3px solid var(--success-color);
}

.problem-card h2, .solution-card h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.problem-list, .solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li, .solution-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.problem-list li::before {
    content: "❌";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.solution-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.enhanced-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Progress Indicator */
.form-progress {
    margin-bottom: 30px;
    padding: 20px 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 18px;
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.form-help {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.section-spacing {
    margin-bottom: 56px;
}

.section-header {
    margin-bottom: 32px;
    text-align: center;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.feature-card ul {
    text-align: left;
    margin: 0;
    padding-left: 16px;
}

.feature-card li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.testimonial {
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    border-left: 3px solid var(--secondary-color);
}

.testimonial-content {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--background-color);
}

.faq-question::after {
    content: "+";
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 18px 20px;
    display: none;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-input:focus,
.faq-question:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .value-props {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .proof-stats {
        gap: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .feature-card,
    .testimonial {
        padding: 20px;
    }
}

/* Pricing Section Styles */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 0 -20px 40px -20px;
    border-radius: 0;
}

.pricing-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: var(--text-color);
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 16px 0;
    line-height: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    flex-grow: 1;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 14px;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    font-weight: 600;
}

.pricing-card.featured .btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Pricing Comparison Table */
.pricing-comparison-table {
    margin-top: 50px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
}

.comparison-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--primary-color);
}

.comparison-table .price-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: var(--background-color);
}

.comparison-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
}

.comparison-table td:not(:first-child) {
    color: var(--text-muted);
}

.comparison-table td:contains("✓") {
    color: var(--success-color);
    font-weight: 600;
    font-size: 18px;
}

@media (max-width: 768px) {
    .pricing-comparison-table {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
    
    .comparison-title {
        font-size: 20px;
    }
}

/* Realtor Testimonial Enhancement */
.testimonial.realtor-testimonial {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.testimonial.realtor-testimonial .testimonial-author {
    color: var(--success-color);
    font-weight: 700;
}

/* Enhanced Mobile Responsiveness for Pricing */
@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 15px;
        margin: 0 -15px 40px -15px;
    }
    
    .pricing-card {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-2px);
    }
    
    .pricing-price {
        font-size: 28px;
    }
    
    .pricing-features li {
        font-size: 13px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 30px 10px;
    }
    
    .pricing-card {
        padding: 20px 16px;
    }
    
    .pricing-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* Lead Magnet Modal Styles */
.lead-magnet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-magnet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.lead-magnet-modal-content {
    position: relative;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lead-magnet-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lead-magnet-modal-close:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.lead-magnet-modal-body {
    padding: 40px 30px 30px;
}

.lead-magnet-modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.lead-magnet-modal-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.lead-magnet-form .form-group {
    margin-bottom: 20px;
}

.lead-magnet-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.lead-magnet-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: var(--card-background);
    color: var(--text-color);
}

.lead-magnet-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.lead-magnet-form .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.lead-magnet-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.lead-magnet-form .btn:active {
    transform: translateY(0);
}

.lead-magnet-form .btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.lead-magnet-success {
    margin: 20px 0;
}

.alerts-container {
    margin-bottom: 20px;
}

/* Table of Contents */
.table-of-contents {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin: 30px auto;
    max-width: 1200px;
    position: sticky;
    top: 80px;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.toc-container {
    max-width: 100%;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.toc-list li {
    margin: 0;
}

.toc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.toc-link:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .table-of-contents {
        position: relative;
        top: 0;
        margin: 20px auto;
        padding: 15px;
    }
    
    .toc-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .toc-link {
        width: 100%;
        justify-content: center;
    }
}

/* Lead Magnet CTA Buttons */
.lead-magnet-cta {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--success-color) 0%, #219a52 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.lead-magnet-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    color: white;
    text-decoration: none;
}

.lead-magnet-cta.secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
}

.lead-magnet-cta.secondary:hover {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Lead Magnet Cards */
.lead-magnet-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.lead-magnet-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.lead-magnet-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.lead-magnet-card .lead-magnet-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lead-magnet-modal {
        padding: 15px;
    }
    
    .lead-magnet-modal-body {
        padding: 30px 20px 20px;
    }
    
    .lead-magnet-modal-body h2 {
        font-size: 20px;
    }
    
    .lead-magnet-form input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .lead-magnet-card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .lead-magnet-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .lead-magnet-modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .lead-magnet-modal-body {
        padding: 25px 15px 15px;
    }
    
    .lead-magnet-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.tooltip-trigger:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: normal;
    max-width: 250px;
    width: max-content;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: tooltipFadeIn 0.2s ease;
    pointer-events: none;
}

.tooltip-trigger:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-color);
    z-index: 1001;
    margin-bottom: 2px;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Micro-interactions */
.btn, button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover, button:hover {
    transform: translateY(-2px);
}

.btn:active, button:active {
    transform: translateY(0);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .btn, button, .card, .feature-card, .pricing-card,
    .tooltip-trigger:hover::after, .tooltip-trigger:hover::before {
        transition: none;
        animation: none;
        transform: none;
    }
}
