html, body {
  background: #eaeff4 !important;
}

body {
  font: 16px "Roboto", Helvetica, Arial, sans-serif;
  line-height: 150%;
  background: #EAEFF4;
}

/* COMMON CSS */
.desktop-content,
.mobile-content,
.tablet-content {
  display: none;
}

.screen {
  display: none;
}

.hidden {
  display: none;
}

.clearfix {
  overflow: auto;
}

.active {
  display: block;
}

.red-text {
  color: red;
}

.text-underline {
  text-decoration: underline;
}

.cts-bg-primary {
  background: #005992;
}

.cts-text-primary {
  color: #005992;
}

.btn-cts-primary,
.btn-cts-primary:disabled {
  background: #005992;
  border-color: #005992;
}

.btn-loading:disabled {
  background: #005992;
  border-color: #005992;
}

.form-control,
.form-select {
  font-size: 16px;
}

.content-box {
  margin-top: 20px;
  background-color: #fff;
}

.sologen .title-sologen {
  margin-bottom: 18px;

  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  text-align: center;

  color: #005992;
}

.form-container .sub-group {
  margin-bottom: 20px;

  font-weight: 700;
  color: #005992;
}

.form-container .form-group label {
  margin-bottom: 7px;
}

.form-navigator-box .continue-button {
  margin-left: 20px;

  background: #005992;
  border-radius: 5px;
}

.form-container .form-navigator-box {
  display: flex;
  justify-content: flex-end;
}

.form-container .note-text-container {
  position: relative;
}

.form-container .note-text-container .note-text-mask {
  float: left;
}

.form-container .note-text-container span {
  display: block;
}

.form-container .note-text-content {
  padding-left: 15px;
}

.form-container .form-chinh-chu {
  padding-top: 2rem;
}

.custom-select.is-valid,
.was-validated .custom-select:valid,
.form-control.is-valid,
.was-validated .form-control:valid {
  background: none;
  border-color: #ced4da;
}

.was-validated .form-check-input:valid~.form-check-label {
  color: #212529;
}

.screen-5 {
  /* padding-top: 15px; */

  /* height: 70vh; */
}

.screen-5 .thank-you-illustration,
.screen-5 .some-thing-error-illustration {
  margin-top: 22px;

  display: flex;
  justify-content: center;
}

.screen-5 .thank-you-description,
.screen-5 .some-thing-error-description {
  margin-top: 40px;
}

.screen-5 .thank-you-description .thank-you-text-description,
.screen-5 .some-thing-error-description .some-thing-error-text-description {
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.screen-5 .thank-you-description .thank-you-text-description {
  color: #005992;
}

.screen-5 .some-thing-error-description .some-thing-error-text-description {
  color: #e84643;
}

.screen-5 .download-btn-container {
  margin-top: 50px;
}

.screen-5 .download-btn-container .btn-warpper {
  display: flex;
  justify-content: center;
}

.copyright {
  padding-top: 10px;
  padding-left: 30px;

  font-size: 14px;
  color: #005992;
  /* display: flex; */
}

.copyright a {
  color: #005992;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;

  background-color: #EAEFF4;
  color: #fff;
  text-align: center;
}

.footer img {
  width: 100%;
}

.btn-back-ipay {
  display: inline-block;
  margin-top: 35px;
  padding: 12px;
  background-color: #005992;
  color: #fff;
  border-radius: 5px;
}

.btn-back-ipay:hover {
  color: #fff;
  text-decoration: none;
  animation: press 0.2s 1 linear;
}

.btn-back-ipay:active {
  animation: press 0.2s 1 linear;
}

@keyframes press {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  to {
    transform: scale(1);
  }
}

/* PROGRESS BAR */
.progress-bar {
  padding-left: 0;
  padding-top: 5px;

  background: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  counter-reset: container 0;
}

.progress-bar li {
  position: relative;
  counter-increment: container 1;

  list-style-type: none;
  color: #005992;
}

.progress-bar li::after {
  height: 32px;
  width: 32px;
  line-height: 32px;

  content: counter(container);
  text-align: center;
  border-radius: 50%;
  color: #C4C4C4;
  background-color: #E9ECEF;
}

.progress-bar li::before {
  content: '';
  width: 2px;
  height: 90px;
  background-color: #EAEFF4;
}

.progress-bar li.active::before {
  background-color: #fff;
}

.progress-bar li:first-child:before {
  display: none;
}

.desktop-content .progress-bar li.active::after,
.mobile-content .progress-bar li.active::after,
.tablet-content .progress-bar li.active::after {
  color: #fff;
  background-color: #005992;
}

.progress-bar li.active {
  font-weight: 700;
  color: #005992;
}

/* COMMON CSS Library */
.select2-container--default .select2-selection--single {
  border: none;
}

.select2-selection__arrow {
  display: none;
}

/* VALIDATE FORM */
.was-validated .form-control.valid {
  border-color: #28a745;
  background-image: none;
  padding-right: calc(1.5em + .75rem) !important;
}

.was-validated .form-control.valid:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25);
}

