* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  font-family: "Be Vietnam Pro", sans-serif;
  overflow-x: hidden;
}

.back-to-landing {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: #91121C;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(145, 18, 28, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.back-to-landing:hover {
  background: #91121C;
  color: #FFFFFF;
  border-color: #91121C;
}

@media (max-width: 480px) {
  .back-to-landing {
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 0.35rem 0.6rem;
  }
}
.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: 0.2s;
  width: 92%;
  max-width: 540px;
  text-align: center;
}

.question-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: 0.2s;
  width: 92%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.local-gif {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 1.75rem auto;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.intro-header {
  text-align: center;
  margin-bottom: 1.85rem;
  max-width: 520px;
  width: 100%;
}
.brand-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #91121C;
  line-height: 1.15;
  margin-bottom: 0.45rem;
  letter-spacing: -0.5px;
}
.brand-slogan {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 0;
}
.brand-divider {
  width: 44px;
  height: 3.5px;
  background-color: #91121C;
  border-radius: 4px;
  margin: 0.95rem auto 1.05rem auto;
}
.question {
  font-size: 1.18rem;
  line-height: 1.45;
  margin-bottom: 0;
  text-align: center;
  color: #2b3649;
  font-weight: 500;
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  width: 100%;
  min-height: 60px;
}
.btn {
  position: relative;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  transform: scale(1);
  user-select: none;
  -webkit-user-select: none;
}
.yes-btn {
  background-color: #91121C;
  color: white;
  box-shadow: 0px 4px 15px rgba(145, 18, 28, 0.4);
}
.yes-btn:hover {
  background-color: #b51a25;
  transform: scale(1.06);
  box-shadow: 0px 6px 20px rgba(145, 18, 28, 0.6);
}
.no-btn {
  background-color: #FFF0F2;
  color: #91121C;
  border: 1px solid rgba(145, 18, 28, 0.16);
  box-shadow: 0px 2px 10px rgba(145, 18, 28, 0.06);
}
.no-btn:hover {
  background-color: #FFE2E6;
  color: #91121C;
  border-color: rgba(145, 18, 28, 0.3);
  transform: scale(1.04);
  box-shadow: 0px 4px 14px rgba(145, 18, 28, 0.12);
}
.btn:active {
  transform: scale(0.98);
}
.no-btn.is-moving {
  position: fixed !important;
  z-index: 99999 !important;
  margin: 0 !important;
  transition: left 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-yes {
  from {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(145, 18, 28, 0.5);
  }
  to {
    transform: scale(1.18);
    box-shadow: 0px 8px 30px rgba(225, 29, 72, 0.9);
  }
}

.result-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: 0.2s;
  width: 92%;
  max-width: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* FORM CONTAINER (MÀN HÌNH 2) */
.form-container {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: 0.2s;
  width: 92%;
  max-width: 440px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.form-gif {
  max-width: 160px;
  margin: 0 auto 0.85rem auto;
}
.form-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #91121C;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.form-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.lead-form {
  width: 100%;
  text-align: left;
}
.form-group {
  margin-bottom: 1.15rem;
  position: relative;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.form-label .required {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.form-label .optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: #718096;
  margin-left: 4px;
}
.input-wrapper,
.email-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid #d0d5dd;
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.input-wrapper:focus-within,
.email-input-wrapper:focus-within {
  background-color: #fff;
  border-color: #91121C;
  box-shadow: 0 0 0 3px rgba(145, 18, 28, 0.12);
}
.input-wrapper.input-error,
.email-input-wrapper.input-error {
  border-color: #d32f2f;
  background-color: #fffaf9;
}
.input-wrapper.input-error:focus-within,
.email-input-wrapper.input-error:focus-within {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}
.input-icon,
.email-icon {
  width: 20px;
  height: 20px;
  stroke: #334155;
  flex-shrink: 0;
  margin-right: 12px;
}
.form-input-clean {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  font-family: "Be Vietnam Pro", sans-serif;
  color: #1a1a1a;
  padding: 0;
  height: 100%;
}
.form-input-clean::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
/* Loại bỏ hoàn toàn màu nền xanh/vàng tự động của trình duyệt khi Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
.form-input-clean:-webkit-autofill,
.form-input-clean:-webkit-autofill:hover,
.form-input-clean:-webkit-autofill:focus,
.form-input-clean:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
  caret-color: #1a1a1a !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
  border-radius: 8px;
}
.domain-divider {
  width: 1.5px;
  height: 22px;
  background-color: #e2e8f0;
  margin: 0 12px;
  flex-shrink: 0;
}
.domain-suffix {
  font-size: 14.5px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.error-msg {
  display: none;
  font-size: 0.82rem;
  color: #d32f2f;
  margin-top: 0.4rem;
  font-weight: 500;
}
.error-msg.show {
  display: block;
}
.global-error {
  display: none;
  font-size: 0.88rem;
  color: #c62828;
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}
.global-error.show {
  display: block;
}
.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  background-color: #91121C;
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0px 4px 15px rgba(145, 18, 28, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover:not(:disabled) {
  background-color: #b51a25;
  transform: scale(1.02);
  box-shadow: 0px 6px 20px rgba(145, 18, 28, 0.6);
}
.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0px 4px 10px rgba(145, 18, 28, 0.25);
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.submit-btn.loading .btn-spinner {
  display: inline-block;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .local-gif {
    max-width: 100%;
    border-radius: 12px;
  }
  .success-img {
    max-width: 100%;
    border-radius: 14px;
  }
  .form-gif {
    max-width: 160px;
    margin-bottom: 0.65rem;
  }
  .intro-header {
    margin-bottom: 1.4rem;
  }
  .brand-title {
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
  }
  .brand-slogan {
    font-size: 1.18rem;
  }
  .brand-divider {
    width: 36px;
    height: 3px;
    margin: 0.75rem auto 0.85rem auto;
  }
  .question {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0;
  }
  .button-container {
    gap: 0.85rem;
  }
  .btn {
    font-size: 15px;
    padding: 12px 20px;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .form-desc {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }
  .input-wrapper,
  .email-input-wrapper {
    height: 48px;
    padding: 0 10px;
  }
  .input-icon,
  .email-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
  .form-input-clean {
    font-size: 13.5px;
  }
  .domain-divider {
    margin: 0 8px;
    height: 18px;
  }
  .domain-suffix {
    font-size: 13.5px;
  }
}

/* heart loader */
.cssload-main {
  display: none;
  position: absolute;
  content: "";
  top: 17%;
  left: 50%;
  margin: 200px auto 0 auto;
  transform: translate(-100%, -50%);
  -o-transform: translate(-100%, -240%);
  -ms-transform: translate(-100%, -240%);
  -webkit-transform: translate(-100%, -240%);
  -moz-transform: translate(-100%, -240%);
}

.cssload-main * {
  font-size: 62px;
}

.cssload-heart {
  animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  -o-animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -ms-animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -webkit-animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -moz-animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  top: 50%;
  content: "";
  left: 50%;
  position: absolute;
}

.cssload-heartL {
  width: 1em;
  height: 1em;
  border: 1px solid #91121C;
  background-color: #91121C;
  content: "";
  position: absolute;
  display: block;
  border-radius: 100%;
  animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  -o-animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -ms-animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -webkit-animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -moz-animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  transform: translate(-28px, -27px);
  -o-transform: translate(-28px, -27px);
  -ms-transform: translate(-28px, -27px);
  -webkit-transform: translate(-28px, -27px);
  -moz-transform: translate(-28px, -27px);
}

.cssload-heartR {
  width: 1em;
  height: 1em;
  border: 1px solid #91121C;
  background-color: #91121C;
  content: "";
  position: absolute;
  display: block;
  border-radius: 100%;
  transform: translate(28px, -27px);
  -o-transform: translate(28px, -27px);
  -ms-transform: translate(28px, -27px);
  -webkit-transform: translate(28px, -27px);
  -moz-transform: translate(28px, -27px);
  animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  -o-animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -ms-animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -webkit-animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -moz-animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
}

.cssload-square {
  width: 1em;
  height: 1em;
  border: 1px solid #91121C;
  background-color: #91121C;
  position: relative;
  display: block;
  content: "";
  transform: scale(1) rotate(-45deg);
  -o-transform: scale(1) rotate(-45deg);
  -ms-transform: scale(1) rotate(-45deg);
  -webkit-transform: scale(1) rotate(-45deg);
  -moz-transform: scale(1) rotate(-45deg);
  animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  -o-animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -ms-animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -webkit-animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -moz-animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
}

.cssload-shadow {
  top: 97px;
  left: 50%;
  content: "";
  position: relative;
  display: block;
  bottom: -0.5em;
  width: 1em;
  height: 0.24em;
  background-color: rgb(215, 215, 215);
  border: 1px solid rgb(215, 215, 215);
  border-radius: 50%;
  animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  -o-animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -ms-animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -webkit-animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
  -moz-animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite
    normal;
}

@keyframes cssload-square {
  50% {
    border-radius: 100%;
    transform: scale(0.5) rotate(-45deg);
  }
  100% {
    transform: scale(1) rotate(-45deg);
  }
}

@-o-keyframes cssload-square {
  50% {
    border-radius: 100%;
    -o-transform: scale(0.5) rotate(-45deg);
  }
  100% {
    -o-transform: scale(1) rotate(-45deg);
  }
}

@-ms-keyframes cssload-square {
  50% {
    border-radius: 100%;
    -ms-transform: scale(0.5) rotate(-45deg);
  }
  100% {
    -ms-transform: scale(1) rotate(-45deg);
  }
}

@-webkit-keyframes cssload-square {
  50% {
    border-radius: 100%;
    -webkit-transform: scale(0.5) rotate(-45deg);
  }
  100% {
    -webkit-transform: scale(1) rotate(-45deg);
  }
}

@-moz-keyframes cssload-square {
  50% {
    border-radius: 100%;
    -moz-transform: scale(0.5) rotate(-45deg);
  }
  100% {
    -moz-transform: scale(1) rotate(-45deg);
  }
}

@keyframes cssload-heart {
  50% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(720deg);
  }
}

@-o-keyframes cssload-heart {
  50% {
    -o-transform: rotate(360deg);
  }
  100% {
    -o-transform: rotate(720deg);
  }
}

@-ms-keyframes cssload-heart {
  50% {
    -ms-transform: rotate(360deg);
  }
  100% {
    -ms-transform: rotate(720deg);
  }
}

@-webkit-keyframes cssload-heart {
  50% {
    -webkit-transform: rotate(360deg);
  }
  100% {
    -webkit-transform: rotate(720deg);
  }
}

@-moz-keyframes cssload-heart {
  50% {
    -moz-transform: rotate(360deg);
  }
  100% {
    -moz-transform: rotate(720deg);
  }
}

@keyframes cssload-heartL {
  60% {
    transform: scale(0.4);
  }
}

@-o-keyframes cssload-heartL {
  60% {
    -o-transform: scale(0.4);
  }
}

@-ms-keyframes cssload-heartL {
  60% {
    -ms-transform: scale(0.4);
  }
}

@-webkit-keyframes cssload-heartL {
  60% {
    -webkit-transform: scale(0.4);
  }
}

@-moz-keyframes cssload-heartL {
  60% {
    -moz-transform: scale(0.4);
  }
}

@keyframes cssload-heartR {
  40% {
    transform: scale(0.4);
  }
}

@-o-keyframes cssload-heartR {
  40% {
    -o-transform: scale(0.4);
  }
}

@-ms-keyframes cssload-heartR {
  40% {
    -ms-transform: scale(0.4);
  }
}

@-webkit-keyframes cssload-heartR {
  40% {
    -webkit-transform: scale(0.4);
  }
}

@-moz-keyframes cssload-heartR {
  40% {
    -moz-transform: scale(0.4);
  }
}

@keyframes cssload-shadow {
  50% {
    transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}

@-o-keyframes cssload-shadow {
  50% {
    -o-transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}

@-ms-keyframes cssload-shadow {
  50% {
    -ms-transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}

@-webkit-keyframes cssload-shadow {
  50% {
    -webkit-transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}

@-moz-keyframes cssload-shadow {
  50% {
    -moz-transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}
