/* ================================================================
   Live Earthquake Map – Did You Feel It Reports v1.0.0
   Scoped to .lem-fr-wrap and .lem-fr-* classes only
   ================================================================ */

.lem-fr-wrap,
.lem-fr-wrap * {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lem-fr-wrap {
  --fr-bg:      #020817;
  --fr-bg2:     #061527;
  --fr-bg3:     #081b2f;
  --fr-cyan:    #00d9ff;
  --fr-green:   #00f080;
  --fr-yellow:  #ffe100;
  --fr-orange:  #ff7a18;
  --fr-red:     #ff334b;
  --fr-purple:  #b653ff;
  --fr-text:    #f4fbff;
  --fr-muted:   #8fa8bd;
  --fr-border:  rgba(0,217,255,0.2);
  --fr-panel:   rgba(6,21,39,0.9);
  --r:          14px;
  background: var(--fr-bg);
  color: var(--fr-text);
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
}

/* ── Quake context banner ───────────────────────────────────── */
.lem-fr-quake-context {
  background: rgba(255,51,75,0.08);
  border: 1px solid rgba(255,51,75,0.3);
  border-radius: var(--r);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lem-fr-quake-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--fr-muted);
}
.lem-fr-quake-info { display: flex; align-items: center; gap: 10px; }
.lem-fr-quake-mag {
  font-size: 22px;
  font-weight: 900;
  color: var(--fr-red);
  letter-spacing: -0.04em;
  text-shadow: 0 0 16px rgba(255,51,75,0.4);
}
.lem-fr-quake-place { font-size: 15px; font-weight: 600; color: var(--fr-text); }

/* ── Header ─────────────────────────────────────────────────── */
.lem-fr-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--fr-panel);
  border: 1px solid var(--fr-border);
  border-radius: var(--r);
  box-shadow: 0 0 30px rgba(0,217,255,0.06);
}
.lem-fr-header-icon { width: 52px; height: 52px; flex-shrink: 0; }
.lem-fr-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  color: var(--fr-text);
}
.lem-fr-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fr-muted);
  margin: 0;
}

/* ── Notice bar ─────────────────────────────────────────────── */
.lem-fr-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,217,255,0.06);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(143,168,189,0.85);
  margin-bottom: 20px;
}
.lem-fr-notice svg { flex-shrink: 0; color: var(--fr-cyan); }

/* ── Form sections ──────────────────────────────────────────── */
.lem-fr-section {
  background: var(--fr-panel);
  border: 1px solid var(--fr-border);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(0,217,255,0.04);
}

.lem-fr-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.lem-fr-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,217,255,0.1);
  border: 1.5px solid var(--fr-cyan);
  color: var(--fr-cyan);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,217,255,0.15);
}
.lem-fr-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--fr-text);
  letter-spacing: -0.02em;
}
.lem-fr-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--fr-muted);
  margin-left: 4px;
}
.lem-fr-section-hint { font-size: 12px; color: var(--fr-muted); margin: -10px 0 14px; }

/* ── Grid layouts ───────────────────────────────────────────── */
.lem-fr-row { display: grid; gap: 14px; }
.lem-fr-row--2 { grid-template-columns: 1fr 1fr; }
.lem-fr-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Fields ─────────────────────────────────────────────────── */
.lem-fr-field { display: flex; flex-direction: column; gap: 6px; }
.lem-fr-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fr-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lem-fr-field label .req { color: var(--fr-red); margin-left: 2px; }

.lem-fr-field input[type="text"],
.lem-fr-field input[type="email"],
.lem-fr-field input[type="date"],
.lem-fr-field input[type="time"],
.lem-fr-field textarea {
  background: rgba(2,8,23,0.8) !important;
  border: 1.5px solid rgba(0,217,255,0.2) !important;
  border-radius: 9px !important;
  padding: 11px 14px !important;
  color: var(--fr-text) !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.lem-fr-field input:focus,
.lem-fr-field textarea:focus {
  border-color: var(--fr-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0,217,255,0.12) !important;
}
.lem-fr-field input::placeholder,
.lem-fr-field textarea::placeholder { color: rgba(143,168,189,0.5) !important; }
.lem-fr-field textarea { resize: vertical; min-height: 100px; }
.lem-fr-field-hint { font-size: 11px; color: var(--fr-muted); margin-top: 2px; }

/* ── Geolocation ────────────────────────────────────────────── */
.lem-fr-geo-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fr-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.lem-fr-geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid rgba(0,217,255,0.3);
  background: rgba(0,217,255,0.06);
  color: var(--fr-cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.2s, box-shadow 0.2s;
}
.lem-fr-geo-btn:hover {
  background: rgba(0,217,255,0.12);
  box-shadow: 0 0 14px rgba(0,217,255,0.2);
}
.lem-fr-geo-status {
  font-size: 12px;
  color: var(--fr-green);
  margin-bottom: 10px;
  min-height: 18px;
}

/* ── Intensity grid ─────────────────────────────────────────── */
.lem-fr-intensity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lem-fr-intensity-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  user-select: none;
}
.lem-fr-intensity-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.lem-fr-intensity-opt:hover { border-color: rgba(0,217,255,0.3); background: rgba(0,217,255,0.05); }
.lem-fr-intensity-opt:has(input:checked) {
  border-color: var(--fr-cyan);
  background: rgba(0,217,255,0.1);
  box-shadow: 0 0 16px rgba(0,217,255,0.15);
}
.leq-int--4:has(input:checked),
.leq-int--5:has(input:checked) { border-color: var(--fr-orange); background: rgba(255,122,24,0.1); box-shadow: 0 0 16px rgba(255,122,24,0.15); }
.leq-int--6:has(input:checked)  { border-color: var(--fr-red); background: rgba(255,51,75,0.1); box-shadow: 0 0 16px rgba(255,51,75,0.15); }

