/* lead-system.css */

/* --- TOP ANNOUNCEMENT TICKER (RIGHT TO LEFT SMOOTH MOTION) --- */
.zeb-notif-bar {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #0052FF !important;
  color: #FFFFFF !important;
  position: relative !important;
  z-index: 1000 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}

.zeb-notif-bar.is-hidden,
.zeb-notif-bar[data-notif-hidden="true"],
.zeb-notif-bar[style*="display: none"],
.zeb-notif-bar[style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.notif-ticker-container,
.notif-marquee-wrapper {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding-right: 38px !important;
  box-sizing: border-box !important;
  mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 44px), transparent calc(100% - 34px));
  -webkit-mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 44px), transparent calc(100% - 34px));
}

.notif-ticker-track,
.notif-marquee-track {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  width: max-content !important;
  padding-left: 0 !important;
  animation: notifSeamlessScroll 28s linear infinite !important;
  will-change: transform !important;
}

.notif-ticker-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding-right: 4rem !important;
  flex-shrink: 0 !important;
}

.notif-ticker-container:hover .notif-ticker-track,
.notif-ticker-container:active .notif-ticker-track,
.notif-ticker-track:hover,
.notif-ticker-track:active,
.notif-marquee-wrapper:hover .notif-marquee-track,
.notif-marquee-wrapper:active .notif-marquee-track {
  animation-play-state: paused !important;
}

@keyframes notifSeamlessScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.notif-ticker-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.notif-ticker-text {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  letter-spacing: -0.01em !important;
}

.notif-ticker-cta {
  background: #FFFFFF !important;
  color: #0052FF !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.75rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  line-height: normal !important;
}

.notif-ticker-cta:hover {
  background: #EFF6FF !important;
  transform: translateY(-1px) !important;
}

.notif-close-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: #FFFFFF !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  padding: 4px !important;
  opacity: 0.85 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notif-close-btn:hover {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .notif-ticker-container,
  .notif-marquee-wrapper {
    padding-right: 32px !important;
  }
  .notif-ticker-track,
  .notif-marquee-track {
    animation-duration: 32s !important;
  }
  .notif-ticker-item {
    gap: 0.75rem !important;
    padding-right: 3rem !important;
  }
  .notif-ticker-badge {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.45rem !important;
  }
  .notif-ticker-text {
    font-size: 0.76rem !important;
  }
  .notif-ticker-cta {
    font-size: 0.70rem !important;
    padding: 0.16rem 0.6rem !important;
  }
  .notif-close-btn {
    right: 6px !important;
    font-size: 1.2rem !important;
  }
}

/* --- NEWS LOGOS MARQUEE (HOMEPAGE & ALL PAGES) --- */
.news-logos-marquee {
  display: flex !important;
  overflow: hidden !important;
  user-select: none !important;
  gap: 1.5rem !important;
  padding: 1.25rem 0 !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  position: relative !important;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
}

.news-logos-slide {
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  gap: 1.5rem !important;
  animation: scrollNewsMarquee 35s linear infinite !important;
}

.news-logos-marquee:hover .news-logos-slide {
  animation-play-state: paused !important;
}

.news-logo-card {
  width: 190px !important;
  min-height: 80px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 1rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02) !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}

.news-logo-card:hover {
  border-color: #0052FF !important;
  box-shadow: 0 10px 24px rgba(0, 82, 255, 0.12) !important;
  transform: translateY(-2px) !important;
}

.news-logo-card img {
  height: 38px !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

@keyframes scrollNewsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 1.5rem)); }
}

@media (max-width: 768px) {
  .news-logos-marquee {
    gap: 0.75rem !important;
    padding: 0.75rem 0 !important;
  }
  .news-logos-slide {
    gap: 0.75rem !important;
    animation-duration: 25s !important;
  }
  .news-logo-card {
    width: 130px !important;
    min-height: 60px !important;
    padding: 0.5rem !important;
    border-radius: 12px !important;
  }
  .news-logo-card img {
    height: 26px !important;
    max-height: 32px !important;
  }
}

@media (max-width: 480px) {
  .notif-text span:last-child {
    max-width: none !important;
  }
}

