/* Florida AI Partners — website intake form.
   Light, warm, mobile-first. One column, big tap targets, no clutter. */

:root {
  --ink: #1a2230;
  --ink-soft: #5b6678;
  --line: #e6e9f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #2563eb;        /* confident blue */
  --brand-deep: #1e3a8a;
  --accent: #f4a23b;       /* warm highlight */
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.05), 0 8px 28px rgba(20, 30, 50, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 28px 22px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef3ff 0%, #f7f9ff 60%, #fff 100%);
  border: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--brand-deep);
  font-size: 15px;
  margin-bottom: 10px;
}
.h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.h2 { font-size: 18px; margin: 0 0 14px; }
.lead { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }
.privacy {
  display: inline-block;
  font-size: 13px;
  color: var(--brand-deep);
  background: #eaf0ff;
  border-radius: 999px;
  padding: 6px 12px;
  margin: 4px 0 0;
}

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}

/* ── Fields ────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.q { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.q em { font-style: normal; font-weight: 400; color: var(--ink-soft); }

input[type=text], input[type=tel], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: #fbfcfe;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}
::placeholder { color: #aab3c2; }

/* ── Dropzone ──────────────────────────────────────────────────────── */
.drop {
  display: block;
  border: 2px dashed #c7d2e8;
  border-radius: 14px;
  background: #fbfcff;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
  margin: 14px 0 4px;
}
.drop:hover, .drop:focus-visible { border-color: var(--brand); background: #f3f7ff; outline: none; }
.drop.drag { border-color: var(--brand); background: #eaf1ff; }
.drop:active { transform: scale(.997); }
.drop-icon { font-size: 30px; margin-bottom: 6px; }
.drop-text strong { font-size: 16px; }

/* ── File list ─────────────────────────────────────────────────────── */
.files { list-style: none; margin: 12px 0 0; padding: 0; }
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}
.file-thumb {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
  background: #eef1f7;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.file-main { flex: 1 1 auto; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-status { font-size: 12px; color: var(--ink-soft); }
.file-status.ok { color: var(--ok); }
.file-status.err { color: var(--err); }
.bar { height: 5px; border-radius: 99px; background: #eef1f7; overflow: hidden; margin-top: 5px; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.file-x {
  flex: 0 0 auto;
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft); font-size: 20px; line-height: 1; padding: 4px;
}
.file-x:hover { color: var(--err); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: #fff; background: var(--brand);
  border: none; border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; }

.submit-card { text-align: center; }
.submit-note { margin-top: 10px; }
.error-line { color: var(--err); font-size: 14px; margin: 10px 0 0; }

.foot { text-align: center; margin-top: 8px; }

/* ── Loading / done ────────────────────────────────────────────────── */
.spinner {
  width: 34px; height: 34px;
  border: 3px solid #dfe5f1; border-top-color: var(--brand);
  border-radius: 50%;
  margin: 6px auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.check {
  width: 60px; height: 60px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--ok); color: #fff;
  font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (min-width: 560px) {
  .wrap { padding-top: 32px; }
  .h1 { font-size: 30px; }
}
