@font-face {
  font-family: "ToyotaType-Regular";
  src: url("./AvertaStdCY-Regular_3.otf");
  font-display: swap;
}

@font-face {
  font-family: "ToyotaType-Bold";
  src: url("./AvertaStdCY-Bold_1.otf");
  font-display: swap;
}

@font-face {
  font-family: "ToyotaType Semibold";
  src: url("./AvertaStdCY-Semibold_1.otf");
  font-display: swap;
}

@font-face {
  font-family: "ToyotaType Light";
  src: url("./AvertaStdCY-Light_1.otf");
  font-display: swap;
}

body,
html {
  width: 100%;
  height: 100%;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "ToyotaType-Regular", sans-serif;
  scrollbar-width: 0px;
  -ms-overflow-style: none;
  color: #000;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 0px;
}

#react-app {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.fixed-body {
  position: fixed;
}

.imgFull {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-mb,
.menu-top-mobile,
.menu-right-mobile {
  display: none;
}

.background {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: -16vw;
  left: 0;
}

.is-ios .background {
  top: -32vw;
}

.is-ios .container {
  scale: 0.9;
}

main {
  max-width: 375px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: block;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 215px;
  background: linear-gradient(to bottom, #b8e2fa, #ffffff);
  z-index: 0;
}

main .container {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
}

.btns {
  width: 100%;
  height: 48px;
  line-height: 48px;
  display: block;
  background: #EB0A1E;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 48px;
  font-size: 16px;
  text-transform: uppercase;
  font-family: "ToyotaType-Semibold", sans-serif;
  transition: all 0.25s;
  cursor: pointer;
}

.btns:hover {
  filter: brightness(1.1);
}

.btns.disabled {
  background: #999999;
  cursor: not-allowed;
}

.title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  color: #000;
}

.fwb {
  font-weight: bold;
  font-family: "ToyotaType-Bold", sans-serif;
}

.red-color {
  color: #EB0A1E;
}

.txt-left {
  text-align: left !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-group h3 {
  text-align: left;
  font-size: 16px;
  margin-bottom: 8px;
  color: #000;
  font-weight: 700;
}

form .note {
  font-size: 12px;
  margin-top: 9px;
}

.form-group h3.text-center {
  text-align: center;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #c5c6cb;
  outline: none;
  font-size: 14px;
  /* text-align: center; Center the text in the input field */
}

.form-group input:focus,
.form-group input:focus-within {
  border-color: #0088ff;
  background: none;
}

.form-group input::placeholder {
  font-size: 14px;
  color: #71727A;
}

.form-group input.bg-gray {
  background: #e6e6e6;
  border: 1px solid #404040;
}

.text-center {
  text-align: center !important;
}

.mt-10 {
  margin-top: 9px;
}

.form-group input.bg-gray::placeholder {
  color: #404040;
}

.form-group input.bg-gray:focus,
.form-group input.bg-gray:focus-within,
.form-group input.bg-gray:active {
  border-color: #0088ff;
  background: none;
}

.form-group input.bg-gray:not(:placeholder-shown) {
  border-color: #0088ff;
  background: #fff;
  color: #000;
}

.brand-logo {
  margin: 0 auto;
  display: block;
  width: 120px;
}

.brand-logo img {
  width: 100%;
  height: auto;
}

/* Sửa lại phần welcome-page */
.welcome-page {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}


.welcome-page .container {
  padding: 119px 30px 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: -15vw;
  left: 0;
  z-index: 2;
}

.welcome-page .brand-logo {
  width: 159px;
  height: auto;
  display: block;
  margin: auto;
}

.welcome-page .headline {
  margin-top: 65px;
  font-size: 24px;
  font-family: "ToyotaType-Bold", sans-serif;
  text-align: center;
}

.welcome-page .headline .highlight {
  display: block;
  color: #FF0000;
}

.welcome-page .sub {
  text-align: center;
  margin-top: 65px;
  font-size: 16px;
}

.welcome-page .btn-join {
  margin: 30px auto 0;
}

.login-page .container {
  position: relative;
  padding: 64px 0 0;
  z-index: 1;
}

.login-page .brand-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: auto;
}

.login-page .login-form {
  width: 100%;
  margin: 40px 0;
  padding: 0 24px;
  text-align: center;
}

.login-page .login-form .note {
  font-size: 12px;
  color: #71727A;
  text-align: left;
  margin-top: 8px;
}

.login-page .login-form .checkbox-container {
  font-size: 13px;
  color: #71727A;
  margin: 20px 0 0 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
}

.login-page .login-form .checkbox-container input {
  width: 24px;
  height: 24px;
  margin: 0 8px 0 0;
  border-radius: 6px;
}

.login-page .login-form .checkbox-container input {
  width: 24px;
  height: 24px;
  margin: 0 8px 0 0;
  border-radius: 6px;
  accent-color: #EB0A1E;
  /* THÊM DÒNG NÀY */
  cursor: pointer;
}

.login-page .login-form .checkbox-container input:checked {
  accent-color: #EB0A1E;
  /* Đảm bảo màu đỏ khi checked */
}

.login-page .login-form .checkbox-container a {
  color: #0088ff;
  text-decoration: none;
  margin-left: 4px;
  font-weight: bold;
  border: none;
  background: none;
}

.login-page .login-form .submitBtn {
  margin-top: 30px;
}

.policity {
  padding: 0 15px 0 24px;
  font-size: 12px;
  text-align: center;
  margin-top: 30px;
}

.policity .title {
  margin-bottom: 20px;
}

.policity .content {
  text-align: justify;
  height: calc(100vh - 182px);
  overflow: hidden;
  position: relative;
}

.policity .scroll-content {
  overflow-y: auto;
  height: 100%;
  padding-right: 15px;
}

.policity .scroll-content::after {
  content: "";
  width: 100%;
  height: 89px;
  position: absolute;
  bottom: 0;
  z-index: 2;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.568627451), #ffffff);
}

