/* =============================================
   enquiry.css — Floating Enquiry CTA + Welcome Popup
   ============================================= */

/* ---- Floating Enquiry Button ---- */
.floating-enquiry-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--gradient, linear-gradient(135deg, #f58220, #ff9a3c));
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(245, 130, 32, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  animation: enquiry-btn-float 3s ease-in-out infinite;
}

.floating-enquiry-btn i {
  font-size: 13px;
}

.floating-enquiry-btn:hover {
  background: #d96d14;
  color: #fff;
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(245, 130, 32, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-enquiry-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.5), 0 6px 24px rgba(245, 130, 32, 0.35);
}

@keyframes enquiry-btn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

body:has(.back-to-top.visible) .floating-enquiry-btn {
  bottom: 88px;
}

@media (prefers-reduced-motion: reduce) {
  .floating-enquiry-btn {
    animation: none;
  }

  .floating-enquiry-btn:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .floating-enquiry-btn {
    right: 20px;
    padding: 12px 18px;
    font-size: 13px;
    gap: 6px;
  }

  body:has(.back-to-top.visible) .floating-enquiry-btn {
    bottom: 82px;
  }
}

@media (max-width: 480px) {
  .floating-enquiry-btn {
    right: 18px;
    padding: 11px 16px;
    font-size: 12px;
  }

  body:has(.back-to-top.visible) .floating-enquiry-btn {
    bottom: 78px;
  }

  .floating-enquiry-btn i {
    font-size: 12px;
  }
}

/* ---- Welcome Popup (Screenshot Style) ---- */
.enq-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}

.enq-popup-overlay.is-active {
  display: flex;
  animation: enq-overlay-in 300ms ease forwards;
}

.enq-popup-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  overflow: visible;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  animation: enq-card-in 300ms ease forwards;
}

.enq-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary, #f58220);
  color: #1a1a1a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.45);
  transition: background 0.2s, transform 0.2s;
}

.enq-popup-close:hover {
  background: #d96d14;
  color: #fff;
  transform: scale(1.08);
}

.enq-popup-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.enq-popup-visual {
  position: relative;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.enq-popup-banner {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.enq-popup-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: var(--primary, #f58220);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,48 L0,28 C30,8 60,42 95,22 C130,5 165,38 200,18 C235,2 270,35 305,15 C340,0 370,30 400,12 L400,48 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,48 L0,28 C30,8 60,42 95,22 C130,5 165,38 200,18 C235,2 270,35 305,15 C340,0 370,30 400,12 L400,48 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.enq-popup-body {
  padding: 20px 28px 32px;
  text-align: center;
}

.enq-popup-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 14px;
  line-height: 1.25;
}

.enq-popup-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 26px;
}

.enq-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px 28px;
  background: var(--primary, #f58220);
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.35);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.enq-popup-cta i {
  color: #e53935;
  font-size: 15px;
}

.enq-popup-cta:hover {
  background: #d96d14;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 130, 32, 0.42);
}

.enq-popup-cta:hover i {
  color: #fff;
}

.enq-popup-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.5);
}

@keyframes enq-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes enq-card-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .enq-popup-overlay.is-active,
  .enq-popup-card {
    animation: none;
  }

  .enq-popup-cta:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .enq-popup-card {
    border-radius: 20px;
    max-width: 340px;
  }

  .enq-popup-visual {
    border-radius: 20px 20px 0 0;
  }

  .enq-popup-banner {
    height: 190px;
  }

  .enq-popup-body {
    padding: 16px 20px 26px;
  }

  .enq-popup-title {
    font-size: 22px;
  }

  .enq-popup-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .enq-popup-cta {
    font-size: 15px;
    padding: 14px 22px;
  }

  .enq-popup-close {
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
