.hfp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 28, 58, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: hfp-fade 0.3s ease-out;
}

@keyframes hfp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hfp-popup {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(6, 28, 58, 0.40);
  display: flex;
  width: 1040px;
  max-width: 100%;
  animation: hfp-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hfp-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hfp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: #5b6b80;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hfp-close:hover {
  background: #0a3d91;
  color: #fff;
  border-color: #0a3d91;
}

.hfp-left {
  flex: 1 1 56%;
  padding: 42px 44px;
  box-sizing: border-box;
}

.hfp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hfp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.6px;
  font-family: 'Inter-Bold';
}

.hfp-badge-outline {
  color: #0a3d91;
  background: #eef4fb;
  border: 1px solid #dce8f6;
}

.hfp-badge-yellow {
  background: #FFD43B;
  color: #0a3d91;
}

.hfp-title {
  font-size: 30px;
  line-height: 1.18;
  margin: 0 0 14px;
  font-family: 'Inter-Bold';
  background: linear-gradient(90deg, #0a3d91, #1f6feb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hfp-subtitle {
  font-family: 'Inter-Medium';
  font-size: 15px;
  color: #56657c;
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 92%;
}

.hfp-subtitle strong {
  font-family: 'Inter-Bold';
  color: #0a3d91;
}

.hfp-divider {
  border: none;
  border-top: 1px solid #e9eef5;
  margin: 0 0 24px;
}

.hfp-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  background: #f5f9fe;
  border: 1px solid #e6eff9;
  border-radius: 14px;
  padding: 18px 20px;
}

.hfp-info-row > div {
  flex: 1;
  min-width: 0;
}

.hfp-info-label {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Inter-Bold';
  color: #7488a0;
  margin-bottom: 7px;
}

.hfp-info-value {
  font-size: 14.5px;
  font-family: 'Inter-Bold';
  color: #0a3d91;
  line-height: 1.45;
}

.hfp-actions {
  display: flex;
  gap: 12px;
}

.hfp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.4px;
  font-family: 'Inter-Bold';
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hfp-btn:hover {
  transform: translateY(-1px);
}

.hfp-btn-primary {
  background: #0a4a8f;
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 74, 143, 0.28);
}

.hfp-btn-primary:hover {
  background: #0a3d91;
  box-shadow: 0 10px 22px rgba(10, 74, 143, 0.34);
}

.hfp-btn-yellow {
  background: #FFD43B;
  color: #0a3d91;
  box-shadow: 0 6px 16px rgba(255, 212, 59, 0.35);
}

.hfp-btn-yellow:hover {
  background: #FBC92A;
  box-shadow: 0 10px 22px rgba(255, 212, 59, 0.45);
}

.hfp-right {
  position: relative;
  flex: 1 1 44%;
  background-image: linear-gradient(180deg, rgba(10, 61, 145, 0) 45%, rgba(8, 40, 92, 0.4) 100%), url('https://dxw7qhywfcla7.cloudfront.net/images/singapore-cruise-centre.webp');
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  /* Let the popup grow and scroll within the viewport so the action
     buttons are always reachable. margin:auto centres it when it fits
     and top-aligns + scrolls when it's taller than the screen. */
  .hfp-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 12px;
  }

  .hfp-popup {
    flex-direction: column;
    width: 100%;
    margin: auto;
    border-radius: 16px;
  }

  .hfp-right {
    order: -1;
    height: 130px;
  }

  .hfp-left {
    padding: 22px;
  }

  .hfp-badges {
    margin-bottom: 14px;
  }

  .hfp-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .hfp-subtitle {
    font-size: 13.5px;
    margin-bottom: 16px;
    max-width: none;
  }

  .hfp-divider {
    margin-bottom: 16px;
  }

  .hfp-info-row {
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
  }

  .hfp-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hfp-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 20px;
  }
}
