/* WBN GEO Lite - minimal, theme-friendly */
.wbn-geo .wbn-geo-header { margin: 0 0 1.25rem; }
.wbn-geo-badge-available { background: #00a32a; color: #fff; }
.wbn-geo-badge-unavailable { background: #646970; color: #fff; }
.wbn-geo-badge-unverified { background: #dba617; color: #1d2327; }
.wbn-geo .wbn-geo-summary { opacity: .85; max-width: 72ch; }
.wbn-geo .wbn-geo-section { margin: 1.5rem 0; }
.wbn-geo .wbn-geo-list { margin: .75rem 0 0; padding-left: 1.25rem; }
.wbn-geo .wbn-geo-item-excerpt { opacity: .75; font-size: .95em; margin-top: .25rem; }

/* ===== Smooth Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wbn-geo-hero {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo-section {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.wbn-geo-section:nth-child(1) { animation-delay: 0.1s; }
.wbn-geo-section:nth-child(2) { animation-delay: 0.2s; }
.wbn-geo-section:nth-child(3) { animation-delay: 0.3s; }
.wbn-geo-section:nth-child(4) { animation-delay: 0.4s; }

/* ===== WBN GEO Product Wrap (Service/Area pages) ===== */
.wbn-geo .wbn-geo-hero{
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%);
  border: none;
  border-radius: 24px;
  padding: 32px 28px 28px;
  margin: 0 0 24px;
  box-shadow: 0 20px 60px rgba(0,115,170,.25), 0 8px 24px rgba(0,115,170,.15);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.wbn-geo .wbn-geo-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
  pointer-events: none;
}

.wbn-geo .wbn-geo-hero-top{
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.wbn-geo .wbn-geo-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.3);
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo .wbn-geo-back:hover{
  background: rgba(255,255,255,.25);
  transform: translateX(-4px);
}

.wbn-geo .wbn-geo-title{
  margin: 16px 0 12px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.wbn-geo .wbn-geo-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  position: relative;
  z-index: 1;
}

.wbn-geo .wbn-geo-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.3);
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo .wbn-geo-pill:hover{
  background: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.wbn-geo .wbn-geo-pill-soft{
  background: rgba(255,255,255,.15);
}

.wbn-geo .wbn-geo-summary{
  color: rgba(255,255,255,.95);
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
}
.wbn-geo .wbn-geo-section{
  background: #ffffff;
  border: 1px solid rgba(0,115,170,.15);
  border-radius: 20px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 4px 20px rgba(0,115,170,.08), 0 1px 4px rgba(0,115,170,.06);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wbn-geo .wbn-geo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0073AA 0%, #005177 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.wbn-geo .wbn-geo-section:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,115,170,.15), 0 4px 12px rgba(0,115,170,.1);
  border-color: rgba(0,115,170,.25);
}

.wbn-geo .wbn-geo-section:hover::before{
  opacity: 1;
}

.wbn-geo .wbn-geo-section h2,
.wbn-geo .wbn-geo-section h3{
  color: #2d3748;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 0;
}

.wbn-geo .wbn-geo-content p{
  margin-top: 0;
  line-height: 1.7;
  color: #4a5568;
}

.wbn-geo .wbn-geo-muted{
  color: #718096;
}

.wbn-geo .wbn-geo-list{
  margin: 16px 0 0;
  padding: 0 0 0 20px;
}

.wbn-geo .wbn-geo-list-item{
  margin: 12px 0;
  line-height: 1.6;
}

.wbn-geo .wbn-geo-list-item a{
  color: #0073AA;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.wbn-geo .wbn-geo-list-item a:hover{
  color: #005177;
  text-decoration: underline;
}

.wbn-geo .wbn-geo-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,115,170,.3);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo .wbn-geo-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,115,170,.4);
  color: #fff;
}

/* ===== WBN GEO Admin Helpers ===== */
.wbn-geo-admin-wrap{padding-right:10px;}

/* Keep primary actions clickable even on small screens (avoid overlap with WP footer/admin bars). */
.wbn-geo-wizard-actions{
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  z-index: 999;
}

/* Increase tap targets inside the selected-services chips. */
#wbn-geo-services-list button[data-idx]{
  width: 28px;
  height: 28px;
  border-radius: 999px;
}


/* ===== WBN GEO Wizard: Process Banner (Admin only) ===== */
body.wp-admin .wbn-geo-process{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
body.wp-admin .wbn-geo-process span{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:600;
  opacity:.35;
  user-select:none;
}
body.wp-admin .wbn-geo-process span.active{
  opacity:1;
}
body.wp-admin .wbn-geo-trust-line{
  max-width:760px;
}

/* ===== Premium Modal (Scan & Suggest – admin only) ===== */
body.wp-admin.wbn-geo-modal-open{
  overflow: hidden;
}

body.wp-admin .wbn-geo-modal{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  backdrop-filter: blur(4px);
}

body.wp-admin .wbn-geo-modal.is-open{
  display: block;
  animation: fadeIn 0.3s ease;
}

.wbn-geo-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,115,170,.35);
}

