:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --text: #18221e;
  --muted: #64706a;
  --line: #dfe5e1;
  --brand: #163d32;
  --brand-soft: #e6efeb;
  --danger: #a62f2f;
  --shadow: 0 14px 35px rgba(20, 54, 44, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { min-height: 76px; padding: 16px 28px; background: var(--brand); color: white; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.subtitle { opacity: .86; margin-top: 2px; }
.save-state { font-size: 13px; opacity: .86; text-align: right; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: calc(100vh - 76px); overflow: auto; }
.sidebar-heading { padding: 0 10px 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 11px 10px; border-radius: 10px; color: var(--muted); }
.nav-item:hover { background: #f6f8f6; }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.nav-number { width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 12px; }
.nav-item.complete .nav-number { background: var(--brand); color: white; border-color: var(--brand); }
.nav-title { line-height: 1.25; padding-top: 3px; }
.main { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 50px; }
.progress-panel { margin-bottom: 16px; }
.progress-copy { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 8px; background: #dce4df; border-radius: 999px; overflow: hidden; }
.progress-track > div { width: 0; height: 100%; background: var(--brand); transition: width .25s ease; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow); }
.section-kicker { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
h1 { font-size: clamp(25px, 4vw, 38px); line-height: 1.15; margin: 8px 0 8px; }
.section-help { color: var(--muted); margin: 0 0 30px; }
.question { padding: 22px 0; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; padding-top: 0; }
.question-label { display: block; font-weight: 700; line-height: 1.45; margin-bottom: 9px; }
.question-id { color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 7px; }
.required-mark { color: var(--danger); }
.help { color: var(--muted); font-size: 13px; margin: -2px 0 10px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; border: 1px solid #bdc8c2; border-radius: 10px; padding: 12px 13px; background: white; color: var(--text); outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 61, 50, .12); }
.choice-grid { display: grid; gap: 9px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }
.choice:hover { border-color: #afbbb4; }
.choice input { margin-top: 3px; }
.invalid input, .invalid select, .invalid textarea, .invalid .choice-grid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 7px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.actions-right { display: flex; gap: 10px; }
.primary, .secondary { border-radius: 10px; padding: 11px 17px; border: 1px solid transparent; font-weight: 700; }
.primary { background: var(--brand); color: white; }
.primary:hover { filter: brightness(1.08); }
.secondary { background: white; color: var(--brand); border-color: #bcc8c1; }
.secondary:hover { background: #f7f9f7; }
.full { width: 100%; margin-top: 18px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.error-summary { margin-top: 24px; padding: 14px; border-radius: 10px; background: #fff1f1; color: var(--danger); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(620px, calc(100% - 30px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(11, 22, 17, .6); }
.dialog-content { padding: 30px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.stat-box { background: var(--bg); padding: 14px; border-radius: 10px; margin-top: 10px; }
@media (max-width: 820px) {
  .topbar { padding: 14px 18px; }
  .layout { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; }
  .sidebar-heading, .sidebar .full { display: none; }
  #sectionNav { display: flex; gap: 7px; min-width: max-content; }
  .nav-item { width: auto; min-width: 120px; }
  .nav-title { max-width: 145px; }
  .main { width: min(100% - 24px, 940px); padding-top: 18px; }
}
@media (max-width: 560px) {
  .save-state { display: none; }
  .card { border-radius: 14px; padding: 22px 18px; }
  .actions { align-items: stretch; }
  .actions-right { flex: 1; }
  .actions button { padding-inline: 12px; }
  #saveBtn { display: none; }
  #nextBtn { flex: 1; }
  .dialog-actions { flex-direction: column-reverse; }
}
.stat-box.success { border-color: #6fa78f; background: #eef8f3; }
.stat-box.invalid { border-color: #d88a8a; background: #fff1f1; }
button:disabled { opacity: .55; cursor: not-allowed; }
/* =========================
   GOGASOFT logo
   ========================= */

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gogasoft-logo {
    width: 180px;
    max-width: 70%;
    height: auto;
}

@media (max-width: 767px) {
    .gogasoft-logo {
        width: 140px;
    }
}