:root {
    --font-family: 'Montserrat', sans-serif;
    --background-color: #ffffff;
    --main-color: #1672ce;
}

html {
  scroll-behavior: smooth;
  background: #ededed;
}

body {
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    overflow-x: hidden;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-family);
    line-height: 1.4;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background-color);
    color: var(--main-color);
    -webkit-text-size-adjust: 100%;
}

img {
    width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
  
li {
    margin: 0;
    padding: 0;
}
  
a {
    color: inherit;
    text-decoration: none;
}

h2 {
    text-align: center;
    font-size: 7vw;
    font-family: '1FTVVIPBlona-Regular', sans-serif;
    font-weight: 500;
}

h3 {
    text-align: center;
    font-size: 16px;
    font-family: '1FTVVIPBlona-Regular', sans-serif;
}

.container {
    margin: 0 10px;
}

.azka-section {
  background: var(--background-color);
}

iframe {
    display: block;
    margin: 0 auto;
}

.banner-hero {
    position: relative;
}

.banner-hero button {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.content h2 {
    margin: 0;
    padding: 20px 0;
    font-size: 6vw;
}

.header {
  padding: 20px 0;
}

.header img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
}

/* Form Trial */
.trial-card {
    display: grid;
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    border: solid 3px var(--main-color);
}

.trial-card h2 {
    color: #e71f1f;
    margin: 10px 10px 0;
    font-family: var(--font-family);
    font-weight: 600;
}

.trial-card .date {
    margin: 0;
    color: #e71f1f;
    padding-bottom: 5px;
}

.trial-content {
    background: #428fd5;
    border-radius: 0 0 17px 17px;
    padding: 10px;
}

.input-100 {
    width: 100%;
}

.title-combo p {
    margin: 0;
}

.combo {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
}

.combo p {
    margin-top: 0;
}

.combo strong {
    display: block;
    font-size: 14px;
}

.combo .plus {
    font-size: 40px;
    font-weight: bold;
}

.product-img {
    display: flex;
    justify-content: space-evenly;
    gap: 50px;
    margin: 0 0 20px;
    overflow: hidden; 
}

.product-img img {
    width: 40%;
}

/* FORM */
form input {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.label {
    text-align: left;
    font-weight: bold;
    margin: 25px 0 5px;
    text-transform: uppercase;
    font-size: 3.2vw;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 5px 10px;
    text-align: left;
    margin-bottom: 10px;
}

.other-checkbok {
    display: flex;
    width: 100%;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

button {
    width: 65%;
    font-size: 16px;    
    padding: 5px;
    border-radius: 25px;
    border: solid 2px transparent;
    font-weight: bold;
    color: var(--background-color);
    cursor: pointer;
    margin-top: 20px;
    background: linear-gradient(#ff5a5a, #ff3b3b) padding-box, linear-gradient(334deg, #ff3b3b 0%, #ff8a8a 2%, #ffffff 20%, #ffffff 80%, #ff8a8a 98%, #ff3b3b 100%) border-box;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px #ff3b3b8c;
}

button:hover {
    opacity: 0.9;
}

/* POPUP */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.solution h2 {
  font-size: 6vw;
}

.solution p {
    text-align: center;
}

.solution-img {
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 4%;
    align-items: flex-end;
}

.impact {
    position: relative;
    padding: 70px 10px;
    margin: 0 -10px;
    z-index: 1;
    overflow-x: hidden;
}

.impact h2 {
  font-size: 8vw;
  margin-bottom: 0;
}

.impact h3 {
  margin-top: 0;
  font-weight: 500;
}

.impact::before,
.impact::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.impact::before {
    top: 0;
    height: 337px;
    background-position: top;
    background-image: url("https://azka.vn/wp-content/themes/azka/templates/free-trial/imgs/impact-bg-1.png");
}

.impact::after {
    bottom: 0;
    height: 504px;
    background-position: bottom;
    background-image: url("https://azka.vn/wp-content/themes/azka/templates/free-trial/imgs/impact-bg-2.png");
}

.impact-section-1 {
    display: grid;
    grid-template-columns: 37.5% 62.5%;
}

.impact-section-2 {
    padding-top: 30px;
}

.impact button {
    display: block;
    margin: 0 auto;
    width: 75%;
}

.recommend {
    padding: 20px 0;
    overflow-x: hidden;
}

.recommend h2,
.h2-hieuqua {
  font-size: 7vw;
}

.symptom-section {
    margin: auto;
  }
  
  .item {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  /* Ảnh tròn */
  .item img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
  }
  
  /* Thanh nền */
  .item .text {
    background: #d9edf3;
    padding: 15px 25px;
    border-radius: 50px;
    color: var(--main-color);
    flex: 1;
    white-space: nowrap;
  }
  
  /* Layout trái */
  .item.left img {
    margin-right: -40px;
  }
  
  .item.left .text {
    padding-left: 60px;
  }
  
  /* Layout phải */
  .item.right {
    justify-content: flex-end;
  }
  
  .item.right img {
    margin-left: -40px;
  }
  
  .item.right .text {
    padding-right: 60px;
    text-align: right;
  }  


  .footer-anvy {
    background: #e6f9ff;
    padding: 20px 10px;
  }
  
  .footer-anvy .container {
    margin: auto;
  }
  
  .footer-anvy .title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #333;
  }
  
  .footer-content {
    display: grid;
    align-items: flex-start;
  }
  
  /* Logo */
  .footer-content .logo img {
    width: 120px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
  
  /* Nội dung */
  .footer-content .info h4 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .footer-content .info p {
    margin: 6px 0;
    font-size: 14px;
  }
  
  .footer-content .info a {
    text-decoration: none;
  }
  
  /* Note nhỏ */
  .footer-content .note {
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
  }  


  .faq-section {
    margin: 30px 0 0 0;
    padding-bottom: 30px;
    display: grid;
    gap: 15px;
  }
  
  .faq-item {
    border: 1px solid #a9cfe3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  
  /* Câu hỏi */
  .faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    grid-template-columns: 90% 5%;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #caedff;
  }
  
  /* Icon */
  .faq-question .icon {
    background: var(--main-color);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  
  /* Nội dung */
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 20px;
    color: var(--main-color);
    line-height: 1.6;
    text-align: justify;
  }
  
  /* Active */
  .faq-item.active .faq-answer {
    max-height: 100%;
    padding: 15px 20px;
  }
  
  .faq-item.active .icon {
    transform: rotate(180deg);
  }  

  .faq-answer::before {
    content: "";
    border-top: solid 1px;
  }

  .feedback-section {
    padding: 20px 10px;
  }

  .feedbackSwiper {
    margin: auto;
  }

  .feedback-section .swiper-wrapper {
    height: auto !important;
  }

  .feedback-section .swiper {
    padding-top: 70px;
  }
  
  .card {
    background: #cfe3ea;
    border: 2px solid #9ccae0;
    border-radius: 20px;
    padding: 60px 20px 30px;
    text-align: center;
    position: relative;
  }
  
  /* Avatar nổi */
  .avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
  }
  
  /* Text */
  .card h3 {
    color: var(--main-color);
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 500;
  }
  
  .card .meta {
    color: var(--main-color);
    margin-bottom: 15px;
  }
  
  .card .desc {
    color: var(--main-color);
    line-height: 1.6;
    text-align: justify;
  }
  
  /* Nút */
  .swiper-button-prev,
  .swiper-button-next {
    color: #9ccae0;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 22px;
  }  


  .product-section {
    text-align: center;
    padding: 40px 20px;
  }

  .product-section .swiper-wrapper {
    height: auto !important;
  }
  
  .title {
    color: var(--main-color);
    margin-bottom: 20px;
  }
  
  .productSwiper {
    margin: auto;
  }
  
  .productSwiper img {
    width: 100%;
    cursor: pointer;
  }

  .product-section i {
    font-size: 13px;
  }
  
  /* Info */
  .products-info {
    margin-top: 20px;
    max-width: 600px;
    margin-inline: auto;
    text-align: left;
  }
  
  .products-info h3 {
    color: var(--main-color);
    font-size: 26px;
    margin: 10px 0;
  }
  
  .products-info .price {
    color: var(--main-color);
    font-size: 22px;
    font-weight: bold;
  }
  
  .desc {
    color: var(--main-color);
    line-height: 1.6;
  }
  
  /* Popup */
  .popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }
  
  .close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 20px;
  }

  .title-product-azka {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: solid 1px;
  }

  .product-section .title {
    margin: 0;
  }
  
  .impact-products {
    margin-top: 50px;
  }

  .popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* Mặc định ẩn */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: linear-gradient(45deg, #1d6bb3d1, #3d87c4ab);
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: white;
    border: solid 1px;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

#popup-text-content h3 {
  text-align: left;
  margin: 10px 0;
}

#popup-text-content p {
  margin: 10px 0;
  text-align: justify;
}

