@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --aftersales-sidebar-width: 265px;
  --aftersales-content-gap: 30px;
  --aftersales-section-gap: 40px;
  --aftersales-primary: #1464F4;
  --aftersales-primary-dark: #0D4FCC;
  --aftersales-text: #1F2125;
  --aftersales-text-secondary: #979797;
  --aftersales-border: #D9E1E2;
  --aftersales-bg-light: #F8F9FA;
  --aftersales-white: #FFFFFF;
  --aftersales-header-height: 80px;
  --aftersales-danger: #DC3545;
  --aftersales-danger-dark: #B02A37;
  --aftersales-text-dark: #3C3C3C;
  --aftersales-text-muted: #8A8A8A;
  --aftersales-bg-alt: #F7F9F9;
  --aftersales-icon-action: #2E438F;
}

/* --- Image loading placeholder (large content images only) --- */
.aftersales-hero__banner img,
.aftersales-warranty__parts-slide-image img,
.aftersales-warranty__section-image img,
.aftersales-warranty__notice-image img,
.aftersales-imgtext__image img,
.aftersales-repair__card-image img,
.aftersales-repair__cam-ket-image img,
.aftersales-contact__doc-cta-bg {
  background-color: #ECEEF0;
}

/* --- Text utility classes --- */
.aftersales-text--blue { color: var(--aftersales-primary); }
.aftersales-text--semibold { font-weight: 600; }

/* --- Responsive visibility utilities --- */
.aftersales-mobile-only { display: none; }

/* --- Font family base --- */
.aftersales-hero,
.aftersales-layout,
.aftersales-intro {
  font-family: 'Mulish', sans-serif;
}

/* --- Hero Banner: title-above-image layout --- */
.aftersales-hero {
  width: 100%;
  margin-bottom: 40px;
}

/* Title area: centered text on white background */
.aftersales-hero__content {
  text-align: center;
  padding: 48px 24px 40px;
  background: var(--aftersales-white);
}

.aftersales-hero__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.92px;
  color: var(--aftersales-text);
  margin: 0 0 20px;
}

.aftersales-hero__subtitle {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0 auto 20px;
  max-width: 1000px;
}

.aftersales-hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Desktop: show outline secondary button in hero (Figma shows both CTAs on desktop for warranty pages) */
.aftersales-hero__actions .aftersales-btn--outline {
  display: inline-flex;
}

/* Full-width banner image */
.aftersales-hero__banner {
  width: 100%;
  aspect-ratio: 1440 / 562;
  overflow: hidden;
}

.aftersales-hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Page Layout (2-column) --- */
/* Figma: 1440px, body py-[51px] pl-[443px] pr-[148px]; sidebar 265px + gap 30px = 295px, so content starts at ~295px from left within max-width container */
.aftersales-layout {
  display: flex;
  gap: var(--aftersales-content-gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: 51px 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* --- Sidebar --- */
.aftersales-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--aftersales-header-height) + 24px);
  width: var(--aftersales-sidebar-width);
  min-width: var(--aftersales-sidebar-width);
  max-height: calc(100vh - var(--aftersales-header-height) - 48px);
  overflow-y: auto;
}

.aftersales-sidebar__toggle {
  display: none;
}

.aftersales-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each sidebar item: bottom-border indicator, gap between items */
.aftersales-sidebar__item {
  border-left: none;
  border-bottom: 1px solid transparent;
  margin-bottom: 20px;
  padding-bottom: 6px;
}

.aftersales-sidebar__link {
  display: block;
  padding: 0;
  color: var(--aftersales-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s;
}

.aftersales-sidebar__link:hover {
  color: var(--aftersales-primary);
}

/* Active state: bottom border on the item, blue text bold */
.aftersales-sidebar__item:has(.is-active) {
  border-bottom-color: var(--aftersales-primary);
}

.aftersales-sidebar__link.is-active {
  color: var(--aftersales-primary);
  font-weight: 700;
}

.aftersales-sidebar__cta {
  display: block;
  margin: 40px 0 0;
  padding: 16px 24px;
  background: var(--aftersales-primary);
  color: var(--aftersales-white);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 3px;
  transition: background 0.2s;
}

.aftersales-sidebar__cta:hover {
  background: var(--aftersales-primary-dark);
  color: var(--aftersales-white);
}

/* Figma: gap-[16px] between all sidebar CTA buttons */
.aftersales-sidebar__cta-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 16px 0 0;
  padding: 10px 8px 10px 16px;
  min-height: 47px;
  background: white;
  border: 1px solid #1464f4;
  color: #1464f4;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 16px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.aftersales-sidebar__cta-secondary:hover {
  background: #1464f4;
  color: white;
}

