/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F0F2F5;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
}

:root {
  --bl: #0F4761;
  --or: #FFC000;
  --bl-light: #E3EDF3;
  --or-light: #FFF8E1;
  --border: #D0DCE5;
  --muted: #6B7A8D;
  --bg: #F0F2F5;
  --white: #fff;
  --red: #C62828;
  --touch: 44px;
}

/* ── HEADER ── */
.orange-stripe {
  height: 3px;
  background: var(--or);
}

.header {
  background: var(--bl);
  display: flex;
  align-items: center;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-logo {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  margin: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.header-logo .logo-smiley {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}

.header-logo .logo-wordmark {
  height: 26px;
  flex-shrink: 0;
}

.header-info {
  padding: 8px 20px;
  color: #fff;
  flex: 1;
}

.header-info h1 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1px;
}

.header-info p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── CONTAINER ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── PROGRESS ── */
.progress-box {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-section {
  font-size: 13px;
  font-weight: 600;
  color: var(--bl);
}

.progress-pct {
  font-size: 12px;
  color: var(--muted);
}

.progress-track {
  height: 7px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--or);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.steps {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 20px;
  height: 5px;
  border-radius: 99px;
  background: var(--border);
}

.step.done {
  background: var(--or);
}

.step.current {
  background: var(--bl);
}

/* ── SECTIONS ── */
.section {
  display: none;
}

.section.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 26px 28px;
  margin-bottom: 16px;
}

.section-badge {
  display: inline-block;
  background: var(--or);
  color: var(--bl);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bl);
  margin-bottom: 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--muted);
}

.section-divider {
  height: 3px;
  background: var(--or);
  border-radius: 2px;
  margin: 14px 0 20px;
}

/* ── QUESTIONS ── */
.q {
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.q-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 5px;
}

.q-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
  font-style: italic;
}

.required {
  display: inline-block;
  background: #FDECEC;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── INPUTS ── */
input[type="text"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: var(--white);
  transition: border 0.15s;
  min-height: var(--touch);
}

textarea {
  resize: vertical;
  min-height: 80px;
  padding: 9px 11px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--bl);
  box-shadow: 0 0 0 2px rgba(15, 71, 97, 0.1);
}

/* ── BUTTONS ── */
.btn {
  border: 2px solid var(--bl);
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: var(--white);
  color: var(--bl);
  font-weight: 600;
  transition: all 0.15s;
  min-height: var(--touch);
}

.btn:hover {
  background: var(--bl-light);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--bl);
  color: #fff;
}

.btn-primary:hover {
  background: #0a3450;
}

.btn-orange {
  background: var(--or);
  border-color: var(--or);
  color: var(--bl);
}

.btn-orange:hover {
  background: #e6ac00;
}

/* ── NAVIGATION ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 22px;
  margin-top: 8px;
  position: sticky;
  bottom: 20px;
}

.nav-label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  flex: 1;
}

/* ── RECAP ── */
.recap-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.recap-group h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--bl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--or);
}

.recap-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
  align-items: start;
}

.recap-row strong {
  color: #111;
  font-weight: 600;
}

.dl-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dl-status {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
}

/* ── FOOTER ── */
footer {
  background: var(--bl);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 14px;
  font-size: 12px;
  margin-top: 32px;
}

footer strong {
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 8px;
  }

  .header-info {
    padding: 8px 16px;
  }

  .recap-row {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn {
    flex: 1;
    min-width: 120px;
  }
}
