.provider-pages {
    background: #fff;
}

.provider-pages .page-heading h1 {
    color: #fff;
}

.provider-pages .page-heading .care-text-link,
.provider-pages .page-heading .care-benefits {
    color: #d7e9ec;
}

.profile-specialty {
    color: var(--muted);
    margin: 0;
}

.provider-pages [hidden] {
    display: none !important;
}

.care-eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.care-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 35px;
    margin-top: 30px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.care-benefits span,
.profile-visit-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.care-benefits .icon {
    width: 21px;
    height: 21px;
}

.care-text-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    text-underline-offset: 5px;
}

.care-directory {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 42px;
    padding-top: 54px;
    padding-bottom: 60px;
    align-items: start;
}

.care-filters {
    position: sticky;
    top: 24px;
    padding: 23px 20px;
    background: #fff;
    border: 1px solid var(--line);

    border-radius: 6px;
}

.specialty-filter fieldset,
.booking-form fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.specialty-filter legend {
    margin-bottom: 22px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.specialty-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.specialty-choice input,
.booking-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue);
}

.filter-apply {
    width: 100%;
    padding: 11px 10px;
    margin: 10px 0 12px;
    font-size: 12px;
}

.filter-clear {
    display: block;
    text-align: center;
    font-size: 12px;
}

.care-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
}

.care-results-heading h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -1px;
}

.care-results-heading p {
    margin: 0;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.care-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.care-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(16, 62, 76, .035);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.care-card:hover {
    border-color: var(--line);
    box-shadow: 0 10px 28px rgba(16, 62, 76, .07);
}

.care-card-person {
    display: flex;
    gap: 20px;
    padding: 24px 24px 20px;
    align-items: center;
}

.care-card-photo {
    flex: 0 0 96px;
    width: 96px;
    height: 116px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--soft);
}

.care-card-photo img,
.profile-photo img,
.booking-provider-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.care-card-details {
    min-width: 0;
}

.care-card-specialty {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.care-card h3 {
    margin-bottom: 12px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.care-card h3 a {
    color: var(--navy);
}

.care-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #edf6ed;
    color: #356b43;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.care-availability::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.care-availability-neutral {
    background: var(--soft);
    color: var(--muted);
}

.care-card-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 24px;
    border-top: 1px solid var(--line);
}

.care-card-price span {
    color: var(--navy);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.care-card-price small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.care-card-price span:first-child {
    display: block;
}

.care-card-price:has(span:only-child) {
    line-height: 1.3;
}

.care-card .button {
    min-width: 113px;
    padding: 11px 16px;
    font-size: 14px;
    white-space: nowrap;
    background: var(--blue);
}

.care-card-without-photo .care-card-person {
    min-height: 160px;
}

.care-profile-link {
    font-size: 12px;
    font-weight: 700;
}

.care-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}

.care-pagination a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}

.care-pagination a[aria-current="page"] {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.care-empty {
    padding: 45px 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.care-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 35px;
    padding-bottom: 60px;
    border-top: 1px solid var(--line);
}

.care-notes h2 {
    font-size: 32px;
}

.care-notes p {
    color: var(--muted);
    font-size: 14px;
}

.profile-page,
.booking-page {
    padding-top: 54px;
    padding-bottom: 70px;
}

.profile-layout,
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 72px;
    align-items: start;
    margin-top: 0;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line);
}

.profile-photo {
    flex: 0 0 190px;
    width: 190px;
    height: 228px;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--soft);
}

.profile-heading h2 {
    margin: 14px 0 20px;
    font-size: 32px;
}

.profile-visit-type {
    color: var(--blue);
    font-size: 13px;
}

.profile-biography {
    margin: 35px 0;
    max-width: 850px;
}

.profile-biography h2 {
    font-size: 32px;
}

.profile-biography p {
    color: var(--muted);
    line-height: 1.8;
}