.lem-fr-int-icon { font-size: 22px; line-height: 1; }
.lem-fr-int-label { font-size: 12px; font-weight: 600; color: var(--fr-text); }

/* ── Checkbox grid ──────────────────────────────────────────── */
.lem-fr-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lem-fr-check-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-size: 13px;
  color: var(--fr-text);
  transition: all 0.2s;
  user-select: none;
}
.lem-fr-check-opt:hover { border-color: rgba(0,217,255,0.25); background: rgba(0,217,255,0.04); }
.lem-fr-check-opt input { display: none; }
.lem-fr-check-box {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,217,255,0.3);
  border-radius: 4px;
  background: rgba(0,217,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}
.lem-fr-check-opt input:checked + .lem-fr-check-box {
  background: var(--fr-cyan);
  border-color: var(--fr-cyan);
  box-shadow: 0 0 10px rgba(0,217,255,0.35);
}
.lem-fr-check-opt input:checked + .lem-fr-check-box::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ── File upload ────────────────────────────────────────────── */
.lem-fr-upload-notice,
.lem-fr-upload-limits {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fr-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.lem-fr-upload-limits { margin-top: -6px; font-style: italic; opacity: 0.75; }
.lem-fr-file-input {
  background: rgba(2,8,23,0.8) !important;
  border: 1.5px dashed rgba(0,217,255,0.3) !important;
  border-radius: 9px !important;
  padding: 12px !important;
  color: var(--fr-muted) !important;
  font-size: 13px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: border-color 0.2s !important;
}
.lem-fr-file-input:hover { border-color: var(--fr-cyan) !important; }

/* Preview thumbnails */
.lem-fr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.lem-fr-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--fr-border);
}

/* ── Consent + Submit ───────────────────────────────────────── */
.lem-fr-section--submit { text-align: center; }
.lem-fr-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--fr-muted);
  line-height: 1.6;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  user-select: none;
}
.lem-fr-consent input { display: none; }
.lem-fr-consent .lem-fr-check-box { margin-top: 2px; flex-shrink: 0; }

.lem-fr-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ff334b, #c4002d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,51,75,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: -0.02em;
}
.lem-fr-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,51,75,0.5);
}
.lem-fr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Validation errors ──────────────────────────────────────── */
.lem-fr-err {
  font-size: 12px;
  color: var(--fr-red);
  min-height: 16px;
  display: block;
}

/* ── Success message ────────────────────────────────────────── */
.lem-fr-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--fr-panel);
  border: 1px solid rgba(0,240,128,0.3);
  border-radius: var(--r);
  box-shadow: 0 0 40px rgba(0,240,128,0.08);
}
.lem-fr-success-icon { width: 60px; height: 60px; margin: 0 auto 20px; }
.lem-fr-success h3 { font-size: 22px; font-weight: 800; color: var(--fr-green); margin: 0 0 12px; }
.lem-fr-success p { font-size: 15px; color: var(--fr-muted); line-height: 1.7; max-width: 440px; margin: 0 auto 24px; }
.lem-fr-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--fr-border);
  color: var(--fr-cyan);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.lem-fr-back-btn:hover { background: rgba(0,217,255,0.08); }

/* ── Global error ───────────────────────────────────────────── */
.lem-fr-global-err {
  padding: 12px 16px;
  background: rgba(255,51,75,0.1);
  border: 1px solid rgba(255,51,75,0.3);
  border-radius: 10px;
  color: #ffb3bb;
  font-size: 13px;
  margin-top: 14px;
}

/* ════════════════════════════════════════════════════════════
   PUBLIC REPORT CARDS  [lem_felt_reports]
   ════════════════════════════════════════════════════════════ */