.was-validated .form-control.valid+.invalid-feedback {
  display: none;
}

.was-validated .form-control.invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + .75rem) !important;
}

.was-validated .form-control.invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem #dc354524;
  padding-right: calc(1.5em + .75rem) !important;
}

.was-validated .form-control.invalid+.invalid-feedback {
  display: block;
}

/* MOBILE CSS */
@media screen and (max-width: 767px) {

  /* CSS code for mobile screens */
  .mobile-content {
    display: block;
  }

  #popupTermOfContract .modal-lg {
    max-width: 90vw;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

.mobile-content .container {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0;
  padding-right: 0;
}

.mobile-content .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-content .logo img {
  height: 40px;
  width: auto;
}

.mobile-form-step {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mobile-content .content-box {
  padding-top: 15px;
  /* padding-bottom: 15px; */
  /* margin-bottom: 65px; */

  /* height: 70vh; */

  border-radius: 20px;
}

.mobile-content .content-box .screen {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

.mobile-content .content-box .screen-2-and-3 {
  padding-left: 5px;
  padding-right: 5px;
}

.mobile-content .content-box .screen-1 {
  position: relative;
}

.mobile-content .form-container .form-group {
  margin-bottom: 20px;
}

.mobile-content .form-container .wraper-note-text {
  margin-top: 30px;
}

.mobile-content .form-container .form-aggrement a {
  text-decoration: none;
}

.mobile-content .screen .form-container .form-navigator-box {
  display: block;
  margin-top: 25px;
}

.mobile-content .form-navigator-box button {
  width: 100%;
}

.mobile-content .form-navigator-box .continue-button {
  margin-left: 0;
}

.mobile-content .screen-2-and-3 .form-input-container {
  position: relative;
}

/* MOBILE PROGRESS BAR */
.mobile-content .progress-bar {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 55px;
  margin-right: 55px;
  padding-top: 0;

  flex-direction: row;
  overflow: hidden;
}

.mobile-content .progress-bar li {
  float: left;
  width: 20%;
  position: relative;
}

.mobile-content .progress-bar li::after {
  margin: auto;
  width: 25px;
  height: 25px;

  line-height: 25px;
  display: block;

  color: #fff;
  background-color: #C4C4C4;
}

.mobile-content .progress-bar li:before {
  z-index: -1;
  /* put it behind the numbers */
  position: absolute;
  left: -60%;
  top: 12px;

  width: 100%;
  height: 2px;

  background-color: #7CAFD0;
}

.mobile-content .progress-bar li:first-child::before {
  /*connector not needed before the first step*/
  content: none;
}

/* DESKTOP CSS */
@media screen and (min-width: 992px) {

  /* CSS code for desktop screens */
  .desktop-content {
    display: block;

    font-size: 14px;
    line-height: 16px;
  }

  #popupTermOfContract .modal-lg {
    max-width: 750px;
  }

  .container-otp {
    margin-top: 25px;
  }
}

@media (min-width: 1200px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1500px;
  }
}

.desktop-content .screen-5 {
  /* height: 50vh; */
}

.desktop-content .progress-bar li.active::before {
  background-color: #EAEFF4;
}

.desktop-content .container {
  padding-top: 30px;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 80px;
}

.desktop-content .logo img {
  width: 150px;
}

.desktop-content .content-box {
  position: relative;
  /* height: 60vh; */

  margin-top: 30px;
  padding: 30px 0;
  border-radius: 15px;
}

.desktop-content .sologen .title-sologen {
  margin-bottom: 20px;

  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-align: left;

  color: #005992;
}

.desktop-content .sologen .description-sologen {
  margin-top: 0px;

  font-weight: 400;
  font-size: 16px;
  line-height: 19px;

  color: #6D6D6D;
}

.desktop-content .illustrations-img {
  position: absolute;
  top: 18px;
  right: 80px;
}

.desktop-content .form-container {
  margin-top: 80px;
}

.desktop-content .form-container .form-input-container {
  padding: 10px;
}

.desktop-content .form-container .form-group {
  margin-bottom: 30px;
}

.desktop-content .form-container .note-text-container {
  margin-bottom: 105px;
}

.desktop-content .form-navigator-box button {
  padding-left: 25px;
  padding-right: 25px;
  border: 5px;
}

.desktop-content .btn-warpper.btn-wrapper-left {
  justify-content: right;
}

.desktop-content .btn-warpper.btn-wrapper-right {
  justify-content: left;
}

.desktop-content .form-navigator-box .back-button {
  margin-right: 30px;

  background-color: #E9ECEF;
  color: #212529;
  border: none;
}

.desktop-content .screen-5 .download-btn-container {
  margin-top: 30px;
}

/* DESKTOP PROGRESS BAR */
.desktop-content .progress-bar li {
  margin-right: 45px;
  margin-bottom: 50px;

  text-align: right;
}

.desktop-content .progress-bar li::after {
  position: absolute;
  right: -45px;
  top: -5px;
  z-index: 10;
}

.desktop-content .progress-bar li::before {
  z-index: 1;
  position: absolute;
  right: -30px;
  top: -70px;
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {

  /* CSS code for tablet screens */
  .tablet-content {
    display: block;
  }

  #popupTermOfContract .modal-lg {
    max-width: 650px;
  }
}

.tablet-content .container {
  max-width: 100vw;

  padding-top: 40;
  padding-bottom: 80px;
  padding-left: 0;
  padding-right: 0;
}

.tablet-content .screen {
  margin-top: 30px;
}

.tablet-content .logo img {
  margin-left: 70px;

  width: 150px;
}

.tablet-content .sologen .title-sologen {
  font-size: 24px;
  margin-bottom: 30px;
}

.tablet-content .content-box {
  position: relative;
  /* height: 80vh; */

  margin-top: 10px;
  padding: 15px;
  border-radius: 15px;
}

.tablet-content .illustrations-img {
  z-index: 999;

  position: absolute;
  top: 16px;
  right: 24px;
}

.tablet-content .form-container {
  /* margin-top: 65px; */
}

.tablet-content .form-container .form-input-container {
  /* margin-top: 88px; */
  padding: 10px;
}

.tablet-content .form-container .form-group {
  margin-bottom: 20px;
}

.tablet-content .form-container .note-text-container {
  margin-bottom: 30px;
}

.tablet-content .form-container .form-navigator-box {
  margin-top: 30px;
}

.tablet-content .form-container .form-navigator-box .submit {
  margin-left: 20px;
}

.tablet-content .form-navigator-box button {
  padding-left: 25px;
  padding-right: 25px;
}

.tablet-content .nextToAgreement {
  margin-left: 20px;
}

/* TABLET PROGRESS BAR */
.tablet-content .progress-bar {
  z-index: 10;
  position: absolute;
  top: 0;
  width: 80%;

  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 55px;
  margin-right: 55px;
  padding-top: 0;

  flex-direction: row;
  overflow: hidden;
}

.tablet-content .progress-bar li {
  float: left;
  width: 15%;
  position: relative;
}

.tablet-content .progress-bar li::after {
  /* margin: auto; */
  width: 25px;
  height: 25px;

  line-height: 25px;
  display: block;

  color: #fff;
  background-color: #C4C4C4;
}

.tablet-content .progress-bar li:before {
  z-index: -1;
  /* put it behind the numbers */
  position: absolute;
  left: -75%;
  top: 12px;

  width: 100%;
  height: 2px;

  background-color: #7CAFD0;
}

.tablet-content .progress-bar li:first-child::before {
  /*connector not needed before the first step*/
  content: none;
}

.tablet-content .note-text-container {
  margin-top: 20px;
}

.tablet-content .copyright {
  justify-content: flex-end;
  padding-right: 30px;
}

/* OTP */
.otp-field {
  flex-direction: row;
  column-gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otp-field input {
  height: 45px;
  width: 42px;
  border-radius: 6px;
  outline: none;
  font-size: 1.125rem;
  text-align: center;
  border: 1px solid #ddd;
  color: #005992;
}

.otp-field input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.otp-field input::-webkit-inner-spin-button,
.otp-field input::-webkit-outer-spin-button {
  display: none;
}

.container-otp .container-user-choice {
  display: flex;
  flex-direction: row;
}

.container-otp .container-user-choice a {
  flex: 1;
  display: inline;
  padding: 0;
}

@media screen and (max-width: 767px) {

  /* CSS code for mobile screens */
  .container-otp .card-body {
    margin-top: 1rem;
  }
}

/* === LOADING PAGE === */
/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
  background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */
@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* 
.instruct-people ul {
  padding-left: 20px;
}

.instruct-people ul li{
  display: block;
  margin-top: 10px;
}


.qr-donload-app-illustration img {
  margin-top: 50px;
  width: 100%;
}

.qr-donload-app-illustration img {
  display: block;
  margin: auto;
  width: 50%;

  color: #000;
}

.note-instruction {
  margin-top: 20px;
} */


/* ========== Base / Tokens ========== */
:root {
  --bg: #f4f7fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  /* slate-800 */
  --muted: #6b7280;
  /* gray-500 */
  --brand: #005992;
  /* blue-600 */
  --brand-2: #005992;
  /* sky-500 */
  --accent: #10b981;
  /* emerald-500 */
  --warn: #f59e0b;
  /* amber-500 */
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

/* ========== Card container ========== */
.content-box {
  max-width: 680px;
  margin: 24px auto;
  padding: 0 12px;
}

.content-box .thank-you-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}

/* ========== Headline / Sologan ========== */
.sologen {
  text-align: center;
  margin-bottom: 12px;
}

.title-sologen {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .2px;
  /* nhẹ nhàng gradient text */
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description-sologen {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

/* ========== Instruction list ========== */
.instruct-people {
  margin: 18px 0 10px;
}

.instruct-people p {
  margin: 0 0 8px;
  font-weight: 600;
}

.instruct-people ul {
  margin: 20px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.instruct-people li {
  position: relative;
  padding: 8px 12px 8px 40px;
  margin: 15px 0;
  background: #f8fafc;
  /* slate-50 */
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.instruct-people li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}

/* Nếu trong Pug bạn đã gõ "1. 2. 3." sẵn thì nên bỏ số, để counter ở trên lo phần numbering. */

/* ========== QR image ========== */
.qr-donload-app-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0 25px;
}

.qr-donload-app-illustration img {
  width: min(220px, 56vw);
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

/* ========== Note box ========== */
.note-instruction {
  margin-top: 14px;
  background: #f0f8fb;            /* nền nhạt pha xanh để dễ đọc */
  border: 1px solid #b3d5e3;      /* viền xanh nhạt */
  border-left: 4px solid #005992; /* viền nhấn chính */
  border-radius: 12px;
  padding: 12px 14px;
  color: #005992;                 /* chữ cùng tông xanh */
}

.note-instruction p {
  margin: 0;
}

.note-instruction u {
  text-underline-offset: 2px;
  font-weight: 700;
  color: #005992;
}

.note-instruction strong {
  font-weight: 800;
  color: #003d66; /* xanh đậm hơn một chút để nổi bật */
}

.note-instruction a {
  color: #005992;
  text-decoration: underline;
  word-break: break-word;
}

/* ========== Tiny polish ========== */
a {
  transition: opacity .15s ease;
}

a:hover {
  opacity: .85;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 480px) {
  .content-box .thank-you-content {
    padding: 22px 16px 18px;
  }

  .title-sologen {
    font-size: 20px;
  }

  .description-sologen {
    font-size: 14px;
  }

  .instruct-people li {
    padding-left: 45px;
  }
}

/* ========== Optional: dark mode (auto) ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card-bg: #0f172a;
    /* slate-900 */
    --text: #e5e7eb;
    --muted: #94a3b8;
    --shadow: 0 10px 26px rgba(0, 0, 0, .35);
  }

  .instruct-people li {
    background: #0b1220;
    border-color: #1f2a44;
  }

  .qr-donload-app-illustration img {
    background: #0b1220;
    border-color: #1f2a44;
  }

  .note-instruction {
    background: #2a1f0b;
    border-color: #8b5d00;
    color: #f7e0b0;
  }

  .note-instruction strong {
    color: #ffd28a;
  }
}