.wbn-geo-modal__panel{
  position: relative;
  z-index: 1;
  width: min(920px,92vw);
  max-height: 86vh;
  overflow: auto;
  margin: 6vh auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,115,170,.2);
  box-shadow: 0 20px 60px rgba(0,115,170,.3), 0 8px 24px rgba(0,115,170,.2);
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo-modal__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,115,170,.15);
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.wbn-geo-modal__header::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
  pointer-events: none;
}

.wbn-geo-modal__title{
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.wbn-geo-modal__close{
  appearance: none;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.wbn-geo-modal__close:hover{
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

.wbn-geo-modal__steps{
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,115,170,.12);
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.wbn-geo-flow{
  display: flex;
  align-items: center;
  gap: 12px;
}

.wbn-geo-flow span{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,115,170,.2);
  background: #fff;
  color: #0073AA;
  font-weight: 800;
  font-size: 15px;
  opacity: .4;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wbn-geo-flow span.active{
  opacity: 1;
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%);
  color: #fff;
  border-color: #0073AA;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,115,170,.3);
}

.wbn-geo-flow i{
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,115,170,.2) 0%, rgba(0,115,170,.1) 100%);
  border-radius: 999px;
}

.wbn-geo-flow__labels{
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
}

.wbn-geo-modal__body{
  padding: 24px;
}


/* Premium modal footer */
.wbn-geo-modal__footer{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0,115,170,.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.wbn-geo-modal__footer .wbn-geo-modal__finish{
  min-width: 140px;
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,115,170,.3);
}

.wbn-geo-modal__footer .wbn-geo-modal__finish:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,115,170,.4);
}


/* Force LTR for WBN GEO Admin UI (plugin is English-only) */
.wbn-geo-admin-wrap,
.wbn-geo-admin,
.wbn-geo-modal,
.wbn-geo-process {
  direction: ltr;
  text-align: left;
}
.wbn-geo-admin-wrap * ,
.wbn-geo-admin * ,
.wbn-geo-modal * ,
.wbn-geo-process * {
  direction: ltr;
}

/* ===== Responsive Design (Frontend) ===== */
@media (max-width: 768px){
  .wbn-geo .wbn-geo-hero{
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  .wbn-geo .wbn-geo-title{
    font-size: 28px;
  }

  .wbn-geo .wbn-geo-back{
    padding: 6px 12px;
    font-size: 13px;
  }

  .wbn-geo .wbn-geo-meta{
    gap: 8px;
  }

  .wbn-geo .wbn-geo-pill{
    font-size: 12px;
    padding: 6px 12px;
  }

  .wbn-geo .wbn-geo-section{
    padding: 20px 18px;
    border-radius: 16px;
  }

  .wbn-geo .wbn-geo-section h2{
    font-size: 20px;
  }

  .wbn-geo .wbn-geo-btn{
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .wbn-geo-modal__panel{
    width: 95vw;
    margin: 4vh auto;
  }
}

@media (max-width: 480px){
  .wbn-geo .wbn-geo-hero{
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .wbn-geo .wbn-geo-title{
    font-size: 24px;
  }

  .wbn-geo .wbn-geo-summary{
    font-size: 14px;
  }

  .wbn-geo .wbn-geo-section{
    padding: 16px;
    margin: 14px 0;
  }

  .wbn-geo .wbn-geo-section h2{
    font-size: 18px;
  }

  .wbn-geo .wbn-geo-content p{
    font-size: 14px;
  }

  .wbn-geo .wbn-geo-list-item{
    font-size: 14px;
  }

  .wbn-geo-modal__header{
    padding: 12px 14px;
  }

  .wbn-geo-modal__title{
    font-size: 14px;
  }

  .wbn-geo-modal__body{
    padding: 14px;
  }
}

/* Hub shortcode: responsive grid */
.wbn-geo-hub .wbn-geo-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .wbn-geo-hub .wbn-geo-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Force WordPress blue for hero/banner (override cache or theme) ===== */
.wbn-geo .wbn-geo-hero,
.wbn-geo-hero {
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%) !important;
  box-shadow: 0 20px 60px rgba(0,115,170,.25), 0 8px 24px rgba(0,115,170,.15) !important;
}
.wbn-geo .wbn-geo-hero::before {
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%) !important;
}
.wbn-geo-hub-hero {
  background: linear-gradient(135deg, #0073AA 0%, #005177 100%) !important;
  color: #fff !important;
}
