.luma-home .luma-care .luma-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 1.4vw, 22px);
}
.luma-home .luma-care .luma-service {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(0 150 178 / 20%);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(0 150 178 / 12%);
}
.luma-home .luma-care .svc-media {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    height: clamp(150px, 15vw, 236px);
}
.luma-home .luma-care .svc-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgb(0 150 178 / 38%));
    pointer-events: none;
}
.luma-home .luma-care .svc-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.luma-home .luma-care .luma-service:focus-within img.luma-service-photo {
    transform: scale(1.04);
}
@media (hover: hover) {
    .luma-home .luma-care .luma-service:hover img.luma-service-photo { transform: scale(1.04); }
}
.luma-home .luma-care .svc-body {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 0 clamp(14px, 1.7vw, 24px) 20px;
}
.luma-home .luma-care .svc-body > .luma-icon {
    position: relative;
    z-index: 1;
    margin-top: -20px;
    box-shadow: 0 4px 14px rgb(0 150 178 / 20%);
}
.luma-home .luma-care .svc-body :is(h3, p) { margin: 0; }
.luma-home .luma-care .luma-service-cta {
    display: grid;
    position: static;
    place-items: center;
    justify-self: stretch;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff;
    background: #0096b2;
    text-align: center;
    text-decoration: none;
}
.luma-home .luma-care .luma-service-cta:hover { background: #0096b2; }
.luma-home .luma-care :is(a, summary):focus-visible {
    outline: 2px solid #0096b2;
    outline-offset: 3px;
}
@media (max-width: 980px) {
    .luma-home .luma-care .luma-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
    .luma-home .luma-care .luma-services { grid-template-columns: minmax(0, 1fr); }
    .luma-home .luma-care .svc-media { height: clamp(155px, 48vw, 210px); }
}
@media (prefers-reduced-motion: reduce) {
    .luma-home .luma-care .svc-media img { transition: none; transform: none !important; }
}

.luma-category-catalog form { margin-top: 20px; }
.luma-category-catalog fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.luma-category-catalog legend { margin-bottom: 12px; font-weight: 700; }
.luma-catalog-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 12px;
}
.luma-catalog-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 6px 10px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid rgb(0 150 178 / 25%);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}
.luma-catalog-option input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: #0096b2; }
.luma-catalog-option strong { grid-column: 2; }
.luma-catalog-option:has(input:checked) {
    border-color: #0096b2;
    box-shadow: inset 0 0 0 1px #0096b2;
}
.luma-category-catalog button.luma-service-cta { width: auto; cursor: pointer; }

.luma-booked-service {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgb(0 150 178 / 8%);
    color: #0096b2;
}
.luma-booked-service small { display: block; }