.aftersales-sidebar__cta-secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Figma: gap-[16px] between all sidebar CTA buttons */
.aftersales-sidebar__cta-tertiary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 0;
  padding: 10px 8px 10px 16px;
  min-height: 47px;
  background: transparent;
  border: 1px solid #D9E1E2;
  color: #1f2125;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 16px;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.aftersales-sidebar__cta-tertiary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.aftersales-sidebar__cta-tertiary:hover {
  background: #F5F7F8;
  border-color: #B0BEC5;
  color: #1f2125;
}

.aftersales-sidebar__cta-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #D9E1E2;
  border-top: none;
  background: white;
  max-height: 240px;
  overflow-y: auto;
}

.aftersales-sidebar__cta-dropdown-list li {
  border-bottom: 1px solid #f0f0f0;
}

.aftersales-sidebar__cta-dropdown-list li:last-child {
  border-bottom: none;
}

.aftersales-sidebar__cta-dropdown-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: #1F2125;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s;
}

.aftersales-sidebar__cta-dropdown-list a:hover,
.aftersales-sidebar__cta-dropdown-list a:hover svg {
  background: #F5F7F8;
  color: #1464F4;
}

.aftersales-sidebar__cta-dropdown-list a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* --- Content Area --- */
.aftersales-content {
  flex: 1;
  min-width: 0;
}

/* --- Section --- */
.aftersales-section {
  margin-bottom: var(--aftersales-section-gap);
  scroll-margin-top: calc(var(--aftersales-header-height) + 24px);
}

.aftersales-section__header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: calc(var(--aftersales-header-height) + 24px);
}

/* Shield-check SVG icon (replaces numbered circle) */
.aftersales-section__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--aftersales-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aftersales-section__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Keep number class but hide it — other templates may still pass section_number */
.aftersales-section__number {
  display: none;
}

.aftersales-section__title {
  font-size: 32px;
  font-weight: 300;
  color: var(--aftersales-text);
  margin: 0;
  line-height: normal;
}

/* --- Image + Text Block --- */
.aftersales-imgtext {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.aftersales-imgtext--reverse {
  flex-direction: row-reverse;
}

.aftersales-imgtext__image {
  flex: 0 0 48%;
  max-width: 48%;
}

.aftersales-imgtext__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Maintenance benefit images: full-width, not constrained to 48% */
.aftersales-maintenance__benefit .aftersales-imgtext__image {
  flex: none;
  max-width: 100%;
}

.aftersales-imgtext__text {
  flex: 1;
  min-width: 0;
}

.aftersales-imgtext__text h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--aftersales-text);
}

.aftersales-imgtext__text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0 0 12px;
}

.aftersales-imgtext__text ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.aftersales-imgtext__text li {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin-bottom: 8px;
}

/* --- Footnote Text --- */
.aftersales-footnote {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.aftersales-footnote--spaced {
  margin-top: 16px;
  line-height: 1.6;
}

/* --- Info Box (grey background with check items) --- */
.aftersales-info-box {
  background: var(--aftersales-bg-light);
  border-radius: 5px;
  padding: 30px;
  margin-top: 24px;
}

.aftersales-info-box__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
}

.aftersales-info-box__item:last-child {
  margin-bottom: 0;
}

.aftersales-info-box__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.aftersales-info-box__item p {
  margin: 0;
}

/* --- Blue link --- */
.aftersales-link--blue {
  color: var(--aftersales-primary);
  font-weight: 700;
  text-decoration: none;
}

.aftersales-link--blue:hover {
  text-decoration: underline;
}

/* --- CTA Buttons --- */
.aftersales-btn {
  display: inline-block;
  padding: 16px 24px;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.2s, color 0.2s;
}

.aftersales-btn--primary {
  background: var(--aftersales-primary);
  color: var(--aftersales-white);
}

.aftersales-btn--primary:hover {
  background: var(--aftersales-primary-dark);
  color: var(--aftersales-white);
}

.aftersales-btn--outline {
  background: transparent;
  color: var(--aftersales-primary);
  border: 1px solid var(--aftersales-primary);
}

.aftersales-btn--outline:hover {
  background: var(--aftersales-primary);
  color: var(--aftersales-white);
}

