.overlay {
  position: fixed !important;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 999;
  pointer-events: unset !important;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: #100907B2;
}

#popup-register.active {
  display: block !important;
}

.popup {
  margin: 15% auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
  text-align: center;
  background: url("../images/popup-bg.png");
  width: 555px;
  position: relative;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 12px;
  right: 12px;
  transition: all 200ms;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: #06d85f;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}

#main .section {
  z-index: 1;
}

.form-submit {
  padding: 0;
  padding-top: 60px;
  margin-bottom: 0;
  z-index: 2;
  position: relative;
}

.normal-form-submit.form-submit {
  padding-top: 0;
}

.form-submit .form-input-wrapper {
  margin-bottom: 12px;
}

.form-submit .form-input {
  display: block;
  position: relative;
  gap: 0px;
  border-radius: 8px;
  border: 1px solid #fede5e;
  background: transparent;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.form-input-phone {
  margin-bottom: 0 !important;
}

.form-submit .form-input img.form-icon-image {
  position: absolute;
  top: 7px;
  left: 5px;
}

.form-submit .form-input input {
  background: transparent;
  border: unset;
  color: white;
  margin-bottom: 0;
  outline: unset;
  box-shadow: none;
  margin-left: 32px !important;
  padding: 0 !important;
}

.form-input-pass .toggle-password {
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.form-submit .form-input::before {
  content: "";
  background-size: 100% 100%;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  left: 16px;
  background-repeat: no-repeat;
}

.form-input-user::before {
  background-image: url("../../assets/images/Frame.png");
}

.form-input-pass::before {
  background-image: url("../../assets/images/Frame-1.png");
}

.form-input-phone::before {
  background-image: url("../../assets/images/Frame.png");
}

.form-input-wrapper:last-child {
  margin-bottom: 0 !important;
}

.form-submit .form-input.error {
  border-color: #F00 !important;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.25) inset;
}

.form-input-wrapper label {
  background: var(--gradient-red,
      linear-gradient(90deg,
        #aa5c44 -2.26%,
        #e43023 28.78%,
        #e8533d 61.38%,
        #e96a00 79.49%,
        #e70e02 101.22%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: red;
  transform: initial;
  display: none;
  text-align: left;
  margin-top: 6px;
  margin-bottom: 0;
}

.form-submit .form-input input:focus {
  outline: unset !important;
  border: unset !important;
  box-shadow: unset !important;
  background-color: transparent !important;
}

.form-submit .form-input input::placeholder,
.form-submit .form-input input::-webkit-input-placeholder,
.form-submit .form-input input::-moz-placeholder,
.form-submit .form-input input:-ms-input-placeholder {
  color: #a8c6ae;
}

.form-input:has(input:focus) {
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

.close-popup img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.toggle-password {
  cursor: pointer;
}

.loader-submit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.dotted-loader::after,
.dotted-loader::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px #ffdf74;
  border-style: dotted solid dotted solid;
  animation: turn-left 1.5s linear infinite;
}

.dotted-loader::before {
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  width: 150px;
  height: 150px;
  border-style: dotted dotted solid solid;
  animation: turn-right 1.5s linear infinite;
}

.hide {
  display: none;
}

.no-scroll {
  overflow: hidden;
  height: 100%;
  /* Ngăn nội dung bị cuộn dọc */
  position: fixed;
}

.show-noti {
  margin-top: 25px;
}

@keyframes turn-right {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes turn-left {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@media screen and (max-width: 700px) {
  .box {
    width: 70%;
  }

  .popup {
    width: 70%;
  }

  .popup {
    background: url("../images/popup-bg.png");
    width: 350px;
    margin: 30% auto;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .popup .close {
    font-size: unset;
  }

  .form-submit .form-input input {
    font-size: 14px;
  }

  .popup {
    width: 361px !important;
  }
}

.show-noti h4 {
  text-align: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 19.2px */
  text-transform: uppercase;
  background: linear-gradient(90deg,
      #aa5c44 -2.26%,
      #e43023 28.78%,
      #e8533d 61.38%,
      #e96a00 79.49%,
      #e70e02 101.22%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 16px;
}

.show-noti h2 {
  color: #fff;
  text-align: center;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 28.8px */
  text-transform: uppercase;
}

.show-noti span {
  color: #fff;
  text-align: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.btn-download-mobile {
  position: relative;
  text-align: center;
}

.btn-download-mobile span {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  color: currentColor;
  cursor: pointer;
  display: block;
  font-size: 10px;
  font-weight: bolder;
  letter-spacing: .03em;
  line-height: 2.4em;
  margin-right: 1em;
  margin-top: 0;
  max-width: 100%;
  min-height: 2.5em;
  padding: 0 1.2em;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  text-shadow: none;
  margin-bottom: -30px;
  transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.btn-download-mobile img {
  width: 100%;
}

@supports (-webkit-tap-highlight-color: transparent) and (hover: none) {

  /* Chỉ áp dụng cho các thiết bị Android */
  .apple-button {
    display: none;
  }
}

@supports (-webkit-touch-callout: none) and (not (hover: hover)) {

  /* Chỉ áp dụng cho các thiết bị iOS */
  .android-button {
    display: none;
  }
}

@media screen and (max-width: 720px) {
  .show-noti h4 {
    font-size: 14px;
  }

  .show-noti h2 {
    font-size: 18px;
  }
}

.btn-register {
  cursor: pointer;
  margin-top: 25px;
}

.popup-title {
  color: #fff !important;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.logo-popup {
  height: 64px;
  position: absolute;
  top: -84px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
