/* ==========================================================================
   NHÓM ELEMENT SPA (inc/elements/spa.php): about · services · stats · marquee · before-after · testimonials · faq · team · booking
   Màu/chữ/bo góc lấy từ biến :root của bed-base.css để đổi brand chỉ cần sửa biến.
   Flatsome ép  .flickity-slider > div:not(.col){ width:100% !important }  → mọi ô slider khai báo CẢ .bed-slider > div.X và .flickity-slider > div.X
   ========================================================================== */

/* ---------- Khối tiêu đề chung ---------- */
.bed-sp-head { max-width: 760px; margin: 0 0 24px; }
.bed-sp-head.text-center { margin-inline: auto; text-align: center; }
.bed-sp-pill {
	display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 9999px;
	background: var(--bed-accent); color: var(--bed-primary);
	font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.bed-sp-title {
	margin: 0 0 12px; font-family: var(--bed-font-heading); font-weight: 600; font-size: 26px; line-height: 1.25;
	letter-spacing: normal; color: var(--bed-fg); text-transform: none; text-wrap: balance;
}
@media (min-width: 768px) { .bed-sp-title { font-size: 34px; } }
.bed-sp-title span { color: var(--bed-secondary); }
.bed-sp-desc { margin: 0; font-size: 14px; line-height: 22px; color: var(--bed-n300); }
@media (min-width: 768px) { .bed-sp-desc { font-size: 15px; line-height: 24px; } }

/* ---------- Về chúng tôi ---------- */
.bed-about { display: grid; gap: 24px; padding: 16px; border-radius: 24px; background: var(--bed-accent); }
@media (min-width: 768px) { .bed-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; border-radius: 32px; } }
@media (min-width: 1200px) { .bed-about { padding: 40px 48px; } }
.bed-about__media { position: relative; }
.bed-about__imgs { display: flex; gap: 12px; }
.bed-about__imgs img { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: auto; border-radius: 20px; object-fit: cover; }
.bed-about__call {
	position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
	border-radius: 16px; background: var(--bed-secondary); box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
body.bed-theme .bed-about__call, body.bed-theme .bed-about__call:hover { color: #fff; }
.bed-about__call-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); flex: none; }
.bed-about__call small { display: block; font-size: 12px; line-height: 16px; opacity: .9; }
.bed-about__call b { display: block; font-size: 18px; line-height: 24px; font-weight: 600; }
.bed-about__body .bed-sp-head { margin-bottom: 16px; }
.bed-about__feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 24px !important; padding: 0; list-style: none; }
.bed-about__feats li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--bed-fg); }
.bed-about__feat-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.bed-about__feat-ico img { display: block; width: 28px; height: 28px; object-fit: contain; }

/* ---------- Dịch vụ (slider) ---------- */
.bed-sv__slider { margin: 0 -8px; }
.bed-sv__slider:not(.flickity-enabled) { display: flex; overflow: hidden; }
.bed-sv__slider > div.bed-sv__cell, .flickity-slider > div.bed-sv__cell { width: 86% !important; margin: 0; padding: 8px; flex: none; box-sizing: border-box; }
@media (min-width: 768px) { .bed-sv__slider > div.bed-sv__cell, .flickity-slider > div.bed-sv__cell { width: calc(100% / var(--bed-sv-cols-md, 2)) !important; } }
@media (min-width: 1024px) { .bed-sv__slider > div.bed-sv__cell, .flickity-slider > div.bed-sv__cell { width: calc(100% / var(--bed-sv-cols, 3)) !important; } }
.bed-sv { height: 100%; padding: 12px 12px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--bed-n50); text-align: center; transition: box-shadow .25s, transform .25s; }
.bed-sv:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.bed-sv__image { overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 2; background: var(--bed-n50); }
.bed-sv__image img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .4s; }
.bed-sv:hover .bed-sv__image img { transform: scale(1.05); }
.bed-sv__icon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px auto 8px; border-radius: 50%; background: var(--bed-accent); border: 4px solid #fff; }
.bed-sv__icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.bed-sv__title { margin: 0 0 8px; padding: 0 8px; font-family: var(--bed-font-heading); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--bed-fg); text-transform: none; letter-spacing: normal; }
.bed-sv__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0 0 12px; padding: 0 8px; font-size: 14px; line-height: 22px; color: var(--bed-n300); }
body.bed-theme .bed-sv__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bed-primary); }
body.bed-theme .bed-sv__more:hover { color: var(--bed-secondary); }

