@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Dela+Gothic+One&display=swap");

:root {
  --font-primary: "Be Vietnam Pro", sans-serif;
  --font-secondary: "Dela Gothic One", cursive;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}
footer ul {
  list-style: none;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0px 40px;
}
.main-wrapper {
  display: grid;
  grid-template-columns: 65% 35%;
  padding: 40px 0px;
  gap: 32px;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-content {
  background: #fff;
  max-width: 100%;
}
.main-content h2 {
  font-size: 24px;
  font-family: var(--font-secondary);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #192393;
}
.sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 0;
  height: fit-content;
}
.step-wrapper {
  position: relative;
  display: flex;
  gap: 24px;
  background: linear-gradient(
      0deg,
      rgba(247, 148, 29, 0.2),
      rgba(247, 148, 29, 0.2)
    ),
    radial-gradient(
      30.71% 71.65% at -0.49% -0.13%,
      rgba(254, 153, 85, 0.8) 0%,
      rgba(255, 154, 86, 0) 100%
    ),
    radial-gradient(
      11.86% 76.72% at 90.96% 73.15%,
      rgba(254, 153, 85, 0.8) 0%,
      rgba(255, 154, 86, 0) 82.69%
    );
  border-radius: 8px;
  padding: 32px;
  padding-right: 200px;
  margin-bottom: 24px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.step {
  display: flex;
  align-items: center;
}
.step span:first-child {
  font-weight: bold;
  background: #1575fb;
  min-height: 28px;
  width: 80px;
  color: white;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-wrapper img {
  width: 200px;
  height: 230px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}
.step span:last-child {
  color: #000;
  margin-left: 12px;
  font-weight: 600;
}
.input-section table {
  width: 100%;
  border-collapse: collapse;
}
.input-section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input-section-content table tr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.input-section-content table tbody tr td:not(:first-child) {
  color: #00000040;
}
.input-section th,
.input-section td {
  border: 1px solid #e9ebee;
  padding: 8px;
  text-align: center;
  min-height: 42px;
}

.input-section th {
  background: #ffc47b;
  color: #000;
  font-weight: 500;
}
.banner-sidebar img {
  width: 100%;
}
.banner-sidebar button {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 8px;
}
.youtube h4 {
  text-transform: uppercase;
  color: #f7941d;
  font-size: 32px;
  margin-bottom: 16px;
}
.youtube iframe {
  width: 100%;
  aspect-ratio: 16/9;
}
.input-section-select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  max-width: 170px;
  width: 100%;
  min-height: 30px;
  outline: none;
  margin-left: 10px;
}
.input-step-2-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.input-step-2-table table tr {
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
}
.input-priority {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 16px;
  padding: 0px 16px;
  margin-bottom: 40px;
}
.input-priority > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.input-priority label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}
.input-priority-box {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 180px;
  outline: none;
  min-height: 36px;
  font-family: var(--font-primary);
}
.input-priority-box::placeholder {
  font-family: var(--font-primary);
  color: #00000040;
}
.btn-xem-ket-qua {
  background: #f7951d;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 70px;
  font-weight: bold;
  cursor: pointer;
  margin: 0px auto;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
}
.guide-section {
  background: #fff;
  border-radius: 12px;
  margin-top: 32px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-section .label {
  color: #f7941d;
  font-weight: bold;
  display: block;
  margin-bottom: 12px;
}
.guide-section .math {
  margin: 12px 0 20px 0;
  font-size: 18px;
}
.guide-section .fraction {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  margin: 0 4px;
}
.guide-section .numerator {
  border-bottom: 2px solid #222;
  display: block;
  padding: 0 8px;
}
.guide-section .denominator {
  display: block;
  font-size: 15px;
}
.guide-section .dxtn {
  font-weight: bold;
  font-size: 20px;
  color: #222;
}
.guide-section .note {
  margin-top: 20px;
  font-size: 15px;
}
.guide-section .note > b {
  color: #f7941d;
  font-style: italic;
}
.guide-section ul {
  margin: 8px 0 8px 24px;
}
.guide-section li {
  margin-bottom: 4px;
}
.guide-section ul:nth-child(2) {
  margin-bottom: 12px;
}

footer {
  background-color: #181e39;
}
footer * {
  color: #fff;
}
.footer-wrapper {
  display: grid;
  grid-template-columns: 30% 70%;
}
.footer-wrapper {
  padding: 50px 0px;
}
.footer-wrapper > div {
  padding-left: 15px;
  padding-right: 15px;
}
.footer-logo {
  max-width: 268px;
}
.footer-social {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-social a {
  width: 35px;
  border-radius: 50%;
}
.footer-social a img {
  max-width: 100%;
}
.footer-contact {
  margin-top: 20px;
}
.footer-contact h3 {
  font-size: 20px;
  font-weight: 600;
  color: #f27125;
  margin-bottom: 20px;
}
.footer-contact ul li {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 400;
  font-size: 14px;
}
.footer-contact ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-contact ul li a i {
  color: #f27125;
}
.footer-right h3 {
  font-size: 20px;
  color: #f27125;
  margin-bottom: 30px;
}
.footer-local {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.local-item {
  color: #fff;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-basis: 50%;
  max-width: 50%;
  padding: 0px 15px;
  margin-bottom: 20px;
  font-weight: 300;
}
.local-item h4 {
  text-decoration: none;
  font-size: 18px;
}
.local-item ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.local-item ul li {
  display: flex;
  gap: 5px 0px;
  line-height: 1.3;
}
.local-item ul li span {
  color: var(--cl-primary);
}
.formula img {
  max-width: 100%;
}
.popup-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.popup-result.active {
  opacity: 1;
  visibility: visible;
}
.popup-result-content {
  background-color: #0063eb;
  padding: 66px 30px 40px;
  border-radius: 25px;
  max-width: 440px;
  box-shadow: 4.18px 3.35px 6.11px 0px #00000026,
    -1px -6px 11.3px -2px #fffefe40 inset;
    position: relative;
    width: 100%;
}
.popup-result-close {
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
  background-color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f27125;
  color: #f27125;
}
.popup-content-img {
  position: absolute;
  top: -70px;
  right: -70px;
}
.popup-result-content h3 {
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}
.popup-result-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.popup-result-content form input, .popup-result-content form select {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 12px 16px;
  font-weight: 500;
  color: #000;
  border: 1px solid #FFFFFF33;
  outline: none;
  min-height: 48px;
  font-family: var(--font-primary);
}
.popup-result-content form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url(./images/arrow.svg);
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: #7A7A7B;
}

.popup-result-content form input::placeholder {
  font-family: var(--font-primary);
  color: #7A7A7B;

}

.popup-result-content form button {
  background-color: #F3701E;
  color: #fff;
  border: none;
  min-height: 56px;
  width: 100%;
  text-transform: uppercase;
  border: 1px solid #FFFFFF;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-primary);
  border-radius: 12px;
  cursor: pointer;
}

.popup-result-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}   
.popup-result-success.active {
  opacity: 1;
  visibility: visible;
}
.popup-result-success-content {
  background-color: #0063EB;
  padding: 20px;
  border-radius: 24px;
  max-width: 440px;
  box-shadow: 4.18px 3.35px 6.11px 0px #00000026,-1px -6px 11.3px -2px #FFFEFE40 inset;

  position: relative;
  width: 100%;
}
.popup-result-success-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.popup-result-success-img img{
  max-width: 225px;
}
.popup-result-success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background-color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px; 
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f27125;
  color: #f27125;
}

