/* ============================================================
   eXp Realty – Mobile Landing Page CSS
   Navy: #0f1e5c  |  Orange: #f47c20
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: #0f1e5c;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Color helpers ---- */
.orange       { color: #f47c20; }
.orange-light { color: #f8a258; }

/* ---- Screen wrapper ---- */
.screen { width: 100%; min-height: 100vh; animation: fadeIn 0.3s ease; }

.page-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 22px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-wrap { text-align: center; }
.logo { height: 60px; width: auto; display: block; margin: 0 auto; }
.logo-fallback {
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-exp    { font-size: 2.8rem; font-weight: 900; color: #fff; letter-spacing: -1px; }
.logo-realty { font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 5px; margin-top: 2px; }

/* ============================================================
   CIRCLE ICONS
   ============================================================ */
.circle-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Orange filled — used in checklist */
.ci-orange {
  width: 28px; height: 28px;
  background: #f47c20;
  padding: 5px;
}
.ci-orange img { width: 100%; height: 100%; object-fit: contain; }

/* Outlined — used in trust row */
.ci-outline {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 9px;
}
.ci-outline img { width: 100%; height: 100%; object-fit: contain; }

/* Outlined small — used in stats bar */
.ci-outline-sm {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 7px;
}
.ci-outline-sm img { width: 100%; height: 100%; object-fit: contain; }

/* Outlined extra small — used in badges/notes */
.ci-outline-xs {
  width: 24px; height: 24px;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 4px;
  display: inline-flex;
}
.ci-outline-xs img { width: 100%; height: 100%; object-fit: contain; }

/* Inline circle icon helper */
.inline-ci { display: inline-flex; vertical-align: middle; margin-right: 5px; }

/* ============================================================
   SCREEN 1 – HERO
   ============================================================ */

/* --- Hero Title --- */
.hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  color: #fff;
  width: 100%;
}

/* --- Check List --- */
.check-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #cdd6f4;
  line-height: 1.4;
}
.check-list li strong { color: #fff; }

/* --- ZIP Box --- */
.zip-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zip-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 13px 16px;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.zip-input-wrap:focus-within {
  border-color: #f47c20;
  box-shadow: 0 0 0 3px rgba(244,124,32,0.2);
}
.zip-loc-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; opacity: 0.5; }
.zip-input {
  border: none; outline: none; background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem; color: #333; width: 100%;
}
.zip-input::placeholder { color: #aaa; }
.zip-error { color: #ff6b6b; font-size: 0.82rem; text-align: center; min-height: 0; }

/* --- Orange Button --- */
.btn-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #f47c20;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(244,124,32,0.4);
  letter-spacing: 0.2px;
}
.btn-orange:hover  { background: #e06910; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(244,124,32,0.5); }
.btn-orange:active { transform: translateY(1px); box-shadow: none; }
.btn-full { width: 100%; }
.btn-arrow { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.btn-icon-left { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* --- Trust Row --- */
.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
}
.trust-text { display: flex; flex-direction: column; gap: 1px; }
.trust-text strong { color: #fff; font-size: 0.72rem; font-weight: 800; display: block; }
.trust-text small  { color: #aab4d8; font-size: 0.64rem; }

/* --- Stats Bar --- */
.stats-bar {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.stat-item strong { font-size: 0.95rem; font-weight: 900; color: #fff; }
.stat-item small  { font-size: 0.62rem; color: #aab4d8; line-height: 1.3; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.18); }

/* --- Preview Section --- */
.preview-section { width: 100%; }
.preview-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}
.preview-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #aab4d8;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.arrow-inline { width: 13px; height: 13px; object-fit: contain; opacity: 0.6; }

/* --- Preview Grid (3 cols) --- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  cursor: pointer;
}

/* --- Homes Grid (2 cols, Screen 2) --- */
.homes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* ============================================================
   HOUSE CARD (shared by both screens)
   ============================================================ */
.house-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a2b6b;
}
.house-card--lg { aspect-ratio: 4/3; border-radius: 12px; }

.house-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Blur + darken exactly like mockup */
  filter: blur(6px) brightness(0.45);
  transform: scale(1.05); /* prevent blur edge artifacts */
}

.house-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 80, 0.25);
}

.house-lock-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Orange circle around lock2 */
.lock-circle {
  width: 46px;
  height: 46px;
  background: #f47c20;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.lock-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   SECURE NOTE (all screens)
   ============================================================ */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #8898c8;
  text-align: center;
}
.secure-icon {
  width: 14px; height: 14px;
  object-fit: contain;
}

/* ============================================================
   SCREEN 2 – HOMES FOUND
   ============================================================ */

/* Step Label */
.step-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.step-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f47c20;
  white-space: nowrap;
}
.step-bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
}
.step-bar--white { background: #fff; }
.step-bar--faded { background: rgba(255,255,255,0.25); }

.results-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.22;
  color: #fff;
  width: 100%;
}
.results-sub {
  text-align: center;
  color: #cdd6f4;
  font-size: 0.88rem;
}

/* Exclusive Badge */
.exclusive-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #f47c20;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.85rem;
  color: #fff;
  width: 100%;
  background: rgba(244,124,32,0.07);
}

/* Enter info note */
.enter-info-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #cdd6f4;
  text-align: center;
  width: 100%;
}

/* Bottom Trust */
.bottom-trust {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  font-size: 0.75rem;
  color: #aab4d8;
  gap: 4px;
}
.bottom-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: column;
  text-align: center;
}

