/* ═══════════════════════════════════════════════════════════════
   EDMFEED — Multi-Step Enquiry Popup  (7 steps)
   assets/css/popup.css
═══════════════════════════════════════════════════════════════ */

/* ── Overlay ────────────────────────────────────────────────── */
.ef-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.ef-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.ef-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.ef-options [type='checkbox']{
    visibility: hidden;
}
/* ── Dialog ─────────────────────────────────────────────────── */
.ef-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #07111f;
  border: 1px solid rgba(0,255,171,.16);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0,255,171,.05),
    0 40px 100px rgba(0,0,0,.78),
    0 0 80px rgba(0,255,171,.04);
  overflow: hidden;
  transform: translateY(28px) scale(.95);
  transition: transform .44s cubic-bezier(.16,1,.3,1);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}
.ef-overlay.open .ef-dialog { transform: translateY(0) scale(1); }

/* ── Close ──────────────────────────────────────────────────── */
.ef-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #6b8aa0;
  font-size: .88rem;
  transition: all .22s;
  z-index: 5;
  font-family: 'Inter', sans-serif;
}
.ef-close:hover { border-color: rgba(255,255,255,.25); color: #e8f4f8; }

/* ── Header ─────────────────────────────────────────────────── */
.ef-header {
  padding: 26px 28px 0;
  flex-shrink: 0;
}
.ef-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,255,171,.07);
  border: 1px solid rgba(0,255,171,.18);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  color: #00ffab;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ef-badge-dot {
  width: 5px; height: 5px;
  background: #00ffab;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ffab;
  animation: ef-pulse 2s infinite;
}
@keyframes ef-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.ef-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.38rem;
  font-weight: 800;
  color: #e8f4f8;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: .3rem;
}
.ef-sub {
  font-size: .8rem;
  color: #6b8aa0;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

/* ── Progress bar ───────────────────────────────────────────── */
.ef-progress-wrap {
  padding: 0 28px 18px;
  flex-shrink: 0;
}
.ef-progress-track {
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ef-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffab, #00d1ff);
  border-radius: 4px;
  transition: width .5s cubic-bezier(.16,1,.3,1);
  width: 0%;
}
.ef-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ef-step-counter {
  font-size: .65rem;
  font-weight: 600;
  color: #6b8aa0;
  letter-spacing: .5px;
}
.ef-step-counter span { color: #00ffab; font-weight: 800; }
.ef-phase-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #00ffab;
}

/* ── Body (scrollable) ───────────────────────────────────────── */
.ef-body {
  padding: 0 28px;
  overflow-y: auto;
  flex: 1;
}
.ef-body::-webkit-scrollbar { width: 3px; }
.ef-body::-webkit-scrollbar-thumb { background: #00ffab; border-radius: 2px; }

/* ── Step base ──────────────────────────────────────────────── */
.ef-step {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .36s ease, transform .36s cubic-bezier(.16,1,.3,1);
  padding-bottom: 1rem;
}
.ef-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* ── Question title ─────────────────────────────────────────── */
.ef-q-title {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  color: #e8f4f8;
  line-height: 1.45;
  margin-bottom: 1.2rem;
  letter-spacing: -.1px;
}

/* ── Question option cards ───────────────────────────────────── */
.ef-q-opts {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.ef-q-opt {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  position: relative;
  user-select: none;
}
.ef-q-opt:hover {
  border-color: rgba(0,255,171,.28);
  background: rgba(0,255,171,.04);
  transform: translateX(3px);
}
.ef-q-opt.selected {
  border-color: rgba(0,255,171,.5);
  background: rgba(0,255,171,.07);
  box-shadow: 0 0 20px rgba(0,255,171,.08);
}

.ef-q-opt-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border-radius: 9px;
  flex-shrink: 0;
  transition: background .25s;
}
.ef-q-opt.selected .ef-q-opt-icon {
  background: rgba(0,255,171,.15);
}

.ef-q-opt-text {
  flex: 1;
  font-size: .855rem;
  font-weight: 600;
  color: #9ab4c4;
  line-height: 1.4;
  transition: color .25s;
}
.ef-q-opt-text em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 500;
  color: #5a7a8a;
  display: block;
  margin-top: 1px;
}
.ef-q-opt.selected .ef-q-opt-text { color: #e8f4f8; }
.ef-q-opt.selected .ef-q-opt-text em { color: rgba(0,255,171,.65); }

.ef-q-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  color: transparent;
  flex-shrink: 0;
  transition: all .25s;
  background: transparent;
}
.ef-q-opt.selected .ef-q-check {
  background: #00ffab;
  border-color: #00ffab;
  color: #060d1a;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0,255,171,.35);
}

/* ── Question error ─────────────────────────────────────────── */
.ef-q-err {
  font-size: .72rem;
  color: #ff6060;
  font-weight: 500;
  margin-top: .6rem;
  display: none;
}
.ef-q-err.show { display: block; }

/* ── Form fields ─────────────────────────────────────────────── */
.ef-field { margin-bottom: 1.1rem; }
.ef-label {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  color: #6b8aa0;
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: .45rem;
}
.ef-label span { color: #00ffab; margin-left: 2px; }

.ef-input,
.ef-select,
.ef-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: #e8f4f8;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
}
.ef-input::placeholder,
.ef-textarea::placeholder { color: rgba(107,138,160,.55); }
.ef-input:focus,
.ef-select:focus,
.ef-textarea:focus {
  border-color: rgba(0,255,171,.42);
  background: rgba(0,255,171,.03);
  box-shadow: 0 0 0 3px rgba(0,255,171,.07);
}
.ef-input.error,
.ef-select.error,
.ef-textarea.error {
  border-color: rgba(255,80,80,.5);
  box-shadow: 0 0 0 3px rgba(255,80,80,.07);
}
.ef-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8AA0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 9px;
  padding-right: 36px;
  cursor: pointer;
}
.ef-select option { background: #07111f; color: #e8f4f8; }
.ef-textarea { resize: vertical; min-height: 86px; }

.ef-error-msg {
  font-size: .7rem;
  color: #ff6060;
  margin-top: .3rem;
  display: none;
  font-weight: 500;
}
.ef-error-msg.show { display: block; }

/* ── Revenue pills ───────────────────────────────────────────── */
.ef-revenue-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.ef-rev-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: #6b8aa0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .22s;
}
.ef-rev-btn:hover { border-color: rgba(0,255,171,.26); color: #e8f4f8; }
.ef-rev-btn.selected {
  background: rgba(0,255,171,.09);
  border-color: rgba(0,255,171,.48);
  color: #00ffab;
}

/* ── Service option cards ────────────────────────────────────── */
.ef-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: 1rem;
}
.ef-option { position: relative; }
.ef-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ef-option label {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: #6b8aa0;
  transition: all .25s;
  line-height: 1.35;
}
.ef-opt-icon {
  width: 28px; height: 28px;
  background: rgba(0,255,171,.07);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  transition: background .25s;
}
.ef-option input:checked + label {
  border-color: rgba(0,255,171,.42);
  background: rgba(0,255,171,.07);
  color: #e8f4f8;
  box-shadow: 0 0 16px rgba(0,255,171,.07);
}
.ef-option input:checked + label .ef-opt-icon { background: rgba(0,255,171,.18); }

