/* ============================================================
   LI Baby Fence Scheduler — Frontend Registration Form
   Brand: Navy #0A2540 | Blue #4FC3F7 | Orange #FF6B35
   ============================================================ */

:root {
  --lfs-pub-navy:   #0A2540;
  --lfs-pub-blue:   #4FC3F7;
  --lfs-pub-orange: #FF6B35;
  --lfs-pub-white:  #F8FAFC;
  --lfs-pub-green:  #22C55E;
  --lfs-pub-red:    #EF4444;
  --lfs-pub-r:      12px;
  --lfs-pub-sh:     0 4px 24px rgba(10,37,64,.10);
  --lfs-pub-sh-lg:  0 8px 40px rgba(10,37,64,.16);
}

/* ── Outer wrap ──────────────────────────────────── */
.lfs-reg-wrap {
  max-width: 720px;
  margin: 0 auto 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #1F2937;
  line-height: 1.5;
}

/* ── Hero ────────────────────────────────────────── */
.lfs-reg-hero {
  background: linear-gradient(135deg, var(--lfs-pub-navy) 0%, #0E3460 100%);
  border-radius: var(--lfs-pub-r) var(--lfs-pub-r) 0 0;
  padding: 44px 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lfs-reg-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(79,195,247,.18) 0%, transparent 70%);
  pointer-events: none;
}
.lfs-reg-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lfs-pub-orange), var(--lfs-pub-blue));
}
.lfs-reg-hero-inner { position: relative; z-index: 1; }
.lfs-reg-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,255,255,.08);
  border-radius: 16px;
  margin-bottom: 16px;
}
.lfs-reg-hero-title {
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
}
.lfs-reg-hero-sub {
  color: rgba(255,255,255,.78) !important;
  font-size: 16px !important;
  margin: 0 !important;
  max-width: 480px;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* ── Trust signals ───────────────────────────────── */
.lfs-reg-trust-row {
  display: flex;
  background: var(--lfs-pub-white);
  border: 1px solid #E5E7EB;
  border-top: none;
  border-bottom: 2px solid #E5E7EB;
  flex-wrap: wrap;
}
.lfs-trust-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid #E5E7EB;
  transition: background .15s;
}
.lfs-trust-item:last-child { border-right: none; }
.lfs-trust-item:hover { background: #F0F9FF; }
.lfs-trust-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}
.lfs-trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lfs-pub-navy);
  margin-bottom: 2px;
}
.lfs-trust-item span {
  display: block;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

/* ── Alerts ──────────────────────────────────────── */
.lfs-reg-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--lfs-pub-r);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}
.lfs-reg-alert-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.lfs-reg-alert--error {
  background: #FEF2F2;
  border: 2px solid #FECACA;
  color: #991B1B;
}
.lfs-reg-alert--error a { color: #991B1B; font-weight: 700; }
.lfs-reg-alert--info {
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
  color: #1E40AF;
}
.lfs-reg-alert--info a { color: #1D4ED8; font-weight: 700; }
.lfs-reg-alert strong { display: block; margin-bottom: 3px; font-size: 15px; }

/* ── Success ─────────────────────────────────────── */
.lfs-reg-success {
  text-align: center;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid #86EFAC;
  border-radius: var(--lfs-pub-r);
  padding: 48px 32px;
  margin-top: 20px;
}
.lfs-reg-success-checkmark { margin-bottom: 20px; display: block; }
.lfs-reg-success h3 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #14532D !important;
  margin: 0 0 14px !important;
}
.lfs-reg-success p {
  color: #166534 !important;
  font-size: 15px !important;
  margin: 0 0 12px !important;
  max-width: 480px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.lfs-reg-success-actions { margin-top: 24px; }
.lfs-reg-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lfs-pub-navy);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: background .15s, transform .15s;
}
.lfs-reg-success-btn:hover { background: #0E3460; transform: translateY(-1px); }

/* ── Form card ───────────────────────────────────── */
.lfs-reg-form-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 var(--lfs-pub-r) var(--lfs-pub-r);
  box-shadow: var(--lfs-pub-sh);
  overflow: hidden;
  margin-bottom: 0;
}
.lfs-reg-form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 28px;
}
.lfs-reg-form-topbar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lfs-pub-navy);
}
.lfs-reg-form-topbar-time {
  font-size: 12px;
  color: #9CA3AF;
}

