/* pwa-install.css — shared across all ContactGain subdomains */

.pwa-launcher {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1F9C4F, #1C6B3C);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(12, 61, 36, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pwa-launcher:hover { transform: translateY(-2px); }
.pwa-launcher i { font-size: 1rem; }

@media (max-width: 576px) {
  .pwa-launcher { bottom: 78px; right: 14px; padding: 10px 14px; font-size: 0.78rem; }
}

/* Modal */
.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 20, 12, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pwa-modal--open { opacity: 1; pointer-events: auto; }

.pwa-modal__card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 28px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.25s ease;
}
.pwa-modal--open .pwa-modal__card { transform: translateY(0); }

@media (min-width: 576px) {
  .pwa-modal { align-items: center; }
  .pwa-modal__card { border-radius: 20px; }
}

.pwa-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #6b7a72;
  cursor: pointer;
}

.pwa-modal__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.pwa-modal__icon { width: 48px; height: 48px; border-radius: 12px; }
.pwa-modal__head h3 { margin: 0; font-size: 1.05rem; color: #0C3D24; }
.pwa-modal__head p { margin: 2px 0 0; font-size: 0.82rem; color: #6b7a72; }

.pwa-modal__native { margin-bottom: 14px; }
.pwa-native-btn {
  width: 100%;
  background: #0C3D24;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.pwa-ios-hint {
  background: #f2f9f4;
  border: 1px solid #d7ecdf;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #1C6B3C;
}

.pwa-modal__badges { display: flex; flex-direction: column; gap: 10px; }

.pwa-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s ease;
}
.pwa-badge:hover { opacity: 0.9; }
.pwa-badge__icon { font-size: 1.5rem; }
.pwa-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.pwa-badge__text small { font-size: 0.68rem; letter-spacing: 0.3px; opacity: 0.85; }
.pwa-badge__text strong { font-size: 0.95rem; }

.pwa-badge--soon { opacity: 0.55; }
.pwa-badge__soon-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  background: #3ECF6E;
  color: #0C3D24;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Toast */
.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #0C3D24;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 2100;
  opacity: 0;
  transition: all 0.25s ease;
}
.pwa-toast--show { opacity: 1; transform: translate(-50%, 0); }

/* Red "Install App" call-to-action — used in page heroes and the profile
   dropdown, distinct on purpose from the green floating launcher above so
   it reads as a primary action wherever it's placed. */
.pwa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E0293B;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pwa-cta-btn:hover { background: #C71F30; transform: translateY(-2px); color: #fff; }
.pwa-cta-btn i { font-size: 1.05rem; }
.pwa-cta-btn--sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 999px; }
