/**
 * Appointa Toolkit components: cards, forms, blocks, the booking widget.
 * Loaded only where used. Uses the Appointa theme variables (--apt-*) and falls
 * back to neutral values with any other theme. Logical properties = RTL-ready.
 */

.apt-block-services, .apt-block-team, .apt-block-testimonials, .apt-block-pricing, .apt-block-stats,
.apt-block-form, .apt-block-booking, .apt-form-wrap, .apt-listing, .apt-book, .apt-quickbook, .apt-manage, .apt-service-card {
	--_primary: var(--apt-primary, #1d4ed8);
	--_heading: var(--apt-heading, #0f172a);
	--_text: var(--apt-text, #334155);
	--_muted: var(--apt-muted, #64748b);
	--_surface: var(--apt-surface, #f5f7fa);
	--_border: var(--apt-border, #e2e8f0);
	--_bg: var(--apt-background, #fff);
	--_radius: var(--apt-radius, 12px);
	--_shadow: var(--apt-shadow, 0 10px 30px rgba(15, 23, 42, .08));
	--_gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Grid of cards ---------------------------------------------------------- */
.apt-cards { display: grid; grid-template-columns: repeat(var(--apt-cols, 3), minmax(0, 1fr)); gap: var(--_gap, 2rem); }
.apt-block-more { margin-block-start: 2rem; text-align: center; }

/* Fallback card + button for non-Appointa themes. */
.apt-card { display: flex; flex-direction: column; background: var(--_bg, #fff); border: 1px solid var(--_border, #e2e8f0); border-radius: var(--_radius, 12px); overflow: hidden; }
.apt-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem 1.5rem; flex: 1; }
.apt-card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.apt-card__title a { color: var(--_heading); text-decoration: none; }
.apt-card__title a:hover { color: var(--_primary); }
.apt-card__text { margin: 0; color: var(--_muted); }
.apt-placeholder { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--_surface), var(--_border)); }

/* Badges ----------------------------------------------------------------- */
.apt-badge { display: inline-block; padding: .3em .75em; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--_heading, #0f172a); background: rgba(127, 127, 127, .12); border-radius: 999px; }
.apt-badge--pending { color: #92400e; background: #fef3c7; }
.apt-badge--confirmed { color: #065f46; background: #d1fae5; }
.apt-badge--completed { color: #1e3a8a; background: #dbeafe; }
.apt-badge--cancelled { color: #991b1b; background: #fee2e2; }

/* Service card ------------------------------------------------------------ */
.apt-service-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-block-end: .5rem; color: var(--_primary); background: rgba(var(--apt-primary-rgb, 29, 78, 216), .1); border-radius: calc(var(--_radius) * .8); }
.apt-service-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.apt-service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.apt-service-card__price { margin: 0; font-weight: 600; color: var(--_heading); }
.apt-service-card .apt-link-arrow { display: inline-flex; align-items: center; gap: .35rem; margin-block-start: auto; padding-block-start: .5rem; font-weight: 600; color: var(--_primary); text-decoration: none; }
.apt-service-card--minimal { border: 0; background: transparent; }
.apt-service-card--minimal .apt-card__body { padding-inline: 0; }

/* Team card --------------------------------------------------------------- */
.apt-team-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--_surface); }
.apt-team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.apt-team-card__media .apt-placeholder { height: 100%; aspect-ratio: auto; }
.apt-team-card { text-align: center; }
.apt-team-card__role { margin: 0; color: var(--_muted); font-size: .9rem; }
.apt-team__social { display: flex; justify-content: center; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.apt-team__social a { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--_heading); border: 1px solid var(--_border); border-radius: 50%; }
.apt-team__social a:hover { color: #fff; background: var(--_primary); border-color: var(--_primary); }

/* Testimonial ------------------------------------------------------------- */
.apt-testimonial { margin: 0; padding: 1.75rem; gap: 1rem; }
.apt-testimonial__quote { margin: 0; padding: 0; border: 0; background: none; font-size: 1.05rem; line-height: 1.7; color: var(--_text); }
.apt-testimonial__quote p { margin: 0 0 .75em; }
.apt-testimonial__quote p:last-child { margin: 0; }
.apt-testimonial__author { display: flex; align-items: center; gap: .85rem; margin-block-start: auto; }
.apt-testimonial__author strong { display: block; color: var(--_heading); }
.apt-testimonial__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.apt-testimonial__initials { display: grid; flex: none; place-items: center; background: color-mix(in srgb, var(--_primary) 14%, var(--_bg)); color: var(--_primary); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.apt-testimonial__role { display: block; font-size: .875rem; color: var(--_muted); }
.apt-stars { display: inline-flex; gap: 2px; color: #cbd5e1; }
.apt-star.is-on { color: #f59e0b; }
.apt-star.is-on .apt-icon { fill: currentColor; }

/* Slider (scroll-snap) ---------------------------------------------------- */
.apt-slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--_gap) * (var(--apt-cols, 3) - 1)) / var(--apt-cols, 3)); gap: var(--_gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding-block-end: 4px; }
.apt-slider::-webkit-scrollbar { display: none; }
.apt-slider > * { scroll-snap-align: start; }
.apt-slider:focus-visible { outline: 2px solid var(--_primary); outline-offset: 4px; }
.apt-slider__nav { display: flex; justify-content: center; gap: .6rem; margin-block-start: 1.5rem; }
.apt-slider__btn { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--_heading); background: var(--_bg); border: 1px solid var(--_border); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s; }
.apt-slider__btn:hover:not(:disabled) { color: #fff; background: var(--_primary); border-color: var(--_primary); }
.apt-slider__btn:disabled { opacity: .4; cursor: default; }
.apt-slider-wrap.is-static .apt-slider__nav { display: none; }
.apt-slider__btn[data-apt-prev] .apt-icon { transform: scaleX(-1); }
[dir="rtl"] .apt-slider__btn[data-apt-prev] .apt-icon { transform: none; }
[dir="rtl"] .apt-slider__btn[data-apt-next] .apt-icon { transform: scaleX(-1); }

/* Pricing ----------------------------------------------------------------- */
.apt-plan { position: relative; padding: 2rem 1.75rem; gap: 1rem; }
.apt-plan.is-featured { border-color: var(--_primary); box-shadow: var(--_shadow); }
.apt-plan__badge { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; padding: .25em .7em; font-size: .75rem; font-weight: 600; color: #fff; background: var(--_primary); border-radius: 999px; }
.apt-plan__title { margin: 0; font-size: 1.15rem; }
.apt-plan__price { display: flex; align-items: baseline; gap: .15rem; margin: 0; color: var(--_heading); }
.apt-plan__currency { font-size: 1.25rem; font-weight: 600; }
.apt-plan__amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.apt-plan__period { margin-inline-start: .25rem; color: var(--_muted); }
.apt-plan__features { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.apt-plan__features li { display: flex; gap: .5rem; align-items: flex-start; }
.apt-plan__features .apt-icon { flex: none; margin-block-start: .2em; color: var(--_primary); }
.apt-plan .apt-btn { margin-block-start: auto; }

/* Stats ------------------------------------------------------------------- */
.apt-stats { display: grid; grid-template-columns: repeat(var(--apt-cols, 4), minmax(0, 1fr)); gap: var(--_gap); margin: 0; }
.apt-stat { display: flex; flex-direction: column-reverse; gap: .35rem; text-align: center; }
.apt-stat__value { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--_heading); font-variant-numeric: tabular-nums; }
.apt-stat__label { color: var(--_muted); }

/* Hero -------------------------------------------------------------------- */
.apt-hero { position: relative; display: flex; align-items: center; min-height: var(--apt-hero-min, 70vh); padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden; background: var(--apt-surface, #f5f7fa); }
.apt-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; }
.apt-hero--split .apt-hero__inner { grid-template-columns: 1.05fr 1fr; }
.apt-hero__content { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.apt-hero__title { margin: 0; font-size: clamp(2.3rem, 5.5vw, 4.25rem); line-height: 1.07; letter-spacing: -.02em; }
.apt-hero__text { margin: 0; max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--apt-muted, #64748b); }
.apt-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: .5rem; }
.apt-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: calc(var(--apt-radius, 12px) * 1.5); }
.apt-hero__bg { position: absolute; inset: 0; }
.apt-hero__bg img, .apt-hero__video { width: 100%; height: 100%; object-fit: cover; }
.apt-hero--cover.has-media .apt-hero__bg::after, .apt-hero--centered.has-media .apt-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(2, 6, 23, var(--apt-hero-overlay, .5)); }
.apt-hero--cover.has-media, .apt-hero--centered.has-media { color: #fff; background: #0f172a; }
.apt-hero--cover.has-media .apt-hero__title, .apt-hero--centered.has-media .apt-hero__title, .apt-hero--cover.has-media .apt-eyebrow, .apt-hero--centered.has-media .apt-eyebrow { color: #fff; }
.apt-hero--cover.has-media .apt-hero__text, .apt-hero--centered.has-media .apt-hero__text { color: rgba(255, 255, 255, .85); }
.apt-hero--cover.has-media .apt-btn--outline, .apt-hero--centered.has-media .apt-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.apt-hero--centered .apt-hero__content { align-items: center; text-align: center; margin-inline: auto; max-width: 52rem; }
.apt-eyebrow { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--apt-primary, #1d4ed8); }

/* CTA --------------------------------------------------------------------- */
.apt-cta { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); border-radius: calc(var(--apt-radius, 12px) * 1.5); color: #fff; background: var(--apt-primary, #1d4ed8); }
.apt-cta--dark { background: var(--apt-secondary, #0f172a); }
.apt-cta--light { color: inherit; background: var(--apt-surface, #f5f7fa); }
.apt-cta--image { background: #0f172a; }
.apt-cta__bg { position: absolute; inset: 0; }
.apt-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.apt-cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.apt-cta__content { flex: 1 1 26rem; }
.apt-cta__title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: inherit; }
.apt-cta:not(.apt-cta--light) .apt-cta__title { color: #fff; }
.apt-cta__text { margin: 0; opacity: .88; }
.apt-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.apt-cta:not(.apt-cta--light) .apt-btn:not(.apt-btn--outline) { color: var(--apt-primary, #1d4ed8); background: #fff; border-color: #fff; }
.apt-cta--dark .apt-btn:not(.apt-btn--outline), .apt-cta--image .apt-btn:not(.apt-btn--outline) { color: #fff; background: var(--apt-primary, #1d4ed8); border-color: var(--apt-primary, #1d4ed8); }
.apt-cta:not(.apt-cta--light) .apt-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .55); }

/* Fields ------------------------------------------------------------------ */
.apt-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.apt-field > label, .apt-field__label { font-size: .8rem; font-weight: 600; color: var(--_heading); }
.apt-field input:not([type="checkbox"]), .apt-field select, .apt-field textarea { width: 100%; min-width: 0; min-height: 46px; padding: .6rem .8rem; font: inherit; color: var(--_heading); background: var(--_bg); border: 1px solid var(--_border); border-radius: calc(var(--_radius) * .6); }
.apt-field textarea { min-height: 140px; resize: vertical; }
.apt-field input:focus, .apt-field select:focus, .apt-field textarea:focus { outline: 2px solid var(--_primary); outline-offset: 1px; border-color: var(--_primary); }

/* Forms ------------------------------------------------------------------- */
.apt-form-wrap { scroll-margin-top: 120px; }
.apt-form__title { margin: 0 0 .5rem; }
.apt-form__intro { margin: 0 0 1.25rem; color: var(--_muted); }
.apt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-block-end: 1.25rem; }
.apt-field--wide { grid-column: 1 / -1; }
.apt-required { color: #b91c1c; }
.apt-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; font-weight: 400 !important; cursor: pointer; }
.apt-check input { margin-block-start: .25em; width: 18px; height: 18px; accent-color: var(--_primary); flex: none; }
.apt-field.has-error input, .apt-field.has-error select, .apt-field.has-error textarea { border-color: #b91c1c; }
.apt-field__error { margin: 0; font-size: .85rem; color: #b91c1c; }
.apt-notice { margin-block-end: 1.25rem; padding: .9rem 1.1rem; border-radius: calc(var(--_radius) * .6); border-inline-start: 4px solid; }
.apt-notice--success { color: #14532d; background: #f0fdf4; border-color: #16a34a; }
.apt-notice--error { color: #7f1d1d; background: #fef2f2; border-color: #dc2626; }
.apt-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Video ------------------------------------------------------------------- */
.apt-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--apt-radius, 12px); overflow: hidden; }
.apt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
	.apt-cards, .apt-stats { grid-template-columns: repeat(min(var(--apt-cols, 3), 2), minmax(0, 1fr)); }
	.apt-slider { grid-auto-columns: calc((100% - var(--_gap)) / 2); }
}
@media (max-width: 900px) {
	.apt-hero--split .apt-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.apt-cards, .apt-form__grid { grid-template-columns: 1fr; }
	.apt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apt-slider { grid-auto-columns: 86%; }
}
@media (prefers-reduced-motion: reduce) {
	.apt-slider { transition: none; scroll-behavior: auto; }
}

/* Features / Icon Boxes ------------------------------------------------ */
.apt-features { display: grid; grid-template-columns: repeat(var(--apt-cols, 3), minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.apt-feature { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.apt-feature__title { margin: 0 0 .4rem; font-size: 1.15rem; }
.apt-feature__text { margin: 0; color: var(--apt-muted, #64748b); line-height: 1.65; }
.apt-feature__icon { display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: calc(var(--apt-radius, 12px) * .9); background: rgba(var(--apt-primary-rgb), .1); color: var(--apt-primary); transition: transform .3s var(--apt-ease, ease), background-color .3s, color .3s; }
.apt-features--icon-solid .apt-feature__icon { background: var(--apt-primary); color: #fff; box-shadow: 0 12px 24px -12px rgba(var(--apt-primary-rgb), .8); }
.apt-features--icon-line .apt-feature__icon { width: auto; height: auto; background: none; justify-content: start; }
.apt-features--cards .apt-feature { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--apt-border); border-radius: var(--apt-radius); background: var(--apt-background); transition: transform .3s var(--apt-ease, ease), box-shadow .3s, border-color .3s; }
.apt-features--cards .apt-feature:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--apt-shadow); }
.apt-features--cards .apt-feature:hover .apt-feature__icon { background: var(--apt-primary); color: #fff; }

.apt-features--steps { counter-reset: apt-step; }
.apt-features--steps .apt-feature { padding-top: .25rem; }
.apt-feature__num { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid var(--apt-primary); border-radius: 50%; background: var(--apt-background); color: var(--apt-primary); font-family: var(--apt-font-heading); font-size: 1.05rem; font-weight: 800; position: relative; z-index: 1; }
.apt-features--steps .apt-feature:not(:last-child)::after { content: ""; position: absolute; top: 2rem; inset-inline: 4.5rem -.75rem; border-top: 2px dashed var(--apt-border); }
.apt-features--steps .apt-feature:hover .apt-feature__num { background: var(--apt-primary); color: #fff; }

.apt-features--strip { gap: 0; border: 1px solid var(--apt-border); border-radius: var(--apt-radius); background: var(--apt-background); box-shadow: var(--apt-shadow); overflow: hidden; }
.apt-features--strip .apt-feature { flex-direction: row; align-items: center; gap: .9rem; padding: 1.4rem 1.5rem; }
.apt-features--strip .apt-feature + .apt-feature { border-inline-start: 1px solid var(--apt-border); }
.apt-features--strip .apt-feature__icon { width: 3rem; height: 3rem; }
.apt-features--strip .apt-feature__title { margin: 0; font-size: 1rem; }
.apt-features--strip .apt-feature__text { font-size: .88rem; line-height: 1.45; }

@media (max-width: 1023px) {
	.apt-features { grid-template-columns: repeat(min(var(--apt-cols, 3), 2), minmax(0, 1fr)); }
	.apt-features--strip .apt-feature:nth-child(odd) { border-inline-start: 0; }
	.apt-features--strip .apt-feature:nth-child(n+3) { border-top: 1px solid var(--apt-border); }
	.apt-features--steps .apt-feature::after { display: none; }
}
@media (max-width: 600px) {
	.apt-features { grid-template-columns: minmax(0, 1fr); }
	.apt-features--strip .apt-feature { border-inline-start: 0 !important; }
	.apt-features--strip .apt-feature + .apt-feature { border-top: 1px solid var(--apt-border); }
}
.apt-block-slider { margin-block: 0; }

/* Tablet: centre a lone last card when a 3-up row drops to 2 columns. */
@media (min-width: 641px) and (max-width: 1024px) {
	.apt-cards:not(.apt-cards--list) > :last-child:nth-child(odd):not(:only-child) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - var(--_gap, 2rem) / 2);
	}
}


.apt-btn--sm { padding: .55rem 1.05rem; font-size: .875rem; min-height: 0; }

/* ==========================================================================
   Booking widget (Appointa). Steps on top, the panel on the left and a
   sticky summary on the right. Colors follow the theme options.
   ========================================================================== */
.apt-book { --_tint: rgba(var(--apt-primary-rgb, 29, 78, 216), .08); --_tint2: rgba(var(--apt-primary-rgb, 29, 78, 216), .16); --_r: max(10px, calc(var(--_radius) * 1.1)); color: var(--_text); scroll-margin-top: 110px; }
.apt-book__head { max-width: 44rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.apt-book__title { margin: 0 0 .4rem; }
.apt-book__intro { margin: 0; color: var(--_muted); }
.apt-book__frame { container: aptbook / inline-size; position: relative; background: var(--_bg); border: 1px solid var(--_border); border-radius: calc(var(--_r) * 1.4); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -36px rgba(var(--apt-secondary-rgb, 15, 23, 42), .45); overflow: hidden; }

/* Steps */
.apt-book__steps { display: flex; gap: .25rem; margin: 0; padding: .9rem clamp(1rem, 3vw, 1.75rem); list-style: none; background: linear-gradient(180deg, var(--_tint), transparent); border-block-end: 1px solid var(--_border); overflow-x: auto; scrollbar-width: none; }
.apt-book__steps::-webkit-scrollbar { display: none; }
.apt-book__step { position: relative; display: flex; flex: 1 1 0; align-items: center; gap: .55rem; min-width: max-content; padding-inline-end: 1.25rem; color: var(--_muted); font-size: .9rem; font-weight: 600; }
.apt-book__step:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 1.25rem; height: 2px; margin-inline-start: .35rem; border-radius: 2px; background: var(--_border); }
.apt-book__num { display: inline-grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--_border); background: var(--_bg); font-size: .82rem; font-variant-numeric: tabular-nums; transition: background .25s, border-color .25s, color .25s; }
.apt-book__step.is-current { color: var(--_heading); }
.apt-book__step.is-current .apt-book__num { color: #fff; border-color: var(--_primary); background: var(--_primary); box-shadow: 0 0 0 5px var(--_tint2); }
.apt-book__step.is-done .apt-book__num { color: var(--_primary); border-color: var(--_primary); background: var(--_tint); font-size: 0; }
.apt-book__step.is-done .apt-book__num::before { content: "✓"; font-size: .85rem; }
.apt-book__step.is-done::after { background: var(--_primary); }
.apt-book.is-done .apt-book__step .apt-book__num { color: var(--_primary); border-color: var(--_primary); background: var(--_tint); font-size: 0; }
.apt-book.is-done .apt-book__step .apt-book__num::before { content: "✓"; font-size: .85rem; }

/* Body */
.apt-book__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.apt-book__body:has(.apt-book__summary[hidden]) { grid-template-columns: minmax(0, 1fr); }
.apt-book__panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); }
.apt-book__h { margin: 0 0 1.25rem; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.apt-book__h:focus { outline: none; }
.apt-book__back { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 .6rem; padding: .25rem 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--_muted); background: none; border: 0; cursor: pointer; }
.apt-book__back:hover { color: var(--_primary); }
.apt-book__skeleton { display: grid; gap: .75rem; }
.apt-book__skeleton span { display: block; height: 64px; border-radius: var(--_r); background: linear-gradient(90deg, var(--_surface), var(--_bg), var(--_surface)); background-size: 200% 100%; animation: aptShimmer 1.2s infinite linear; }
@keyframes aptShimmer { to { background-position: -200% 0; } }

/* Choices: services and people */
.apt-book__choices { display: grid; gap: .7rem; }
.apt-book__choices--staff { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.apt-choice { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.1rem; font: inherit; text-align: start; color: var(--_text); background: var(--_bg); border: 1.5px solid var(--_border); border-radius: var(--_r); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s; }
.apt-choice:hover { border-color: var(--_primary); box-shadow: 0 10px 24px -18px rgba(var(--apt-primary-rgb, 29, 78, 216), .9); transform: translateY(-1px); }
.apt-choice:focus-visible { outline: 3px solid var(--_tint2); outline-offset: 2px; border-color: var(--_primary); }
.apt-choice.is-selected { border-color: var(--_primary); background: var(--_tint); }
.apt-choice__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; color: var(--_primary); background: var(--_tint); border-radius: calc(var(--_r) * .8); }
.apt-choice__main { display: flex; flex: 1 1 auto; flex-direction: column; gap: .15rem; min-width: 0; }
.apt-choice__title { color: var(--_heading); font-weight: 700; line-height: 1.3; }
.apt-choice__text { color: var(--_muted); font-size: .88rem; line-height: 1.45; }
.apt-choice__meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .85rem; font-weight: 600; color: var(--_heading); white-space: nowrap; }
.apt-choice__meta span:first-child { color: var(--_muted); font-weight: 500; }
.apt-choice__photo { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.apt-choice__photo--empty { display: grid; place-items: center; color: var(--_primary); background: var(--_tint); font-weight: 800; }
.apt-choice--any .apt-choice__photo--empty { color: #fff; background: var(--_primary); }

/* Calendar + slots */
.apt-book__when { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.apt-cal { padding: 1rem; border: 1px solid var(--_border); border-radius: var(--_r); background: var(--_bg); transition: opacity .2s; }
.apt-cal.is-loading { opacity: .55; }
.apt-cal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .6rem; }
.apt-cal__month { color: var(--_heading); }
.apt-cal__nav { display: inline-grid; place-items: center; width: 36px; height: 36px; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--_heading); background: var(--_surface); border: 0; border-radius: 50%; cursor: pointer; }
.apt-cal__nav:hover:not(:disabled) { color: #fff; background: var(--_primary); }
.apt-cal__nav:disabled { opacity: .35; cursor: default; }
.apt-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.apt-cal__dow { padding-block: .3rem; font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; color: var(--_muted); }
.apt-cal__day { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; font: inherit; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--_muted); background: none; border: 0; border-radius: 50%; opacity: .45; cursor: default; }
.apt-cal__day.is-open { opacity: 1; color: var(--_heading); font-weight: 700; cursor: pointer; }
.apt-cal__day.is-open::after { content: ""; position: absolute; inset-block-end: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--_primary); }
.apt-cal__day.is-open:hover { background: var(--_tint); }
.apt-cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--_border); }
.apt-cal__day.is-selected, .apt-cal__day.is-selected:hover { color: #fff; background: var(--_primary); }
.apt-cal__day.is-selected::after { background: #fff; }
.apt-cal__day:focus-visible { outline: 3px solid var(--_tint2); outline-offset: 1px; }
.apt-slots { min-width: 0; }
.apt-slots__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem; margin: 0 0 1rem; color: var(--_muted); }
.apt-slots__date strong { color: var(--_heading); }
.apt-slots__hint { margin: 0; padding: 1.25rem; color: var(--_muted); background: var(--_surface); border-radius: var(--_r); }
.apt-slots__group + .apt-slots__group { margin-block-start: 1.1rem; }
.apt-slots__part { display: block; margin-block-end: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--_muted); }
.apt-slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.apt-slot { min-height: 44px; padding: .5rem .4rem; font: inherit; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--_heading); background: var(--_bg); border: 1.5px solid var(--_border); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.apt-slot:hover { color: var(--_primary); border-color: var(--_primary); background: var(--_tint); }
.apt-slot.is-selected { color: #fff; border-color: var(--_primary); background: var(--_primary); }
.apt-slot:active { transform: scale(.97); }
.apt-slot:focus-visible { outline: 3px solid var(--_tint2); outline-offset: 1px; }

/* Details form */
.apt-book__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.apt-book__field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.apt-book__field--wide { grid-column: 1 / -1; }
.apt-book__field label { font-size: .88rem; font-weight: 600; color: var(--_heading); }
.apt-book__field input:not([type="checkbox"]), .apt-book__field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--_heading); background: var(--_bg); border: 1.5px solid var(--_border); border-radius: calc(var(--_r) * .75); transition: border-color .2s, box-shadow .2s; }
.apt-book__field textarea { min-height: 96px; resize: vertical; }
.apt-book__field input:focus, .apt-book__field textarea:focus { outline: none; border-color: var(--_primary); box-shadow: 0 0 0 4px var(--_tint2); }
.apt-book__consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--_text); line-height: 1.5; }
.apt-book__consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-block-start: .15rem; accent-color: var(--_primary); }
.apt-req { color: #dc2626; }
.apt-book__msg { grid-column: 1 / -1; color: #b91c1c; font-weight: 600; }
.apt-book__msg:empty { display: none; }
.apt-book__actions { display: flex; flex-wrap: wrap; gap: .75rem; grid-column: 1 / -1; margin: .25rem 0 0; }
.apt-book__submit { min-width: 12rem; justify-content: center; }
.apt-book__submit:disabled { opacity: .7; cursor: progress; }

/* Summary */
.apt-book__summary { position: sticky; top: 100px; margin: clamp(1rem, 2vw, 1.5rem); margin-inline-start: 0; padding: 1.25rem 1.35rem; background: var(--_surface); border-radius: var(--_r); }
.apt-book__sumtitle { margin: 0 0 .85rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--_muted); }
.apt-book__dl { display: grid; gap: .8rem; margin: 0; }
.apt-book__dl > div { display: grid; gap: .15rem; }
.apt-book__dl dt { font-size: .78rem; font-weight: 600; color: var(--_muted); }
.apt-book__dl dd { margin: 0; color: var(--_heading); font-weight: 600; line-height: 1.4; }
.apt-book__change { padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--_primary); background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.apt-book__price { margin: 1rem 0 0; padding-block-start: .9rem; border-block-start: 1px dashed var(--_border); font-family: var(--apt-font-heading, inherit); font-size: 1.5rem; font-weight: 800; color: var(--_heading); }

/* Done */
.apt-book__done { max-width: 34rem; margin-inline: auto; padding-block: 1rem; text-align: center; }
.apt-book__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-block-end: 1rem; font-size: 1.8rem; color: #fff; background: #16a34a; border-radius: 50%; box-shadow: 0 0 0 10px rgba(22, 163, 74, .14); animation: aptPop .45s cubic-bezier(.2, .9, .3, 1.3); }
.apt-book__done--pending .apt-book__tick { background: var(--_primary); box-shadow: 0 0 0 10px var(--_tint2); }
@keyframes aptPop { from { transform: scale(.4); opacity: 0; } }
.apt-book__done .apt-book__dl { margin: 1.25rem 0; padding: 1.1rem 1.25rem; text-align: start; background: var(--_surface); border-radius: var(--_r); }
.apt-book__done .apt-book__actions { justify-content: center; }
.apt-btn--ghost { color: var(--_heading); background: transparent; border-color: transparent; }

/* Quick booking card + floating badges (hero) */
.apt-quickbook { display: grid; gap: .5rem; width: 100%; max-width: 30rem; margin-block-start: .75rem; padding: .9rem; background: var(--_bg); border: 1px solid var(--_border); border-radius: calc(var(--_radius) * 1.2); box-shadow: 0 24px 48px -30px rgba(var(--apt-secondary-rgb, 15, 23, 42), .55); text-align: start; }
.apt-quickbook__label { padding-inline: .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--_muted); }
.apt-quickbook__row { display: flex; gap: .5rem; }
.apt-quickbook select { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: .6rem .85rem; font: inherit; color: var(--_heading); background: var(--_surface); border: 1px solid transparent; border-radius: calc(var(--_radius) * .8); }
.apt-quickbook select:focus { outline: 2px solid var(--_primary); outline-offset: 1px; }
.apt-quickbook .apt-btn { flex: none; }
.apt-hero__media { position: relative; }
.apt-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; margin: 0; padding: .7rem 1rem; font-size: .9rem; line-height: 1.3; color: var(--apt-heading, #0f172a); background: rgba(255, 255, 255, .94); border-radius: 16px; box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.apt-float strong { display: block; font-size: 1rem; }
.apt-float__text { display: block; font-size: .78rem; color: #64748b; }
.apt-float--next { inset-block-end: 8%; inset-inline-start: -6%; }
.apt-float__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: aptPulse 2s infinite; }
@keyframes aptPulse { 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.apt-float--rating { inset-block-start: 7%; inset-inline-end: -4%; flex-wrap: wrap; max-width: 15rem; gap: .2rem .5rem; }
.apt-float--rating strong { font-size: 1.4rem; line-height: 1; }
.apt-float__stars { color: #f59e0b; letter-spacing: .05em; }
.apt-float--rating .apt-float__text { flex-basis: 100%; }
.apt-hero--cover .apt-quickbook, .apt-hero--centered .apt-quickbook { color: var(--_text); }
.apt-hero--centered .apt-quickbook { margin-inline: auto; }

/* Customer manage page */
.apt-manage { display: flex; justify-content: center; }
.apt-manage__card { width: 100%; max-width: 40rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--_bg); border: 1px solid var(--_border); border-radius: calc(var(--_radius) * 1.4); box-shadow: var(--_shadow); }
.apt-manage__kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--_muted); }
.apt-manage__title { margin: 0 0 .75rem; }
.apt-manage__list { display: grid; gap: .9rem; margin: 1.5rem 0; padding: 1.25rem; background: var(--_surface); border-radius: var(--_radius); }
.apt-manage__list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.apt-manage__list dt { color: var(--_muted); }
.apt-manage__list dd { margin: 0; color: var(--_heading); font-weight: 600; }
.apt-manage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.apt-manage__actions form { margin: 0; }
.apt-manage__note { margin: 0; flex-basis: 100%; color: var(--_muted); font-size: .9rem; }
.apt-manage .apt-btn--danger, .apt-btn--danger { color: #fff; background: #dc2626; border-color: #dc2626; }
.apt-manage .apt-btn--danger:hover, .apt-btn--danger:hover { color: #fff; background: #b91c1c; border-color: #b91c1c; }
.apt-manage .apt-notice { margin-block: 1rem 0; }

/* Service card details */
.apt-service-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.apt-service-card__meta li { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; font-size: .82rem; font-weight: 600; color: var(--_heading); background: var(--_surface); border-radius: 999px; }
.apt-service-card__meta .apt-icon { color: var(--_primary); }
.apt-service-card__price--free { color: #15803d !important; }
.apt-service-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-block-start: auto; padding-block-start: 1rem; }
.apt-service-card__actions .apt-link-arrow { margin: 0; padding: 0; }
.apt-team-card__book { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-block-start: .6rem; font-weight: 700; font-size: .92rem; color: var(--_primary, var(--apt-primary)); text-decoration: none; }
.apt-team-card__book:hover { text-decoration: underline; text-underline-offset: .2em; }

@container aptbook (max-width: 820px) {
	.apt-book__step { padding-inline-end: .6rem; }
	.apt-book__step:not(:last-child)::after { min-width: .75rem; }
	.apt-book__step:not(.is-current) .apt-book__label { display: none; }
}
@media (max-width: 960px) {
	.apt-book__body { grid-template-columns: minmax(0, 1fr); }
	.apt-book__summary { position: static; order: -1; margin: 1rem 1rem 0; }
	.apt-book__when { grid-template-columns: minmax(0, 1fr); }
	.apt-cal { max-width: 420px; }
}
@media (max-width: 600px) {
	.apt-book__step .apt-book__label { display: none; }
	.apt-book__step.is-current .apt-book__label { display: inline; }
	.apt-book__form { grid-template-columns: minmax(0, 1fr); }
	.apt-choice { padding: .85rem; gap: .75rem; }
	.apt-choice__text { display: none; }
	.apt-quickbook__row { flex-direction: column; }
	.apt-float--next { inset-inline-start: 4%; }
	.apt-float--rating { inset-inline-end: 4%; }
	.apt-manage__list > div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.apt-float__dot, .apt-book__tick, .apt-book__skeleton span { animation: none; }
	.apt-choice, .apt-slot { transition: none; }
}
