:root {
  --navy: #0B2545;
  --teal: #13C4A3;
  --bg: #F7F9FC;
  --text: #1a1a2e;
  --muted: #6b7280;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header { text-align: center; padding: 40px 20px 20px; }
header h1 { font-size: 2.5rem; color: var(--navy); }
header h1 .accent { color: var(--teal); }
.tagline { color: var(--muted); margin-top: 8px; }
.trust-bar { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

.brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.brand-icon { width: 48px; height: 48px; border-radius: 10px; }

main {
  max-width: 760px; margin: 20px auto; padding: 30px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; margin-bottom: 16px; font-weight: 500; font-size: 0.9rem; }
input[type="text"], input[type="date"], textarea {
  width: 100%; padding: 10px 12px; margin-top: 6px;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }

fieldset { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
legend { font-weight: 600; padding: 0 8px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkbox-grid label { margin-bottom: 0; font-weight: 400; }

.btn-primary {
  width: 100%; padding: 14px; background: var(--teal); color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; margin-top: 20px;
}
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: #0fa88c; }

.btn-secondary {
  padding: 14px; background: transparent; color: var(--muted);
  border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer;
}

#install-app-btn {
  margin-top: 16px; padding: 10px 20px;
  background: var(--navy); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-size: 0.95rem;
}

#ai-toggle-container {
  max-width: 760px; margin: 20px auto 0; padding: 16px 20px;
  background: #fff; border-radius: 12px; border: 1px dashed var(--teal);
}
.ai-toggle-label { font-weight: 600; }
.ai-toggle-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,37,69,0.7);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-box { background: #fff; padding: 32px; border-radius: 12px; max-width: 520px; width: 90%; }
.modal-box h2 { color: var(--navy); margin-bottom: 12px; }
.modal-box p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.consent-label { font-weight: 400; font-size: 0.9rem; margin-bottom: 20px; }
.consent-label input { margin-right: 8px; }
.modal-box button { width: 100%; margin-top: 8px; }
.modal-box button:disabled { background: #9ca3af; cursor: not-allowed; }

footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--navy); text-decoration: none; }
footer a:hover { text-decoration: underline; }