.neon-effect {
    cursor: pointer;
    transition: 0.3s;
}

.neon-effect a, #submitBtn {
    display: inline-block;
    animation: neon-blink 2.5s infinite alternate;
}

.neon-effect:hover a {
  animation-play-state: paused;
  opacity: 1;
}

@keyframes neon-blink {
  0% {
      color: white;
      opacity: 1;
  }
  10% {
      color: yellow;
      opacity: 0.5; 
  }
  20% {
    color: white;
    opacity: 1;
  }
  30% {
    color: blueviolet;
    opacity: 0.5; 
  }
  40% {
    color: white;
    opacity: 1;
  }
  50% {
    color: green;
    opacity: 0.5; 
  }
  60% {
    color: white;
    opacity: 1;
  }
  70% {
    color: blue;
    opacity: 0.5; 
  }
  80% {
    color: white;
    opacity: 1;
  }
  90% {
    color: palevioletred;
    opacity: 0.5; 
  }
  100% {
    color: white;
    opacity: 1;
  }
}


.btn-call {
  display: inline-block;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 20px;
  background: #ff3b3b;
  color: #fff;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 59, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
  }
}

/* Form đặt hàng */
.order-form {
  display: grid;
  justify-items: center;
  margin: 30px auto;
  background: linear-gradient(180deg, #eaf6ff, #cfe9ff);
  padding: 20px 10px;
  border-radius: 20px;
  max-width: 600px;
}

.order-form input[type="text"],
.order-form input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: none;
  border-radius: 30px;
  background: white;
  outline: none;
}

