/* base */
.ht-page {
  padding: 0;
}

.es-page {
  font-family: 'Inter', sans-serif;
  color: #181d27;
}

.es-page *,
.es-page *::before,
.es-page *::after {
  box-sizing: border-box;
}

.es-page img {
  max-width: 100%;
}

.es-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1100px) {
  .es-page .container {
    width: 1270px;
  }
}
/* end base */

/* #region es-hero */
.es-hero {
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  min-height: 415px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/helpesign/images/home-esign/bg-hero.webp') center / cover no-repeat;
}

.es-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 107px 20px 92px;
  width: 100%;
}

.es-hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 500px;
}

.es-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 500px;
  display: block;
}

.es-hero-title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 54px;
  color: #fff;
  text-align: center;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.es-hero-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 924px;
  max-width: 100%;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border: 3px solid #1482ff;
  border-radius: 9999px;
  box-shadow: 0 2px 20px 0 rgba(131, 43, 255, 0.24);
}

.es-hero-search-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.es-hero-search-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.es-hero-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 18px;
  color: #10141b;
}

.es-hero-search-input::placeholder {
  color: #a4a7ae;
}

@media (max-width: 767px) {
  .es-hero-title {
    font-size: 26px;
    line-height: 36px;
  }
}
/* #endregion es-hero */

/* #region es-stats */
.es-stats {
  padding: 64px 0;
  background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
}

