body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1 {
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E8F4F8;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-control:disabled {
    background-color: #F3F4F6;
    color: #6B7280;
    cursor: not-allowed;
    opacity: 1;
}

.form-control:disabled:focus {
    border-color: #E8F4F8;
    box-shadow: none;
}

.step-content {
    display: none;
}

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

.error-message {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#zip-form {
    max-width: 480px;
    margin: 0 auto;
}

/* Step 2 - Eligibility Results Styles */
.eligibility-map-container {
    max-width: 100%;
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    background: white;
    position: relative;
    max-width: 400px;
    height: 240px;
    border: 4px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 8px 24px 0 rgba(17, 24, 39, 0.08);
    margin: 0 auto 40px;
}

#location-map {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 12px;
}

.map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

/* Incident Type Tabs */
.incident-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 2rem;
}

.incident-tab {
    padding: 8px 10px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 0.5px solid rgba(85, 85, 85, 0.4);
    background-color: transparent;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.3s ease;
}

.incident-tab:hover {
    background-color: #D1D5DB;
}

.incident-tab.active {
    background-color: rgba(13, 38, 94, 1);
    color: white;
}

/* Statistics Cards */
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card-highlight {
    border: 2px solid #10B981;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 7px;
    font-weight: 500;
}

.stat-card-value {
    font-size: 21px;
    font-weight: bold;
    margin: 0;
}

.stat-value-orange {
    color: #F97316;
}

.stat-value-blue {
    color: #2563EB;
}

.stat-value-green {
    color: #10B981;
    font-size: 33px;
    line-height: 29px;
}

/* Continue Button */
.continue-button {
    background-color: #2563EB;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-button:hover {
    background-color: #1D4ED8;
}

.continue-button:active {
    transform: scale(0.98);
}

/* Explore Section */
.explore-section {
    width: 760px;
    gap: 16px;
    opacity: 1;
    border-radius: 16px;
    padding: 12px;
    max-width: 100%;
    background: rgba(13, 38, 94, 0.04);
    margin: 0 auto;
    border: 1px solid rgba(13, 38, 94, 0.24);
}

@media (max-width: 768px) {
    .incident-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    }

    .incident-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .incident-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .incident-tabs::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

    .incident-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

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

/* Step 4: Desktop Layout */
.step-4-desktop {
    display: block;
}

.step-4-mobile {
    display: none;
}

.step-4-main-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 48px;
}

/* Step 4: Form Section (Desktop) */
.step-4-form-section {
    flex: 1 0 0;
    min-width: 0;
}

.step-4-form-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    color: #000000;
    margin-bottom: 40px;
    text-align: left;
}

.step-4-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-4-form-row {
    display: flex;
    gap: 16px;
}

.step-4-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 0 0;
    min-width: 0;
}

.step-4-disabled-field {
    opacity: 0.5;
}

.step-4-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: #2f2f31;
}

.step-4-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
    background-color: white;
    color: #000000;
}

.step-4-input::placeholder {
    color: #bcbcbc;
}

.step-4-input:disabled {
    background-color: transparent;
    color: #000000;
    cursor: not-allowed;
}

.step-4-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Step 4: Package Summary Card (Desktop) */
.package-summary-card {
    background: white;
    border: 4px solid white;
    border-radius: 16px;
    box-shadow: 0 8px 24px 0 rgba(17, 24, 39, 0.08);
    width: 520px;
    height: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.package-image-wrapper {
    position: relative;
    height: 176px;
    width: 100%;
    overflow: hidden;
}

.package-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #dfdfdf;
}

.package-content {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    justify-content: flex-end;
    position: relative;
    margin-top: -90px;
}

.package-logo-badge {
    position: absolute;
    z-index: 1;
    top: 30px;
    left: 0;
}

.package-logo-img {
    width: 152px;
    height: 112px;
}

.package-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 0;
    color: #000000;
    margin: 0;
}