.order-table {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

.order-table del {
  text-align: center;
  color: #ff0000cf;
}

.order-table .row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  align-items: center;
  padding: 8px 5px;
  border-bottom: 1px solid #e6eef5;
  font-size: 14px;
}

.order-table .header {
  background: var(--main-color);
  color: #fff;
  font-weight: bold;
}

.order-table input[type="number"] {
  width: 60px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #eaf6ff, #cfe9ff);
  padding: 6px;
  margin-bottom: 0;
}

.order-table .price-order {
  text-align: right;
}

.order-table .total {
  font-weight: bold;
  color: var(--main-color);
}

#total {
  color: red;
}

.order-table .total div:last-child {
  text-align: right;
}

.expense {
  text-align: right;
}

.row.header div:last-child {
  text-align: right;
}

.order-table .row div:nth-child(2),
.order-table .row div:nth-child(3) {
  text-align: center;
}

.order-form h2 {
  margin-top: 0;
}

.radio-group {
  text-align: left;
}

.swal2-actions button {
  width: 100%;
}


/* Popup Content */
#popup-container {
  position: fixed;
  z-index: 9999;
  transition: all 0.2s ease-in-out;
}

.popup-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}

.popup-minimized {
  top: 60% !important;
  left: -50% !important;
  transform: translate(0, 0) scale(0.15) !important;
  cursor: pointer;
  opacity: 0.95;
}

.popup-content-2 {
  position: relative;
  background: transparent;
}

#popup-trigger {
  width: 100%;
  display: block;
  cursor: pointer;
}

#close-popup {
  position: absolute;
  top: -10px;
  right: -10px;
  color: #fa302c;
  line-height: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 40px;
}

.popup-minimized #close-popup {
  display: none;
}

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff73; 
  z-index: 9998; 
  display: none; 
}

.overlay-active {
  display: block !important;
}

@media screen and (min-width: 768px) {
  #popup-trigger {
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  .popup-minimized {
    left: 0% !important;
    transform: translate(0, 0) scale(0.3) !important;
  }
  h2, .feedback-section h2, .content h2, .impact h2 {
    font-size: 3vw;
    margin: 0;
  }
  .impact h3 {
    font-size: 1.5vw;
  }
  .trial-card h2, .title-eecv h2, .h2-hieuqua, .solution h2, .recommend h2, #product-name {
    font-size: 2vw !important;
  }
  .title-eecv h3 {
    font-size: 1.5vw !important;
  }
  .footer-anvy .title {
    font-size: 2.5vw;
  }
  .symptom-section {
    max-width: 600px;
  }
  .item.left .text, .item.right .text {
    max-width: 400px !important;
  }
  .item.animate .text {
    font-size: 20px !important;
  }
  .impact {
    padding: 120px 10px;
  }
  .label {
    font-size: 20px;
  }
  .popup-center {
    display: flex;
    justify-content: center;
  }
  .popup-content-2 {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    animation-name: appearScale;
    animation-duration: 0.5s;
    animation-delay: 2s;
    animation-fill-mode: forwards;
  }
  @keyframes appearScale {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  #scroll-header nav {
    max-width: 800px;
    font-size: 18px;
  }
  .productSwiper img {
    max-width: 500px !important;
    margin: 0 auto;
  }
  .product-section i {
    font-size: 16px !important;
  }
}

