/* Wizard step indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #888);
  transition: all 0.2s ease;
}

.wizard-step.active {
  color: var(--accent);
  background: var(--accent-bg, rgba(45, 122, 79, 0.08));
}

.wizard-step.completed {
  color: var(--success, #16a34a);
}

.wizard-step.visited {
  color: var(--text-muted, #94a3b8);
}

.wizard-step.unvisited {
  color: var(--border, #cbd5e1);
  opacity: 0.6;
}

.wizard-step--clickable {
  cursor: pointer;
}

.wizard-step--clickable:hover {
  background: var(--surface2, #f1f5f9);
}

.wizard-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.wizard-step.active .wizard-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.wizard-step.completed .wizard-num {
  background: var(--success, #16a34a);
  color: #fff;
  border-color: var(--success, #16a34a);
}

.wizard-connector {
  width: 1.25rem;
  height: 2px;
  background: var(--border, #e2e8f0);
  flex-shrink: 0;
}

.wizard-label {
  white-space: nowrap;
}

/* ── Wizard step navigation bar (3-slot: back | cancel | forward) ── */
.wizard-nav-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-bottom: 1rem;
}

.wizard-nav-bar .btn-back {
  justify-self: start;
}

.wizard-nav-bar .btn-cancel-wizard {
  justify-self: center;
}

.wizard-nav-bar .btn-forward,
.wizard-nav-bar .wizard-nav-continue,
.wizard-nav-bar .btn-primary {
  justify-self: end;
}

.wizard-nav-title {
  justify-self: center;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.btn-forward {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text-muted, #888);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-forward svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-forward:hover {
  border-color: var(--accent, #2d7a4f);
  color: var(--accent, #2d7a4f);
}

.btn-cancel-wizard {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text-muted, #888);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-cancel-wizard:hover {
  border-color: var(--danger, #dc2626);
  color: var(--danger, #dc2626);
}


.cancel-limit-msg {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

/* ── Photo upload two-column layout ─────────────────────── */

.photo-upload-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-upload-columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: stretch;
  max-width: 1100px;
  width: 100%;
}

.photo-upload-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.photo-upload-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.woonstijl-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.woonstijl-actions .btn-primary {
  margin-left: auto;
  min-width: 16rem;
}

/* Nav actions group inside a section header (cancel + continue) */
.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-nav-actions .btn-primary {
  min-width: 16rem;
}

.photo-upload-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  width: 100%;
}

.photo-upload-actions .toggle-switch {
  flex-shrink: 0;
}

.photo-upload-actions .btn-primary {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

/* ── Contact fields on photo upload step ─────────────────── */

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0.5rem;
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-field-group--or {
  gap: 0.25rem;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-alt, #f8fafc);
}

.contact-or-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}

.contact-or-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted, #888);
}

.contact-or-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
  color: var(--text-muted, #888);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-or-divider::before,
.contact-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e2e8f0);
}

.contact-field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text, #1e293b);
}

.contact-field-label em {
  font-style: normal;
  color: var(--text-muted, #888);
  font-weight: 400;
}

.contact-field-input {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 0.375rem;
  font-size: 0.9rem;
  color: var(--text, #1e293b);
  background: var(--surface, #fff);
  transition: border-color 0.15s;
  outline: none;
}

.contact-field-input:focus {
  border-color: var(--accent);
}

.contact-field-input.contact-field-error {
  border-color: var(--danger, #dc2626);
}

.contact-field-hint {
  font-size: 12px;
  color: var(--danger, #dc2626);
  min-height: 1em;
}

@media (max-width: 800px) {
  .photo-upload-columns {
    grid-template-columns: 1fr;
  }
  .photo-upload-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .photo-upload-actions .btn-primary {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wizard-steps {
    padding: 0.75rem 1rem;
    gap: 0;
  }
  .wizard-label {
    display: none;
  }
  .wizard-connector {
    width: 1rem;
  }
}
