/* Local Exposure client onboarding - shared styles
   Brand: Sora, navy #05091B, sky #0EA5E9. Mobile first. */

:root {
  --le-navy: #05091B;
  --le-navy-2: #0B1230;
  --le-sky: #0EA5E9;
  --le-sky-dark: #0284C7;
  --le-sky-soft: #E0F2FE;
  --le-ink: #0F172A;
  --le-muted: #5B6478;
  --le-line: #E2E8F0;
  --le-bg: #F4F7FB;
  --le-card: #FFFFFF;
  --le-ok: #16A34A;
  --le-ok-soft: #DCFCE7;
  --le-warn: #B45309;
  --le-warn-soft: #FEF3C7;
  --le-err: #DC2626;
  --le-err-soft: #FEE2E2;
  --le-radius: 14px;
  --le-shadow: 0 10px 30px rgba(5, 9, 27, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--le-ink);
  background: var(--le-bg);
}
[hidden] { display: none !important; }
a { color: var(--le-sky-dark); }
h1, h2, h3 { margin: 0 0 0.35em; line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.le-muted { color: var(--le-muted); }
.le-small { font-size: 0.875rem; }
.le-strong { font-weight: 600; }

/* Header */
.le-header {
  background: var(--le-navy);
  color: #fff;
  padding: 14px 16px;
}
.le-header__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.le-header__icon {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: #000;
}
.le-header__title { font-weight: 700; font-size: 1rem; }
.le-header__sub { font-size: 0.8rem; opacity: 0.75; }
.le-header__phone { margin-left: auto; font-size: 0.8rem; opacity: 0.85; text-align: right; }
.le-header__phone a { color: #fff; text-decoration: none; font-weight: 600; }

/* Demo banner */
.le-demo {
  background: var(--le-warn-soft);
  color: var(--le-warn);
  font-size: 0.85rem;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid #FDE68A;
}

/* Stepper */
.le-stepper {
  max-width: 820px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
}
.le-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--le-muted); text-align: center;
}
.le-step__dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--le-line); background: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem;
}
.le-step__bar { height: 4px; width: 100%; border-radius: 4px; background: var(--le-line); }
.le-step--active { color: var(--le-navy); font-weight: 600; }
.le-step--active .le-step__dot { border-color: var(--le-sky); color: var(--le-sky-dark); }
.le-step--active .le-step__bar { background: var(--le-sky); }
.le-step--done .le-step__dot { background: var(--le-ok); border-color: var(--le-ok); color: #fff; }
.le-step--done .le-step__bar { background: var(--le-ok); }

/* Card */
.le-main { max-width: 820px; margin: 16px auto 40px; padding: 0 16px; }
.le-card {
  background: var(--le-card);
  border-radius: var(--le-radius);
  box-shadow: var(--le-shadow);
  padding: 22px 18px;
}
@media (min-width: 640px) {
  .le-card { padding: 32px; }
  .le-step { font-size: 0.85rem; }
  h1 { font-size: 1.75rem; }
}
.le-card__lead { color: var(--le-muted); margin-bottom: 1.25em; }

/* Forms */
.le-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) {
  .le-grid--2 { grid-template-columns: 1fr 1fr; }
  .le-grid--3 { grid-template-columns: 2fr 1fr 1fr; }
}
.le-field { display: flex; flex-direction: column; gap: 6px; }
.le-field--full { grid-column: 1 / -1; }
.le-label { font-size: 0.85rem; font-weight: 600; color: var(--le-navy); }
.le-label .le-req { color: var(--le-err); }
.le-input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--le-line);
  border-radius: 10px;
  background: #fff;
  color: var(--le-ink);
  width: 100%;
  min-height: 48px;
}
.le-input:focus { outline: none; border-color: var(--le-sky); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }
.le-input[aria-invalid="true"] { border-color: var(--le-err); }
.le-error { color: var(--le-err); font-size: 0.8rem; min-height: 0; }
.le-help { color: var(--le-muted); font-size: 0.8rem; }
.le-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Read-only summary */
.le-summary {
  margin: 18px 0 6px;
  border: 1px solid var(--le-line);
  border-radius: 12px;
  overflow: hidden;
}
.le-summary__head {
  background: var(--le-sky-soft);
  color: var(--le-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
}
.le-summary__row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 10px 14px; border-top: 1px solid var(--le-line);
}
@media (min-width: 640px) { .le-summary__row { grid-template-columns: 220px 1fr; } }
.le-summary__k { color: var(--le-muted); font-size: 0.85rem; }
.le-summary__v { font-weight: 600; }

