/* wisdomland-footer.css */

.wisdomland-footer {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  font-family: 'Quicksand', sans-serif;
}

.wisdomland-footer img {
  max-width: 100%;
  height: auto;
}

/* Footer Top Wrapper */
.wdl-footer-top {
  position: relative;
  padding-top: 80px;
  padding-bottom: 100px; /* Thu hẹp khoảng trống lớn do form để lại */
  background: linear-gradient(to bottom, #f7faed 457px, #0c7843 457px);
}

.wdl-ft-earth {
  position: absolute;
  top: 237px;
  left: 50%;
  transform: translateX(-50%);
  width: 64.5vw;
  max-width: 1239px;
  z-index: 1;
}

.wdl-ft-background {
  position: absolute;
  left: 0;
  top: 267px;
  width: 100%;
  z-index: 2;
}

.wdl-ft-animal {
  position: absolute;
  top: 10px;  /* Nhô lên vùng sáng, phần đầu hiển thị trên gradient break */
  left: 50%;
  transform: translateX(-50%);
  width: 22.65vw;
  max-width: 435px;
  z-index: 3;
  pointer-events: none;
}

.wdl-ft-pen {
  position: absolute;
  top: 103px;
  right: 15vw;
  width: 8.33vw;
  max-width: 160px;
  z-index: 4;
}

.wdl-ft-leaf-1 {
  position: absolute;
  left: 0;
  top: 298px;
  width: 26vw;
  max-width: 500px;
  z-index: 4;
}

.wdl-ft-leaf-2 {
  position: absolute;
  right: 5vw;
  top: 264px;
  width: 22vw;
  max-width: 426px;
  z-index: 4;
}

.wdl-ft-content-wrapper {
  position: relative;
  z-index: 5;
  padding-top: calc(22.65vw + 60px);
  margin-top: 0;
  text-align: center;
}

.wdl-ft-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.wdl-ft-subtitle {
  background: #AAE639;
  color: #096337;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 8px 25px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.wdl-ft-desc {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto 15px;
}

/* Steps */
.wdl-ft-rope-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 16.71875%; /* 321/1920 ratio */
  color: #fff;
  margin-top: 10px;
}

.wdl-ft-rope-pc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.wdl-ft-rope-mobile {
  display: none;
}

