/* Onboarding form — section cards + grid + conditional reveals + agreement block.
   Reuses the marketing-site palette from styles.css. */

.onboard-intro {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}
.onboard-intro h1 { font-size: 32px; margin-bottom: 8px; }
.onboard-intro .lede {
  color: var(--text-muted, #4b5563);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: balance;
}

.form-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--primary, #b91c1c);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.form-section-head {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.form-section-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary, #b91c1c);
  color: white;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.form-section-head h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.form-section-head p { margin: 6px 0 0; color: #6b7280; font-size: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-grid label,
.contact-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-grid label .req,
.contact-card label .req { color: #b91c1c; margin-left: 3px; }

.hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.45;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary, #b91c1c);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
input[type="file"] {
  padding: 8px 10px;
  font-size: 13px;
  background: #f9fafb;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-tile {
  flex: 1 1 0;
  min-width: 180px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-tile input { margin-top: 2px; accent-color: var(--primary, #b91c1c); flex-shrink: 0; }
.radio-tile b { display: block; }
.radio-tile .desc { display: block; font-weight: 400; font-size: 12px; color: #6b7280; margin-top: 2px; }
.radio-tile:hover { border-color: var(--primary, #b91c1c); }
.radio-tile:has(input:checked) {
  border-color: var(--primary, #b91c1c);
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px var(--primary, #b91c1c);
}

.conditional {
  display: none;
  padding: 16px;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  grid-column: 1 / -1;
}
.conditional.show { display: grid; grid-template-columns: 1fr; gap: 12px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
}
.contact-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-grid .full { grid-column: 1 / -1; }

.banking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.banking-tab {
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-weight: 700;
  color: #374151;
  display: flex; gap: 10px; align-items: flex-start;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.banking-tab input { accent-color: var(--primary, #b91c1c); margin-top: 2px; flex-shrink: 0; }
.banking-tab span { font-weight: 400; font-size: 12px; color: #6b7280; display: block; margin-top: 2px; }
.banking-tab:hover { border-color: var(--primary, #b91c1c); }
.banking-tab:has(input:checked) {
  background: #fef2f2;
  border-color: var(--primary, #b91c1c);
  box-shadow: inset 0 0 0 1px var(--primary, #b91c1c);
}

.banking-pane { display: none; }
.banking-pane.show { display: block; }

.tax-card {
  display: none;
  gap: 14px;
  padding: 18px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--primary, #b91c1c);
}
.tax-card.show { display: flex; align-items: flex-start; }
.tax-card-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary, #b91c1c); color: white;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tax-card h3 { margin: 0 0 6px; font-size: 15px; }
.tax-card p { margin: 0 0 10px; color: #4b5563; font-size: 13px; }
.tax-card a { color: var(--primary, #b91c1c); font-weight: 600; }
.tax-card input[type="file"] { background: white; }

.auth-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 6px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-left: 3px solid #d97706;
}
.auth-card.full { grid-column: 1 / -1; }
.auth-card-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: #d97706; color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.checkbox-label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #78350f !important;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #d97706;
  transform: scale(1.1);
}
.checkbox-label a { color: #92400e; font-weight: 600; text-decoration: underline; }

.agreement-scroll {
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}
.agreement-scroll p { margin: 0 0 10px; }
.agreement-version {
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 14px !important;
}
.agreement-footer-note {
  text-align: center;
  color: #9ca3af;
  margin-top: 14px !important;
  font-style: italic;
}

.signature-input {
  font-family: "Lora", Georgia, serif !important;
  font-size: 22px !important;
  font-style: italic;
  padding: 12px 14px !important;
}

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 8px;
  background: #111827;
  color: white;
}
.submit-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
  max-width: 560px;
}
.submit-row p a { color: #fca5a5; font-weight: 600; }
.submit-row .btn { white-space: nowrap; }
.submit-row .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.success-card {
  text-align: center;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 56px 40px;
  margin: 32px auto;
  max-width: 560px;
}
.success-mark {
  width: 60px; height: 60px; border-radius: 50%;
  background: #10b981; color: white;
  display: grid; place-items: center;
  font-size: 32px;
  margin: 0 auto 18px;
}
.success-card h2 { font-size: 24px; margin: 0 0 8px; }
.success-card p { margin: 6px 0; color: #4b5563; }
.success-card .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.error-banner {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .form-grid,
  .contact-cards,
  .contact-grid,
  .banking-tabs { grid-template-columns: 1fr; }
  .form-section { padding: 20px 18px; }
  .form-section-head { gap: 12px; }
  .form-section-head h2 { font-size: 18px; }
  .submit-row { flex-direction: column; align-items: stretch; padding: 18px; }
  .agreement-scroll { max-height: 260px; padding: 14px 16px; }
}
