/* ═══════════════════════════════════════════
   SMAWAX Product Finder — finder.css
   Shortcode: [smawax_product_finder]
   ═══════════════════════════════════════════ */

/* ── Container ── */
.spf {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #2d2d2d;
  box-sizing: border-box;
}

.spf *, .spf *::before, .spf *::after {
  box-sizing: border-box;
}

/* ── Card ── */
.spf-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(112, 48, 160, 0.08);
  border: 1px solid rgba(112, 48, 160, 0.1);
}

/* ── Progress ── */
.spf-progress {
  margin-bottom: 32px;
}

.spf-progress__bar {
  height: 6px;
  background: rgba(112, 48, 160, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.spf-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #7030A0 0%, #00B39A 100%);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.spf-progress__label {
  font-size: 12px;
  color: #7030A0;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Question ── */
.spf-question {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

/* ── Options ── */
.spf-options {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.spf-options--3 { grid-template-columns: 1fr; }
.spf-options--4 { grid-template-columns: 1fr 1fr; }
.spf-options--5 { grid-template-columns: 1fr; }
.spf-options--6 { grid-template-columns: 1fr 1fr; }

.spf-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8f6fc;
  border: 2px solid rgba(112, 48, 160, 0.15);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
  min-height: 64px;
  font-family: inherit;
  width: 100%;
}

.spf-opt:hover {
  border-color: #7030A0;
  background: rgba(112, 48, 160, 0.05);
  box-shadow: 0 2px 8px rgba(112, 48, 160, 0.1);
}

.spf-opt--selected {
  border-color: #7030A0;
  background: rgba(112, 48, 160, 0.08);
  box-shadow: 0 2px 10px rgba(112, 48, 160, 0.15);
}

.spf-opt__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(112, 48, 160, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7030A0;
  transition: background .15s, color .15s;
}

.spf-opt--selected .spf-opt__icon {
  background: #7030A0;
  color: #fff;
}

.spf-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.spf-opt__text {
  font-size: 15px;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.4;
}

/* ── Navigation ── */
.spf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.spf-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(112, 48, 160, 0.2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #7030A0;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}

.spf-nav__back:hover:not(:disabled) {
  border-color: #7030A0;
  background: rgba(112, 48, 160, 0.05);
}

.spf-nav__back:disabled {
  opacity: 0.4;
  cursor: default;
}

.spf-nav__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #7030A0;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.spf-nav__next:hover:not(:disabled) {
  background: #5d2885;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(112, 48, 160, 0.35);
}

.spf-nav__next:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════════════
   RESULT CARD
   ═══════════════════════════════════════════ */

.spf-card--result {
  padding: 0;
  overflow: hidden;
}

/* ── Hero ── */
.spf-hero {
  background: linear-gradient(135deg, #3d1560 0%, #7030A0 55%, #5a3a8a 100%);
  padding: 44px 40px 36px;
  text-align: center;
  color: #fff;
}

.spf-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.spf-hero__name {
  font-size: 52px;
  font-weight: 800;
  color: #FFC409;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.spf-hero__price {
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.spf-hero__tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

/* Match Dots */
.spf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.spf-dots__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background .3s;
}

.spf-dots__dot--active {
  background: #FFC409;
  box-shadow: 0 0 8px rgba(255, 196, 9, 0.55);
}

.spf-dots__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ── Reason ── */
.spf-reason {
  padding: 30px 40px 0;
}

.spf-reason p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

/* ── Features ── */
.spf-features {
  list-style: none !important;
  margin: 24px 40px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.spf-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2d2d2d;
  font-weight: 500;
  list-style: none !important;
}

.spf-features li::before { display: none !important; content: '' !important; }
.spf-features li::marker { display: none !important; content: '' !important; }

.spf-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #00B39A;
}

/* ── CTAs ── */
.spf-ctas {
  display: flex;
  gap: 12px;
  padding: 4px 40px 28px;
  flex-wrap: wrap;
}

.spf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
  line-height: 1;
}

.spf-cta--primary {
  background: #00B39A;
  color: #fff !important;
  border: 2px solid #00B39A;
}

.spf-cta--primary:hover {
  background: #009980;
  border-color: #009980;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 179, 154, 0.35);
  color: #fff !important;
}

.spf-cta--secondary {
  background: transparent;
  color: #7030A0 !important;
  border: 2px solid #7030A0;
}

.spf-cta--secondary:hover {
  background: rgba(112, 48, 160, 0.07);
  color: #7030A0 !important;
}

/* ── Runner-up ── */
.spf-alt {
  margin: 0 40px 24px;
  padding: 18px 20px;
  background: #f8f6fc;
  border-radius: 12px;
  border: 1px solid rgba(112, 48, 160, 0.12);
}

.spf-alt__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7030A0;
  margin-bottom: 8px;
}

.spf-alt__name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
}

