/* ── Web Launch Co · Intake Form Styles ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #ec4899;
  --purple: #a855f7;
  --grad: linear-gradient(135deg, #ec4899, #a855f7);
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8f9ff;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(168,85,247,.10);
}

html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* ── Header ── */
.form-header {
  background: var(--grad);
  padding: 28px 20px 32px;
  text-align: center;
  color: #fff;
}
.form-header img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}
.form-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.form-header p {
  font-size: .92rem;
  opacity: .88;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Progress bar ── */
.form-progress {
  height: 4px;
  background: rgba(255,255,255,.3);
  margin-top: 20px;
  border-radius: 2px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.form-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width .4s ease;
}

/* ── Card wrapper ── */
.form-wrap {
  max-width: 640px;
  margin: -18px auto 0;
  padding: 0 16px;
}

/* ── Section card ── */
.form-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title span { font-size: 1.15rem; }

/* ── Field groups ── */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .req { color: var(--pink); margin-left: 2px; }
.field .hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 5px;
}

/* Inputs */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,.12);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* Two column */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Radio & Checkbox groups */
.choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: .88rem;
}
.choice-item:hover { border-color: var(--purple); background: #faf5ff; }
.choice-item input { display: none; }
.choice-item .check-box {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.choice-item.is-checkbox .check-box { border-radius: 5px; }
.choice-item input:checked ~ .check-box {
  background: var(--grad);
  border-color: transparent;
}
.choice-item input:checked ~ .check-box::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.choice-item input:checked + .check-box { }
.choice-label { flex: 1; line-height: 1.4; }
.choice-emoji { font-size: 1.05rem; }

/* Mark checked item */
.choice-item:has(input:checked) {
  border-color: var(--purple);
  background: #faf5ff;
}

/* File upload input */
.file-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px dashed var(--purple);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: #faf5ff;
  cursor: pointer;
  outline: none;
}
.file-input::-webkit-file-upload-button {
  background: linear-gradient(135deg,#ec4899,#a855f7);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}
.file-input::file-selector-button {
  background: linear-gradient(135deg,#ec4899,#a855f7);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

/* ── Submit button ── */
.form-submit-wrap {
  padding: 0 16px;
  max-width: 640px;
  margin: 0 auto;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 6px 24px rgba(168,85,247,.3);
}
.btn-submit:hover { opacity: .92; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Success screen ── */
.success-screen {
  display: none;
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.success-screen.show { display: block; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.success-screen h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.success-screen p { color: var(--muted); line-height: 1.7; font-size: .93rem; }

/* ── Footer note ── */
.form-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  padding: 24px 16px 0;
  max-width: 640px;
  margin: 0 auto;
}
.form-footer a { color: var(--purple); text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .form-section { padding: 20px 16px; }
  .form-header { padding: 22px 16px 28px; }
}
