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

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #fff3ed;
    --secondary: #004e89;
    --secondary-light: #e8f1fa;
    --accent: #ffd166;
    --light: #f7f7f7;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --success: #22c55e;
}

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 100%);
    color: white;
    text-align: center;
    padding: 5rem 5% 6rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 5%;
    background: var(--light);
}

.calculator-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.calc-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.calculator {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

/* Steps */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-step {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.calc-step:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.3;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

/* ZIP Input */
.calc-step input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.calc-step input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Type Cards */
.type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: center;
}

.type-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.type-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.type-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.type-range {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Option Pills */
.option-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pill:hover {
    border-color: var(--secondary);
}

.pill.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Add-ons */
.addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.addon-item:hover {
    border-color: var(--secondary);
}

.addon-item.checked {
    border-color: var(--primary);
    background: var(--primary-light);
}

.addon-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.addon-info {
    flex: 1;
}

.addon-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.addon-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.addon-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Result Panel */
.calc-result {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    position: sticky;
    top: 80px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.result-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.result-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    min-height: 1.4em;
}

.result-breakdown {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.result-breakdown .line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
}

.result-breakdown .line-item.total {
    font-weight: 700;
    color: var(--dark);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--dark);
    font-size: 1rem;
}

.result-recommendation {
    background: var(--secondary-light);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.5;
    display: none;
}

.result-recommendation.visible {
    display: block;
}

.result-recommendation strong {
    display: block;
    margin-bottom: 0.15rem;
}

.result-disclaimer {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-top: 1rem;
}

/* Lead Form */
.lead-form-wrapper {
    max-width: 700px;
    margin: 3rem auto 0;
}

.lead-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.lead-form h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.lead-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.lead-row input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.lead-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.lead-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.lead-privacy {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.75rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 5%;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
}

.mobile-bar-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.mobile-bar-cta {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Pricing */
.pricing-section {
    padding: 4rem 5%;
}

.pricing-section h2,
.factors-section h2,
.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
}

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

.pricing-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.pricing-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.pricing-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Factors */
.factors-section {
    padding: 4rem 5%;
    background: var(--light);
}

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

.factor {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.factor h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.factor p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p,
.faq-answer li {
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.25rem;
}

/* Internal Links */
.internal-links {
    padding: 3rem 5%;
    background: #f0f4f8;
    border-top: 1px solid var(--border);
}

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

.links-column h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
}

.links-column ul {
    list-style: none;
}

.links-column li {
    margin-bottom: 0.35rem;
}

.links-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.links-column a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 5%;
}

footer .disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .calculator {
        grid-template-columns: 1fr;
    }

    .calc-result {
        position: static;
    }

    .type-cards {
        grid-template-columns: 1fr;
    }

    .option-pills {
        flex-direction: column;
    }

    .pill {
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .factors-grid {
        grid-template-columns: 1fr;
    }

    .links-container {
        grid-template-columns: 1fr 1fr;
    }

    .lead-row {
        grid-template-columns: 1fr;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 5% 4rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .result-price {
        font-size: 2.2rem;
    }
}
