/* ── Layout ─────────────────────────────────────── */

.nav-cta--ghost {
  background: transparent;
  color: #8896a7;
  border: 1.5px solid #c0c8d4;
}
.nav-cta--ghost:hover { background: #f8f9fb; color: #1a1a2e; }

.zgl-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.zgl-header { text-align: center; margin-bottom: 48px; }
.zgl-title  { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.zgl-sub    { font-size: 15px; color: #8896a7; line-height: 1.6; }

/* ── Stepper ─────────────────────────────────────── */

.zgl-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 0;
}

.zgl-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  cursor: default;
}

.zgl-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #c0c8d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #c0c8d4;
  background: #fff;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.zgl-step-label {
  font-size: 11px;
  font-weight: 500;
  color: #c0c8d4;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}

.zgl-step-sep {
  flex: 1;
  height: 2px;
  background: #eef0f4;
  margin-bottom: 22px;
  transition: background 0.2s;
}

/* Active step */
.zgl-step-item.active .zgl-step-num {
  background: #2b4c7e;
  border-color: #2b4c7e;
  color: #fff;
}
.zgl-step-item.active .zgl-step-label { color: #2b4c7e; font-weight: 600; }

/* Done step */
.zgl-step-item.done .zgl-step-num {
  background: #d1fae5;
  border-color: #059669;
  color: #059669;
}
.zgl-step-item.done .zgl-step-num span::before { content: '✓'; }
.zgl-step-item.done .zgl-step-num span { font-size: 0; }
.zgl-step-item.done .zgl-step-num span::before { font-size: 14px; }
.zgl-step-item.done .zgl-step-label { color: #059669; }
.zgl-step-item.done ~ .zgl-step-sep { background: #059669; opacity: 0.3; }

/* ── Panel ───────────────────────────────────────── */

.zgl-panel {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.panel-sub { font-size: 14px; color: #8896a7; margin-bottom: 28px; }

/* ── Form elements ───────────────────────────────── */

.form-row { margin-bottom: 20px; }
.form-row:last-child { margin-bottom: 0; }

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.form-hint {
  font-weight: 400;
  color: #8896a7;
  font-size: 12px;
}
.form-hint-text {
  font-size: 12px;
  color: #8896a7;
  margin-bottom: 12px;
  line-height: 1.5;
}

.form-ctrl {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a2e;
  background: #fff;
  border: 1.5px solid #c0c8d4;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}
.form-ctrl:focus {
  border-color: #2b4c7e;
  box-shadow: 0 0 0 3px rgba(43,76,126,0.1);
}
.form-ctrl.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.08);
}
.form-textarea { resize: vertical; min-height: 80px; }

select.form-ctrl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896a7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.req { color: #e53e3e; font-weight: 600; }

.field-error {
  display: none;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
  font-weight: 500;
}

.form-sep { border: none; border-top: 1px solid #eef0f4; margin: 24px 0; }

/* ── Checkboxes ──────────────────────────────────── */

.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1a1a2e;
  padding: 2px 0;
  user-select: none;
}
.check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2b4c7e;
  cursor: pointer;
  flex-shrink: 0;
}
.check-item--lg {
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
}
.check-item--lg input[type="checkbox"] { width: 18px; height: 18px; }

/* ── Cost block ──────────────────────────────────── */

.cost-block {
  background: #f8f9fb;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 20px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 0;
}
.input-with-unit .form-ctrl {
  border-radius: 10px 0 0 10px;
  flex: 1;
}
.input-unit {
  padding: 10px 14px;
  background: #f4f6fa;
  border: 1.5px solid #c0c8d4;
  border-left: none;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #8896a7;
}

/* ── Radio cards ─────────────────────────────────── */

.radio-cards { display: flex; flex-direction: column; gap: 10px; }

.radio-card {
  display: block;
  cursor: pointer;
  border: 1.5px solid #eef0f4;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.radio-card:hover { border-color: #c0c8d4; }
.radio-card.selected {
  border-color: #2b4c7e;
  background: #f0f4fb;
  box-shadow: 0 0 0 3px rgba(43,76,126,0.08);
}
.radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.rc-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}
.rc-icon { font-size: 22px; flex-shrink: 0; }
.rc-content { flex: 1; }
.rc-title { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.rc-sub   { font-size: 12px; color: #8896a7; margin-top: 2px; }

.rc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c0c8d4;
  flex-shrink: 0;
  transition: all 0.18s;
}
.radio-card.selected .rc-check {
  border-color: #2b4c7e;
  background: #2b4c7e;
  box-shadow: inset 0 0 0 4px #f0f4fb;
}

/* ── Context blocks ──────────────────────────────── */

.ctx-block { margin-top: 16px; }

.info-box {
  background: #f4f6fa;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  color: #1a1a2e;
  line-height: 1.8;
}
.info-note {
  display: block;
  margin-top: 6px;
  color: #8896a7;
  font-size: 12px;
}

/* ── Summary ─────────────────────────────────────── */

.summary-grid { display: flex; flex-direction: column; gap: 0; }

.summary-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: baseline;
}
.summary-item:last-child { border-bottom: none; }

.summary-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #8896a7;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.summary-val {
  font-size: 14px;
  color: #1a1a2e;
  line-height: 1.5;
}

/* ── Consent ─────────────────────────────────────── */

.consent-block { display: flex; flex-direction: column; gap: 14px; }

.check-item--consent {
  align-items: flex-start;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  gap: 10px;
}
.check-item--consent input { margin-top: 2px; }

.zgl-link { color: #2b4c7e; text-decoration: underline; }
.zgl-link:hover { color: #1e3a5f; }

/* ── Nav buttons ─────────────────────────────────── */

.zgl-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #8896a7;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 4px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: #1a1a2e; }

.zgl-btn-next {
  padding: 14px 36px;
  font-size: 15px;
}
.zgl-btn-next.btn-submit { background: #059669; min-width: 200px; }
.zgl-btn-next.btn-submit:hover { background: #047857; }
.zgl-btn-next:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Success ─────────────────────────────────────── */

.success-box {
  text-align: center;
  padding: 64px 24px;
  max-width: 440px;
  margin: 0 auto;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-title { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.success-sub   { font-size: 15px; color: #8896a7; line-height: 1.7; max-width: 340px; margin: 0 auto; }
.success-num   {
  margin-top: 20px;
  padding: 12px 20px;
  background: #f4f6fa;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #2b4c7e;
  letter-spacing: 0.5px;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 640px) {
  .zgl-page { padding: 32px 16px 64px; }
  .zgl-panel { padding: 24px 18px; }
  .zgl-title { font-size: 26px; }

  .zgl-step-label { display: none; }
  .zgl-step-sep   { margin-bottom: 0; }

  .form-row--2col { grid-template-columns: 1fr; gap: 0; }
  .form-row--2col > div { margin-bottom: 20px; }
  .form-row--2col > div:last-child { margin-bottom: 0; }

  .checks-grid { grid-template-columns: 1fr; }

  .summary-item { grid-template-columns: 1fr; gap: 2px; }
  .summary-lbl  { font-size: 11px; }
}