/* ---------- Số liệu ---------- */
.bed-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 16px; border-radius: 24px; background: var(--bed-accent); }
@media (min-width: 1024px) { .bed-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 28px 24px; } .bed-stats__item + .bed-stats__item { border-left: 1px solid rgba(var(--bed-primary-rgb), .15); } }
.bed-stats__item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 4px; }
@media (min-width: 1024px) { .bed-stats__item { justify-content: center; gap: 12px; padding: 0 8px; } }
.bed-stats__ico { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; }
@media (min-width: 768px) { .bed-stats__ico { width: 56px; height: 56px; } }
.bed-stats__ico img { display: block; width: 32px; height: 32px; object-fit: contain; }
.bed-stats__num { font-family: var(--bed-font-heading); font-size: 24px; line-height: 1.1; font-weight: 700; color: var(--bed-primary); white-space: nowrap; }
@media (min-width: 768px) { .bed-stats__num { font-size: 32px; } }
.bed-stats__label { font-size: 13px; line-height: 18px; color: var(--bed-n300); }

/* ---------- Dải chữ chạy ---------- */
.bed-sp-marquee { overflow: hidden; }
.bed-mq { overflow: hidden; }
.bed-mq__track { display: flex; width: max-content; animation: bedMq var(--bed-mq-speed, 40s) linear infinite; }
.bed-mq__set { display: flex; align-items: center; flex: none; }
.bed-mq__word { flex: none; padding: 0 24px; font-family: var(--bed-font-heading); font-size: 40px; line-height: 1.2; font-weight: 700; text-transform: uppercase; white-space: nowrap; color: var(--bed-primary); }
@media (min-width: 768px) { .bed-mq__word { font-size: 64px; } }
.bed-mq__word.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--bed-primary); }
.bed-mq__sep { flex: none; display: flex; color: var(--bed-secondary); }
.bed-mq:hover .bed-mq__track { animation-play-state: paused; }
@keyframes bedMq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bed-mq__track { animation: none; } }

