/* === WIZARD PAGE LAYOUT === */

.wizard-page {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.wizard-wrap {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  width: 100%;
}

/* === STEP INDICATOR === */

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.wz-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wz-step:not(:last-child)::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #d1d5db;
  margin: 0 4px;
}

.wz-step.active:not(:last-child)::after,
.wz-step.done:not(:last-child)::after {
  background: var(--primary);
}

.wz-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e5e7eb;
  color: var(--text-muted);
  transition: 0.2s;
}

.wz-step.active .wz-step-num {
  background: var(--primary);
  color: var(--white);
}

.wz-step.done .wz-step-num {
  background: var(--primary-light);
  color: var(--white);
}

.wz-step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: none;
}

.wz-step.active .wz-step-label,
.wz-step.done .wz-step-label {
  display: inline;
  color: var(--text);
  font-weight: 600;
}

/* === PROGRESS BAR === */

.progress-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 36px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* === STEP CONTENT === */

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wz-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.wz-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* === SERVICE TILES (Step 1) === */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.service-tile {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}

.service-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(52,152,219,0.12);
}

.service-tile.selected {
  border-color: var(--primary);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.12);
}

.service-tile-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.service-tile-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* === FIELD GROUPS === */

.fw-group {
  margin-bottom: 24px;
}

.fw-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}

.req-star {
  color: #dc3545;
}

.fw-error .fw-label {
  color: #dc3545;
}

.fw-error .fw-card,
.fw-error .fw-chip {
  border-color: #dc3545;
}

.fw-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.fw-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

select.fw-input {
  appearance: auto;
}

/* === CARDS FIELD === */

.fw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.fw-card {
  padding: 12px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition: 0.2s;
  font-family: inherit;
}

.fw-card:hover {
  border-color: var(--accent);
}

.fw-card.selected {
  border-color: var(--primary);
  background: var(--accent-light);
  color: var(--primary);
}

/* === CHIPS FIELD === */

.fw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-chip {
  padding: 8px 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: 0.2s;
  font-family: inherit;
}

.fw-chip:hover {
  border-color: var(--accent);
}

.fw-chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* === SLIDER FIELD === */

.fw-slider {
  padding: 4px 0;
}

.fw-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
  margin-bottom: 6px;
}

.fw-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.fw-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.fw-range-value {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.fw-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === TOGGLE FIELD === */

.fw-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fw-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.fw-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.fw-slider-toggle {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: 0.3s;
  cursor: pointer;
}

.fw-slider-toggle::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.fw-switch input:checked + .fw-slider-toggle {
  background: var(--primary);
}

.fw-switch input:checked + .fw-slider-toggle::before {
  transform: translateX(22px);
}

.fw-toggle-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === NAVIGATION BUTTONS === */

.wz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  gap: 12px;
}

.wz-nav-center {
  justify-content: center;
}

.btn-wz-back {
  padding: 12px 28px;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  transition: 0.2s;
}

.btn-wz-back:hover {
  border-color: var(--text-muted);
  background: var(--bg-light);
}

.btn-wz-next {
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  transition: 0.2s;
}

.btn-wz-next:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-wz-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-wz-submit {
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.btn-wz-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-wz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* === OVERVIEW === */

.ov-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.ov-section h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.ov-table {
  width: 100%;
  border-collapse: collapse;
}

.ov-table td {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.ov-table td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 12px;
}

.ov-table td:last-child {
  font-weight: 500;
}

.ov-table tr:last-child td {
  border-bottom: none;
}

/* === KONTAKT FORM === */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kontakt-grid .fw-group {
  margin-bottom: 0;
}

.kontakt-full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
}

/* === SUCCESS PAGE === */

.success-page {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.success-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* === RESPONSIVE === */

@media (max-width: 640px) {
  .wizard-wrap {
    padding: 24px 16px 40px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-tile {
    padding: 16px 10px;
  }

  .service-tile-icon {
    font-size: 1.5rem;
  }

  .service-tile-label {
    font-size: 0.82rem;
  }

  .wz-step-label {
    display: none !important;
  }

  .wz-step:not(:last-child)::after {
    width: 20px;
  }

  .fw-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .wz-title {
    font-size: 1.2rem;
  }

  .btn-wz-back,
  .btn-wz-next {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
