/* Sticky Hotline + Zalo — always visible bottom-right */
.fab-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, filter 180ms ease;
}

.fab-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.fab-btn--hotline {
  background: linear-gradient(135deg, #e8c56d, #c9a227);
  color: #0a1f18;
}

.fab-btn--zalo {
  background: linear-gradient(135deg, #2d8cff, #0068ff);
  color: #fff;
}

.fab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .fab-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: stretch;
  }

  .fab-btn {
    flex: 1;
    padding: 0 12px;
    font-size: 0.78rem;
  }
}

body.lead-popup-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.lead-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal[hidden] {
  display: none !important;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 28, 0.82);
  backdrop-filter: blur(10px);
}

.lead-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 19, 41, 0.96);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  text-align: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
}

.lead-modal__card.is-open {
  transform: scale(1);
  opacity: 1;
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lead-modal__title {
  margin: 8px 0 6px;
  color: #f8fafc;
  font-family: "Prata", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.lead-modal__sub {
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.lead-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.lead-form label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.92rem;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.28);
}

.lead-form textarea {
  resize: none;
  min-height: 84px;
}

.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.lead-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #c2410c);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
}

.lead-submit:hover {
  filter: brightness(1.06);
}

.lead-submit.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
}

.lead-submit__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: lead-spin 0.7s linear infinite;
}

@keyframes lead-spin {
  to { transform: rotate(360deg); }
}

.lead-alert {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
}

.lead-alert.is-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.lead-alert.is-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.lead-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #64748b;
  font-size: 0.72rem;
}

.lead-success-body {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.lead-success-body strong {
  color: #f8fafc;
}

.lead-success-ok {
  margin-top: 18px;
  min-width: 140px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c56d, #c9a227);
  color: #0a1f18;
  font-weight: 700;
  cursor: pointer;
}

/* Override original mobile full-width chat bar space */
body {
  padding-bottom: 78px !important;
}