.policity .scroll-content::-webkit-scrollbar {
  width: 5px;
  background: #e7e8f0;
  border-radius: 5px;
}

.policity .scroll-content::-webkit-scrollbar-thumb {
  background: #EB0A1E;
  border-radius: 5px;
}

.policity .btn-wrapper {
  background: #fff;
  padding: 20px 0 40px;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
}

.policity .btn-wrapper.show {
  opacity: 1;
  pointer-events: visible;
}

.policity .btn-wrapper .btn-back {
  cursor: pointer;
}

.policity .btn-wrapper .btn-back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.otp-page .container {
  padding: 100px 24px 0;
  color: #71727A;
}

.otp-page .title {
  margin-top: 40px;
}

.otp-page p {
  font-size: 14px;
  text-align: center;
}

.otp-page .guideTxt {
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.otp-page .otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.otp-page .otp-input {
  width: 48px;
  height: 48px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #c5c6cb;
  border-radius: 12px;
  outline: none;
  transition: 0.2s;
}

.otp-page .otp-input:focus {
  border-color: #0088ff;
  /* xanh khi focus */
}

.otp-page .resend {
  margin-top: 30px;
  transition: 0.3s;
}

.otp-page .resendTxt {
  margin-top: 30px;
}

.otp-page .resend.active {
  color: #999999;
  margin-bottom: 30px;
}

.otp-page .resend.active .countdown {
  /* display: none; */
}

.phone-page .container {
  padding: 100px 24px 0;
  font-size: 16px;
  color: #71727A;
}

.phone-page .guideTxt {
  margin: 100px 0 0px;
  text-align: center;
}

.phone-page .enter-phone-form {
  margin-top: 40px;
}

.phone-page .submitBtn {
  margin-top: 20px;
}

.ques-answer-page .container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  padding: 50px 24px 100px;
  font-size: 14px;
  color: #71727A;
}

.ques-answer-page {
  /* Progress */
}

.ques-answer-page .progress-wrap {
  margin: 207px 0 35px;
}

.ques-answer-page .progress {
  flex: 1;
  height: 8px;
  background: #c5c6cb;
  border-radius: 6px;
  overflow: hidden;
}

.ques-answer-page .progress .inner {
  height: 100%;
  background: #EB0A1E;
  width: 0%;
  transition: width 0.35s ease;
}