/* Design: hàng tiêu đề + nút "Chi tiết" rộng ~1294px (> cột 1280) -> container full-width */
.es-stats .container {
  max-width: none;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.es-stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.es-stats-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: normal;
  color: #1f1f1f;
  text-align: center;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.es-stats-title > span {
  flex: 0 0 auto;
  white-space: wrap;
}

.es-stats-title .is-gradient {
  background: linear-gradient(108deg, #1482ff 9%, #cf11ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.es-stats-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 96px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #744ec7;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter Medium', sans-serif;
  line-height: 24px;
  color: #744ec7;
  text-decoration: none;
  white-space: wrap;
}

.es-stats-detail img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.es-stats-detail:hover {
  background: #f9f5ff;
}

.es-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 1052px;
  max-width: 100%;
}

.es-stats-since {
  font-size: 32px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: normal;
  color: #1f1f1f;
  white-space: nowrap;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.es-stats-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.es-stats-number {
  font-size: 64px;
  font-weight: 800;
  font-family: 'Inter ExtraBold', sans-serif;
  line-height: normal;
  background: linear-gradient(124deg, #1482ff 9%, #cf11ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.es-stats-label {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  color: #1f1f1f;
}

@media (max-width: 991px) {
  .es-stats-row {
    flex-direction: column;
    gap: 24px;
  }

  .es-stats-since {
    padding-top: 0;
  }

  /* Mobile: bỏ flex để tiêu đề và "Chi tiết" tự xuống dòng, không bị tràn ngang */
  .es-stats-title {
    display: block;
    font-size: 24px;
  }

  .es-stats-title > span {
    white-space: normal;
  }

  .es-stats-detail {
    margin-top: 12px;
  }

  .es-stats-number {
    font-size: 44px;
  }

  .es-stats-label {
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .es-stats-number {
    font-size: 34px;
  }

  .es-stats-label {
    font-size: 15px;
  }

  .es-stats-since {
    font-size: 24px;
  }
}
/* #endregion es-stats */

/* #region es-cards */
.es-cards {
  padding: 0 0 64px;
}

.es-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.es-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.es-card-img {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #dbd4fe;
}

.es-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.es-card:hover .es-card-img img {
  transform: scale(1.04);
}

.es-card-title {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 28px;
  color: #181d27;
  text-align: center;
}

@media (max-width: 991px) {
  .es-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* #endregion es-cards */

/* #region es-guide */
.es-guide {
  background: #fbfafe;
  padding: 64px 0 74px;
}

/* Design: hàng card rộng 1542px, rộng hơn cột 1280 -> dùng container full-width */
.es-guide .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.es-guide-title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter Bold', sans-serif;
  line-height: 40px;
  color: #181d27;
  text-align: center;
  letter-spacing: -0.2px;
}

.es-guide-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-bottom: 32px;
  padding: 0 20px;
}

.es-guide-list:last-child {
  margin-bottom: 0;
}

.es-guide-item {
  display: flex;
  flex-direction: column;
  flex: 0 0 355px;
  width: 355px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e0eefe;
  border-radius: 24px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.es-page--usbtoken .es-guide-item {
  min-height: 432px;
}

.es-page--remote .es-guide-item {
  min-height: 380px;
}

.es-guide-item:hover {
  box-shadow: 0 8px 24px 0 rgba(116, 78, 199, 0.15);
  transform: translateY(-2px);
   background: #f9f5ff;
  border-color: #9e77ed;
}

.es-guide-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 82px;
  text-decoration: none;
  color: inherit;
}

.es-guide-logo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.es-guide-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.es-guide-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.es-guide-label {
  display: block;
  text-decoration: none;
  color: #10141b;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 28px;
  color: #10141b;
}

.es-guide-site {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter Medium', sans-serif;
  line-height: 22px;
  color: #744ec7;
  white-space: nowrap;
}

.es-guide-site img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.es-guide-divider {
  margin: 24px 0;
  border-top: 1px dashed #9e77ed;
}

.es-guide-items {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.es-guide-items li {
  position: relative;
  padding-left: 21px;
  font-size: 14px;
  line-height: 20px;
  color: #10141b;
}

.es-guide-item .es-guide-items li:hover {
  font-family: 'Inter SemiBold', sans-serif;
  color: #10141B;
}

.es-guide-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9e77ed;
}

.es-guide-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 24px;
  letter-spacing: -0.2px;
}

.es-guide-more span {
  background: linear-gradient(180deg, #8577ff, #6130e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.es-guide-more img {
  width: 20px;
  height: 20px;
}

@media (max-width: 1400px) {
  .es-guide-item {
    flex: 0 0 calc(25% - 24px);
    width: auto;
  }
}

@media (max-width: 1200px) {
  .es-guide-list {
    flex-wrap: wrap;
  }

  .es-guide-item {
    flex: 0 0 calc(50% - 16px);
    width: auto;
  }
}

@media (max-width: 767px) {
  .es-guide-item {
    flex: 0 0 100%;
    width: auto;
  }

  .es-guide-title {
    font-size: 24px;
    line-height: 32px;
  }
}
/* #endregion es-guide */

/* #region es-videos */
.es-videos {
  padding: 64px 0;
}

.es-videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.es-videos-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter Bold', sans-serif;
  line-height: 40px;
  color: #181d27;
  letter-spacing: -0.2px;
}

.es-videos-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #744ec7;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter Medium', sans-serif;
  color: #744ec7;
  text-decoration: none;
}

.es-videos-all img {
  width: 20px;
  height: 20px;
}

.es-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.es-video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.es-video-thumb {
  position: relative;
  height: 169px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

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

.es-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}

.es-video-play img {
  width: 18px;
  height: 18px;
  display: block;
}

.es-video-label {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 40px;
  padding: 0 12px 0 16px;
  background: #fff;
  border: 1px solid #c5cbde;
  border-radius: 12px;
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

.es-video-label span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 20px;
  color: #19213d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.es-video-label img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  filter: grayscale(1) brightness(1.5);
}

.es-video-label:hover {
  border: 1.5px solid #8577ff;
}

.es-video-label:hover img {
  filter: none;
}


@media (max-width: 991px) {
  .es-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .es-videos-grid {
    grid-template-columns: 1fr;
  }
}
/* #endregion es-videos */

/* #region es-support */
.es-support {
  background: linear-gradient(180deg, #a37cf6 0%, #744ec7 100%);
  padding: 64px 0;
}

/* Design: lưới kênh hỗ trợ rộng 1298px (> cột 1280) -> container full-width */
.es-support .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.es-support-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

/* .container có clearfix ::before/::after, trong flex chúng thành item rỗng tạo gap thừa */
.es-page .container::before,
.es-page .container::after {
  content: none;
}

.es-support-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter Bold', sans-serif;
  line-height: 40px;
  color: #fff;
  text-align: center;
  letter-spacing: -0.2px;
}

.es-support-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 1298px;
  max-width: 100%;
}

