/* Financing Page Styles */

/* Eyebrow text */
.eyebrow {
     display: inline-block;
     color: #6b7a3b;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.financing-hero {
    padding: 8rem 0 4rem;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8f9f6 0%, #ffffff 100%);
}

.hero-content-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.financing-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.financing-hero .hero-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b9a5b;
}

.stat-label {
    font-size: 0.875rem;
    color: #6a6a6a;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Calculators Grid */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.calculator-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.calculator-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

.calc-note-centered {
    text-align: center;
    font-size: 0.875rem;
    color: #6a6a6a;
    margin-top: 1.5rem;
}

.calculator-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

.calc-example {
    margin-bottom: 0;
}

.calc-payments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f8f9f6;
    border-radius: 8px;
}

.payment-option .term {
    font-size: 0.9375rem;
}

.payment-option .amount {
    color: #8b9a5b;
    font-size: 1.25rem;
}

/* Compact Calculator Styles */
.calc-input-group {
    margin-bottom: 1rem;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.calc-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.calc-input:focus {
    outline: none;
    border-color: #8b9a5b;
}

.input-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6a6a6a;
}

.amount-financed-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9f6;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.amount-financed-compact strong {
    color: #8b9a5b;
    font-size: 1.25rem;
}

.calc-results-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: #f8f9f6;
    border-radius: 6px;
    font-size: 0.875rem;
}

.result-row-compact strong {
    color: #1a1a1a;
    font-size: 1.0625rem;
}

.option-note {
    display: block;
    font-size: 0.75rem;
    color: #6a6a6a;
    margin-top: 0.25rem;
    font-style: italic;
}

.option-note-inline {
    font-size: 0.75rem;
    color: #6a6a6a;
    font-style: italic;
    margin-left: 0.5rem;
}

.inline-note {
    font-size: 0.75rem;
    color: #6a6a6a;
    font-weight: 400;
    font-style: italic;
}

.inline-note-small {
    font-size: 0.6875rem;
    color: #6a6a6a;
    font-weight: 400;
    font-style: italic;
}

/* Why Finance Section */
.why-finance-section {
    padding: 4rem 0;
    background: white;
}

