@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #111827;
  --brand-a: #1d4533;   /* deep forest green (matches dpsvapi.net header/footer) */
  --brand-b: #1d5543;   /* lighter forest green */
  --brand-c: #1d4533;
  --gold: #c9a227;      /* warm gold accent */
  --brand-soft: #eaf2ec;
  --accent: #1d5543;
  --glass-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(16,24,40,0.06);
  --muted: #6b7280;
  --border: #e5e7eb;
}
body {
  background: #f7f6fb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Top bar ---------- */
.app-topbar {
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--gold) 100%) 1;
}
.topbar-inner {
  max-width: 1300px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 14px; justify-content: flex-start;
}
.topbar-logo { height: 44px; width: auto; }
.topbar-text { text-align: left; }
.topbar-title { font-weight: 800; font-size: 1rem; color: var(--brand-a); letter-spacing: 0.01em; }
.topbar-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

/* ---------- Shell layout: navy sidebar + main content, centered ---------- */
.app-shell { display: flex; align-items: flex-start; max-width: 1300px; margin: 0 auto; }

.app-sidebar {
  width: 300px; min-width: 300px; min-height: calc(100vh - 70px); padding: 32px 26px;
  background: linear-gradient(170deg, var(--brand-a) 0%, var(--brand-b) 100%);
  color: #fff; position: sticky; top: 0;
}

.sidebar-headline { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.sidebar-copy { font-size: 0.84rem; opacity: 0.9; margin-bottom: 26px; }

.sidebar-steps { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-steps .step-label {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.75); cursor: default;
}
.sidebar-steps .step-num {
  width: 26px; height: 26px; min-width: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9);
}
.sidebar-steps .step-label.active { background: rgba(255,255,255,0.16); color: #fff; }
.sidebar-steps .step-label.active .step-num { background: var(--gold); color: #fff; }
.sidebar-steps .step-label.done { color: #fff; cursor: pointer; }
.sidebar-steps .step-label.done .step-num { background: rgba(255,255,255,0.9); color: var(--brand-b); }
.sidebar-steps .step-label.done:hover { background: rgba(255,255,255,0.1); }

.sidebar-note {
  font-size: 0.78rem; background: rgba(255,255,255,0.12); border-radius: 10px; padding: 14px;
  line-height: 1.5;
}
.sidebar-note a { color: #fff; text-decoration: underline; }

.app-main { flex: 1; min-width: 0; padding: 32px 36px; max-width: 1000px; }

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; min-width: 0; min-height: auto; position: static; }
  .app-main { padding: 20px; }
}

@media (max-width: 480px) {
  .app-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar-text { text-align: left; }
}

/* ---------- Sections ---------- */
.section {
  background: var(--glass-bg); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
}
.section-header-bar {
  background: var(--brand-soft); color: var(--brand-a); padding: 8px 12px; font-size: 0.72rem; font-weight: 700;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}

.form-label { font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.form-control, .form-select {
  border-radius: 6px; border-color: var(--border); font-size: 0.85rem; padding: 6px 10px; min-height: 36px;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,58,95,0.14); }
textarea.form-control { min-height: auto; }
.btn { font-size: 0.83rem; }
.btn-brand {
  background: var(--brand-a);
  color: #fff; border: none; border-radius: 8px; padding: 9px 22px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(15,41,66,0.25);
}
.btn-brand:hover { background: #0a1b2c; color: #fff; }
.btn-outline-soft { border-radius: 6px; border: 1px solid var(--border); background: transparent; padding: 6px 12px; }
.table { font-size: 0.8rem; }
.table thead th { background: var(--brand-soft); color: var(--brand-a); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 8px; }
.table td { padding: 5px 8px; vertical-align: middle; }
.table td input[type="number"] { min-width: 44px; text-align: center; padding-left: 4px; padding-right: 4px; }
.small-muted { color: var(--muted); font-size: 0.78rem; }
.invalid-feedback.d-block { margin-top: 4px; color: #b91c1c; font-size: 0.76rem; }

.form-label.required:after { content: " *"; color: #b91c1c; font-weight: 700; }
.add-button { margin-top: 6px; display: inline-block; font-size: 0.78rem; }
.btn-add-exp { background: var(--brand-soft); color: var(--brand-a); border: 1px solid var(--border); }
.year-select { min-width: 100px; }
.locked-label { color: var(--muted); font-size: 0.78rem; }
.form-check-label { font-size: 0.82rem; }

/* ---------- Acknowledgement / success card ---------- */
.ack-card {
  max-width: 640px; margin: 32px auto; background: var(--glass-bg); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg, 0 16px 40px rgba(15,41,66,0.14)); padding: 0 0 40px;
  text-align: center; overflow: hidden;
}
.ack-band {
  height: 10px; background: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--gold) 100%);
}
.ack-logo { height: 44px; width: auto; margin: 28px auto 0; display: block; }
.ack-check {
  width: 72px; height: 72px; margin: 20px auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(21,128,61,0.3);
}
.ack-title { font-size: 1.5rem; font-weight: 800; color: var(--brand-a); margin: 0 40px 14px; }
.ack-lead { color: #374151; font-size: 0.95rem; margin: 0 40px 10px; }
.ack-sub { color: var(--muted); font-size: 0.85rem; margin: 0 40px 6px; }

.ack-number-box {
  margin: 26px 40px; padding: 22px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 10px 24px rgba(15,41,66,0.25);
}
.ack-number-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75); margin-bottom: 8px;
}
.ack-number-value { font-size: 2.4rem; font-weight: 800; color: var(--gold); letter-spacing: 0.02em; }

.ack-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; text-align: left; margin: 8px 40px 0;
  background: var(--brand-soft); border-radius: 12px; padding: 20px 22px;
}
.ack-detail-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-a); margin-bottom: 3px; opacity: 0.75; }
.ack-detail-value { font-size: 0.92rem; font-weight: 700; color: #111827; }

.ack-footer {
  margin: 30px 40px 0; padding-top: 18px; border-top: 1px dashed var(--border);
  font-size: 0.76rem; color: var(--muted); line-height: 1.6;
}
.ack-footer div:first-child { font-weight: 700; color: var(--brand-a); }

@media (max-width: 560px) {
  .ack-title, .ack-lead, .ack-sub, .ack-number-box, .ack-details, .ack-footer { margin-left: 20px; margin-right: 20px; }
  .ack-details { grid-template-columns: 1fr; }
}

/* ---------- Step nav (Back/Next within main content) ---------- */
.step-nav { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 24px; }