.profile-license {
    margin: 25px 0;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.profile-license summary {
    color: var(--blue);
    font-weight: 700;
    cursor: pointer;
}

.profile-license p {
    margin: 14px 0 0;
}

.profile-booking,
.booking-summary {
    position: sticky;
    top: 24px;
    padding: 30px;
    border: 1px solid var(--line);

    border-radius: 6px;
    background: #fff;
}

.profile-booking > .icon {
    width: 32px;
    height: 32px;
    color: var(--blue);
    margin-bottom: 20px;
}

.profile-booking h2,
.booking-summary h2 {
    font-size: 27px;
    line-height: 1.3;
}

.profile-booking p,
.booking-summary p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.profile-booking .button {
    width: 100%;
    margin: 10px 0 18px;
    background: var(--blue);
}

.profile-booking small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.profile-price {
    margin: 18px 0;
    color: var(--blue);
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -1px;
}

.booking-layout {
    grid-template-columns: minmax(0, 760px) 330px;
    justify-content: space-between;
}

.booking-progress {
    display: flex;
    gap: 25px;
    margin: 30px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.booking-progress span {
    padding-bottom: 15px;
}

.booking-progress [aria-current="step"] {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
    font-weight: 800;
}

.booking-form legend {
    margin-bottom: 23px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
}

.booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.booking-fields label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.booking-fields input,
.booking-fields select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.booking-fields input:focus,
.booking-fields select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.booking-field-wide {
    grid-column: 1 / -1;
}

.booking-form .booking-step {
    margin-bottom: 30px;
}

.booking-field-note,
.booking-step > p {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.booking-consent {
    display: flex;
    gap: 12px;
    align-items: start;
    color: var(--muted);
    font-size: 12px;
}

.booking-consent input {
    margin-top: 4px;
}

.booking-actions {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    align-items: center;
}

.booking-actions .button {
    margin-left: auto;
    background: var(--blue);
    border: 0;
    cursor: pointer;
}

.booking-back {
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--blue);
    cursor: pointer;
}

.booking-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.booking-review {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px 20px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.booking-review dt {
    color: var(--muted);
}

.booking-review dd {
    margin: 0;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.booking-provider-photo {
    width: 104px;
    height: 125px;
    margin: 20px 0;
    border-radius: 6px;
    background: var(--soft);
}

.booking-summary hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.booking-summary h3 {
    font-size: 14px;
}

.booking-summary p .icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.booking-summary > a {
    font-size: 12px;
    font-weight: 700;
}

.booking-errors,
.booking-success {
    margin: 25px 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.booking-errors h2,
.booking-success h2 {
    margin: 0 0 16px;
    font-size: 32px;
}

.booking-errors ul {
    margin: 0;
    padding-left: 20px;
}

.booking-success {
    margin-top: 0;
}

.booking-success p {
    margin: 0 0 24px;
    color: var(--muted);
}

.booking-success .button {
    display: inline-flex;
}

@media (max-width: 560px) {
    .booking-errors,
    .booking-success {
        padding: 24px;
    }
}

@media (max-width: 1100px) {
    .care-directory {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

    .care-card-person {
        gap: 13px;
        padding: 18px;
    }

    .care-card-photo {
        flex-basis: 76px;
        width: 76px;
        height: 95px;
    }

    .care-card-booking {
        padding: 16px 18px;
        gap: 12px;
    }

    .profile-layout,
    .booking-layout {
        gap: 30px;
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 850px) {
    .care-directory {
        grid-template-columns: 1fr;
    }

    .care-filters {
        position: static;
    }

    .specialty-filter fieldset {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 15px;
    }

    .specialty-filter legend {
        margin-bottom: 18px;
    }

    .filter-apply {
        width: auto;
        min-width: 140px;
        margin-right: 20px;
    }

    .filter-clear {
        display: inline-block;
    }

    .profile-layout,
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .profile-booking,
    .booking-summary {
        position: static;
    }

    .booking-summary {
        grid-row: 1;
        padding: 22px;
    }

    .booking-summary hr,
    .booking-summary h3,
    .booking-summary > p:nth-last-of-type(-n+3) {
        display: none;
    }
}

@media (max-width: 560px) {
    .provider-pages .page-heading h1 br {
        display: none;
    }

    .care-card-grid,
    .care-notes,
    .booking-fields {
        grid-template-columns: 1fr;
    }

    .care-card-photo {
        flex-basis: 96px;
        width: 96px;
        height: 116px;
    }

    .specialty-filter fieldset {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .care-results-heading h2 {
        font-size: 23px;
    }

    .care-notes {
        gap: 25px;
    }

    .profile-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .profile-photo {
        flex-basis: auto;
    }

    .booking-progress {
        gap: 18px;
        font-size: 11px;
    }

    .booking-review {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .booking-review dd {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .care-card {
        transition: none;
    }
}

.care-card .button:hover,
.profile-booking .button:hover,
.booking-actions .button:hover {
    background: var(--navy);
    border-color: var(--navy);
}

.provider-pages :is(a, button, input, select, summary):focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.provider-pages .page-heading a:focus-visible {
    outline-color: #fff;
}