.ques-answer-page .progress-counter {
  min-width: 44px;
  text-align: right;
  color: #71727A;
  margin-bottom: 10px;
}

.ques-answer-page .question {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin-bottom: 25px;
}

.ques-answer-page .answers {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ques-answer-page .answer {
  border: 2px solid #c5c6cb;
  border-radius: 17px;
  padding: 17px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
  display: flex;
  gap: 5px;
  position: relative;
}

.ques-answer-page .answer .text {
  flex: 1;
  text-align: left;
}

.ques-answer-page .answer .lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.7;
}

.ques-answer-page {
  /* selected (user choice) red border */
}

.ques-answer-page .answer.selected {
  border-color: #EB0A1E;
  box-shadow: 0 2px 6px rgba(230, 0, 0, 0.06);
}

/* active (user choice before reveal) blue border */
.ques-answer-page .answer.active {
  border-color: #0088ff;
  box-shadow: 0 2px 6px rgba(0, 136, 255, 0.06);
}

.ques-answer-page {
  /* correct after reveal */
}

.ques-answer-page .answer.correct {
  border-color: #0c7414;
  /* green */
  background: #eeffe9;
}

/* locked answers */
.ques-answer-page .answer.locked {
  cursor: not-allowed;
  opacity: 0.9;
}

/* incorrect answers */
.ques-answer-page .answer.incorrect {
  border-color: #EB0A1E;
  box-shadow: 0 2px 6px rgba(230, 0, 0, 0.06);
}

.ques-answer-page .correct-box {
  border-radius: 10px;
  padding: 14px;
  background: #eeffe9;
  border: 1px solid rgba(54, 179, 126, 0.15);
  display: none;
  position: static;
  width: 100%;
}

.ques-answer-page .correct-box.show {
  display: block;
}

.ques-answer-page .correct-box .title {
  font-weight: 700;
  margin-bottom: 12px;
  text-align: left;
}

.ques-answer-page .correct-box .desc {
  color: #71727A;
  font-size: 14px;
  line-height: 1.4;
}

.ques-answer-page {
  /* Buttons */
}

.ques-answer-page .controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: white;
  z-index: 10;
}

