/* Process - thanh phan dung chung: nut, hang index, accordion, thanh tien trinh */

/* ---- nut: vuong canh, 1 dong, tuong phan AA ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover, .btn:focus-visible {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
}
.btn--solid:hover, .btn--solid:focus-visible {
  background-color: var(--night);
  border-color: var(--night);
  color: #ffffff;
}
.btn--sm { padding: 10px 20px; font-size: .875rem; }

/* ---- hairline ---- */
.hairline { border: 0; border-top: 1px solid var(--hairline-dark); }

/* ---- caption duoi anh (khong de chu len anh) ---- */
figcaption.caption { margin-top: 10px; color: var(--bone-soft); }

/* ---- hang index giai phap ---- */
.sol__list { border-top: 1px solid var(--hairline-light); }
.sol__row {
  position: relative;
  border-bottom: 1px solid var(--hairline-light);
  padding-top: 26px;
  padding-bottom: 26px;
  transition: opacity .3s ease;
}
.sol__row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.625rem);
  line-height: 1.15;
}
.sol__row p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 46ch;
}
/* tieu de linh vuc la link sang trang rieng */
.sol__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
}
.sol__link .sol__ico {
  width: .5em;
  height: .5em;
  flex: 0 0 auto;
  opacity: .55;
  transition: opacity .3s ease;
}
.sol__link::after {
  content: "";
  position: absolute;
  right: 0; bottom: -6px; left: 0;
  height: 1px;
  background-color: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s ease;
}
.sol__link:hover::after, .sol__link:focus-visible::after { transform: scaleX(1); }
.sol__link:hover .sol__ico, .sol__link:focus-visible .sol__ico { opacity: 1; }

/* o anh bam duoc (mo lightbox) */
button.ph { width: 100%; cursor: zoom-in; }
button.ph img { transition: opacity .3s ease, transform .6s ease; opacity: .94; }
button.ph:hover img, button.ph:focus-visible img { opacity: 1; transform: scale(1.02); }
button.frame { display: block; width: 100%; cursor: zoom-in; text-align: inherit; }
button.frame img { transition: opacity .3s ease, transform .6s ease; }
button.frame:hover img, button.frame:focus-visible img { transform: scale(1.02); }
/* cuon toi muc nao: tieu de muc do chuyen vang va noi len, muc khac chim mo */
.sol__row { transition: opacity .35s ease; }
.sol__row .sol__link { transition: color .35s ease; }
.sol__row.is-active .sol__link { color: var(--accent-deep); }
.sol__row.is-active .sol__link .sol__ico { opacity: 1; }
@media (min-width: 1024px) {
  html.js .sol__row { opacity: .38; }
  html.js .sol__row.is-active { opacity: 1; }
}
/* bo 3 anh cho moi linh vuc: 1 lon + 2 nho */
.ph {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 66%;
}
.ph img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sol__set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}
.sol__set .ph--a { grid-column: 1 / -1; padding-top: 58%; }
.sol__set .ph--b, .sol__set .ph--c { padding-top: 74%; }
.sol__set--inline { margin-top: 16px; }

@media (min-width: 1024px) {
  .sol__row .sol__set--inline { display: none; }
  /* moi loai cong trinh la mot "chuong" cuon du dai cho vach nav chay */
  .sol__row {
    min-height: 44vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* khung preview desktop: 3 bo anh xep chong, mo dan theo muc active */
.sol__preview { display: none; }
@media (min-width: 1024px) {
  .sol__preview { display: grid; }
  .sol__preview .sol__set {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
  }
  .sol__preview .sol__set.is-show {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s ease;
  }
}

/* ---- accordion FAQ: chi border-top ---- */
.faq__item { border-top: 1px solid var(--hairline-dark); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline-dark); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding-top: 22px;
  padding-bottom: 22px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}
.faq__icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  transition: transform .3s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease;
}
html:not(.js) .faq__a { max-height: none; opacity: 1; } /* khong JS: mo san */
.faq__a p {
  padding-bottom: 24px;
  color: var(--bone-soft);
  max-width: 56ch;
}

/* ---- thanh tien trinh vang ---- */
.progress-line {
  position: relative;
  background-color: var(--hairline-dark);
}
.progress-line > span {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
}
.progress-line--v > span { transform-origin: center top; transform: scaleY(0); }

/* ---- nut Zalo noi o goc duoi ben phai (moi trang) ---- */
.zalo-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background-color: #0068ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 60, 140, .34);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.zalo-fab:hover,
.zalo-fab:focus-visible {
  background-color: #0057d8;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 60, 140, .42);
  transform: translateY(-2px);
}
.zalo-fab:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

.zalo-fab__mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 30px;
}
.zalo-fab__mark svg { display: block; width: 100%; height: auto; }

/* vong song nhe cho de thay */
.zalo-fab__ring {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 999px;
  border: 2px solid rgba(0, 104, 255, .55);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .zalo-fab__ring { animation: zaloPulse 2.6s ease-out infinite; }
  .zalo-fab__ring--slow { animation-delay: 1.3s; }
}
@keyframes zaloPulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* nhan chu chi hien tren may co con tro (desktop) */
.zalo-fab__label {
  position: absolute;
  top: 50%;
  right: 64px;
  margin-top: -17px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: var(--night);
  color: var(--bone);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
@media (hover: none) {
  .zalo-fab__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }
}
.zalo-fab:hover .zalo-fab__label,
.zalo-fab:focus-visible .zalo-fab__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .25s ease, transform .25s ease;
}

@media (min-width: 1024px) {
  .zalo-fab { right: 26px; bottom: 26px; width: 60px; height: 60px; }
  .zalo-fab__mark { width: 34px; }
  .zalo-fab__label { right: 72px; }
}

@media print { .zalo-fab { display: none; } }