.lfs-reg-form { padding: 0; }

/* ── Form sections ───────────────────────────────── */
.lfs-reg-section {
  padding: 28px 32px;
  border-bottom: 1px solid #F3F4F6;
}
.lfs-reg-section:last-of-type { border-bottom: none; }
.lfs-reg-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  color: var(--lfs-pub-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F3F4F6;
}
.lfs-reg-section-icon { font-size: 18px; }

/* ── Field grid ──────────────────────────────────── */
.lfs-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lfs-reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lfs-reg-field.lfs-reg-full   { grid-column: 1 / -1; }
.lfs-reg-field.lfs-reg-narrow { max-width: 140px; }

.lfs-reg-field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lfs-reg-field label .req      { color: var(--lfs-pub-red); }
.lfs-reg-field label .lfs-label-opt {
  font-weight: 400;
  color: #9CA3AF;
  font-size: 12px;
}

.lfs-reg-field input[type="text"],
.lfs-reg-field input[type="email"],
.lfs-reg-field input[type="tel"],
.lfs-reg-field select,
.lfs-reg-field textarea {
  padding: 12px 14px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 15px;
  color: #1F2937;
  background: #FAFAFA;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.lfs-reg-field input:focus,
.lfs-reg-field select:focus,
.lfs-reg-field textarea:focus {
  outline: none;
  border-color: var(--lfs-pub-blue);
  box-shadow: 0 0 0 3px rgba(79,195,247,.20);
  background: #fff;
}
.lfs-reg-field input::placeholder,
.lfs-reg-field textarea::placeholder { color: #C9D3DC; }
.lfs-reg-field select { cursor: pointer; appearance: auto; }
.lfs-reg-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

/* ── Submit ──────────────────────────────────────── */
.lfs-reg-submit {
  padding: 28px 32px 32px;
  background: #F8FAFC;
  border-top: 2px solid #F3F4F6;
  text-align: center;
}
.lfs-reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--lfs-pub-orange) 0%, #e05a25 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 44px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, opacity .15s;
  letter-spacing: .01em;
  box-shadow: 0 4px 18px rgba(255,107,53,.35);
  width: 100%;
  max-width: 440px;
  justify-content: center;
  font-family: inherit;
}
.lfs-reg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,53,.45);
}
.lfs-reg-btn:active { transform: translateY(0); }
.lfs-reg-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.lfs-btn-arrow { flex-shrink: 0; }

/* reCAPTCHA v3 — hide default floating badge (legal text shown in form instead) */
.grecaptcha-badge { visibility: hidden !important; }

.lfs-reg-captcha-notice {
  font-size: 11px;
  color: #9CA3AF;
  margin: 10px 0 0;
  line-height: 1.5;
}
.lfs-reg-captcha-notice a { color: #9CA3AF; text-decoration: underline; }

.lfs-reg-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: #9CA3AF;
}

/* ── Alt CTA ─────────────────────────────────────── */
.lfs-reg-alt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
}
.lfs-reg-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lfs-pub-navy) !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  border: 2px solid var(--lfs-pub-navy);
  border-radius: 8px;
  padding: 8px 16px;
  transition: background .15s, color .15s;
}
.lfs-reg-phone-link:hover {
  background: var(--lfs-pub-navy);
  color: #fff !important;
}

/* ── Validation error state ──────────────────────── */
.lfs-field-error input,
.lfs-field-error select,
.lfs-field-error textarea {
  border-color: var(--lfs-pub-red) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}

/* ── Spinner animation ───────────────────────────── */
@keyframes lfs-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .lfs-reg-hero           { padding: 32px 22px 28px; border-radius: var(--lfs-pub-r) var(--lfs-pub-r) 0 0; }
  .lfs-reg-hero-title     { font-size: 24px !important; }
  .lfs-reg-trust-row      { flex-direction: column; }
  .lfs-trust-item         { border-right: none; border-bottom: 1px solid #E5E7EB; }
  .lfs-trust-item:last-child { border-bottom: none; }
  .lfs-reg-grid           { grid-template-columns: 1fr; }
  .lfs-reg-section        { padding: 22px 20px; }
  .lfs-reg-submit         { padding: 22px 20px 26px; }
  .lfs-reg-form-topbar    { padding: 10px 20px; }
  .lfs-reg-field.lfs-reg-narrow { max-width: 100%; }
}