/* ── Footer ─────────────────────────────────────────────────── */
.ef-footer {
  padding: 16px 28px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ef-nav { display: flex; gap: .7rem; }

.ef-btn-back {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #6b8aa0;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s;
}
.ef-btn-back:hover { border-color: rgba(255,255,255,.22); color: #e8f4f8; }
.ef-btn-back.hidden { display: none; }

.ef-btn-next,
.ef-btn-submit {
  flex: 1;
  padding: 13px 22px;
  background: linear-gradient(135deg, #00ffab, #00d1ff);
  border: none;
  border-radius: 10px;
  color: #060d1a;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.ef-btn-next::before,
.ef-btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.16);
  opacity: 0;
  transition: opacity .22s;
}
.ef-btn-next:hover::before,
.ef-btn-submit:hover::before { opacity: 1; }
.ef-btn-next:hover,
.ef-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,171,.28);
}
.ef-btn-submit:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}

.ef-note {
  text-align: center;
  font-size: .67rem;
  color: #6b8aa0;
}

/* ── Success ─────────────────────────────────────────────────── */
.ef-success {
  display: none;
  text-align: center;
  padding: 2.2rem 0 1.2rem;
}
.ef-success.show { display: block; }
.ef-success-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #00ffab, #00d1ff);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.7rem;
  box-shadow: 0 0 40px rgba(0,255,171,.3);
  animation: ef-popIn .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes ef-popIn {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.ef-success h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #e8f4f8;
  margin-bottom: .5rem;
}
.ef-success p {
  font-size: .84rem;
  color: #6b8aa0;
  line-height: 1.72;
  max-width: 310px;
  margin: 0 auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 540px) {
  .ef-dialog { border-radius: 18px; max-height: 98vh; }
  .ef-header { padding: 20px 20px 0; }
  .ef-progress-wrap { padding: 0 20px 16px; }
  .ef-body { padding: 0 20px; }
  .ef-footer { padding: 14px 20px 20px; }
  .ef-title { font-size: 1.18rem; }
  .ef-q-title { font-size: .92rem; }
  .ef-options { grid-template-columns: 1fr; }
  .ef-q-opt { padding: 11px 13px; }
}