/* ============================================================
   SCREEN 3 – LEAD FORM
   ============================================================ */

/* Big lock icon below logo */
.big-lock-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(244,124,32,0.15);
  border-radius: 50%;
  border: 2px solid rgba(244,124,32,0.5);
  flex-shrink: 0;
}
.big-lock-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.unlock-title {
  font-size: 1.65rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  width: 100%;
}
.unlock-title strong { color: #fff; font-weight: 900; }

.unlock-sub {
  text-align: center;
  color: #cdd6f4;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Info Box */
.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid #f47c20;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
}
.info-magnifier {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.info-box p { font-size: 0.88rem; color: #cdd6f4; line-height: 1.4; }
.info-box p strong { color: #fff; }

/* Lead Form */
#leadForm { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.form-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 13px 16px;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group:focus-within {
  border-color: #f47c20;
  box-shadow: 0 0 0 3px rgba(244,124,32,0.2);
}
.field-icon-wrap {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.field-icon-wrap img { width: 100%; height: 100%; object-fit: contain; opacity: 0.55; }

.form-group input {
  border: none; outline: none; background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; color: #1a2b6b; width: 100%; font-weight: 600;
}
.form-group input::placeholder { color: #999; font-weight: 400; }

.form-error { color: #ff6b6b; font-size: 0.82rem; text-align: center; }

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: space-around;
  width: 100%;
  font-size: 0.75rem;
  color: #cdd6f4;
}
.trust-badges span {
  display: flex; align-items: center; gap: 4px;
}
.badge-tick { width: 14px; height: 14px; object-fit: contain; }

/* Stars */
.stars-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.stars-row img { width: 22px; height: 22px; object-fit: contain; }

.trusted-line {
  font-size: 0.82rem;
  color: #aab4d8;
  text-align: center;
  font-style: italic;
}

/* Success Box */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(244,124,32,0.1);
  border: 2px solid #f47c20;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.4s ease;
}
.success-tick { width: 60px; height: 60px; object-fit: contain; }
.success-box h2 { font-size: 1.5rem; font-weight: 900; }
.success-box p  { color: #cdd6f4; font-size: 0.92rem; line-height: 1.5; }
.success-box strong { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .page-wrap { padding: 36px 30px 52px; }
  .hero-title { font-size: 1.95rem; }
  .results-title { font-size: 2rem; }
}

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #070f30;
    padding: 40px 20px;
  }
  .screen {
    max-width: 440px;
    margin: 0 auto;
    border-radius: 28px;
    background: #0f1e5c;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    min-height: auto;
  }
  .page-wrap { padding: 36px 28px 52px; }
}

/* ---- Opt-in Checkbox ---- */
.optin-wrap {
  width: 100%;
  padding: 4px 0;
}
.optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
}
.optin-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.optin-checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}
.optin-label input[type="checkbox"]:checked + .optin-checkmark {
  background: #f47c20;
  border-color: #f47c20;
}
.optin-label input[type="checkbox"]:checked + .optin-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.optin-text {
  font-size: 0.72rem;
  color: #aab4d8;
  line-height: 1.4;
}