@media (hover: none) {
  .aftersales-btn--outline:hover {
    background: transparent;
    color: var(--aftersales-primary);
  }
  .aftersales-btn--outline:active {
    background: var(--aftersales-primary);
    color: var(--aftersales-white);
  }
}

/* White outline variant — used on dark/banner backgrounds */
.aftersales-btn--outline-white {
  background: transparent;
  border-color: white;
  color: white;
}

.aftersales-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Large CTA variant */
.aftersales-btn--large {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 16px;
  width: 306px;
  text-align: center;
}

/* --- Contact Support: Two Cards Layout --- */
/* Figma: contact cards gap-[12px], cards stretch to equal height */
.aftersales-contact__cards {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.aftersales-contact__card {
  flex: 1;
  border: 1px solid var(--aftersales-border);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.aftersales-contact__card:only-child {
  max-width: 50%;
}

.aftersales-doc-dropdown:only-child {
  max-width: 50%;
}

/* Figma: document card (right) has no white background */
.aftersales-contact__card--doc {
  background: transparent;
}

.aftersales-contact__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--aftersales-text);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.aftersales-contact__card-title--danger {
  color: var(--aftersales-danger);
  margin-top: 16px;
}

.aftersales-contact__item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.aftersales-contact__phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--aftersales-primary);
  text-decoration: none;
}

.aftersales-contact__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--aftersales-primary);
  text-decoration: underline;
}

/* Figma: doc links container gap-[10px] between each link row */
.aftersales-contact__doc-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.aftersales-contact__doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--aftersales-primary);
  text-decoration: none;
}

.aftersales-contact__doc-cta {
  display: block;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 16px;
  min-height: 150px;
  text-decoration: none;
}

.aftersales-contact__doc-cta-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.aftersales-contact__doc-cta-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  color: white;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.36);
  padding: 37px 43px;
  box-sizing: border-box;
}

/* --- Document Buttons Row (dropdown-style, Figma spec) --- */
.aftersales-doc-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: var(--aftersales-section-gap);
}

.aftersales-doc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  height: 48px;
  border: 1px solid #D9E1E2;
  border-radius: 0;
  background: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #1F2125;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.aftersales-doc-btn:hover {
  background: #F5F7F8;
  border-color: #B0BEC5;
  color: #1F2125;
}

/* Chevron icon aligned to right edge */
.aftersales-doc-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #1F2125;
}

.aftersales-doc-buttons--grid {
  flex-wrap: wrap;
}

.aftersales-doc-buttons--grid .aftersales-doc-btn,
.aftersales-doc-buttons--grid .aftersales-doc-dropdown {
  flex: 1 1 calc(50% - 5px);
  min-width: 200px;
}

/* Xe máy: 3 buttons in a 2-row grid — first 2 side by side, third full width */
.aftersales-doc-buttons--escooter-3col {
  flex-wrap: wrap;
}

.aftersales-doc-buttons--escooter-3col .aftersales-doc-btn {
  flex: 1 1 calc(50% - 8px);
  min-width: 200px;
}

.aftersales-doc-buttons--escooter-3col .aftersales-doc-btn--wide {
  flex: 1 1 100%;
}

/* Xe máy: column layout — row of 2 on top, full-width button below */
.aftersales-doc-buttons--col {
  flex-direction: column;
}
/* Xe máy: 2-button row inside doc-buttons container */
.aftersales-doc-buttons--row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.aftersales-doc-buttons--row .aftersales-doc-btn {
  flex: 1;
}
.aftersales-doc-btn--wide {
  width: 100%;
}

/* --- Doc button dropdown --- */
.aftersales-doc-dropdown {
  flex: 1;
  position: relative;
  min-width: 200px;
}

.aftersales-doc-dropdown__toggle {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.aftersales-doc-dropdown__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.aftersales-doc-dropdown__toggle svg {
  transition: transform 0.3s ease;
}

.aftersales-doc-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #D9E1E2;
  border-top: none;
  background: white;
  max-height: 240px;
  overflow-y: auto;
}

.aftersales-doc-dropdown__list li {
  border-bottom: 1px solid #f0f0f0;
}

.aftersales-doc-dropdown__list li:last-child {
  border-bottom: none;
}

.aftersales-doc-dropdown__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #1F2125;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s;
}

.aftersales-doc-dropdown__list a:hover,
.aftersales-doc-dropdown__list a:hover svg {
  background: #F5F7F8;
  color: #1464F4;
}

.aftersales-doc-dropdown__list a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3C3C3C;
  margin-left: 8px;
  transition: color 0.2s;
}

