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

:root {
    --navy: #1e3a5f;
    --navy-dark: #152a47;
    --navy-light: #2c4a73;
    --gold: #d4a017;
    --gold-dark: #b8860b;
    --gold-light: #e6b84a;
    --cream: #faf8f3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--cream);
}

.logo-display {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.logo-display-img {
    max-width: 400px;
    width: 80%;
    height: auto;
}

@media (max-width: 768px) {
    .logo-display {
        padding: 20px 15px;
    }
    .logo-display-img {
        max-width: 280px;
    }
}

.top-nav {
    position: sticky;
    top: 0;
    background: var(--navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

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

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

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 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(6px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        height: 60px;
        position: relative;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--navy-light);
        color: white;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 50px 20px;
    }
}

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

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

.content-section {
    background: white;
    padding: 50px 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 15px;
}

.content-section h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    color: var(--navy);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.content-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.caution-list {
    margin-bottom: 20px;
}

.key-takeaway {
    background: #f0f4f8;
    padding: 20px;
    border-left: 5px solid var(--navy);
    border-radius: 5px;
    margin: 20px 0;
}

.text-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.subsection {
    margin: 30px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.subsection h4 {
    margin-top: 0;
}

.faq-item {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e6ed;
}

.faq-item strong {
    color: var(--navy);
}

.faq-item p {
    margin-top: 8px;
    margin-bottom: 0;
}

.glossary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.glossary dt {
    font-weight: 700;
    color: var(--navy);
}

.glossary dd {
    margin-left: 20px;
    color: #666;
    margin-bottom: 15px;
}

.deal-type-box {
    background: #f0f4f8;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.deal-type-box h5 {
    color: var(--navy);
    margin-bottom: 8px;
}

.calculator-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.calculator-section h2 {
    color: var(--navy);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.calculator-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f4f8;
}

.form-section h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6ed;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.section-nav {
    background: #fff;
    border-bottom: 2px solid #e8e4dc;
    padding: 15px 0;
    position: sticky;
    top: 60px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.section-nav-label {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 14px;
    white-space: nowrap;
}

.section-nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.section-nav-links a {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f3ef;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e8e4dc;
}

.section-nav-links a:hover {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

.section-nav-links a:active {
    background: #d4a017;
    color: #1e3a5f;
    border-color: #d4a017;
}

@media (max-width: 768px) {
    .section-nav {
        top: 60px;
        padding: 10px 0;
        position: sticky;
    }
    
    .section-nav-container {
        justify-content: flex-start;
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .section-nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .section-nav-label {
        display: none;
    }
    
    .section-nav-links {
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .section-nav-links a {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.results-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid var(--navy);
}

.results-section h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

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

.result-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.result-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6ed;
}

.deal-type-card {
    margin-bottom: 20px;
}

.deal-type-label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.deal-type-seller-finance {
    background: #d1fae5;
    color: #065f46;
}

.deal-type-subject-to {
    background: #dbeafe;
    color: #1e40af;
}

.deal-type-hybrid {
    background: #fef3c7;
    color: #92400e;
}

.deal-type-restructure {
    background: #fee2e2;
    color: #991b1b;
}

.deal-explanation {
    color: #555;
    line-height: 1.7;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

.summary-value.positive {
    color: #059669;
}

.summary-value.negative {
    color: #dc2626;
}

.score-display {
    text-align: center;
    padding: 20px;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
}

.score-label {
    color: #666;
    font-size: 0.9rem;
}

.score-bar {
    height: 12px;
    background: #e0e6ed;
    border-radius: 6px;
    margin-top: 15px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f59e0b, var(--gold));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.investor-score-color {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.score-color-indicator {
    letter-spacing: 2px;
}

.score-green {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--navy-dark);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.score-yellow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.score-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.score-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.metric-label {
    font-weight: 500;
    color: #475569;
    min-width: 150px;
}

.metric-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-target {
    font-size: 0.85rem;
    color: #94a3b8;
}

.metric-pass {
    color: var(--gold-dark);
}

.metric-warning {
    color: #d97706;
}

.metric-fail {
    color: #dc2626;
}

.score-explanation {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.score-green-bg {
    background: #fdf9e8;
    color: var(--navy-dark);
    border: 1px solid var(--gold-light);
}

.score-yellow-bg {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.score-red-bg {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.investor-badge-green {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%) !important;
    color: var(--navy-dark) !important;
}

.investor-badge-yellow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: white !important;
}

.investor-badge-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: white !important;
}

.option-investor.investor-green {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #fdf9e8 0%, white 50%);
}

.option-investor.investor-yellow {
    border: 2px solid #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, white 50%);
}

.option-investor.investor-red {
    border: 2px solid #dc2626;
    background: linear-gradient(180deg, #fef2f2 0%, white 50%);
}

.terms-list {
    list-style: none;
}

.terms-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.terms-list li:last-child {
    border-bottom: none;
}

.term-label {
    color: #666;
}

.term-value {
    font-weight: 600;
    color: #333;
}

.restructure-note {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.restructure-note p {
    color: #92400e;
}

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

.loi-header {
    background: #f0f4f8;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--navy);
}

#loiText {
    width: 100%;
    min-height: 500px;
    padding: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.nationwide-option {
    grid-column: 1 / -1;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.action-buttons .btn {
    flex: 1 1 200px;
    max-width: 280px;
    text-align: center;
}

.new-deal-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e6ed;
}

footer {
    background: #f5f7fa;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #e0e6ed;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: #666;
}

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

.footer-content strong {
    color: var(--navy);
}

.footer-links {
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-content p {
    margin: 0;
    flex: 1;
}

.cookie-banner-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    white-space: nowrap;
}

.cookie-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.accordion {
    margin: 20px 0;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #eef2f7;
}

.accordion-header::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--navy);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e6ed;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-content p,
.accordion-content ul {
    margin-bottom: 15px;
    line-height: 1.8;
}

.accordion-content ul {
    padding-left: 25px;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion-content strong {
    color: var(--navy);
}

.intro-text {
    background: #f0f7f4;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin-bottom: 25px;
}

.intro-text p {
    margin-bottom: 10px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.equity-carry-note {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

.equity-carry-structure {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #a5d6a7;
    margin-top: 20px;
}

.equity-carry-structure h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.contact-section {
    background: #f0f4f8;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
}

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

.contact-btn {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
    transition: background 0.3s;
    font-weight: 600;
}

.contact-btn:hover {
    background: var(--gold);
    text-decoration: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #printArea,
    #printArea * {
        visibility: visible;
    }
    
    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 40px;
        font-family: 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #333;
    }
    
    .print-header h1 {
        font-size: 18pt;
        margin-bottom: 5px;
    }
    
    .print-header p {
        font-size: 10pt;
        color: #666;
    }
    
    .print-content {
        white-space: pre-wrap;
    }
}

.print-only {
    display: none;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.option-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-seller {
    border-color: var(--navy);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.option-investor {
    border-color: var(--gold);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.option-equity-carry {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.option-header h4 {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
}

.option-badge {
    background: var(--navy);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.investor-badge {
    background: var(--gold);
}

.low-equity-badge {
    background: linear-gradient(135deg, #f59e0b 0%, var(--gold) 100%);
}

.equity-badge {
    background: #7c3aed;
}

.low-equity-optimized {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefce8 0%, #f0fdf4 100%);
}

.low-equity-optimized .option-header h4 {
    color: #d97706;
}

.option-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.option-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.option-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.option-summary-list li:last-child {
    border-bottom: none;
}

.btn-option {
    width: 100%;
    margin-top: 10px;
}

.option-seller .btn-option {
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
}

.option-investor .btn-option {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
}

.option-equity-carry .btn-option {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.loi-header {
    background: #f0f9ff;
    border: 1px solid var(--navy);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    color: var(--navy);
}

.recommended-deal-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.recommended-header h4 {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0;
}

.score-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-badge-green {
    background: #dcfce7;
    color: #166534;
}

.score-badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.score-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.comparison-table {
    margin-bottom: 25px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td:first-child {
    color: #475569;
    font-weight: 500;
}

.comparison-table td:nth-child(2) {
    color: #94a3b8;
}

.comparison-table td:nth-child(3) {
    color: var(--navy);
}

.investor-metrics-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.investor-metrics-panel h5 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.metric-item {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}

.metric-item.metric-pass {
    border-color: var(--gold);
    background: #f0fdf4;
}

.metric-item.metric-warn {
    border-color: #f59e0b;
    background: #fffbeb;
}

.metric-item.metric-fail {
    border-color: #ef4444;
    background: #fef2f2;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.metric-pass .metric-value {
    color: #166534;
}

.metric-warn .metric-value {
    color: #92400e;
}

.metric-fail .metric-value {
    color: #991b1b;
}

.deal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-large {
    padding: 14px 35px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .recommended-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .deal-actions {
        flex-direction: column;
    }
    
    .deal-actions button {
        width: 100%;
    }
}

.legal-page h1 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

.legal-page h2 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page p, .legal-page ul, .legal-page li {
    line-height: 1.8;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .calculator-section {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .top-nav {
        display: none;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .content-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        max-width: none;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.sticky-nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-active {
    color: var(--navy) !important;
    font-weight: 700 !important;
}

.buybox-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.buybox-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.buybox-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.buybox-form-section {
    padding: 40px 20px;
}

.buybox-form {
    max-width: 800px;
    margin: 0 auto;
}

.buybox-form .form-section {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.buybox-form .form-section h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4f8;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: var(--navy);
    background: #f8fbfc;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input:checked) {
    color: var(--navy);
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.success-message {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 25px;
}

.success-message h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-message p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.required {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .buybox-hero h1 {
        font-size: 1.6rem;
    }
    
    .buybox-form .form-section {
        padding: 20px;
    }
}