.ques-answer-page .btn {
  padding: 12px 16px;
  border-radius: 26px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

.ques-answer-page .btns.hidden {
  display: none;
}

.ques-answer-page .btn-back {
  color: #EB0A1E;
  border: 1px solid #EB0A1E;
  background: none;
}

.ques-answer-page .btn-next {
  background: #EB0A1E;
  color: #fff;
  border: none;
}

.ques-answer-page {
  /* small note */
}

.ques-answer-page .note {
  margin-top: 8px;
  color: #71727A;
  font-size: 13px;
}

.thankyou-message {
  color: #72727a;
  margin-top: 20vh;
  /* Use viewport height instead of fixed pixels */
  text-align: center;
}

.thankyou-message .btns {
  margin-top: 25px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  width: 300px;
  height: auto;
  min-height: 174px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal .title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #EB0A1E;
  font-family: "ToyotaType-Bold", sans-serif;
  letter-spacing: 0px;
}

.modal p {
  font-size: 12px;
  margin: 20px 0;
}

.modal p:last-child {
  margin: 0;
}

/* Win Modal Styles */
.modal-overlay .win-modal {
  width: 90%;
  max-width: 295px;
  height: auto;
  min-height: 165px;
  background: #fff;
  border-radius: 16px;
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
}

.modal-overlay .win-modal .modal-title {
  color: #EB0A1E;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 15px;
  width: 100%;
}

.modal-overlay .win-modal .modal-content {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.modal-overlay .win-modal .modal-content .red-text {
  color: #EB0A1E;
  font-weight: bold;
}

.modal-overlay .win-modal .modal-button {
  margin-top: 15px;
  background: #EB0A1E;
  color: white;
  border: none;
  border-radius: 26px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 480px) {
  main {
    max-width: 100vw;
  }

  .btns {
    height: 12.8vw;
    line-height: 12.8vw;
    border-radius: 12.8vw;
    font-size: 4.2666666667vw;
  }

  .mt-10 {
    margin-top: 2.1333333333vw;
  }

  form .note {
    font-size: 3.2vw;
    margin-top: 2.1333333333vw;
  }

  .title {
    font-size: 4.2666666667vw;
  }

  .form-group {
    margin-bottom: 5.3333333333vw;
  }

  .form-group h3 {
    font-size: 4.2666666667vw;
    margin-bottom: 2.1333333333vw;
  }

  .form-group input {
    height: 12.8vw;
    padding: 2.6666666667vw;
    border-radius: 3.2vw;
    font-size: 3.7333333333vw;
  }

  .form-group input::placeholder {
    font-size: 3.7333333333vw;
  }

  .welcome-page {
    background: #1b8bea;
  }

  .welcome-page .container {
    padding: 31.7333333333vw 8vw 0;
  }

  .welcome-page .brand-logo {
    width: 42.4vw;
  }

  .welcome-page .headline {
    margin-top: 17.3333333333vw;
    font-size: 6.4vw;
  }

  .welcome-page .sub {
    margin-top: 17.3333333333vw;
    font-size: 4.2666666667vw;
  }

  .welcome-page .btn-join {
    margin: 8vw auto 0;
  }

  .brand-logo {
    width: 32vw;
  }

  .login-page .container {
    padding: 17.0666666667vw 0 0;
  }

  .login-page .brand-logo {
    width: 32vw;
  }

  .login-page .login-form {
    margin: 10.6666666667vw 0;
    padding: 0 6.4vw;
  }

  .login-page .login-form .note {
    font-size: 3.2vw;
    margin-top: 2.1333333333vw;
  }

  .login-page .login-form .checkbox-container {
    font-size: 3.4666666667vw;
    margin: 5.3333333333vw 0 0 0;
  }

  .login-page .login-form .checkbox-container input {
    width: 6.4vw;
    height: 6.4vw;
    margin: 0 2.1333333333vw 0 0;
    border-radius: 1.6vw;
  }

  .login-page .login-form .checkbox-container a {
    margin-left: 1.0666666667vw;
  }

  .login-page .login-form .submitBtn {
    margin-top: 8vw;
  }

  .policity {
    padding: 0 4vw 0 6.4vw;
    font-size: 3.2vw;
    margin-top: 8vw;
  }

  .policity .title {
    margin-bottom: 5.3333333333vw;
  }

  .policity .content {
    height: calc(100vh - 48.5333333333vw);
  }

  .policity .scroll-content {
    padding-right: 4vw;
  }

  .policity .scroll-content::after {
    height: 23.7333333333vw;
  }

  .policity .scroll-content::-webkit-scrollbar {
    width: 1.3333333333vw;
    border-radius: 1.3333333333vw;
  }

  .policity .scroll-content::-webkit-scrollbar-thumb {
    border-radius: 1.3333333333vw;
  }

  .policity .btn-wrapper {
    padding: 5.3333333333vw 0 10.6666666667vw;
  }

  .policity .btn-wrapper .btn-back {
    cursor: pointer;
  }

  .policity .btn-wrapper .btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .otp-page .container {
    padding: 26.6666666667vw 6.4vw 0;
  }

  .otp-page .title {
    margin-top: 10.6666666667vw;
  }

  .otp-page p {
    font-size: 3.7333333333vw;
  }

  .otp-page .guideTxt {
    font-size: 3.7333333333vw;
    margin-top: 2.6666666667vw;
  }

  .otp-page .otp-container {
    gap: 2.6666666667vw;
    margin: 8vw 0;
  }

  .otp-page .otp-input {
    width: 12.8vw;
    height: 12.8vw;
    font-size: 16px;
    border-radius: 3.2vw;
  }

  .otp-page .resend {
    margin-top: 8vw;
  }

  .otp-page .resendTxt {
    margin-top: 8vw;
  }

  .otp-page .resend.active {
    margin-bottom: 8vw;
  }

  .phone-page .container {
    padding: 26.6666666667vw 6.4vw 0;
    font-size: 4.2666666667vw;
  }

  .phone-page .guideTxt {
    margin: 26.6666666667vw 0 0vw;
  }

  .phone-page .enter-phone-form {
    margin-top: 10.6666666667vw;
  }

  .phone-page .submitBtn {
    margin-top: 5.3333333333vw;
  }

  .ques-answer-page .container {
    padding: 13.3333333333vw 6.4vw 26.6666666667vw;
    font-size: 3.7333333333vw;
  }

  .ques-answer-page {
    /* Progress */
  }

  .ques-answer-page .progress-wrap {
    /* margin: 64vw 0 9.3333333333vw; */
  }

  .ques-answer-page .progress {
    height: 2.1333333333vw;
    border-radius: 1.6vw;
  }

  .ques-answer-page .progress-counter {
    min-width: 11.7333333333vw;
    margin-bottom: 2.6666666667vw;
  }

  .ques-answer-page .question {
    font-size: 4.2666666667vw;
    margin-bottom: 6.6666666667vw;
  }

  .ques-answer-page .answers {
    gap: 6.6666666667vw;
  }

  .ques-answer-page .answer {
    border-radius: 4.5333333333vw;
    padding: 4.5333333333vw;
    gap: 1.3333333333vw;
  }

  .ques-answer-page .answer.active {
    border-color: #0088ff;
    box-shadow: 0 2px 6px rgba(0, 136, 255, 0.06);
  }

  .ques-answer-page .answer.locked {
    cursor: not-allowed;
    opacity: 0.9;
  }

  .ques-answer-page .answer.incorrect {
    border-color: #EB0A1E;
    box-shadow: 0 2px 6px rgba(230, 0, 0, 0.06);
  }

  .ques-answer-page .correct-box {
    border-radius: 2.6666666667vw;
    padding: 3.7333333333vw;
  }

  .ques-answer-page .correct-box .title {
    margin-bottom: 3.2vw;
  }

  .ques-answer-page .correct-box .desc {
    font-size: 3.7333333333vw;
  }

  .ques-answer-page {
    /* Buttons */
  }

  .ques-answer-page .controls {
    gap: 3.2vw;
    margin-top: 4.8vw;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4.2666666667vw 6.4vw;
    background: white;
    z-index: 10;
  }

  .ques-answer-page .btn {
    padding: 3.2vw 4.2666666667vw;
    border-radius: 6.9333333333vw;
    font-size: 4vw;
    min-width: 32vw;
  }

  .thankyou-message {
    margin-top: 50vw;
  }

  .thankyou-message .btns {
    margin-top: 6.6666666667vw;
  }

  .modal {
    width: 80vw;
    min-height: 46.4vw;
    border-radius: 4.2666666667vw;
    padding: 5.3333333333vw;
  }

  .modal .title {
    font-size: 4.2666666667vw;
  }

  .modal p {
    font-size: 3.2vw;
    margin: 5.3333333333vw 0;
  }
}

/* Additional media query for very small screens */
@media (max-width: 320px) {
  .ques-answer-page .question {
    font-size: 3.5vw;
    margin-bottom: 5vw;
  }

  .ques-answer-page .answers {
    gap: 5vw;
  }

  .ques-answer-page .answer {
    padding: 3vw;
    border-radius: 3vw;
  }

  .ques-answer-page .answer.active {
    border-color: #0088ff;
    box-shadow: 0 2px 6px rgba(0, 136, 255, 0.06);
  }

  .ques-answer-page .answer.locked {
    cursor: not-allowed;
    opacity: 0.9;
  }

  .ques-answer-page .answer.incorrect {
    border-color: #EB0A1E;
    box-shadow: 0 2px 6px rgba(230, 0, 0, 0.06);
  }

  .ques-answer-page .controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: white;
    z-index: 10;
  }

  .ques-answer-page .container {
    padding: 26.6666666667vw 6.4vw 40vw;
  }

  .thankyou-message {
    margin-top: 15vh;
  }

  .modal-overlay .win-modal {
    width: 95%;
    padding: 15px;
  }

  .modal-overlay .win-modal .modal-title {
    font-size: 14px;
  }

  .modal-overlay .win-modal .modal-content {
    font-size: 11px;
  }
}