.es-support-item {
  display: flex;
  flex: 0 0 214.25px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Design: item cao 126 nhưng grid clip còn 99 -> padding dọc = 24 - 13.5 */
  padding: 10.5px 24px;
  border-radius: 20px;
  text-decoration: none;
}

/* Design: item 1 và 3 rộng 279.625px, 3 item còn lại 214.25px */
.es-support-item:nth-child(1),
.es-support-item:nth-child(3) {
  flex: 0 0 279.625px;
}

@media (max-width: 1298px) {
  .es-support-item,
  .es-support-item:nth-child(1),
  .es-support-item:nth-child(3) {
    flex: 1 1 0;
    min-width: 0;
  }
}

.es-support-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.es-support-item span {
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter Medium', sans-serif;
  line-height: 20px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.es-support-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1200px) {
  .es-support-grid {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .es-support-title {
    font-size: 24px;
    line-height: 32px;
  }

  .es-support-item {
    padding: 16px;
  }

  .es-support-item span {
    font-size: 14px;
    white-space: normal;
  }
}
/* #endregion es-support */

/* #region es-chat */
.es-chat {
  position: fixed;
  right: 29px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.es-chat-bubble {
  position: relative;
  width: 220px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}

.es-chat.is-collapsed .es-chat-bubble {
  display: none;
}

.es-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.es-chat-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.es-chat-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  color: #10141b;
}

.es-chat-close {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.es-chat-close img {
  width: 32px;
  height: 32px;
  display: block;
}

.es-chat-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #10141b;
}

.es-chat-cta {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  line-height: 0;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.es-chat-cta img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}
/* #endregion es-chat */


/* #region es-modal */
.es-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.es-modal.is-open {
  display: flex;
}

.es-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.45);
}

.es-modal-card {
  position: relative;
  z-index: 1;
  width: 844px;
  max-width: 100%;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.es-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  padding: 4px 6px;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  line-height: 0;
}

.es-modal-close img {
  width: 20px;
  height: 20px;
  display: block;
}

.es-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 28px;
  color: #10141b;
  text-align: center;
  padding: 0 40px;
}

.es-modal-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #10141b;
  text-align: center;
}

.es-modal-options {
  display: flex;
  gap: 16px;
}

.es-modal-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 24px 32px;
  background: #fff;
  border: 1px solid #e0eefe;
  border-radius: 24px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}

.es-modal-option.is-selected {
  background: #f4f3fd;
  border-color: #9e77ed;
}

.es-modal-option-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 233px;
}

.es-modal-option-img img {
  max-width: 250px;
  max-height: 233px;
  object-fit: contain;
}

.es-modal-option-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-radio {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2.25px solid #ced1d6;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 24px;
}

.es-modal-option.is-selected .es-radio {
  border-color: #9e77ed;
}

.es-modal-option.is-selected .es-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #9e77ed;
}

.es-modal-option-label {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter SemiBold', sans-serif;
  line-height: 28px;
  color: #10141b;
  white-space: nowrap;
}

.es-modal-footer {
  display: flex;
  justify-content: center;
}

.es-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 159px;
  padding: 14px 24px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, #8577ff 0%, #6130e9 100%);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.es-modal-submit:hover {
  opacity: 0.92;
}

@media (max-width: 767px) {
  .es-modal-options {
    flex-direction: column;
  }

  .es-modal-title {
    padding: 0 28px 0 0;
    font-size: 18px;
    line-height: 26px;
  }

  .es-modal-option {
    padding: 16px 16px 20px;
    gap: 12px;
  }

  .es-modal-option-img {
    height: 140px;
  }

  .es-modal-option-img img {
    max-height: 140px;
  }

  .es-modal-option-label {
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
  }
}
/* #endregion es-modal */

/* Guide card: mỗi mục con là link riêng, card chỉ là khối bao ngoài */
.es-guide-head {
  text-decoration: none;
  color: inherit;
}

.es-guide-head:hover .es-guide-label,
.es-guide-label:hover {
  color: #744ec7;
}

.es-guide-items li a {
  color: #10141B;
  text-decoration: none;
}
 
.es-guide-items li a:hover {
  color: #10141B;
  text-decoration: none;
}

a.es-guide-more {
  text-decoration: none;
}

a.es-guide-more:hover {
  background: rgba(116, 78, 199, 0.08);
}
