.ahw,
.ahw * {
    box-sizing: border-box;
}

.ahw {
    --ahw-primary: #166177;
    --ahw-primary-dark: #0e5160;
    --ahw-essential-bg: #f7f2ff;
    --ahw-professional-bg: #fff2e6;
    --ahw-unlimited-bg: #e9f5f0;
    --ahw-highlight-green: #f0fff4;
    --ahw-border: #d7dde3;
    --ahw-track: #ccd3d9;
    --ahw-text-muted: #5f6b76;
    --ahw-radius: 18px;
    --ahw-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    color: var(--ahw-primary-dark);
    width: 100%;
    font: inherit;
}

.ahw a,
.ahw button,
.ahw input {
    font: inherit;
}

.ahw-monthly,
.ahw-provider {
    max-width: 1050px;
    margin: 0 auto;
}

.ahw-monthly__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.ahw-monthly__plan {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    color: var(--ahw-primary-dark);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 150px;
}

.ahw-monthly__plan:hover,
.ahw-monthly__plan:focus-visible {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    outline: none;
}

.ahw-monthly__plan[data-plan="essential"] { background: var(--ahw-essential-bg); }
.ahw-monthly__plan[data-plan="professional"] { background: var(--ahw-professional-bg); }
.ahw-monthly__plan[data-plan="unlimited"] { background: var(--ahw-unlimited-bg); }

.ahw-monthly__plan.is-active[data-plan="essential"] { border-color: #d4c0ff; }
.ahw-monthly__plan.is-active[data-plan="professional"] { border-color: #ffcfa7; }
.ahw-monthly__plan.is-active[data-plan="unlimited"] { border-color: #d5efd9; }

.ahw-monthly__plan-title {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 12px;
}

.ahw-monthly__plan-price {
    display: block;
    font-size: 36px;
    line-height: 1;
    font-weight: 500;
}

.ahw-monthly__plan-price span {
    font-size: 15px;
    margin-left: 3px;
}

.ahw-monthly__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.ahw-field {
    margin-bottom: 18px;
}

.ahw-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.ahw-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ahw-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ahw-primary-dark);
}

.ahw-input:focus,
.ahw-range:focus {
    outline: none;
}

.ahw-input:focus-visible {
    border-color: var(--ahw-primary);
    box-shadow: 0 0 0 3px rgba(22,97,119,.16);
}

.ahw-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: var(--ahw-track);
}

.ahw-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ahw-primary);
    cursor: pointer;
    border: 0;
}

.ahw-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ahw-primary);
    cursor: pointer;
    border: 0;
}

.ahw-monthly__range-label {
    margin-top: 6px;
    font-weight: 600;
}

.ahw-monthly__results h3 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.2;
}

.ahw-monthly__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
}

.ahw-monthly__row strong {
    white-space: nowrap;
}

.ahw-monthly__results hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid var(--ahw-border);
}

.ahw-monthly__row--net {
    font-size: 20px;
}

.ahw-provider__slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ahw-provider__slider-row label {
    font-weight: 600;
    white-space: nowrap;
}

.ahw-provider__count {
    background: var(--ahw-primary);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 14px;
    font-weight: 600;
}

.ahw-provider__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ahw-provider__list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 14px 8px;
    border-bottom: 1px solid #e0e5ea;
}

.ahw-provider__list li:last-child {
    border-bottom: 0;
}

.ahw-provider__list li.is-essential { background: var(--ahw-essential-bg); }
.ahw-provider__list li.is-professional { background: var(--ahw-professional-bg); }
.ahw-provider__list li.is-unlimited { background: var(--ahw-unlimited-bg); }

.ahw-provider__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ahw-provider__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ahw-provider__notes {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ahw-text-muted);
}

.ahw-provider__notes a {
    color: inherit;
    text-decoration: underline;
}

.ahw-provider__cost,
.ahw-provider__save {
    text-align: right;
    white-space: nowrap;
}

.ahw-provider__cost {
    font-size: 16px;
    font-weight: 600;
}

.ahw-provider__save {
    font-size: 14px;
    color: #404b55;
}

.ahw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.ahw-badge--lowest {
    background: var(--ahw-highlight-green);
}

.ahw-badge--best {
    background: var(--ahw-primary);
    color: #fff;
}

.ahw-provider__context {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.55;
}

.ahw-provider__footnote {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ahw-text-muted);
}

@media (max-width: 900px) {
    .ahw-monthly__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ahw-provider__list li {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ahw-provider__cost,
    .ahw-provider__save {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .ahw-monthly__cards {
        grid-template-columns: 1fr;
    }

    .ahw-provider__slider-row {
        flex-wrap: wrap;
    }
}
