:root {
  --navy-900: #0a1740;
  --navy-800: #0b1e5b;
  --blue-600: #1b3fd1;
  --blue-500: #2a6bea;
  --blue-400: #4fa8f5;
  --slate-300: #a9bcd4;
  --mist-100: #eef2f8;
  --ink: #0d1b3d;
  --muted: #5a6785;
  --line: #dbe3ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(11, 30, 91, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- Header / hero ---------- */
.masthead {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(79, 168, 245, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #10287a 100%);
  color: var(--white);
  overflow: hidden;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 45%, black 100%);
  mask-image: linear-gradient(120deg, transparent 45%, black 100%);
  opacity: 0.5;
  pointer-events: none;
}
.masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo { width: 52px; height: 52px; flex: none; }
.brand-word {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  margin: 0;
}
.brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--blue-400);
  margin-top: 6px;
}
.hero-eyebrow {
  margin: 34px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.hero-title {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-title span { color: var(--blue-400); }
.hero-lede {
  margin: 0;
  max-width: 620px;
  color: #c7d3ea;
  font-size: 1.05rem;
}
.hero-tag {
  margin-top: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--slate-300);
}

/* ---------- Form shell ---------- */
.wrap {
  max-width: 860px;
  margin: -32px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px clamp(20px, 4vw, 44px);
}
.progress-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.section { margin-bottom: 38px; }
.section:last-of-type { margin-bottom: 8px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.section-num {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-400));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-800);
}
.section-desc {
  margin: 2px 0 20px 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label.q {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 7px;
  color: var(--ink);
}
label.q .req { color: var(--blue-600); }
.hint {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(42, 107, 234, 0.14);
  background: #fff;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.94rem;
  background: #fbfcfe;
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--blue-400); }
.choice input { accent-color: var(--blue-600); width: 17px; height: 17px; }
.choice:has(input:checked) {
  border-color: var(--blue-500);
  background: #eef3ff;
}

/* ---------- File upload ---------- */
.dropzone {
  border: 2px dashed var(--slate-300);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  background: #f7faff;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.drag { border-color: var(--blue-500); background: #eef3ff; }
.dropzone strong { color: var(--navy-800); }
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }
.dropzone input { display: none; }
.dz-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--white);
  border: 1.5px solid var(--blue-500);
  color: var(--blue-600);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.file-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
}
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.88rem;
}
.file-list .sz { color: var(--muted); }

/* ---------- Submit ---------- */
.actions {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 30px;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 28px -10px rgba(27, 63, 209, 0.7);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(27, 63, 209, 0.8); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.privacy { font-size: 0.82rem; color: var(--muted); max-width: 380px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

footer {
  text-align: center;
  padding: 28px 20px 44px;
  color: var(--muted);
  font-size: 0.82rem;
}
footer strong { color: var(--navy-800); letter-spacing: 0.18em; }

/* ---------- Thank you ---------- */
.thanks-card { text-align: center; }
.thanks-badge {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-400));
  color: #fff;
}
.thanks-card h1 { color: var(--navy-800); margin: 0 0 8px; }
.thanks-card p { color: var(--muted); max-width: 460px; margin: 0 auto 8px; }

@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .section-desc { margin-left: 0; }
}
