/* public/assets/style.css */

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  background: radial-gradient(1200px 800px at 10% 10%, #eef2ff 0%, #f8fafc 50%, #ffffff 100%);
  line-height: 1.45;
}

/* ---------- Layout ---------- */
.container {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
}
.card {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* ---------- Header ---------- */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 8px 20px rgba(79,70,229,0.18);
}
.brand h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand .sub {
  margin: 0;
  font-size: 12px;
  color: #475569;
}
.toplinks a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
}
.toplinks a:hover {
  background: rgba(2, 6, 23, 0.05);
}

/* ---------- Body content ---------- */
.content {
  padding: 18px;
}
h2.section-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.meta {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 13px;
}

/* ---------- Progress ---------- */
.progress-wrap {
  margin: 14px 0 6px 0;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.progress {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 999px;
  transition: width 200ms ease;
}

/* ---------- Form fields ---------- */
.field {
  margin: 14px 0;
  padding: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}
label {
  display: block;
  font-weight: 750;
  font-size: 13px;
  margin-bottom: 8px;
}
.help {
  font-size: 12px;
  color: #64748b;
  margin: -2px 0 10px 0;
}
input[type="text"], input[type="date"], input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background: white;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(79,70,229,0.55);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}

/* Inline radios/checkboxes */
.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.65);
  font-size: 13px;
}
.inline input { transform: translateY(1px); }

/* Consultant notes */
.consultant {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(255, 251, 235, 0.8);
}
.consultant label {
  font-weight: 800;
  color: #92400e;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
button, .btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: white;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
  font-size: 14px;
}
button:hover, .btn:hover { background: rgba(2, 6, 23, 0.04); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

button.primary, .btn.primary {
  border: none;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.20);
}
button.primary:hover, .btn.primary:hover { filter: brightness(0.98); }

/* ---------- Upload panel ---------- */
.panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
}
.panel h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
}
input[type="file"] { width: 100%; }

hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 18px 0;
}

/* ---------- Review page styles ---------- */
.review-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.review-q { font-weight: 800; color: #0f172a; }
.review-a { color: #334155; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .review-row { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .toplinks { display: none; }
}
