@charset "UTF-8";
/* ============================================================
   CRO (Conversion Rate Optimization) — prisha-misuy.co.il
   Phase 2 — uses canonical palette tokens from main.css
   ============================================================ */

:root {
  --cro-shadow-lg: 0 14px 40px rgba(11, 46, 74, 0.18);
  --cro-shadow-md: 0 6px 16px rgba(11, 46, 74, 0.12);
  --cro-radius: 12px;
}

/* ===== Trust Microcopy ===== */
.form-trust-microcopy {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .6rem 0 0;
  padding: .55rem .75rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--text-muted, #5B677A);
  background: var(--bg-light, #F8FAFC);
  border-right: 3px solid var(--accent, #15803D);
  border-radius: 6px;
  text-align: right;
}
.form-trust-microcopy strong { color: var(--text-dark, #172033); }

/* ===== Sticky CTA ===== */
.cro-sticky-cta {
  position: fixed;
  z-index: 9998;
  background: var(--primary, #0B2E4A);
  color: #fff;
  box-shadow: var(--cro-shadow-lg);
  font-family: inherit;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.cro-sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cro-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
}
.cro-sticky-cta__text {
  flex: 1;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
}
.cro-sticky-cta__text small {
  display: block;
  font-weight: 400;
  font-size: .75rem;
  opacity: .85;
}
.cro-sticky-cta__btn {
  background: var(--accent, #15803D);
  color: #fff;
  border: 0;
  padding: .55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cro-sticky-cta__btn:hover { background: var(--accent-dark, #0F5A2C); }
.cro-sticky-cta__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  padding: 0 .25rem;
}
.cro-sticky-cta__close:hover { opacity: 1; }

/* Mobile: full-width bottom bar */
@media (max-width: 768px) {
  .cro-sticky-cta {
    inset-inline: 0;
    bottom: 0;
    border-radius: 0;
  }
}
/* Desktop: floating pill bottom-right */
@media (min-width: 769px) {
  .cro-sticky-cta {
    bottom: 18px;
    inset-inline-end: 18px;
    max-width: 380px;
    border-radius: 999px;
  }
  .cro-sticky-cta__inner { padding: .55rem .75rem .55rem 1.1rem; }
}

/* ===== Modal (exit popup + 2-step lead modal) ===== */
.cro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 25, 42, 0.62);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.cro-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}
.cro-modal {
  background: #fff;
  border-radius: var(--cro-radius);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--cro-shadow-lg);
  position: relative;
  text-align: right;
  direction: rtl;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  max-height: 92vh;
  overflow-y: auto;
}
.cro-modal-overlay.is-open .cro-modal { transform: translateY(0); }
.cro-modal__close {
  position: absolute;
  top: .5rem;
  inset-inline-start: .55rem;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted, #5B677A);
  cursor: pointer;
  padding: .25rem .5rem;
}
.cro-modal__close:hover { color: var(--text-dark, #172033); }
.cro-modal__eyebrow {
  display: inline-block;
  background: var(--bg-accent, #EEF6FB);
  color: var(--primary, #0B2E4A);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 999px;
  margin-bottom: .55rem;
}
.cro-modal__title {
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  color: var(--primary, #0B2E4A);
  font-weight: 800;
  line-height: 1.25;
}
.cro-modal__sub {
  margin: 0 0 1rem;
  color: var(--text-body, #2A3447);
  font-size: .95rem;
  line-height: 1.5;
}
.cro-modal__form { display: flex; flex-direction: column; gap: .55rem; }
.cro-modal__form input,
.cro-modal__form select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--border, #CBD5E0);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  direction: rtl;
  background: #fff;
}
.cro-modal__form input:focus,
.cro-modal__form select:focus {
  outline: 2px solid var(--primary, #0B2E4A);
  outline-offset: 1px;
  border-color: var(--primary, #0B2E4A);
}
.cro-modal__radios {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: .25rem 0;
}
.cro-modal__radios label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border: 1px solid var(--border, #CBD5E0);
  border-radius: 8px;
  cursor: pointer;
  font-size: .92rem;
  background: #fff;
  transition: all .15s ease;
}
.cro-modal__radios label:hover { border-color: var(--primary, #0B2E4A); background: var(--bg-light, #F8FAFC); }
.cro-modal__radios input { width: auto; margin: 0; }
.cro-modal__submit {
  background: var(--accent, #15803D);
  color: #fff;
  border: 0;
  padding: .8rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: .35rem;
  transition: background .15s ease;
}
.cro-modal__submit:hover { background: var(--accent-dark, #0F5A2C); }
.cro-modal__submit:disabled { opacity: .65; cursor: wait; }
.cro-modal__success {
  background: var(--accent-light, #D1FAE5);
  color: var(--accent-dark, #0F5A2C);
  padding: .8rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  margin-top: .5rem;
}
.cro-modal__step { display: none; }
.cro-modal__step.is-active { display: block; }
.cro-modal__progress {
  display: flex;
  gap: .35rem;
  margin: 0 0 .9rem;
}
.cro-modal__progress span {
  flex: 1;
  height: 4px;
  background: var(--border-light, #E2E8F0);
  border-radius: 2px;
}
.cro-modal__progress span.is-on { background: var(--accent, #15803D); }

/* ===== Form draft restore notice ===== */
.cro-draft-notice {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  margin: 0 0 .65rem;
  background: var(--warning-light, #FEF3C7);
  color: var(--warning, #D97706);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
}
.cro-draft-notice button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  margin-inline-start: auto;
  line-height: 1;
}

/* ===== Social Proof Widget ===== */
.cro-social-proof {
  background: linear-gradient(135deg, var(--primary, #0B2E4A), var(--primary-dark, #06192A));
  color: #fff;
  padding: .65rem 1rem;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--cro-radius);
  margin: 1rem auto;
  max-width: 720px;
  box-shadow: var(--cro-shadow-md);
}
.cro-social-proof span { margin: 0 .35rem; opacity: .92; }
.cro-social-proof strong { color: var(--gold, #C9A24D); }

/* ===== Simplified lead form helper ===== */
.simplified-lead-form input[type="email"],
.simplified-lead-form input[name="age"],
.simplified-lead-form input[name="dob"],
.simplified-lead-form textarea[name="message"] {
  display: none !important;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cro-modal-overlay,
  .cro-modal,
  .cro-sticky-cta { transition: none !important; }
  .cro-modal { transform: none !important; }
}

/* Small devices */
@media (max-width: 480px) {
  .cro-modal { padding: 1.2rem 1rem 1rem; }
  .cro-modal__title { font-size: 1.2rem; }
  .cro-social-proof { font-size: .8rem; padding: .55rem .6rem; }
  .cro-social-proof span { display: inline-block; }
}