.package-pricing-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pricing-badge {
    background: linear-gradient(to bottom, #1bb243, #0b6222);
    border-radius: 999px;
    padding: 0 12px 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-align: center;
}

.pricing-amount {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 48px;
}

.pricing-period {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
}

.pricing-description {
    flex: 1 0 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #555;
    margin: 0;
}

.package-benefits {
    background: rgba(27, 178, 67, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-benefits-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    margin: 0;
}

.package-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benefit-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.benefit-check-icon {
    width: 20px;
    height: 20px;
    background: #1bb243;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-check-icon svg {
    width: 13.333px;
    height: 13.333px;
}

.benefit-item span {
    flex: 1 0 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #424242;
}

.package-guarantees {
    background: #ecf2fd;
    display: flex;
    width: 100%;
}

.guarantee-item {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.guarantee-item-1 {
    background: #ecf2fd;
}

.guarantee-item-2 {
    background: #dae4fc;
}

.guarantee-item-3 {
    background: #ecf2fd;
}

.guarantee-icon-img {
    width: 20px;
    height: 20px;
}

.guarantee-icon {
    width: 20px;
    height: 20px;
    color: #000000;
}

.guarantee-item span {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    text-align: center;
}

/* Step 4: Actions (Desktop) */
.step-4-actions-desktop {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.step-4-subscribe-button {
    background: #2563eb;
    border: none;
    border-radius: 8px;
    padding: 12px 40px;
    height: 64px;
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.step-4-subscribe-button:hover {
    background: #1d4ed8;
}

.step-4-subscribe-button span {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: white;
    text-align: center;
}

.step-4-button-icon {
    width: 20px;
    height: 20px;
}

.step-4-insurance-logos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.step-4-insurance-title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
    text-align: center;
    letter-spacing: -0.28px;
    margin: 0;
}

.step-4-logos-wrapper {
    width: 100%;
    overflow: hidden;
}

.step-4-logos-container {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    width: fit-content;
    animation: scroll-step4-logos 30s linear infinite;
}

.step-4-logo {
    height: auto;
    flex-shrink: 0;
}

.step-4-logo-duplicate {
    display: block;
}

@keyframes scroll-step4-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Step 4: Mobile Layout */
@media (max-width: 1024px) {
    .step-4-desktop {
        display: none;
    }

    .step-4-mobile {
        display: block;
    }

    .step-4-mobile {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    /* Package Card Mobile */
    .package-summary-card-mobile {
        background: white;
        border: 4px solid white;
        border-radius: 16px;
        box-shadow: 0 8px 24px 0 rgba(17, 24, 39, 0.08);
        width: 100%;
        height: 490px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .package-image-wrapper-mobile {
        position: relative;
        height: 148px;
        width: 100%;
        overflow: hidden;
    }

    .package-hero-image-mobile {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background-color: #dfdfdf;
    }

    .package-content-mobile {
        flex: 1 0 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 16px 12px;
        justify-content: flex-end;
        position: relative;
        margin-top: -105px;
    }


    .package-logo-badge-mobile {
        position: absolute;
        z-index: 1;
        top: 30px;
        left: 0;
    }

    .package-logo-img-mobile {
        width: 152px;
        height: 112px;
    }

    .package-title-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 0;
        color: #000000;
        margin: 0;
    }

    .package-pricing-row-mobile {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .pricing-badge-mobile {
        background: linear-gradient(to bottom, #1bb243, #0b6222);
        border-radius: 999px;
        padding: 0 12px 0 14px;
        height: 36px;
        display: flex;
        align-items: center;
        gap: 4px;
        color: white;
        text-align: center;
    }

    .pricing-amount-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 48px;
    }

    .pricing-period-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 28px;
    }

    .pricing-description-mobile {
        flex: 1 0 0;
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 18px;
        color: #555;
        margin: 0;
    }

    .package-benefits-mobile {
        background: rgba(27, 178, 67, 0.12);
        border-radius: 12px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .package-benefits-title-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 16px;
        color: #000000;
        margin: 0;
    }

    .package-benefits-list-mobile {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .benefit-item-mobile {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .benefit-check-icon-mobile {
        width: 20px;
        height: 20px;
        background: #1bb243;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .benefit-check-icon-mobile svg {
        width: 13.333px;
        height: 13.333px;
    }

    .benefit-item-mobile span {
        flex: 1 0 0;
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 500;
        font-size: 13px;
        line-height: 24px;
        color: #424242;
    }

    .package-guarantees-mobile {
        background: #ecf2fd;
        display: flex;
        width: 100%;
    }

    .guarantee-item-mobile {
        flex: 1 0 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
        padding: 12px 0;
    }

    .guarantee-item-1-mobile {
        background: #ecf2fd;
    }

    .guarantee-item-2-mobile {
        background: #dae4fc;
    }

    .guarantee-item-3-mobile {
        background: #ecf2fd;
    }

    .guarantee-icon-img-mobile {
        width: 20px;
        height: 20px;
    }

    .guarantee-icon-mobile {
        width: 20px;
        height: 20px;
        color: #000000;
    }

    .guarantee-item-mobile span {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 400;
        font-size: 13px;
        line-height: 16px;
        color: #555;
        text-align: center;
    }

    /* Subscribe Button Mobile */
    .step-4-subscribe-button-mobile {
        background: #2563eb;
        border: none;
        border-radius: 8px;
        padding: 12px 40px;
        height: 56px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .step-4-subscribe-button-mobile:hover {
        background: #1d4ed8;
    }

    .step-4-subscribe-button-mobile span {
        font-family: 'Inter', Arial, sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 20px;
        color: white;
        text-align: center;
    }

    .step-4-button-icon-mobile {
        width: 20px;
        height: 20px;
    }

    .step-4-mobile .step-4-subscribe-button-mobile-1 .step-4-button-icon-mobile {
        transform: rotate(90deg);
    }

    /* Insurance Logos Mobile */
    .step-4-insurance-logos-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .step-4-insurance-title-mobile {
        font-family: 'Inter', Arial, sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #374151;
        text-align: center;
        letter-spacing: -0.28px;
        margin: 0;
    }

    .step-4-logos-wrapper-mobile {
        width: 100%;
        overflow: hidden;
    }

    .step-4-logos-container-mobile {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        width: fit-content;
        animation: scroll-step4-logos-mobile 30s linear infinite;
    }

    .step-4-logo-mobile {
        height: auto;
        flex-shrink: 0;
    }

    .step-4-logo-duplicate-mobile {
        display: block;
    }

    @keyframes scroll-step4-logos-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }

    /* Form Section Mobile */
    .step-4-form-section-mobile {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .step-4-form-title-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 700;
        font-size: 28px;
        line-height: 32px;
        color: #000000;
        text-align: center;
        margin: 0;
    }

    .step-4-form-mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .step-4-form-row-mobile {
        display: flex;
        gap: 8px;
    }

    .step-4-form-field-mobile {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1 0 0;
        min-width: 0;
    }

    .step-4-disabled-field-mobile {
        opacity: 0.5;
    }

    .step-4-label-mobile {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 16px;
        color: #2f2f31;
    }

    .step-4-input-mobile {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 8px;
        font-family: 'Helvetica Neue', Arial, sans-serif;
        font-size: 14px;
        line-height: 24px;
        background-color: white;
        color: #000000;
    }

    .step-4-input-mobile::placeholder {
        color: #bcbcbc;
    }

    .step-4-input-mobile:disabled {
        background-color: transparent;
        color: #000000;
        cursor: not-allowed;
    }

    .step-4-input-mobile:focus {
        outline: none;
        border-color: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 450px) {
    .package-summary-card-mobile {
        height: auto;
    }

    .package-content-mobile {
        margin-top: 10px;
    }

    .package-logo-badge-mobile {
        top: -85px
    }

    .package-title-mobile {
        line-height: 24px;
    }
}

.carrier-logo-small {
    height: auto;
    max-height: 40px;
    object-fit: contain;
}