/* free-scan.css — public free-scan form, robust + mobile-first.
   Loads AFTER audit-form.css. Includes the checkbox fix (.fs-check*), the
   custom checkbox styling, and the "running your audit" overlay. CSP-safe. */

.fs-card { max-width: 600px; }
.fs-form-wrap { margin: 0 auto; }

/* Inputs fill their row and never overflow the card. */
.af-form .af-row { margin-bottom: 16px; }
.af-form .af-input { width: 100%; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease; }

/* ── Checkbox fix + polish ────────────────────────────────────────────────────
   audit-form.css defines .af-checkbox as the INPUT (width:18px; flex:0 0 18px),
   which squashed the label wrapper to 18px and wrapped the text one word per
   line. The free-scan checkboxes use their OWN classes (.fs-check*): the label
   is the flex row, a custom box sits left, the text fills the rest. */
.fs-check-row { margin: 12px 0; }
.fs-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text, #e8f1f5);
}
.fs-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 2px solid rgba(120, 160, 180, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.fs-check input[type="checkbox"]:hover { border-color: #1EB3FF; }
.fs-check input[type="checkbox"]:checked { background: #1EB3FF; border-color: #1EB3FF; }
.fs-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #03040a;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.fs-check input[type="checkbox"]:focus-visible { outline: 2px solid #1EB3FF; outline-offset: 2px; }
.fs-check span { flex: 1 1 auto; min-width: 0; }

.fs-consent {
  border-top: 1px solid rgba(120, 160, 180, 0.18);
  padding-top: 14px;
  margin-top: 16px;
}

.af-fineprint {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(200, 218, 226, 0.55);
  line-height: 1.5;
}

/* Submit: full-width on mobile, auto on larger screens. */
.af-actions { margin-top: 18px; }
.af-submit { width: 100%; }
@media (min-width: 560px) { .af-submit { width: auto; min-width: 220px; } }

/* Landing hero that hosts the scan form. */
.lp-scan { display: grid; gap: 18px; }
.lp-scan-head { text-align: center; }
.lp-scan-head .cwp-h1 { margin-bottom: 6px; }
.lp-signin-row {
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
  color: rgba(200, 218, 226, 0.7);
}
.lp-signin-row a { color: #1EB3FF; text-decoration: none; }
.lp-signin-row a:hover { text-decoration: underline; }

@media (max-width: 560px) { .af-form .af-row { margin-bottom: 14px; } }

/* ── "Running your audit" overlay ─────────────────────────────────────────────
   Shown by /js/free-scan.js on submit while the scan runs server-side. */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 4, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}
.fs-overlay.is-on { display: flex; opacity: 1; }
.fs-overlay-card {
  width: min(92vw, 420px);
  text-align: center;
  padding: 34px 26px;
  border: 1px solid rgba(30, 179, 255, 0.25);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(30, 179, 255, 0.08), rgba(3, 4, 10, 0.45));
  box-shadow: 0 0 44px rgba(30, 179, 255, 0.15);
}
.fs-spinner {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(120, 160, 180, 0.2);
  border-top-color: #1EB3FF;
  animation: fs-spin .9s linear infinite;
}
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-overlay-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #e8f1f5;
  margin: 0 0 8px;
}
.fs-overlay-msg {
  color: rgba(200, 218, 226, 0.82);
  font-size: 15px;
  min-height: 22px;
  margin: 0 0 18px;
}
.fs-progress { height: 6px; border-radius: 3px; background: rgba(120, 160, 180, 0.18); overflow: hidden; }
.fs-progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1EB3FF, #7ed957);
  animation: fs-prog 1.6s ease-in-out infinite;
}
@keyframes fs-prog { 0% { margin-left: -42%; } 100% { margin-left: 102%; } }

@media (prefers-reduced-motion: reduce) {
  .fs-spinner, .fs-progress-bar { animation: none; }
  .fs-overlay { transition: none; }
}