/* ---------- Trước / Sau ---------- */
.bed-ba { display: grid; gap: 24px; }
@media (min-width: 768px) { .bed-ba { gap: 32px; } }
.bed-ba__row { display: grid; gap: 12px; }
@media (min-width: 1024px) { .bed-ba__row { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; } .bed-ba__row.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); } .bed-ba__row.is-flip .bed-ba__cmp { order: 2; } }
.bed-ba__cmp { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 821 / 492; background: var(--bed-n50); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.bed-ba__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.bed-ba__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--bed-ba-pos, 50%)) 0 0); }
.bed-ba__cmp::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--bed-ba-pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.bed-ba__handle {
	position: absolute; z-index: 2; top: 50%; left: var(--bed-ba-pos, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
	display: flex; align-items: center; justify-content: center; gap: 2px; border: 3px solid #fff; border-radius: 50%;
	background: var(--bed-primary); color: #fff; cursor: ew-resize; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.bed-ba__handle svg { width: 10px; height: 10px; }
.bed-ba__handle:focus-visible { outline: 2px solid var(--bed-secondary); outline-offset: 2px; }
.bed-ba__tag { position: absolute; z-index: 1; top: 12px; padding: 6px 12px; border-radius: 9999px; background: var(--bed-primary); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; pointer-events: none; }
.bed-ba__tag--before { left: 12px; } .bed-ba__tag--after { right: 12px; }
.bed-ba__info { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 24px; color: #fff; overflow: hidden; }
@media (min-width: 1024px) { .bed-ba__info { padding: 32px; } }
.bed-ba__info--gold { background: var(--bed-secondary); }
.bed-ba__info--green { background: var(--bed-primary); }
.bed-ba__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bed-ba__top img { display: block; width: 44px; height: 44px; object-fit: contain; }
.bed-ba__num { font-family: var(--bed-font-heading); font-size: 64px; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.bed-ba__title { margin: 0 0 8px; font-family: var(--bed-font-heading); font-size: 22px; line-height: 1.3; font-weight: 600; color: #fff; text-transform: none; letter-spacing: normal; }
.bed-ba__desc { margin: 0 0 16px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .9); }
body.bed-theme .bed-ba__more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
body.bed-theme .bed-ba__more:hover { color: #fff; opacity: .85; }

/* ---------- Khách hàng nói gì ---------- */
.bed-ts { padding: 28px 12px 40px; border-radius: 24px; background: var(--bed-primary); color: #fff; overflow: hidden; }
@media (min-width: 768px) { .bed-ts { padding: 40px 32px 56px; border-radius: 32px; } }
.bed-ts__head { display: grid; gap: 20px; margin-bottom: 24px; padding: 0 4px; }
@media (min-width: 1024px) { .bed-ts__head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; margin-bottom: 32px; } }
.bed-ts .bed-sp-head { margin: 0; max-width: 560px; }
.bed-ts .bed-sp-pill { background: rgba(255, 255, 255, .14); color: #fff; }
.bed-ts .bed-sp-title { color: #fff; }
.bed-ts .bed-sp-title span { color: #e3c487; }
.bed-ts .bed-sp-desc { color: rgba(255, 255, 255, .78); }
.bed-ts__rate { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bed-ts__rate b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
.bed-ts__score { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bed-ts__faces { display: flex; align-items: center; }
.bed-ts__faces img { display: block; width: 40px; height: 40px; margin-left: -10px; border: 2px solid var(--bed-primary); border-radius: 50%; object-fit: cover; }
.bed-ts__faces img:first-child { margin-left: 0; }
.bed-ts__count { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; background: var(--bed-secondary); font-size: 12px; font-weight: 600; }
.bed-ts__slider { margin: 0 -8px; }
.bed-ts__slider:not(.flickity-enabled) { display: flex; overflow: hidden; }
.bed-ts__slider > div.bed-ts__cell, .flickity-slider > div.bed-ts__cell { width: 88% !important; margin: 0; padding: 8px; flex: none; box-sizing: border-box; }
@media (min-width: 768px) { .bed-ts__slider > div.bed-ts__cell, .flickity-slider > div.bed-ts__cell { width: 50% !important; } }
@media (min-width: 1100px) { .bed-ts__slider > div.bed-ts__cell, .flickity-slider > div.bed-ts__cell { width: 33.3333% !important; } }
.bed-ts__card { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; padding: 20px; border-radius: 20px; background: #fff; color: var(--bed-fg); }
.bed-ts__card blockquote { flex: 1; margin: 12px 0 16px; padding: 0; border: 0; font-size: 14px; line-height: 22px; color: var(--bed-n400); font-style: normal; }
.bed-ts__card figcaption { display: flex; align-items: center; gap: 12px; }
.bed-ts__avatar { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.bed-ts__card figcaption b { display: block; font-size: 14px; line-height: 20px; color: var(--bed-primary); }
.bed-ts__card figcaption small { display: block; font-size: 13px; line-height: 18px; color: var(--bed-n200); }
.bed-ts__quote { position: absolute; right: 16px; bottom: 4px; font-family: var(--bed-font-heading); font-size: 64px; line-height: 1; color: var(--bed-secondary); opacity: .55; pointer-events: none; }
.bed-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.bed-stars i { display: block; width: 16px; height: 16px; background: linear-gradient(90deg, #f2b01e var(--f, 100%), rgba(160, 160, 160, .45) var(--f, 100%)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.6 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.6 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bed-ts .bed-slider .flickity-page-dots .dot { background: rgba(255, 255, 255, .45); }
.bed-ts .bed-slider .flickity-page-dots .dot.is-selected { background: #fff; }

/* ---------- Câu hỏi thường gặp ---------- */
.bed-faq { display: grid; gap: 24px; }
@media (min-width: 1024px) { .bed-faq { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; } }
.bed-faq__list { display: grid; gap: 12px; margin-top: 8px; }
.bed-faq__item { border-radius: 16px; background: var(--bed-accent); overflow: hidden; }
.bed-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; list-style: none; cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--bed-fg); transition: background .2s, color .2s; }
.bed-faq__item summary::-webkit-details-marker { display: none; }
.bed-faq__item[open] summary { background: var(--bed-primary); color: #fff; }
.bed-faq__ico { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.bed-faq__ico::before, .bed-faq__ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--bed-primary); transition: transform .2s; }
.bed-faq__ico::after { transform: rotate(90deg); }
.bed-faq__item[open] .bed-faq__ico::after { transform: rotate(0); }
.bed-faq__a { padding: 16px 20px 18px; font-size: 14px; line-height: 22px; color: var(--bed-n400); background: var(--bed-bg-body); }
.bed-faq__img img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---------- Đội ngũ ---------- */
.bed-tm__slider { margin: 0 -8px; }
.bed-tm__slider:not(.flickity-enabled) { display: flex; overflow: hidden; }
.bed-tm__slider > div.bed-tm__cell, .flickity-slider > div.bed-tm__cell { width: 78% !important; margin: 0; padding: 8px; flex: none; box-sizing: border-box; }
@media (min-width: 768px) { .bed-tm__slider > div.bed-tm__cell, .flickity-slider > div.bed-tm__cell { width: calc(100% / var(--bed-tm-cols-md, 2)) !important; } }
@media (min-width: 1024px) { .bed-tm__slider > div.bed-tm__cell, .flickity-slider > div.bed-tm__cell { width: calc(100% / var(--bed-tm-cols, 3)) !important; } }
.bed-tm { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 3 / 4; background: var(--bed-n50); }
.bed-tm__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.bed-tm:hover .bed-tm__img { transform: scale(1.04); }
.bed-tm__box { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .94); }
.bed-tm__box b { display: block; font-family: var(--bed-font-heading); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--bed-fg); }
.bed-tm__box span { display: block; font-size: 13px; line-height: 18px; color: var(--bed-n300); }
body.bed-theme .bed-tm__call { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bed-primary); color: #fff; }
body.bed-theme .bed-tm__call:hover { background: var(--bed-secondary); color: #fff; }

/* ---------- Đặt lịch / tư vấn ---------- */
.bed-bk { display: flex; padding: 16px; border-radius: 28px; background: var(--bed-primary) center / cover no-repeat; }
@media (min-width: 768px) { .bed-bk { padding: 40px; min-height: 560px; align-items: center; } }
.bed-bk__card { width: 100%; max-width: 640px; padding: 24px 20px; border-radius: 24px; background: rgba(var(--bed-primary-rgb), .94); color: #fff; }
@media (min-width: 768px) { .bed-bk__card { padding: 36px 40px; } }
.bed-bk__card .bed-sp-pill { background: rgba(255, 255, 255, .16); color: #fff; }
.bed-bk__card .bed-sp-title { color: #fff; font-size: 24px; }
@media (min-width: 768px) { .bed-bk__card .bed-sp-title { font-size: 30px; } }
.bed-bk__card .bed-sp-title span { color: #e3c487; }
.bed-bk__card .bed-sp-desc { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 22px; }
.bed-bk__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .bed-bk__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } .bed-bk__f--full, .bed-bk__submit { grid-column: 1 / -1; } }
.bed-bk__f { display: block; margin: 0; }
.bed-bk__f > span { display: block; margin-bottom: 2px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .8); }
body.bed-theme .bed-bk__f input, body.bed-theme .bed-bk__f select, body.bed-theme .bed-bk__f textarea {
	display: block; width: 100%; height: auto; margin: 0; padding: 8px 0; box-sizing: border-box; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .55) !important; border-radius: 0 !important;
	background: transparent; box-shadow: none; color: #fff; font-size: 15px; line-height: 22px; outline: 0; color-scheme: dark;
}
body.bed-theme .bed-bk__f textarea { resize: vertical; min-height: 72px; }
body.bed-theme .bed-bk__f input:focus, body.bed-theme .bed-bk__f select:focus, body.bed-theme .bed-bk__f textarea:focus { border-bottom-color: #fff !important; box-shadow: none; }
body.bed-theme .bed-bk__f select option { color: var(--bed-fg); background: #fff; }
body.bed-theme .bed-bk__submit { justify-self: start; background: #fff; border-color: #fff; color: var(--bed-primary) !important; }
body.bed-theme .bed-bk__submit:hover { background: var(--bed-secondary); border-color: var(--bed-secondary); color: #fff !important; }
.bed-bk .bed-contact__notice { margin-top: 16px; }
.bed-bk .bed-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