.popup-result-success h3 {
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
}
.popup-result-success p {
  font-weight: 400;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.tooltip {
  position: relative;
  display: inline;
}
.tooltip .tooltiptext {
  visibility: hidden;
  max-width: 170px;
  background: #464646;
  border-radius: 4px;
  font-size: 12px;
  position: absolute;
  bottom: 150%;
  z-index: 10;
  color: white;
  padding: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}
.tooltip .tooltiptext::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #464646 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
@media screen and (max-width: 1023px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .container {
    padding: 0px 16px;
  }
  .main-wrapper {
    display: flex;
    flex-direction: column;
  }
  .footer-wrapper > div {
    padding: 0px;
  }
  .input-step-2-table {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .input-step-2-table {
    grid-template-columns: 1fr;
  }
  .step-wrapper img {
    width: 50px;
    height: auto;
    bottom: -25px;
    top: auto;
  }
  .footer-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-local {
    flex-direction: column;
  }
  .local-item {
    max-width: 100%;
  }

  .input-step-2-table table {
    min-width: 100%;
  }
  .step-wrapper {
    padding: 16px 8px;
  }
  .step {
    align-items: start;
  }
  .step span {
    font-size: 14px;
  }
  .input-section * {
    font-size: 14px;
  }
  .input-section table * {
    font-size: 12px;
  }
  .input-priority {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0px;
  }
  .input-priority label b {
    font-size: 12px;
    font-weight: 400;
  }
  .input-priority > div {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }
  .input-section-content {
    margin-bottom: 16px;
  }
  .youtube h4 {
    font-size: 24px;
  }
  .main-content h2 {
    font-size: 15px;
  }
  .popup-result {
    padding: 20px;
  }
  .popup-content-img {
    top: -50px; right: 0px;
  }
  .popup-content-img img{
    max-width: 100px;
    width: 100%;
    height: auto;
  }
  .popup-result-content h3 {
    font-size: 16px;
  }
  .popup-result-content{
    padding-left: 20px;
    padding-right: 20px;
  }
  .popup-result-content form input, .popup-result-content form select {
    min-height: 42px;
  }
  .popup-result-content form button {
    min-height: 42px;
    font-size: 15px;
  }
  .input-section-select {
    margin-left: 0px;
    margin-top: 10px;
  }
  .tooltip .tooltiptext {
    max-width: 120px;
  }
  .popup-result-success {
    padding: 10px;
  }
  .popup-result-success h3 {
    font-size: 14px;
  }
  
}


table input {
  border:none;
  outline:none;
  text-align: center;
  max-width: 50px;
}
table input::placeholder {
  color: #00000040;
  font-family: var(--font-primary);
}
.banner {
  position: relative;
}

.banner-button {
  position: absolute;
  right: 25%;
  background: linear-gradient(28.66deg, #1575FB 9.67%, #44C6FE 79.74%);
border-radius: 30px;
border: 2.58px solid #FFFFFF;
min-height:64px;
padding: 10px 30px;
color: #fff;
font-size: 20px;
font-weight: 900;
font-family: var(--font-primary);
cursor: pointer;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
bottom:15%;
}
@media screen and (max-width: 1023px) {
  .banner-button {
    font-size: 16px;
    padding: 10px 20px;
    bottom: 12%;
    min-height: 50px;
  }
}
@media screen and (max-width: 768px) {
  .banner-button {
    font-size: 8px;
        padding: 5px 10px;
        min-height: auto;
        border-width: 1px;
        right: 22%;
  }
}

.note > div {
  padding: 8px 12px;
  border-radius: 8px;
  background: #FFD29F33;
  margin-bottom: 12px;;
}
.note > div > b {
  color: #F7941D;
  font-weight: 600;
  font-style: italic;
}