.htpc-wrap {
    max-width: 896px !important;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: "Noto Sans", Helvetica, Arial, Verdana, sans-serif;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 21px 2px #B4B4B440;
}

.htpc-wrap .htpc-wrap-sub-head {
    background: #1A4F70;
    padding: 50px;
    text-align: center;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.htpc-wrap .htpc-wrap-sub-head .htpc-title {
    font-size: 36px;
    line-height: 46px;
    font-weight: 600;
    color: #FFFFFF;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.htpc-wrap .htpc-wrap-sub-head .htpc-subtitle {
    color: #D8D8D8;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.htpc-wrap .htpc-wrap-sub-head .m-top-10 {
    margin-top: 10px;
}

.htpc-wrap .htpc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    background: #FFFFFF;
    border: 1px solid #DBDBDB;
    box-shadow: 0px 0px 21px 2px #B4B4B440;
    padding: 50px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.htpc-wrap .htpc-grid .htpc-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.htpc-wrap .htpc-field label {
    display: block;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #2A2F41;
}

.htpc-wrap .htpc-field select,
.htpc-wrap .htpc-field .htpc-input-prefix,
.htpc-wrap .htpc-field .htpc-input-suffix {
    width: auto;
    font-size: 16px;
    padding: 12px 20px;
    border: 1px solid #E4E4E4;
    border-radius: 8px;
    background: #F0F0F0;
    color: #2A2F41;
    appearance: none;
    -webkit-appearance: none;
    margin-top: 10px;
    height: auto;
    line-height: 26px;
}

.htpc-wrap .htpc-field select:focus-visible,
.htpc-wrap .htpc-field input:focus-visible {
    outline: 2px solid var(--htpc-primary);
    outline-offset: 1px;
    border-color: var(--htpc-primary);
}

.htpc-wrap .htpc-input-prefix,
.htpc-wrap .htpc-input-suffix {
    display: flex;
    align-items: center;
    border: 1px solid var(--htpc-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--htpc-surface);
}

.htpc-wrap .htpc-input-prefix:focus-within,
.htpc-wrap .htpc-input-suffix:focus-within {
    outline: 2px solid var(--htpc-primary);
    outline-offset: 1px;
}

.htpc-wrap .htpc-input-prefix span,
.htpc-wrap .htpc-input-suffix span {
    padding-right: 10px;
    color: #2A2F41;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.htpc-wrap .htpc-input-prefix input,
.htpc-wrap .htpc-input-suffix input {
    border: none;
    border-radius: 0;
    flex: 1;
    width: 0;
    box-shadow: none;
    background: transparent;
    padding: 0px;
    height: auto;
    min-height: 0;
    margin-bottom: 0px;
    color: #2A2F41 !important;
    font-size: 16px;
    line-height: 26px;
}

.htpc-wrap .htpc-input-prefix input:focus-visible,
.htpc-wrap .htpc-input-suffix input:focus-visible {
    outline: none;
}

.htpc-wrap .htpc-hint {
    margin-top: 10px !important;
    font-size: 14px;
    color: var(--htpc-muted);
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox span,
.htpc-wrap .htpc-hint {
    color: #949494;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    margin: 0px;
    padding: 0px;
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #109B9E;
    border-radius: 2px;
    background-color: #ffffff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox input[type="checkbox"]:checked {
    border-color: #109B9E;
    background-color: #109B9E;
    /* Optional: Fills background on check */
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 16px 16px #ffffff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.htpc-wrap .htpc-checkbox-field .htpc-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.htpc-wrap .htpc-results {
    background: #EBF4F3;
    border: 1px solid #F1F4F5;
    border-radius: 20px;
    padding: 30px;
    scroll-margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.htpc-wrap .htpc-results .htpc-results-wrapper {
    min-width: 300px;
}

.htpc-wrap .htpc-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.htpc-wrap .htpc-headline-label {
    font-size: 16px;
    line-height: 26px;
    color: #2A2F41;
    font-weight: 400;
}

.htpc-wrap .htpc-headline-value {
    font-size: 40px;
    font-weight: 800;
    color: #109B9E;
    line-height: 50px;
    margin-top: 10px;
}

.htpc-wrap .htpc-headline-sub {
    font-size: 14px;
    color: #949494;
    line-height: 24px;
    margin-top: 5px;
}

.htpc-wrap .htpc-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.htpc-wrap .htpc-summary-row>div {
    background: #D3E2E0;
    border-radius: 8px;
    padding: 20px;
}

.htpc-wrap .htpc-summary-row span {
    display: block;
    line-height: 26px;
    font-size: 16px;
    color: #2A2F41;
    margin-bottom: 10px;
}

.htpc-wrap .htpc-summary-row strong {
    font-size: 26px;
    line-height: 36px;
    color: #2A2F41;
}

.htpc-wrap table.htpc-breakdown {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 26px;
    margin-top: 30px;
    border: none;
    color: #2A2F41;
    margin-bottom: 0px;
}

.htpc-wrap table.htpc-breakdown tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.htpc-wrap table.htpc-breakdown tbody tr:not(:last-child) {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #DADADA;
    gap: 16px;
}

.htpc-wrap table.htpc-breakdown td {
    padding: 0px;
    border: none;
    background: transparent;
}

.htpc-wrap table.htpc-breakdown td:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 700;
}

.htpc-wrap table.htpc-breakdown tr.htpc-total-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.htpc-wrap table.htpc-breakdown tr.htpc-total-row td {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
}

.htpc-wrap table.htpc-breakdown tr.htpc-total-row td:last-child {
    color: #109B9E;
}

.htpc-wrap .htpc-extra {
    margin-top: 30px;
}

.htpc-wrap .htpc-extra h3 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: #2A2F41;
}

.htpc-wrap .htpc-match-note {
    margin-top: 30px;
    padding: 20px;
    background: #DEE5E5;
    border-radius: 8px;
    font-size: 16px;
    color: #2A2F41;
    line-height: 26px;
}

.htpc-wrap .htpc-disclaimer {
    margin-top: 14px;
    font-size: 14px;
    line-height: 24px;
    color: #949494;
}

.htpc-wrap [hidden] {
    display: none !important;
}

.htpc-wrap .htpc-calculate-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    padding: 16px 20px;
    background: #109B9E;
    border: 1px solid #109B9E;
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.htpc-wrap .htpc-calculate-btn:hover,
.htpc-wrap .htpc-calculate-btn:focus-visible {
    color: #109B9E;
    background: #ffffff;
}

.htpc-wrap .htpc-field .htpc-select-wrap {
    position: relative;
}

.htpc-wrap .htpc-field .htpc-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 50px;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-trigger {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
    padding-right: 50px;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    background: #F0F0F0;
    color: #2A2F41;
    margin-top: 10px;
    line-height: 26px;
    cursor: pointer;
    box-sizing: border-box;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-trigger:focus-visible {
    outline: 2px solid #109B9E;
    outline-offset: 1px;
    border-color: #109B9E;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-panel {
    list-style: none;
    margin: 10px 0 0;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(20, 24, 30, 0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 30;
    display: none;
}

.htpc-wrap .htpc-field .htpc-select-wrap.htpc-open .htpc-select-panel {
    display: block;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-option {
    font-size: 14px;
    line-height: 24px;
    color: #949494;
    cursor: pointer;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-option:not(:first-child) {
    margin-top: 10px;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-option:hover {
    color: #109B9E;
}

.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-option.selected,
.htpc-wrap .htpc-field .htpc-select-wrap .htpc-select-option.selected:hover {
    color: #109B9E;
}

.htpc-wrap .htpc-field .htpc-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.htpc-wrap .htpc-field .htpc-select-wrap.htpc-open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Remove number input spinner arrows */
.htpc-wrap input[type="number"]::-webkit-inner-spin-button,
.htpc-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.htpc-wrap input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

@media (max-width: 1023.98px) {

    .htpc-wrap .htpc-wrap-sub-head,
    .htpc-wrap .htpc-grid {
        padding: 40px;
    }

    .htpc-wrap .htpc-headline-value {
        font-size: 30px;
        line-height: 40px;
    }

    .htpc-wrap .htpc-wrap-sub-head .htpc-title {
        font-size: 34px;
        line-height: 44px;
    }
}

@media (max-width: 767.98px) {

    .htpc-wrap .htpc-wrap-sub-head .htpc-title {
        font-size: 30px;
        line-height: 40px;
    }

    .htpc-wrap .htpc-headline-value {
        font-size: 30px;
        line-height: 40px;
    }

    .htpc-wrap .htpc-headline-value {
        font-size: 30px;
        line-height: 40px;
    }

    .htpc-wrap .htpc-summary-row {
        grid-template-columns: 1fr;
    }

    .htpc-wrap .htpc-wrap-sub-head,
    .htpc-wrap .htpc-grid {
        padding: 30px;
    }
}

/* ------------------------------------------------------------------
 * Side-by-side comparison: "My current state" vs. practice location
 * ---------------------------------------------------------------- */
.htpc-wrap .htpc-compare-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.htpc-wrap .htpc-col-head {
    background: #D3E2E0;
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 0;
}

.htpc-wrap .htpc-col-head.htpc-col-hera {
    background: #109B9E;
}

.htpc-wrap .htpc-col-head .htpc-col-eyebrow {
    display: block;
    font-size: 14px;
    line-height: 24px;
    color: #2A2F41;
}

.htpc-wrap .htpc-col-head strong {
    display: block;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: #2A2F41;
    overflow-wrap: anywhere;
}

.htpc-wrap .htpc-col-head.htpc-col-hera .htpc-col-eyebrow,
.htpc-wrap .htpc-col-head.htpc-col-hera strong {
    color: #FFFFFF;
}

.htpc-wrap .htpc-headline-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.htpc-wrap .htpc-headline-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.htpc-wrap .htpc-headline-col .htpc-headline-value {
    margin-top: 0;
    color: #2A2F41;
}

.htpc-wrap .htpc-headline-col.htpc-col-hera .htpc-headline-value {
    color: #109B9E;
}

.htpc-wrap .htpc-headline-monthly {
    font-size: 14px;
    line-height: 24px;
    color: #949494;
    margin-top: 5px;
}

.htpc-wrap .htpc-diff {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 20px;
    background: #FFFFFF;
    border-left: 4px solid #109B9E;
    border-radius: 8px;
    font-size: 16px;
    line-height: 26px;
    color: #2A2F41;
}

/* Three-column breakdown: label | my state | HERA */
.htpc-wrap table.htpc-compare-table tbody tr:not(:last-child),
.htpc-wrap table.htpc-compare-table tbody tr.htpc-total-row {
    align-items: baseline;
}

.htpc-wrap table.htpc-compare-table td:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.htpc-wrap table.htpc-compare-table td:not(:first-child) {
    flex: 0 0 120px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.htpc-wrap table.htpc-compare-table tr.htpc-table-head td {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    color: #2A2F41;
}

.htpc-wrap table.htpc-compare-table tr.htpc-table-head td:last-child {
    color: #109B9E;
}

.htpc-wrap table.htpc-compare-table tr.htpc-total-row td:last-child {
    color: #109B9E;
}

.htpc-wrap .htpc-hint.htpc-footnote,
.htpc-wrap .htpc-disclaimer.htpc-footnote {
    margin-top: 10px;
}

.htpc-wrap .htpc-results .htpc-footnote {
    margin-top: 30px;
}

@media (max-width: 767.98px) {

    .htpc-wrap .htpc-compare-head,
    .htpc-wrap .htpc-headline-pair {
        gap: 10px;
    }

    .htpc-wrap .htpc-col-head {
        padding: 12px;
    }

    .htpc-wrap .htpc-col-head strong {
        font-size: 16px;
        line-height: 24px;
    }

    .htpc-wrap .htpc-headline-col .htpc-headline-value {
        font-size: 24px;
        line-height: 34px;
    }

    .htpc-wrap .htpc-results {
        padding: 20px;
    }

    .htpc-wrap table.htpc-breakdown {
        font-size: 14px;
        line-height: 22px;
    }

    .htpc-wrap table.htpc-compare-table td:not(:first-child) {
        flex-basis: 84px;
    }
}

.htpc-wrap .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.htpc-wrap table.htpc-compare-table tr.htpc-total-row {
    gap: 16px;
}

@media (max-width: 767.98px) {
    .htpc-wrap table.htpc-compare-table tr.htpc-total-row td {
        font-size: 16px;
        line-height: 24px;
    }
}