.why-finance-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.reason-card {
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reason-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reason-card p {
    line-height: 1.7;
    color: #4a4a4a;
}

/* Financing Options */
.financing-options-section {
    padding: 4rem 0;
    background: #fafafa;
}

.financing-options-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.options-grid.single-option {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.financing-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid #e5e5e5;
    position: relative;
}

.financing-card.featured {
    border-color: #8b9a5b;
    box-shadow: 0 8px 24px rgba(139, 154, 91, 0.15);
}

.card-badge {
    position: absolute;
    top: -1rem;
    right: 2rem;
    padding: 0.5rem 1.25rem;
    background: #8b9a5b;
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
}

.provider-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.financing-card h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.provider-tagline {
    text-align: center;
    color: #6a6a6a;
    margin-bottom: 2rem;
}

.plan-features h4,
.provider-benefits h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-option {
    padding: 1.25rem;
    background: #f8f9f6;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.plan-option.highlight {
    background: #fff9e6;
    border: 2px solid #fbbf24;
}

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

.plan-header strong {
    font-size: 1.125rem;
}

.plan-term {
    color: #8b9a5b;
    font-weight: 600;
}

.provider-benefits {
    margin: 2rem 0;
}

.provider-benefits ul {
    list-style: none;
    padding: 0;
}

.provider-benefits li {
    padding: 0.5rem 0;
    color: #4a4a4a;
}

.apply-cta {
    margin-top: 2rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.secure-note {
    text-align: center;
    font-size: 0.875rem;
    color: #6a6a6a;
    margin-top: 0.75rem;
}

.comparison-note {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

/* How It Works */
.how-it-works-section {
    padding: 4rem 0;
    background: white;
}

.how-it-works-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.step-card {
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: #8b9a5b;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-card p {
    line-height: 1.7;
    color: #4a4a4a;
}

/* Examples Section */
.examples-section {
    padding: 4rem 0;
    background: #fafafa;
}

.examples-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.example-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.example-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.home-size {
    font-size: 0.875rem;
    color: #6a6a6a;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.detail-row.highlight {
    background: #fff9e6;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border: none;
}

.detail-row.net {
    background: #f0fdf4;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border: none;
    font-weight: 600;
}

.example-quote {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9f6;
    border-left: 4px solid #8b9a5b;
    border-radius: 6px;
    font-style: italic;
    color: #4a4a4a;
    line-height: 1.7;
}

.example-cta {
    text-align: center;
    margin-top: 3rem;
}

/* FAQ */
.financing-faq-section {
    padding: 4rem 0;
    background: white;
}

.financing-faq-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.financing-faq-section > .container > p {
    text-align: center;
    font-size: 1.125rem;
    color: #6a6a6a;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.faq-item {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.faq-item h3:before {
    content: "→";
    color: #8b9a5b;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.faq-item p {
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1rem;
    padding-left: 2rem;
    font-size: 0.9375rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

.faq-item ul {
    padding-left: 3.5rem;
    margin: 0.75rem 0;
}

.faq-item li {
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    font-size: 0.9375rem;
}

.faq-highlight-box {
    background: #f0fdf4;
    border-left: 3px solid #8b9a5b;
    padding: 1rem 1.5rem;
    margin: 1rem 0 1rem 2rem;
    border-radius: 6px;
}

.faq-highlight-box p {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.faq-highlight-box p:last-child {
    margin-bottom: 0;
}

/* Final CTA */
.final-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #8b9a5b 0%, #6b7a3b 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-box > p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

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

.trust-item {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .financing-hero {
        padding: 4rem 0 2rem;
    }
    
    .financing-hero h1 {
        font-size: 2.75rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-box {
        padding: 1.5rem;
    }
    
    .reasons-grid,
    .options-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .financing-hero {
        padding: 7rem 0 2rem;
    }
    
    .financing-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .financing-hero .hero-lead {
        font-size: 1.0625rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-box {
        padding: 1.25rem;
    }
    
    .calculator-box h3 {
        font-size: 1.25rem;
    }
    
    .calc-input {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
    
    .payment-option {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .result-row-compact {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 0.625rem;
    }
    
    .amount-financed-compact {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .steps-grid,
    .examples-grid,
    .cta-trust {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}

/* =========================
   Layout: Center calculator + partner sections
   ========================= */

/* Some templates wrap content in .service-content-container which may not use
   the global max-width centering utilities. These rules ensure the financing
   calculator stays centered consistently. */

#calculator.service-content .service-content-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

#calculator.service-content .service-content-container > .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the 2-up grid from stretching too wide on large screens */
#calculator .calculators-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Financing partner section alignment */
.financing-partner .container {
    text-align: center;
}

@media (max-width: 480px) {
    .financing-hero {
        padding: 6.5rem 0 2rem;
    }
    
    .financing-hero h1 {
        font-size: 1.75rem;
    }
    
    .calculator-box {
        padding: 1rem;
    }
}

.legal-disclosures {
    padding: 3rem 0;
    background: #f8f9f6;
    border-top: 1px solid #e5e5e5;
}

.legal-disclosures h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a1a1a;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e5e5;
}

.legal-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.legal-section p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: #8b9a5b;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #6b7a3b;
}

.ehl-logo-container {
    margin: 1rem 0;
}

.ehl-logo {
    max-width: 80px;
    height: auto;
}

@media (max-width: 768px) {
    .legal-disclosures {
        padding: 2rem 0;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section p {
        font-size: 0.8125rem;
    }
}

/* Additional Button Styles for Financing Page */
.btn-white {
    background: white;
    color: var(--black);
    border: 2px solid white;
}

.btn-white:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}

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

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

/* Steps Grid - 4 columns on desktop */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