/* Figma: contact item icon size-[20px] */
.aftersales-contact__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.aftersales-faq {
  margin-bottom: 32px;
}

.aftersales-faq__list {
  border-top: 1px solid var(--aftersales-border);
}

.aftersales-faq__item {
  border-bottom: 1px solid var(--aftersales-border);
}

/* Figma: FAQ items gap-[21px], each question pb-[20px] + border-bottom */
.aftersales-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  color: var(--aftersales-text);
  line-height: 1.4;
}

.aftersales-faq__question:hover {
  color: var(--aftersales-primary);
}

.aftersales-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--aftersales-text-secondary);
  transition: transform 0.3s;
}

.aftersales-faq__question[aria-expanded="true"] .aftersales-faq__icon {
  transform: rotate(180deg);
  color: var(--aftersales-primary);
}

.aftersales-faq__answer {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.aftersales-faq__answer-content {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--aftersales-text-dark);
}

/* --- Intro Section --- */
.aftersales-intro {
  text-align: center;
  max-width: 800px;
  margin: -24px auto 48px;
  padding: 0 24px;
}

.aftersales-intro__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--aftersales-text-secondary);
}

.aftersales-intro__body .aftersales-btn {
  margin-top: 24px;
}

/* ----------------------------------------------------------------
   Step Process (Quy trình dịch vụ) — shared by maintenance & repair
   5 equal-width cards in a row. Step 1 is active (blue icon bg).
   ---------------------------------------------------------------- */
.aftersales-steps {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Step item: flex column with gap between icon and text block */
.aftersales-steps__item {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0;
  background: none;
  gap: 24px;
}

/* Loop clones only exist for the mobile infinite slider — hide them elsewhere */
.aftersales-steps__item--clone {
  display: none;
}

/* Step icon container: own background, Figma 101x101 with p-16 */
.aftersales-steps__icon {
  width: 101px;
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  background: var(--aftersales-bg-light);
  border-radius: 5px;
  color: var(--aftersales-text-secondary);
  box-sizing: border-box;
  overflow: hidden;
}

/* Inner SVG: Figma 76x76 inside 69x69 content area, edges clip */
.aftersales-steps__icon svg {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: block;
}

/* Active step: blue icon container, white icon */
.aftersales-steps__item--active .aftersales-steps__icon {
  background: var(--aftersales-primary);
  color: var(--aftersales-white);
}

/* Step label ("BƯỚC 1", etc.) — Figma: 16px bold #979797 */
.aftersales-steps__label {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--aftersales-text-secondary);
  letter-spacing: 0;
  margin-bottom: 0;
}

/* Step title — Figma: 16px medium #1f2125 */
.aftersales-steps__item h4 {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--aftersales-text);
  margin: 0;
}

/* Text block: gap-[8px] between label and title */
.aftersales-steps__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.aftersales-steps__text .aftersales-desktop-only {
  display: block;
}

/* Dot indicators hidden on desktop, shown via media queries */
.aftersales-steps-dots {
  display: none;
}

/* Prev/next arrows — hidden on desktop, shown via media queries */
.aftersales-steps-nav__prev,
.aftersales-steps-nav__next {
  display: none;
}

/* ----------------------------------------------------------------
   Carousel (shared by repair & rescue pages)
   2-up desktop, 1-up mobile. Arrow nav + dot pagination.
   ---------------------------------------------------------------- */
.aftersales-carousel {
  position: relative;
}