.spf-alt__price {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.spf-alt__tagline {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

/* ── Restart ── */
.spf-restart {
  text-align: center;
  padding: 0 40px 32px;
}

.spf-restart__btn {
  background: none;
  border: none;
  color: #7030A0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  padding: 4px 8px;
  transition: color .15s;
}

.spf-restart__btn:hover {
  color: #5d2885;
}

/* ═══════════════════════════════════════════
   PRE-SCREEN  (Intro + Input)
   ═══════════════════════════════════════════ */
.spf-pre {
  text-align: center;
}

.spf-pre__pill {
  display: inline-block;
  background: #7030A0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Score display (intro screen) */
.spf-pre__score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.spf-pre__chart-icon {
  width: 36px;
  height: 36px;
  color: #7030A0;
  opacity: 0.7;
}

.spf-pre__score {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

.spf-pre__score--low  { color: #e53e3e; }
.spf-pre__score--mid  { color: #d69e2e; }
.spf-pre__score--high { color: #00B39A; }

.spf-pre__company {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.spf-pre__domain {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.spf-pre__topic-tag {
  display: inline-block;
  background: rgba(112, 48, 160, 0.1);
  color: #7030A0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.spf-pre__text {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Input screen */
.spf-pre__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.spf-pre__subtitle {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}

.spf-pre__inputs {
  text-align: left;
  max-width: 380px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spf-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spf-label {
  font-size: 13px;
  font-weight: 600;
  color: #2d2d2d;
}

.spf-label__opt {
  font-weight: 400;
  color: #aaa;
}

.spf-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid rgba(112, 48, 160, 0.2);
  border-radius: 10px;
  background: #f8f6fc;
  color: #2d2d2d;
  transition: border-color .15s, background .15s;
  min-height: 48px;
  outline: none;
}

.spf-input:focus {
  border-color: #7030A0;
  background: #fff;
}

.spf-pre__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #7030A0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.spf-pre__btn:hover {
  background: #5d2885;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(112, 48, 160, 0.35);
}

/* ── Quick Check context block (result screen) ── */
.spf-context {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 40px 14px;
  padding: 10px 14px;
  background: rgba(112, 48, 160, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: #555;
}

.spf-context__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spf-context__dot--low  { background: #e53e3e; }
.spf-context__dot--mid  { background: #d69e2e; }
.spf-context__dot--high { background: #00B39A; }

.spf-context__sep {
  color: #ccc;
  margin: 0 2px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .spf {
    padding: 16px 12px 40px;
  }

  .spf-card {
    padding: 24px 20px;
  }

  .spf-question {
    font-size: 18px !important;
    margin-bottom: 20px !important;
  }

  /* All option grids → single column on mobile */
  .spf-options--4,
  .spf-options--6 {
    grid-template-columns: 1fr;
  }

  .spf-opt {
    min-height: 56px;
  }

  .spf-nav__next {
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Result */
  .spf-hero {
    padding: 28px 20px 24px;
  }

  .spf-hero__name {
    font-size: 38px;
  }

  .spf-hero__price {
    font-size: 16px;
  }

  .spf-reason {
    padding: 20px 20px 0;
  }

  .spf-features {
    grid-template-columns: 1fr !important;
    margin: 20px 20px !important;
  }

  .spf-ctas {
    padding: 4px 20px 20px;
    flex-direction: column;
  }

  .spf-cta {
    justify-content: center;
    font-size: 14px;
    padding: 14px 18px;
  }

  .spf-alt {
    margin: 0 20px 20px;
  }

  .spf-restart {
    padding: 0 20px 24px;
  }

  /* Pre-screen mobile */
  .spf-pre__score { font-size: 48px; }
  .spf-pre__company { font-size: 22px; }
  .spf-pre__text { font-size: 15px; }
  .spf-pre__btn { padding: 14px 28px; font-size: 15px; }
  .spf-pre__inputs { max-width: 100%; }

  /* Context block mobile */
  .spf-context { margin: 0 20px 14px; }

  /* New elements mobile */
  .spf-llm-hint { margin: 0 20px 14px; }
  .spf-crosssell { margin: 0 20px 16px; }
  .spf-ranking { margin: 0 20px 20px; }
}

/* ── SaaS Hero Variant ── */
.spf-hero--saas {
  background: linear-gradient(135deg, #0a4a3f 0%, #00B39A 55%, #2d8a6e 100%);
}

/* ── LLM Hint ── */
.spf-llm-hint {
  margin: 0 40px 16px;
  padding: 8px 14px;
  background: rgba(0, 179, 154, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* ── Cross-Sell ── */
.spf-crosssell {
  margin: 0 40px 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(112, 48, 160, 0.04) 0%, rgba(0, 179, 154, 0.04) 100%);
  border-radius: 10px;
  border: 1px dashed rgba(112, 48, 160, 0.2);
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.spf-crosssell__hint {
  color: #7030A0;
  font-weight: 600;
}

/* ── Full Ranking ── */
.spf-ranking {
  margin: 0 40px 24px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid rgba(112, 48, 160, 0.08);
}

.spf-ranking__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7030A0;
  margin-bottom: 14px;
}

.spf-ranking__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spf-ranking__row:last-child {
  border-bottom: none;
}

.spf-ranking__row--winner {
  font-weight: 700;
}

.spf-ranking__dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.spf-ranking__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(112, 48, 160, 0.12);
}

.spf-ranking__dot--active {
  background: #7030A0;
}

.spf-ranking__row--winner .spf-ranking__dot--active {
  background: #FFC409;
  box-shadow: 0 0 6px rgba(255, 196, 9, 0.4);
}

.spf-ranking__name {
  font-size: 14px;
  color: #2d2d2d;
  flex: 1;
}

.spf-ranking__price {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   LEAD CAPTURE MODAL
   ═══════════════════════════════════════════ */
.spf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: spf-fade-in 0.3s ease;
}

@keyframes spf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.spf-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  animation: spf-slide-up 0.3s ease;
}

@keyframes spf-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.spf-modal__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.spf-modal__text {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 0 0 20px;
}

.spf-modal__name-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.spf-modal__input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid rgba(112, 48, 160, 0.2);
  border-radius: 10px;
  background: #f8f6fc;
  color: #2d2d2d;
  transition: border-color .15s, background .15s;
  min-height: 44px;
  outline: none;
  box-sizing: border-box;
}
.spf-modal__input:focus {
  border-color: #7030A0;
  background: #fff;
}

.spf-modal__input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.spf-modal__mail-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7030A0;
  opacity: 0.7;
  pointer-events: none;
}

.spf-modal__email {
  display: block;
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid rgba(112, 48, 160, 0.2);
  border-radius: 10px;
  background: #f8f6fc;
  color: #2d2d2d;
  transition: border-color .15s, background .15s;
  min-height: 48px;
  outline: none;
  box-sizing: border-box;
}

.spf-modal__email:focus {
  border-color: #7030A0;
  background: #fff;
}

#spf-modal-company {
  margin-bottom: 12px;
}

.spf-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  cursor: pointer;
}

.spf-modal__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7030A0;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.spf-modal__consent a {
  color: #7030A0;
  text-decoration: underline;
}

.spf-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: #00B39A;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
  margin-bottom: 14px;
}

.spf-modal__submit:not(:disabled):hover {
  background: #009982;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 179, 154, 0.35);
}

.spf-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spf-modal__skip {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  transition: color .15s;
}

.spf-modal__skip:hover {
  color: #555;
}

/* Modal Mobile: Bottom-Sheet */
@media (max-width: 600px) {
  .spf-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .spf-modal {
    border-radius: 16px 16px 0 0;
    padding: 28px 20px 36px;
    width: 100%;
    max-width: 100%;
    animation: spf-slide-up-mobile 0.3s ease;
  }
}

@keyframes spf-slide-up-mobile {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