/* smart popup overlay & base modal container */
.smart-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.smart-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.smart-popup-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 920px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-height: 92vh;
}

.smart-popup-overlay.is-active .smart-popup-box {
  transform: translateY(0) scale(1);
}

.popup-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  font-size: 1.25rem;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.popup-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

/* left branding panels (variant themes) */
.popup-left-panel {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-y: auto;
}

/* Variant 1: Light Subtle */
.popup-left-panel.theme-light {
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
}

/* Variant 3 & 5: Dark Navy */
.popup-left-panel.theme-dark {
  background: #0A0F1D;
  color: #FFFFFF;
}

/* Variant 4: Soft Blue */
.popup-left-panel.theme-soft-blue {
  background: #F0F5FF;
  border-right: 1px solid #D6E4FF;
}

.popup-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.popup-badge-pill.pill-blue {
  background: #EEF4FF;
  color: var(--primary-blue, #0052FF);
  border: 1px solid #C7D9FF;
}

.popup-badge-pill.pill-warning {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.popup-left-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.popup-left-title .text-blue {
  color: var(--primary-blue, #0052FF);
}

.popup-left-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* Bullets List */
.popup-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.popup-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.bullet-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EEF4FF;
  color: var(--primary-blue, #0052FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.theme-dark .bullet-icon-box {
  background: rgba(0, 82, 255, 0.2);
  color: #60A5FA;
}

.bullet-text-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.bullet-text-sub {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.4;
}

/* Quote Card */
.popup-quote-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 1rem;
  position: relative;
}

.theme-dark .popup-quote-card {
  background: #151D30;
  border-color: #232F4A;
  color: #E2E8F0;
}

/* Avatar Stack Trust Row */
.popup-trust-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.popup-avatar-stack {
  display: flex;
}

.popup-avatar-stack img,
.popup-avatar-stack .avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
}

.popup-avatar-stack img:first-child,
.popup-avatar-stack .avatar-circle:first-child {
  margin-left: 0;
}

.popup-trust-text {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

/* right form panels & custom inputs */
.popup-right-panel {
  padding: 2.5rem 2.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.4rem;
  text-align: center;
}

.popup-form-subtitle {
  font-size: 0.88rem;
  color: #64748B;
  text-align: center;
  margin-bottom: 1.5rem;
}

.popup-form-group {
  margin-bottom: 1rem;
}

.popup-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.popup-label span {
  color: #EF4444;
}

.popup-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.popup-input-icon {
  position: absolute;
  left: 1rem;
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
}

.popup-input-field {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0F172A;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.popup-input-field:focus {
  outline: none;
  border-color: var(--primary-blue, #0052FF);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

/* Country Phone Input */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.phone-flag-box {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* Custom Radio Card Options (Grid) */
.radio-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.35rem;
  margin-bottom: 1.15rem;
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  background: #FFFFFF;
  user-select: none;
}

.radio-card-label:hover {
  border-color: var(--primary-blue, #0052FF);
  background: #F8FAFF;
}

.radio-card-label input[type="radio"] {
  accent-color: var(--primary-blue, #0052FF);
  width: 15px;
  height: 15px;
}

.radio-card-label.is-checked {
  border-color: var(--primary-blue, #0052FF);
  background: #EEF4FF;
  color: var(--primary-blue, #0052FF);
}

/* Submit Button */
.btn-popup-submit {
  width: 100%;
  background: var(--primary-blue, #0052FF);
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.3);
  margin-top: 0.5rem;
}

.btn-popup-submit:hover {
  background: #0043D6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.4);
}

.popup-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.76rem;
  color: #64748B;
}

.popup-sublink {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.popup-sublink:hover {
  color: var(--primary-blue, #0052FF);
}

/* responsive breakpoints */
@media (max-width: 850px) {
  .smart-popup-box {
    grid-template-columns: 1fr !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
  }

  .popup-left-panel {
    display: none !important;
  }

  .popup-right-panel {
    padding: 1.5rem 1.25rem !important;
  }

  .radio-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .smart-popup-overlay {
    padding: 0.75rem;
  }

  .popup-left-title {
    font-size: 1.4rem;
  }

  .popup-form-title {
    font-size: 1.3rem;
  }
}