.video-wrapper {
  width: 100%;         
  max-width: 100%;      
  line-height: 0;       
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9; 
  border: none;        
  display: block;
}

#scroll-header {
  position: fixed;
  top: -80px; 
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: top 0.4s ease-in-out; 
  z-index: 1000;
  font-size: 12px;
}

#scroll-header nav {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  font-weight: 600;
}

#scroll-header.active {
  top: 0;
  background: #ffffff42;
}

.menu-link.active {
  color: #ff4a4a !important;
  font-weight: bold;
}

#backToTop {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 99;
  border: none;
  outline: none;
  background: #007bffc4;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  transition: opacity 0.3s, visibility 0.3s;
  
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: #0056b3;
}

.banner-icons-layer {
  position: absolute;
  bottom: 40%;     
  left: 0;
  width: 100%;
  display: flex;      
  justify-content: space-around; 
  align-items: flex-start;
  z-index: 10;       
  padding: 0 10px;
}

.icon-item {
  flex-basis: 20%; 
  width: 20%;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 5px;
}

.zoom-effect {
  animation: scaleUpDown 0.8s ease-in-out;
}

@keyframes scaleUpDown {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.4);
  }
  100% {
      transform: scale(1);
  }
}

.icon-item {
  transition: transform 0.5s ease;
  will-change: transform;
}

.animation-element {
  opacity: 0; 
  transition: opacity 0.5s ease, transform 0.5s ease; 
  will-change: transform, opacity; 
}


.animation-element.img-left.animate-in {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animation-element.img-right.animate-in {
  animation: slideInFromRight 0.8s ease-out forwards;
  animation-delay: 0.8s; 
}

@keyframes slideInFromLeft {
  0% {
      opacity: 0;
      transform: translateX(-100%); 
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
      opacity: 0;
      transform: translateX(100%); 
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

.product-img img:first-child {
  filter: drop-shadow(-15px -15px 20px rgba(0, 0, 0, 0.3));
}

.product-img img:last-child {
  filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.3));
}

.checkbox-group label:last-child {
  grid-column: 1 / -1;
}

.symptom-section .item .text,
.symptom-section .item img {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.item.left img {
    transform: translateX(-30px);
}

.item.right img {
    transform: translateX(30px);
}

.item .text {
    transform: translateY(10px);
}


.item.animate img {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.item.animate .text {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 14px;
}

.impact-section-1 img {
  opacity: 0;
  will-change: transform, opacity;
}

.impact-section-1 img.animate-in {
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.impact-section-1:first-of-type img:nth-child(1).animate-in {
  animation-name: cornerIn;
}

.impact-section-1:nth-of-type(2) img:nth-child(1).animate-in {
  animation-name: cornerInReverse;
}

.impact-section-1 img:nth-child(2).animate-in {
  animation-name: slideInRight;
  animation-delay: 0.5s;
}

@keyframes cornerIn {
  0% {
      opacity: 0;
      transform: translate(50px, 50px);
  }
  100% {
      opacity: 1;
      transform: translate(0, 0);
  }
}

@keyframes cornerInReverse {
  0% {
      opacity: 0;
      transform: translate(-50px, -50px);
  }
  100% {
      opacity: 1;
      transform: translate(0, 0);
  }
}

@keyframes slideInRight {
  0% {
      opacity: 0;
      transform: translateX(100px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

.img-eecv {
  display: grid;
  grid-template-columns: 33.33% 33.33% 33.33%;
  overflow-x: hidden;
}

.img-eecv img {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
  will-change: transform, opacity;
}

.img-eecv img.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Thiết lập delay lần lượt cho từng ảnh */
.img-eecv img:nth-child(1).animate-in { transition-delay: 0.5s; }
.img-eecv img:nth-child(2).animate-in { transition-delay: 1s; }
.img-eecv img:nth-child(3).animate-in { transition-delay: 1.5s; }

.title-eecv {
  display: grid;
  grid-template-columns: 20% 75%;
  gap: 5%;
  padding: 20px 10px;
  align-items: center;
}

.title-eecv h2 {
  margin: 0;
  font-size: 5vw;
}

.title-eecv h3 {
  font-size: 3.5vw;
}

.note-reg {
  font-size: 14px;
  color: #e71f1f;
  text-align: left;
  width: 100%;
  display: block;
}

#successPopup button {
  font-family: var(--font-family);
}