/* InfiniVent Onboarding Wizard – Styles (BUILD 5, P4)
 * Mobile-first, One-Column, konsistent zum Theme (iv-* Prefixe).
 */
.iv-onboarding {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.iv-onboarding__progress {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.2rem;
  min-height: 1.2em;
}

.iv-onboarding__body .iv-step h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.iv-hint {
  color: #555;
  font-size: 0.92rem;
  margin: 0.4rem 0 1rem;
}

.iv-f {
  margin-bottom: 0.8rem;
}

.iv-f label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.iv-f input[type="text"],
.iv-f input[type="email"],
.iv-f input[type="url"],
.iv-f input[type="number"],
.iv-f select,
.iv-f textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.iv-f textarea {
  min-height: 90px;
  resize: vertical;
}

.iv-f--check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.iv-f--check input {
  width: auto;
  margin-top: 0.15rem;
}

.iv-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.iv-terms {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.8rem;
}

.iv-term {
  display: block;
  padding: 0.3rem 0.4rem;
  font-size: 0.9rem;
}

.iv-term input {
  margin-right: 0.4rem;
}

.iv-wiz-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.iv-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.iv-btn--primary {
  background: #1a2b4c;
  color: #fff;
  border-color: #1a2b4c;
}

.iv-btn--ghost {
  background: transparent;
  color: #333;
  border-color: #ccc;
}

.iv-error {
  background: #fdecea;
  color: #b00020;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.8rem 0;
  font-size: 0.92rem;
}

.iv-error ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.iv-ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.8rem 0;
}

.iv-done {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.iv-done h2 {
  color: #1b5e20;
  margin: 0 0 0.6rem;
}

.iv-spaces,
.iv-surs {
  margin-bottom: 0.8rem;
}

.iv-space-card,
.iv-sur-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  background: #fafafa;
}

.iv-space-card h3,
.iv-sur-card h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.iv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.iv-upload {
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.iv-upload input[type="file"] {
  display: block;
  margin-bottom: 0.8rem;
}

.iv-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.iv-thumb {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.iv-empty {
  color: #777;
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .iv-grid2 {
    grid-template-columns: 1fr;
  }
  .iv-onboarding {
    padding: 1rem;
  }
  .iv-wiz-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .iv-wiz-nav .iv-btn {
    width: 100%;
  }
}