.luma-home .luma-care .luma-category-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: clamp(230px, 34vw, 370px);
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: #0096b2;
    box-shadow: 0 16px 32px rgb(0 150 178 / 18%);
}
.luma-category-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.luma-category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgb(0 150 178 / 93%), rgb(0 150 178 / 9%) 82%);
}
.luma-category-hero > div { padding: clamp(18px, 4vw, 48px); }
.luma-home .luma-care .luma-category-hero :is(h1, a, p) { color: #fff; }
.luma-category-hero h1 { margin: 8px 0; font-size: clamp(30px, 5vw, 58px); }
.luma-category-hero p { margin: 0; }
.luma-catalog-option small { grid-column: 2; overflow-wrap: anywhere; }
.luma-service-payments { margin-bottom: 20px; }
.luma-service-payments details { padding: 12px 0; border-top: 1px solid rgb(0 150 178 / 22%); }
.luma-service-payments summary { cursor: pointer; }
.luma-service-payments details:target { outline: 2px solid #0096b2; outline-offset: 4px; }

.luma-category-catalog .luma-category-hero::after {
    background: linear-gradient(75deg, #0096b2 5%, rgb(0 150 178 / 92%) 27%, rgb(0 150 178 / 15%) 78%),
        linear-gradient(0deg, rgb(0 150 178 / 65%), transparent 60%);
}
.luma-category-catalog .luma-category-hero a { text-underline-offset: .25em; }
.luma-category-catalog legend { color: #0096b2; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.luma-category-catalog .luma-catalog-option {
    padding: clamp(14px, 2vw, 22px);
    min-height: 90px;
    color: #0096b2;
    box-shadow: 0 8px 18px rgb(0 150 178 / 8%);
}
.luma-category-catalog .luma-catalog-option strong { align-self: end; }
.luma-category-catalog .luma-catalog-option:has(input:checked) {
    background: rgb(0 150 178 / 8%);
    border-color: #0096b2;
    box-shadow: inset 0 0 0 1px #0096b2, inset 4px 0 #f29499;
}
.luma-catalog-option:focus-within { outline: 2px solid #0096b2; outline-offset: 3px; }
.luma-catalog-actions { display: flex; justify-content: flex-end; padding-block: 10px; }
.luma-category-catalog .luma-catalog-actions .luma-service-cta { min-width: 145px; }
.luma-booked-service { border-inline-start: 4px solid #f29499; }

.crm-page .luma-crm-services {
    padding: clamp(12px, 2.5vw, 24px);
    border: 1px solid rgb(0 150 178 / 23%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgb(0 150 178 / 10%);
}
.crm-page .luma-crm-service-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    margin: 0 0 12px;
    background: linear-gradient(115deg, rgb(0 150 178 / 8%), #fff);
    border-inline-start: 4px solid #f29499;
    border-radius: 12px;
}
.crm-page .luma-crm-service-heading h2 { color: #0096b2; margin: 0; }
.crm-page .luma-crm-service-group {
    margin: 8px 0;
    padding: 0;
    border: 1px solid rgb(0 150 178 / 22%);
    border-radius: 12px;
}
.crm-page .luma-crm-service-group > summary {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #0096b2;
    cursor: pointer;
    list-style: none;
}
.crm-page .luma-crm-service-group > summary::-webkit-details-marker { display: none; }
.crm-page .luma-crm-service-group > summary::after { content: "+"; font-weight: 700; }
.crm-page .luma-crm-service-group[open] > summary::after { content: "−"; }
.crm-page .luma-crm-service-group > summary > :first-child { flex: 1; }
.crm-page .luma-crm-agenda-services > summary { color: #0096b2; cursor: pointer; }
.crm-page .luma-crm-service-list { list-style: none; margin: 0; padding: 0 14px; }
.crm-page .luma-crm-service-list > li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 0;
    border-top: 1px solid rgb(0 150 178 / 18%);
}
.crm-page .luma-crm-service-action { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.crm-page .luma-crm-services small { display: block; margin-top: 3px; }
.crm-page .luma-crm-service-state {
    border-radius: 999px;
    padding: 4px 10px;
    background: rgb(0 150 178 / 8%);
    color: #0096b2;
}
.crm-page .luma-crm-service-state.is-pending { box-shadow: inset 0 0 0 1px #f29499; }
.crm-page .luma-crm-charge { padding: 12px 16px; background: rgb(0 150 178 / 8%); border-radius: 0 0 12px 12px; }
.crm-page .luma-crm-charge p { margin-top: 0; }
@media (max-width: 530px) {
    .luma-catalog-actions .luma-service-cta { width: 100%; }
    .crm-page .luma-crm-service-group > summary { padding-inline: 10px; }
}

.luma-home .luma-care .luma-services { align-items: stretch; }
.luma-home .luma-care .luma-service .svc-body {
    flex: 1;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
}
.luma-home .luma-care .svc-body > .luma-icon { box-shadow: 0 4px 14px rgb(0 150 178 / 20%), 0 0 0 2px #f29499; }
.luma-home .luma-care .luma-services .svc-media { height: clamp(170px, 18vw, 260px); }
@media (max-width: 530px) {
    .luma-home .luma-care .luma-services .svc-media { height: clamp(172px, 49vw, 235px); }
    .luma-category-catalog .luma-catalog-actions .luma-service-cta { width: 100%; }
}

.luma-home .luma-care .luma-category-hero a.luma-catalog-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    color: #0096b2;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}
.luma-home .luma-care .luma-category-hero a.luma-catalog-back:hover {
    background: rgb(0 150 178 / 8%);
}
.luma-home .luma-care .luma-category-hero a.luma-catalog-back:focus-visible {
    outline-color: #fff;
}
.luma-catalog-option span {
    overflow-wrap: anywhere;
}
@media (max-width: 530px) {
    .luma-category-catalog .luma-catalog-actions .luma-service-cta {
        min-width: 0;
        width: 100%;
    }
}

.luma-home .luma-care .luma-category-catalog .luma-category-hero {
    min-height: clamp(210px, 24vw, 310px);
}
.luma-category-catalog .luma-category-hero img {
    object-position: center 24%;
}
.luma-category-catalog .luma-catalog-option {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    align-content: center;
    align-items: center;
    gap: 4px 10px;
    min-height: 100px;
    padding: 12px;
}
.luma-category-catalog .luma-catalog-option .luma-priced-service-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 38px;
    height: auto;
    display: block;
}
.luma-category-catalog .luma-catalog-option input[type="radio"] {
    grid-column: 3;
    grid-row: 1 / 3;
}
.luma-category-catalog .luma-catalog-option :is(span, strong, small) {
    grid-column: 2;
    overflow-wrap: anywhere;
}
.luma-category-catalog .luma-catalog-option span { grid-row: 1; }
.luma-category-catalog .luma-catalog-option strong { grid-row: 2; }
.luma-category-catalog .luma-catalog-option small { grid-row: 3; }

.pa-booking .pa-times:has(button[data-pa-time]:not([hidden])) ~ label:has(select[name="time"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.pa-booking .pa-times:has(button[data-pa-time]:not([hidden])) ~ label:has(select[name="time"]):focus-within {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
}

/* Keep the native time picker available without widening the mobile layout. */
@media (max-width: 600px) {
    html body .pa-booking .pa-times:has(button[data-pa-time]:not([hidden])) ~ label:has(select[name="time"]):not(:focus-within) {
        position: absolute !important;
        inset-inline-start: 0;
        min-inline-size: 0 !important;
        max-inline-size: 1px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    html body .pa-booking .pa-times ~ label:has(select[name="time"]) > select {
        min-inline-size: 0 !important;
        max-inline-size: 100% !important;
    }
}