.aftersales-carousel__viewport {
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.aftersales-carousel__nav {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.aftersales-carousel__arrow {
  width: 28px;
  height: 28px;
  border: 1.4px solid rgba(0, 0, 0, 0.16);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.aftersales-carousel__arrow:disabled {
  cursor: default;
}

.aftersales-carousel__track {
  display: flex;
  gap: 32px;
}

.aftersales-carousel__slide {
  flex: 0 0 calc(50% - 16px);
  max-width: calc(50% - 16px);
}

.aftersales-carousel[data-slides-per-view="1"] .aftersales-carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.aftersales-carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.aftersales-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #92A0B2;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.aftersales-carousel__dot.is-active {
  width: 20px;
  background: #1464F4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .aftersales-page {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .aftersales-hero {
    margin-bottom: 20px;
  }

  .aftersales-hero__content {
    padding: 32px 20px 20px;
  }

  .aftersales-hero__title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.72px;
    color: #3C3C3C;
  }

  .aftersales-hero__subtitle {
    font-weight: 500;
  }

  .aftersales-hero__banner {
    aspect-ratio: 400 / 511;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .aftersales-hero__banner img {
    border-radius: 0;
  }

  .aftersales-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .aftersales-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    width: calc(100% + 40px);
    min-width: 0;
    max-height: none;
    border-bottom: none;
    margin-bottom: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-bottom: 0;
    overflow: visible;
  }

  .aftersales-section {
    scroll-margin-top: calc(var(--aftersales-header-height) + 68px);
  }

  .aftersales-section__header {
    scroll-margin-top: calc(var(--aftersales-header-height) + 68px);
  }

  .aftersales-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 48px;
    background: var(--aftersales-primary);
    color: var(--aftersales-white);
    border: none;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
  }

  .aftersales-sidebar__toggle svg {
    flex-shrink: 0;
    transition: transform 0.3s;
  }

  .aftersales-sidebar__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .aftersales-sidebar.is-expanded {
    background: var(--aftersales-primary);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 3px 3px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .aftersales-sidebar__nav {
    display: none;
    background: var(--aftersales-primary);
    border: none;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__nav {
    display: block;
  }

  .aftersales-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
    margin: 0;
  }

  .aftersales-sidebar__item {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .aftersales-sidebar__item:last-child {
    border-bottom: none;
  }

  .aftersales-sidebar__link {
    display: block;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0;
    background: transparent;
    color: var(--aftersales-white);
    opacity: 0.75;
    text-align: left;
  }

  .aftersales-sidebar__link.is-active {
    background: transparent;
    color: var(--aftersales-white);
    font-weight: 400;
    opacity: 1;
  }

  .aftersales-sidebar__cta,
  .aftersales-sidebar__cta-secondary,
  .aftersales-sidebar__cta-tertiary,
  .aftersales-sidebar__cta-dropdown {
    display: none;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aftersales-white);
    color: var(--aftersales-primary);
    border: none;
    border-radius: 3px;
    margin: 0 20px;
    padding: 12px 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    text-decoration: none;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-secondary,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-tertiary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    background: var(--aftersales-primary);
    color: var(--aftersales-white);
    border: 1px solid var(--aftersales-white);
    border-radius: 3px;
    margin: 0 20px;
    padding: 12px 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    text-decoration: none;
    box-sizing: border-box;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown {
    display: block;
    margin: 0 20px;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--aftersales-primary);
    color: var(--aftersales-white);
    border: 1px solid var(--aftersales-white);
    border-radius: 3px;
    margin: 0;
    padding: 12px 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    text-decoration: none;
    height: auto;
    box-sizing: border-box;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-toggle svg {
    stroke: var(--aftersales-white);
    flex-shrink: 0;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list {
    border-color: var(--aftersales-white);
    background: var(--aftersales-primary);
    margin: 0;
    border-radius: 0 0 3px 3px;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list li {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list a {
    color: var(--aftersales-white);
    font-size: 14px;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list a svg {
    color: var(--aftersales-white);
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list a:hover,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown-list a:hover svg {
    background: rgba(255, 255, 255, 0.1);
    color: var(--aftersales-white);
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-secondary svg,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-tertiary svg {
    stroke: var(--aftersales-white);
    flex-shrink: 0;
  }

  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta + .aftersales-sidebar__cta-secondary,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-secondary + .aftersales-sidebar__cta-tertiary,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta + .aftersales-sidebar__cta-dropdown,
  .aftersales-sidebar.is-expanded .aftersales-sidebar__cta-dropdown + .aftersales-sidebar__cta-tertiary {
    margin-top: 0;
  }

  /* Mobile: show both hero buttons per Figma mobile design */
  .aftersales-hero__actions .aftersales-btn--primary,
  .aftersales-hero__actions .aftersales-btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 1.4px;
    text-align: center;
    line-height: 1.5;
    box-sizing: border-box;
    height: 65px;
  }

  .aftersales-hero__actions .aftersales-btn--primary {
    background: #1464F4;
    color: #FFFFFF;
    width: 189px;
    padding: 16px 24px;
  }

  .aftersales-hero__actions .aftersales-btn--outline {
    width: 191px;
    padding: 16px;
    color: #1464F4;
    border-color: #1464F4;
  }

  .aftersales-hero__actions {
    gap: 20px;
    flex-wrap: nowrap;
  }

  .aftersales-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .aftersales-section {
    margin-bottom: 0;
  }

  .aftersales-section__title {
    font-size: 28px;
    font-weight: 300;
  }

  .aftersales-imgtext,
  .aftersales-imgtext--reverse {
    flex-direction: column;
  }

  .aftersales-imgtext__image {
    flex: none;
    max-width: 100%;
  }

  .aftersales-contact__cards {
    flex-direction: column;
  }

  .aftersales-doc-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
  }

  .aftersales-doc-buttons--row {
    flex-direction: column;
  }

  .aftersales-doc-btn {
    flex: auto;
    width: 100%;
  }

  .aftersales-intro {
    margin-top: -16px;
  }

  .aftersales-faq__question {
    font-size: 18px;
  }

  /* Carousel: single slide on mobile */
  .aftersales-carousel__slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Steps: horizontal swipeable slider at tablet */
  .aftersales-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /*padding-bottom: 16px;*/
  }

  .aftersales-steps::-webkit-scrollbar {
    display: none;
  }

  .aftersales-steps__item {
    flex: 0 0 calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
    scroll-snap-align: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
  }

  /* Clones join the track so the slider can loop past the last step */
  .aftersales-steps__item--clone {
    display: flex;
  }

  .aftersales-steps__item--active {
    opacity: 1;
  }

  /* Dot indicators for tablet steps slider */
  .aftersales-steps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .aftersales-steps-dots__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aftersales-bg-light, #D9E1E2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .aftersales-steps-dots__dot--active {
    background: var(--aftersales-primary, #005CF7);
  }

  /* Prev/next arrows — absolutely positioned on the parent, aligned to steps area */
  .aftersales-steps-nav__prev,
  .aftersales-steps-nav__next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(230, 233, 236, 0.95);
    cursor: pointer;
    padding: 0;
    color: var(--aftersales-text, #1A1A1A);
    transition: opacity 0.2s ease, background 0.2s ease;
  }

  .aftersales-steps-nav__prev {
    left: 0;
  }

  .aftersales-steps-nav__next {
    right: 0;
  }

  .aftersales-steps-nav__prev:disabled,
  .aftersales-steps-nav__next:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .aftersales-steps-nav__prev:not(:disabled):active,
  .aftersales-steps-nav__next:not(:disabled):active {
    background: var(--aftersales-bg-light, #D9E1E2);
  }
}

/* --- Responsive: small phones (≤480px) --- */
@media (max-width: 480px) {
  .aftersales-hero__content {
    padding: 20px 20px 20px;
  }

  .aftersales-hero__title {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .aftersales-hero__subtitle {
    font-size: 16px;
  }

  .aftersales-layout {
    padding: 0 20px;
    gap: 20px;
  }

  .aftersales-sidebar__toggle {
    font-size: 16px;
    height: 48px;
    padding: 0 20px;
  }

  .aftersales-section__title {
    font-size: 28px;
    font-weight: 300;
  }

  .aftersales-section__header {
    margin-bottom: 32px;
  }

  .aftersales-faq__question {
    font-size: 18px;
    padding: 16px 0;
  }

  .aftersales-info-box {
    padding: 30px;
  }

  .aftersales-info-box__item {
    gap: 4px;
  }

  .aftersales-contact__card {
    padding: 16px;
  }

  .aftersales-contact__card-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .aftersales-contact__card-title--danger {
    font-size: 14px;
  }

  .aftersales-contact__item {
    margin-bottom: 12px;
  }

  .aftersales-contact__item:last-child {
    margin-bottom: 0;
  }

  .aftersales-contact__phone,
  .aftersales-contact__link {
    font-size: 16px;
    font-weight: 500;
  }

  /* Steps: horizontal swipeable slider on mobile */
  .aftersales-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /*padding-bottom: 16px;*/
  }

  .aftersales-steps::-webkit-scrollbar {
    display: none;
  }

  .aftersales-steps__item {
    flex: 0 0 calc(50% - 6px);
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
    scroll-snap-align: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
  }

  .aftersales-steps__item--active {
    opacity: 1;
  }

  /* Dot indicators for mobile steps slider */
  .aftersales-steps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .aftersales-steps-dots__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aftersales-bg-light, #D9E1E2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .aftersales-steps-dots__dot--active {
    background: var(--aftersales-primary, #005CF7);
  }

  /* Nav arrows on small phones */
  .aftersales-steps-nav__prev,
  .aftersales-steps-nav__next {
    width: 44px;
    height: 44px;
  }

  .aftersales-btn--large {
    width: 306px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Step label/title: 16px on mobile */
  .aftersales-steps__label {
    font-size: 16px;
  }

  .aftersales-steps__item h4 {
    font-size: 16px;
  }
}