.lem-fr-reports-list { display: flex; flex-direction: column; gap: 14px; }
.lem-fr-report-card {
  background: rgba(6,21,39,0.9);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: border-color 0.2s;
}
.lem-fr-report-card:hover { border-color: rgba(0,217,255,0.28); }
.lem-fr-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lem-fr-card-name { font-size: 15px; font-weight: 700; color: #fff; display: block; margin-bottom: 2px; }
.lem-fr-card-loc  { font-size: 13px; color: #a8c4d8; }
.lem-fr-card-intensity {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  flex-shrink: 0;
}
.lem-fr-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lem-fr-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,217,255,0.2);
  color: var(--fr-cyan);
  background: rgba(0,217,255,0.05);
}
.lem-fr-card-desc { font-size: 14px; line-height: 1.65; color: #c8dce8; font-style: italic; margin-bottom: 10px; }
.lem-fr-card-meta { font-size: 11px; color: #7a9bb0; }
.lem-fr-card-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lem-fr-card-photo-thumb img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--fr-border);
  transition: opacity 0.2s;
}
.lem-fr-card-photo-thumb:hover img { opacity: 0.8; }
.lem-fr-card-video { margin-top: 12px; }
.lem-fr-video-player { width: 100%; max-width: 480px; border-radius: 10px; border: 1px solid var(--fr-border); }
.lem-fr-empty { text-align: center; padding: 32px; color: var(--fr-muted); font-size: 14px; }
.lem-fr-empty a { color: var(--fr-cyan); }

/* ════════════════════════════════════════════════════════════
   SUMMARY CARD  [lem_felt_reports_summary]
   ════════════════════════════════════════════════════════════ */
.lem-fr-summary-card {
  background: rgba(6,21,39,0.9);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.lem-fr-summary-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c8dce8; }
.lem-fr-summary-row strong { color: var(--fr-text); }
.lem-fr-summary-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fr-cyan), #009bb8);
  color: #020817;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  transition: box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,217,255,0.25);
}
.lem-fr-summary-btn:hover { box-shadow: 0 8px 28px rgba(0,217,255,0.4); color: #020817; }

/* Honeypot — hide visually */
.lem-fr-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .lem-fr-header { flex-direction: column; gap: 12px; padding: 18px; }
  .lem-fr-section { padding: 18px 16px; }
  .lem-fr-row--2, .lem-fr-row--3 { grid-template-columns: 1fr; }
  .lem-fr-intensity-grid { grid-template-columns: repeat(2, 1fr); }
  .lem-fr-check-grid { grid-template-columns: 1fr; }
  .lem-fr-submit-btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
  .lem-fr-title { font-size: 22px; }
  .lem-fr-card-header { flex-direction: column; gap: 8px; }
}
@media (max-width: 400px) {
  .lem-fr-intensity-grid { grid-template-columns: 1fr 1fr; }
  .lem-fr-section { padding: 14px 12px; }
}

/* ── Tag text brighter ──────────────────────────────────────── */
.lem-fr-tag { color: #00d9ff !important; }

/* ════════════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════════════ */
.lem-fr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2,8,23,0.96);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lem-fr-lightbox.open { display: flex; }

.lem-fr-lb-inner {
  position: relative;
  max-width: min(92vw, 1000px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lem-fr-lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  border: 1px solid rgba(0,217,255,0.2);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  object-fit: contain;
  display: block;
}

/* Close button */
.lem-fr-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6,21,39,0.9);
  border: 1px solid rgba(0,217,255,0.25);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100000;
  line-height: 1;
}
.lem-fr-lb-close:hover { background: rgba(255,51,75,0.3); border-color: #ff334b; }

/* Prev / Next arrows */
.lem-fr-lb-prev,
.lem-fr-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(6,21,39,0.9);
  border: 1px solid rgba(0,217,255,0.25);
  color: #00d9ff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100000;
  user-select: none;
}
.lem-fr-lb-prev { left: 16px; }
.lem-fr-lb-next { right: 16px; }
.lem-fr-lb-prev:hover,
.lem-fr-lb-next:hover { background: rgba(0,217,255,0.12); box-shadow: 0 0 16px rgba(0,217,255,0.25); }
.lem-fr-lb-prev.hidden,
.lem-fr-lb-next.hidden { opacity: 0.2; pointer-events: none; }

/* Counter */
.lem-fr-lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(143,168,189,0.7);
  z-index: 100000;
}

/* Thumbnail strip in report cards — make clickable */
.lem-fr-card-photo-thumb { cursor: zoom-in; }

/* ── Date/time input calendar & clock icons ─────────────────── */
/* Force the browser calendar/clock icons to be visible (cyan) */
.lem-fr-field input[type="date"]::-webkit-calendar-picker-indicator,
.lem-fr-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(4) hue-rotate(175deg) brightness(1.2) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
}

/* ── Summary card button — brighter text ────────────────────── */
.lem-fr-summary-btn,
.lem-fr-summary-btn:hover,
.lem-fr-summary-btn:visited {
  color: #020817 !important;
  font-weight: 800 !important;
}

/* ── Character counter ──────────────────────────────────────── */
.lem-fr-char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 18px;
}
.lem-fr-char-count {
  font-size: 11px;
  color: var(--fr-muted);
  white-space: nowrap;
  margin-left: auto;
  padding-left: 12px;
}
.lem-fr-char-count.warning { color: var(--fr-orange); }
.lem-fr-char-count.limit   { color: var(--fr-red); font-weight: 700; }
