/* ==========================================================================
   PQI FOOTER & FLOATING ACTION WIDGETS STYLES
   ========================================================================== */

/* Variables */
:root {
  --pqi-main: #213255;
  --pqi-yellow: #f0981d;
  --pqi-text: #231f20;
}

/* Footer Section */
.footer {
  background-color: #213255;
  background-image: url('../../../../uploads/pqi/footer_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  color: #fff;
  padding: 45px 0 25px;
  position: relative;
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--pqi-yellow);
  text-decoration: none;
}

.footer .title-menu {
  color: #f0981d;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  position: relative;
  letter-spacing: 0.5px;
}

.footer .title-menu.text-yellow {
  color: #f0981d;
}

.footer-content {
  margin-bottom: 20px;
}

.footer-text p {
  color: #d1d5db;
  font-size: 13.5px;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 15px;
}

.footer-facebook img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}

.footer-info p {
  margin-bottom: 10px;
  color: #e5e7eb;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-info p b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: #f0981d;
  color: #213255;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.footer-info p.add {
  line-height: 1.5;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.08);
}

.footer-social img {
  width: 36px;
  height: 36px;
}

.footer p.copyright,
.footer-text + p {
  font-size: 12.5px;
  color: #9ca3af;
  margin-top: 10px;
  line-height: 1.6;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL, ZALO, MESSENGER, TOP, POPUP)
   ========================================================================== */

/* Back to top button */
.backtop {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #213255;
  border: 2px solid #f0981d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.backtop.show {
  opacity: 1;
  visibility: visible;
}

.backtop:hover {
  background: #f0981d;
  transform: translateY(-4px);
}

.backtop img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* Messenger & Zalo Floating Buttons */
.mess-fix {
  position: fixed;
  bottom: 145px;
  right: 25px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.mess-fix:hover {
  transform: scale(1.12);
}

.mess-fix img {
  width: 48px;
  height: 48px;
}

.zalo-fix {
  position: fixed;
  bottom: 205px;
  right: 25px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.zalo-fix:hover {
  transform: scale(1.12);
}

.zalo-fix img {
  width: 48px;
  height: 48px;
}

/* Suntory Alo Phone Floating Button */
.suntory-alo-phone {
  position: fixed;
  bottom: 25px;
  left: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.suntory-alo-phone .suntory-alo-ph-circle-fill {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translate(-50%, -50%);
  background-color: rgba(33, 150, 243, 0.3);
  border-radius: 100%;
  border: 2px solid transparent;
  animation: suntory-alo-circle-fill-anim 2.3s infinite ease-in-out;
  transition: all 0.5s;
}

.suntory-alo-phone.suntory-alo-green .suntory-alo-ph-circle-fill {
  background-color: rgba(40, 167, 69, 0.35);
}

.suntory-alo-phone .suntory-alo-ph-img-circle {
  width: 48px;
  height: 48px;
  position: relative;
  background: #28a745;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
  animation: suntory-alo-circle-img-anim 1s infinite ease-in-out;
}

.suntory-alo-phone .suntory-alo-ph-img-circle img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.suntory-alo-phone span {
  background: #28a745;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 16px 6px 20px;
  margin-left: -15px;
  border-radius: 0 25px 25px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

@keyframes suntory-alo-circle-fill-anim {
  0% {
    transform: translate(-50%, -50%) rotate(0) scale(0.7) skew(1deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) rotate(0) scale(1.1) skew(1deg);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) rotate(0) scale(1.3) skew(1deg);
    opacity: 0;
  }
}

@keyframes suntory-alo-circle-img-anim {
  0% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  20% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  40% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  50% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  100% {
    transform: rotate(0) scale(1) skew(1deg);
  }
}

/* Click Down (Tải bảng giá button) */
.click-down {
  position: fixed;
  bottom: 30px;
  right: 90px;
  z-index: 997;
  background: linear-gradient(135deg, #f0981d, #ff5e62);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(240, 152, 29, 0.4);
  text-decoration: none !important;
  transition: all 0.3s ease;
  animation: pulse-down 2s infinite;
}

.click-down:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 152, 29, 0.6);
}

@keyframes pulse-down {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 152, 29, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 152, 29, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 152, 29, 0);
  }
}

/* Modal Form Popup */
.popup-fix,
.popup-fix-down {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-fix.active,
.popup-fix-down.active {
  display: flex;
}

.popup-fix .overlay,
.popup-fix-down .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.sign-up-course {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.sign-up-course .close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
  background: none;
  border: none;
  line-height: 1;
}

.sign-up-course .close:hover {
  color: #ff0000;
}

.sign-up-course img.logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
}