.wdl-ft-steps {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wdl-ft-step {
  position: absolute;
  width: 20%;
  text-align: center;
}

.wdl-ft-step-1 { top: 45.121495%; left: 8.104167%; }
.wdl-ft-step-2 { top: 70.894081%; left: 30.0%; }
.wdl-ft-step-3 { top: 36.137072%; left: 51.666667%; }
.wdl-ft-step-4 { top: 60.386293%; left: 71.895833%; }

.wdl-ft-step-icon {
  width: 50%;
  max-width: 150px;
  margin: 0 auto 15px;
}

.wdl-ft-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.wdl-ft-step-desc {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Form Container */
.wdl-form-container {
  background: #ffffff;
  border-radius: 40px;
  padding: 36px 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 0 0 8px #F7FAED;
  margin-top: -120px;
  position: relative;
  z-index: 10;
  transition: all 0.4s ease;
}

.wdl-form-container:hover {
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12), inset 0 0 0 8px #F7FAED;
}

.wdl-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.wdl-form-left {
  flex: 0 0 35%;
}

.wdl-form-left img {
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.wdl-form-left img:hover {
  transform: scale(1.02);
}

.wdl-form-right {
  flex: 0 0 calc(65% - 40px);
}

.wdl-form-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #385469;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.3;
}

.wdl-form-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wdl-form-group {
  display: flex;
  flex-direction: column;
}

.wdl-form-group.full {
  grid-column: span 2;
}

.wdl-form-group label {
  font-weight: 700;
  margin-bottom: 4px;
  color: #5C707E;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.wdl-form-group input, 
.wdl-form-group select, 
.wdl-form-group textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid #E5E5E5;
  border-radius: 10px;
  background: #FAFAFA;
  font-family: inherit;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.wdl-form-group input::placeholder,
.wdl-form-group select::placeholder,
.wdl-form-group textarea::placeholder {
  color: #A0B2C0;
}

.wdl-form-group input:focus, 
.wdl-form-group select:focus, 
.wdl-form-group textarea:focus {
  border-color: #F88025;
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(248, 128, 37, 0.15);
  outline: none;
  /* transform removed — gây scroll-jump trên mobile khi bàn phím mở */
}

.wdl-form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.wdl-btn-submit {
  background: linear-gradient(135deg, #F88025, #F39F5F);
  color: #fff;
  border: none;
  padding: 11px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(248, 128, 37, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wdl-btn-submit:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(248, 128, 37, 0.4);
  background: linear-gradient(135deg, #e66c10, #e08b4b);
}

.wdl-btn-submit img {
  width: 22px;
  transition: transform 0.3s ease;
}

.wdl-btn-submit:hover img {
  transform: translateX(5px);
}

/* Bottom Footer */
.wdl-footer-bottom {
  background-color: #FFEFC4;
  position: relative;
  padding-top: 150px;
  padding-bottom: 50px;
  margin-top: -60px; /* Giảm margin âm để không lấn quá sâu lên trên */
  z-index: auto; /* Bỏ z-index: 0 để giải phóng trap layer cho các thành phần con nổi lên */
}

.wdl-ft-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.wdl-ft-logo-bottom {
  width: 180px;
  position: relative;
  z-index: 5;
  margin-bottom: 20px;
}

.wdl-ft-columns {
  display: grid;
  grid-template-columns: 2fr 3fr 7fr;
  gap: 30px;
  position: relative;
  z-index: 5;
}

.wdl-ft-col-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}

.wdl-ft-col-line {
  margin-bottom: 20px;
}

.wdl-ft-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wdl-ft-links li {
  margin-bottom: 10px;
}

.wdl-ft-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.wdl-ft-links a:hover {
  color: #F88025;
}

.wdl-ft-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wdl-ft-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.wdl-ft-socials img {
  width: 24px;
}

.wdl-ft-campus-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  width: 100%;
}
@media (min-width: 992px) {
  .wdl-ft-campus-card {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

.wdl-ft-campus-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}

.wdl-ft-campus-info p {
  margin-bottom: 8px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wdl-ft-campus-info strong {
  color: #111;
  min-width: 70px;
  display: inline-block;
}

.wdl-ft-campus-info a {
  color: #F88025;
  text-decoration: none;
  font-weight: 600;
}

.wdl-ft-copyright {
  background: #385469;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-weight: 500;
  position: relative;
  z-index: 10;
}

/* Small elements */
.wdl-circle-1 { position: absolute; top: 123px; left: 14vw; width: 3.8vw; height: 3.8vw; background: #0C7843; border-radius: 50%; z-index: 4; }
.wdl-circle-2 { position: absolute; top: 120px; right: 19vw; width: 7.5vw; height: 7.5vw; background: #AAE639; border-radius: 50%; z-index: 4; }
.wdl-circle-w { display: none !important; }
.wdl-circle-y { position: absolute; top: 759px; right: 24vw; width: 2.6vw; height: 2.6vw; background: #FFF75F; border-radius: 50%; z-index: 4; }

.wdl-fb-animal { position: absolute; bottom: 20px; right: 0; width: 12vw; max-width: 230px; z-index: 5; } /* Tăng z-index lên 5 để nổi lên trên sóng */

/* Responsive */
@media (max-width: 991px) {
  /* === FIX: Tránh layout-shift khi bàn phím ảo mở === */
  /* 1. Không dùng transform trên input focus — browser sẽ tự scroll đúng cách */
  .wdl-form-group input:focus,
  .wdl-form-group select:focus,
  .wdl-form-group textarea:focus {
    transform: none !important;
    box-shadow: 0 0 0 3px rgba(248, 128, 37, 0.2) !important;
  }
  /* 2. Font-size >= 16px trên input — tránh iOS Safari tự zoom page khi focus */
  .wdl-form-group input,
  .wdl-form-group select,
  .wdl-form-group textarea {
    font-size: 16px !important;
  }
  /* 3. Đóng băng transition trên input để tránh reflow */
  .wdl-form-group input,
  .wdl-form-group select,
  .wdl-form-group textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  /* 4. Padding-top cố định thay vì calc(vw) để tránh tính lại khi viewport resize */
  .wdl-ft-content-wrapper {
    padding-top: 220px;
  }

  .wdl-footer-top {
    padding-top: 40px;
    padding-bottom: 120px; /* Trả về khoảng đệm chuẩn cho mobile */
    background: linear-gradient(to bottom, #f7faed 260px, #0c7843 260px);
  }
  .wdl-ft-animal {
    width: 54%;
    max-width: 260px;
    top: 0px; /* Trên mobile, animal bắt đầu từ top để đủ chỗ nhìn thấy */
  }
  .wdl-ft-earth {
    width: 100%;
    top: 230px;
  }
  .wdl-ft-background {
    top: 260px;
  }
  .wdl-ft-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding-top: 20px;
  }
  .wdl-form-grid {
    flex-direction: column;
  }
  .wdl-form-left, .wdl-form-right {
    flex: 0 0 100%;
  }
  .wdl-ft-rope-pc {
    display: none;
  }
  
  .wdl-ft-rope-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block !important;
  }
  
  .wdl-ft-rope-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 139.85849%; /* 593/424 ratio */
    margin-top: 20px;
    margin-bottom: 80px;
  }
  
  .wdl-ft-steps {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  .wdl-ft-steps::before {
    display: none;
  }

  .wdl-ft-step {
    position: absolute !important;
    width: 45.177665% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
    left: auto !important;
    top: auto !important;
    z-index: 2 !important;
  }
  
  .wdl-ft-step-1 { top: 10.344828% !important; left: 4.060914% !important; }
  .wdl-ft-step-2 { top: 34.119782% !important; left: 51.015228% !important; }
  .wdl-ft-step-3 { top: 63.520871% !important; left: 4.060914% !important; }
  .wdl-ft-step-4 { top: 93.466425% !important; left: 51.015228% !important; }
  
  .wdl-ft-step-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    position: relative !important;
    z-index: 3 !important;
    margin: 0 auto 15px !important;
  }
  
  .wdl-ft-step-title {
    font-size: 16px !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }
  
  .wdl-ft-step-desc {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.375 !important;
  }
  
  .wdl-form-container {
    padding: 30px 20px;
    margin-top: -50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), inset 0 0 0 4px #F7FAED;
    border-radius: 24px;
  }
  .wdl-form-inputs {
    grid-template-columns: 1fr;
  }
  .wdl-form-group.full {
    grid-column: span 1;
  }
  
  .wdl-ft-columns {
    grid-template-columns: 1fr;
  }
  /* Ẩn các decoration nhỏ trên mobile - chỉ giữ animal chính */
  .wdl-circle-1, .wdl-circle-2, .wdl-circle-w, .wdl-circle-y, .wdl-ft-pen, .wdl-ft-leaf-1, .wdl-ft-leaf-2 {
    display: none;
  }
  .wdl-fb-animal {
    display: block;
    width: 18vw;
    max-width: 150px;
  }
  /* Tắt WOW.js animation trên mobile - load ngay lần đầu */
  .wow {
    visibility: visible !important;
    animation-name: none !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-animation-name: none !important;
  }
}

/* Fancybox Custom Wisdomland Frame Styling */
.fancybox__container.fancybox__container .fancybox__viewport .fancybox__content {
  border-width: clamp(1px, 0.052083333333333336rem, 0.052083333333333336rem);
  border-color: transparent;
  background-color: #fff;
}

.popup-content.fancybox__container .fancybox__viewport .fancybox__content {
  border-radius: var(--Spacing-Number-16, 256px) 0px;
  border-bottom: 12px solid #CF7CB3;
  border-left: 12px solid #CF7CB3;
  box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.04);
  background-image: linear-gradient(0deg, #903F98 24.06%, #69306F 59.32%, #5F316C 94.59%);
  padding: 2.08333rem;
  max-width: clamp(960px, 50rem, 50rem);
  padding-top: clamp(130px, 6.77rem, 6.77rem);
  padding-bottom: clamp(130px, 6.77rem, 6.77rem);
  padding-left: 80px;
  padding-right: 80px;
  color: #fff;
}

@media (min-width: 1366px) {
  .popup-content.fancybox__container .fancybox__viewport .fancybox__content {
    padding-left: clamp(82px, 4.27rem, 4.27rem);
    padding-right: clamp(82px, 4.27rem, 4.27rem);
  }
}

.fancybox__container.fancybox__container.fancybox__container .fancybox__backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close] {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  opacity: 1;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  top: 1.0416rem;
  right: 1.0416rem;
  border-radius: 9999px;
  background-color: rgb(244 108 32);
  width: clamp(24px, 1.25rem, 1.25rem);
  height: clamp(24px, 1.25rem, 1.25rem);
}
.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close] i,
.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close] svg {
  color: rgb(255 255 255);
  font-weight: 900;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close]:hover {
  background-color: rgb(12 120 67);
}
.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close]:hover i,
.has-custom-close-normal-button.fancybox__container .fancybox__viewport .fancybox__content [data-fancybox-close]:hover svg {
  color: rgb(255 255 255);
}
.has-custom-close-normal-button.fancybox__container .fancybox__carousel .f-button::before {
  display: none;
}

