/* ConextID Styles */
:root {
  --blue: #3b82f6; /* light blue */
  --orange: #fb923c;
  --red: #ef4444;
  --brown: #d2691e; /* chocolate brown */
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --focus: 2px solid var(--blue);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg);
}
.container { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.875rem; color: var(--muted); }
 .site-header { background: var(--blue); padding: 20px 0; }
.site-header .brand, .site-header .subtitle { color: var(--orange); }
.brand { margin: 0; font-size: 1.8rem; letter-spacing: 0.5px; }
.subtitle { margin: 4px 0 0; opacity: 0.95; }
.site-footer { padding: 24px 0; text-align: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0 32px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.success { color: #16a34a; }

/* Headings */
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 1.5rem; color: var(--blue); }
h2 { font-size: 1.25rem; color: var(--brown); }
h3 { font-size: 1.1rem; color: var(--orange); }
.section-desc { margin: 0 0 16px; color: var(--muted); }

/* Splash */
.splash-bg {
  position: relative; min-height: 100vh; border-radius: 12px; overflow: hidden;
  background: url('./assets/splash.jpg') center/contain no-repeat; background-color: #000;
}
/* Fade the background image with a light overlay */
.splash-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55));
}
.splash-tile {
  position: relative; margin: 24px; padding: 20px; border-radius: 12px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.splash-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
/* Splash headings color (dark for contrast on light tile) */
.splash-tile h1 { color: var(--ink); }
.splash-tile .section-desc { color: var(--ink); opacity: 0.85; }

/* Forms */
form { width: 100%; }
.field { margin: 12px 0 16px; }
label { display: block; margin: 0 0 6px; font-weight: 600; }
input[type="text"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 1rem;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: var(--focus); border-color: var(--blue); }
.helper { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.error { color: var(--red); }

/* Buttons */
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
button, .btn {
  appearance: none; border: 1px solid var(--border); background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
button.secondary { background: #fff; color: var(--ink); }
button.ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Step indicator */
#progress { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: 4px 0 16px; }
#progress .bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); width: 0%; transition: width 250ms ease; }

/* Cards and lists */
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: var(--blue); font-weight: 600; font-size: 0.8rem; }

/* Responsive */
@media (min-width: 720px) {
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
