/* Homepage cost factors: all rules are limited to this section. */
._cost-factors {
    padding-block: 2.5rem;
}

._cost-factors ._cost-inner {
    max-width: 1100px;
    margin-inline: auto;
}

._cost-factors h2 {
    margin-bottom: 0.75rem;
}

._cost-factors ._cost-intro {
    max-width: 64rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

._cost-factors ._cost-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

._cost-factors ._cost-item {
    min-width: 0;
    padding-inline: 1.5rem;
}

._cost-factors ._cost-item + ._cost-item {
    border-left: 1px solid #dedede;
}

._cost-factors ._cost-item:first-child {
    padding-left: 0;
}

._cost-factors ._cost-item:last-child {
    padding-right: 0;
}

._cost-factors ._cost-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    color: #bb0a07;
}

._cost-factors ._cost-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

._cost-factors ._cost-item p {
    margin: 0;
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.5;
}

._cost-factors ._cost-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

._cost-factors ._cost-actions ._btn {
    width: auto;
    max-width: 100%;
}

@media (min-width: 600px) and (max-width: 1199.98px) {
    ._cost-factors ._cost-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    ._cost-factors ._cost-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    ._cost-factors ._cost-item:nth-child(even) {
        padding-right: 0;
    }
}

@media (max-width: 599.98px) {
    ._cost-factors {
        padding-block: 1.25rem;
    }

    ._cost-factors h2 {
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    ._cost-factors ._cost-intro {
        margin-bottom: 1rem;
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    ._cost-factors ._cost-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    ._cost-factors ._cost-item {
        display: grid;
        grid-template-columns: 1.75rem minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0.25rem;
        padding: 0.5rem 0;
    }

    ._cost-factors ._cost-item > div {
        display: contents;
    }

    ._cost-factors ._cost-item + ._cost-item {
        border-left: 0;
        border-top: 1px solid #dedede;
    }

    ._cost-factors ._cost-item:first-child {
        padding-top: 0;
    }

    ._cost-factors ._cost-item:last-child {
        padding-bottom: 0;
    }

    ._cost-factors ._cost-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin: 0;
    }

    ._cost-factors ._cost-item h3 {
        align-self: center;
        margin-bottom: 0;
        font-size: 1.125rem;
    }

    ._cost-factors ._cost-item p {
        grid-column: 1 / -1;
        line-height: 1.4;
    }

    ._cost-factors ._cost-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    ._cost-factors ._cost-actions ._btn {
        width: 100%;
        max-width: 20rem;
    }
}
