.salon-wizard-page {
  max-width: 56rem;
  padding-top: 0.5rem;
  padding-bottom: 4rem;
}

.salon-wizard-page .main_title_page {
  margin-bottom: 1.75rem;
}

.salon-wizard-form {
  padding: 0 0 0 clamp(1rem, 4vw, 2.5rem);
  background: none;
  border: none;
  box-shadow: none;
  max-width: none;
}

.salon-wizard-progress {
  height: 3px;
  max-width: 20rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.salon-wizard-progress-bar {
  height: 100%;
  width: 0%;
  background: color-mix(in srgb, var(--p, #6d28d9) 85%, transparent);
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.salon-wizard-stage {
  position: relative;
  min-height: 14rem;
  padding: 10px;
  overflow: hidden;
}

.salon-wizard-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.salon-wizard-step.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.salon-wizard-step.is-leaving {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 1, 1),
    transform 0.28s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s 0.28s;
}

.salon-wizard-step-title {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: inherit;
}

.salon-wizard-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.salon-wizard-address-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.salon-wizard-hint--tight {
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
}

.salon-wizard-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #dc2626;
  max-width: 42rem;
}

.salon-wizard-field-error.is-visible,
.salon-wizard-field-error:not([hidden]) {
  display: block;
}

.salon-wizard-input.is-invalid,
.salon-wizard-input.input.is-invalid {
  border-color: #dc2626;
}

.salon-wizard-form-errors {
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  max-width: 42rem;
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
  color: inherit;
}

.salon-wizard-debug-panel {
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, #2563eb 8%, transparent);
  border: 1px solid color-mix(in srgb, #2563eb 25%, transparent);
}

.salon-wizard-debug-pre {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border-radius: 0.5rem;
}

.salon-wizard-hint {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.72;
  margin: 0 0 1.35rem;
  max-width: 42rem;
}

.salon-wizard-hint code {
  font-size: 0.92em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.salon-wizard-input.input-lg,
.salon-wizard-input.textarea-lg {
  font-size: 1.125rem;
  min-height: 3.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.salon-wizard-input.textarea-lg {
  min-height: 7rem;
  padding-top: 0.85rem;
}

.salon-wizard-url-preview {
  font-size: 1rem;
  margin-top: 0.85rem;
  word-break: break-all;
  opacity: 0.7;
  max-width: 42rem;
}

.salon-wizard-color-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.salon-wizard-color-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.salon-wizard-color-preview {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, currentColor 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 25%, transparent);
}

.salon-wizard-color-current-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.salon-wizard-color-current-name {
  font-size: 1.15rem;
  font-weight: 600;
}

.salon-wizard-color-current-hex {
  font-size: 0.9rem;
  opacity: 0.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
}

.salon-wizard-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.salon-wizard-palette-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.45rem 0.55rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  background: color-mix(in srgb, currentColor 4%, transparent);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.salon-wizard-palette-btn:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.salon-wizard-palette-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--p, #6d28d9) 70%, transparent);
  outline-offset: 2px;
}

.salon-wizard-palette-btn.is-selected {
  border-color: var(--swatch-color, #6d28d9);
  background: color-mix(in srgb, var(--swatch-color, #6d28d9) 10%, transparent);
}

.salon-wizard-palette-swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--swatch-color, #6d28d9);
  border: 2px solid color-mix(in srgb, #fff 35%, transparent);
  box-shadow: 0 1px 3px color-mix(in srgb, #000 18%, transparent);
}

.salon-wizard-palette-name {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.salon-wizard-color-custom {
  margin-top: 0.25rem;
}

.salon-wizard-color-custom-summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  list-style: none;
}

.salon-wizard-color-custom-summary::-webkit-details-marker {
  display: none;
}

.salon-wizard-color-custom[open] .salon-wizard-color-custom-summary {
  margin-bottom: 0.75rem;
}

.salon-wizard-color-picker {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.salon-wizard-file-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.salon-wizard-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.salon-wizard-file-name {
  font-size: 1rem;
  opacity: 0.65;
}

.salon-wizard-logo-preview {
  margin-top: 1rem;
  max-height: 100px;
}

.salon-wizard-logo-preview img {
  max-height: 100px;
  width: auto;
  border-radius: 8px;
}

.salon-wizard-recap {
  margin: 0;
  font-size: 1.05rem;
  width: 100%;
}

.salon-wizard-recap dt {
  font-weight: 600;
  margin-top: 0.85rem;
  opacity: 0.65;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.salon-wizard-recap dt:first-child {
  margin-top: 0;
}

.salon-wizard-recap dd {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
}

.salon-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 0;
  border-top: none;
}

.salon-wizard-btn-next,
.salon-wizard-btn-submit {
  min-width: 11rem;
}

.salon-wizard-alert {
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  max-width: 42rem;
}

.salon-wizard-alert-error {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
}

.salon-wizard-alert-success {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  border: 1px solid color-mix(in srgb, #16a34a 35%, transparent);
}

.salon-wizard-alert-warning {
  background: color-mix(in srgb, #d97706 12%, transparent);
  border: 1px solid color-mix(in srgb, #d97706 35%, transparent);
}

.salon-wizard-form.is-submitting {
  opacity: 0.75;
  pointer-events: none;
}

@media (max-width: 640px) {
  .salon-wizard-stage {
    min-height: 12rem;
  }

  .salon-wizard-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .salon-wizard-btn-next,
  .salon-wizard-btn-submit,
  .salon-wizard-btn-prev {
    width: 100%;
  }
}