/* Rep's note on the intro */
.le-note {
  margin: 0 0 18px; padding: 12px 14px 12px 16px;
  border-left: 4px solid var(--le-sky); background: var(--le-sky-soft); border-radius: 0 10px 10px 0;
  font-size: 0.95rem; color: var(--le-navy); white-space: pre-line;
}
.le-note__from { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--le-sky-dark); margin-bottom: 4px; }

/* Set-up fee plan + collection day */
.le-plan { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--le-line); }
.le-plan h2 { font-size: 1.05rem; margin-bottom: 6px; }
.le-plan__options { display: grid; gap: 10px; margin-top: 10px; }
.le-option {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border: 1.5px solid var(--le-line); border-radius: 12px; cursor: pointer; background: #fff;
}
.le-option:has(input:checked) { border-color: var(--le-sky); background: var(--le-sky-soft); }
.le-option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--le-sky); }
.le-option__title { font-weight: 600; }
.le-option__detail { font-size: 0.875rem; color: var(--le-muted); }
.le-option__detail strong { color: var(--le-ink); }

/* Buttons */
.le-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.le-btn {
  font: inherit; font-weight: 600;
  padding: 13px 22px; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.le-btn--primary { background: var(--le-sky); color: #fff; }
.le-btn--primary:hover { background: var(--le-sky-dark); }
.le-btn--secondary { background: #fff; color: var(--le-navy); border-color: var(--le-line); }
.le-btn--link { background: none; color: var(--le-sky-dark); padding: 10px 6px; }
.le-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.le-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: le-spin 0.8s linear infinite; }
@keyframes le-spin { to { transform: rotate(360deg); } }

/* Notices */
.le-notice { border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin: 14px 0; }
.le-notice--info { background: var(--le-sky-soft); color: var(--le-navy); }
.le-notice--ok { background: var(--le-ok-soft); color: #166534; }
.le-notice--warn { background: var(--le-warn-soft); color: var(--le-warn); }
.le-notice--err { background: var(--le-err-soft); color: #991B1B; }

/* Embeds */
.le-embed {
  border: 1.5px solid var(--le-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 420px;
  position: relative;
}
.le-embed iframe { display: block; width: 100%; height: 70vh; min-height: 560px; border: 0; }
.le-embed__loading {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 10px;
  background: #fff; color: var(--le-muted); font-size: 0.9rem;
}
.le-embed__loading .le-spin { width: 28px; height: 28px; border: 3px solid var(--le-line); border-top-color: var(--le-sky); }
#gc-billing { min-height: 420px; padding: 6px; }

/* Demo stand-ins for third-party embeds */
.le-mock {
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: repeating-linear-gradient(135deg, #fff, #fff 12px, #F8FAFC 12px, #F8FAFC 24px);
  min-height: 420px;
}
.le-mock__badge { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--le-navy); color: #fff; padding: 4px 10px; border-radius: 999px; }
.le-mock__doc { background: #fff; border: 1px solid var(--le-line); border-radius: 10px; padding: 18px; }
.le-mock__doc h3 { margin-bottom: 8px; }
.le-mock__line { height: 10px; background: var(--le-line); border-radius: 6px; margin: 8px 0; }
.le-mock__line--short { width: 60%; }
.le-mock__sig { margin-top: 14px; padding: 14px; border: 2px dashed var(--le-sky); border-radius: 10px; color: var(--le-sky-dark); font-weight: 600; text-align: center; }
.le-mock__form { display: grid; gap: 10px; }
.le-mock__form .le-input { background: #F8FAFC; }

/* Done */
.le-done { text-align: center; padding: 10px 0 0; }
.le-done__tick {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--le-ok-soft); color: var(--le-ok); display: grid; place-items: center; font-size: 2rem; font-weight: 700;
}
.le-done ul { text-align: left; max-width: 520px; margin: 18px auto; padding-left: 20px; }
.le-done li { margin-bottom: 8px; }
.le-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1F5F9; padding: 2px 8px; border-radius: 6px; }

/* Footer */
.le-footer { max-width: 820px; margin: 0 auto 40px; padding: 0 16px; color: var(--le-muted); font-size: 0.78rem; }
.le-footer p { margin: 0 0 4px; }

/* ---- in-app agreement (replaces the PandaDoc iframe) ---- */
.le-agreement { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; max-height: 70vh; overflow: auto; padding: 0; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.le-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.le-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.le-sign { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.le-sigpad { border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; height: 180px; touch-action: none; position: relative; }
.le-sigpad canvas { width: 100%; height: 100%; display: block; border-radius: 10px; }
.le-sigpad__tools { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.le-notice--ok { background: #ecfdf5; color: #065f46; }
.le-print .le-agreement { max-height: none; }
@media (max-width: 640px) { .le-agreement { max-height: none; } }
.le-optin { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.le-optin__label { font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 6px; }
