/* Shared wizard styles - used by both onboarding and public booking */

.wizard-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: var(--color-bg);
}

.wizard {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  padding: 1rem;

  @media (min-width: 640px) {
    min-height: auto;
    padding: 2rem;
  }
}

.wizard--animate-in {
  animation: wizardFadeIn 0.3s ease-out;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.wizard_header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.wizard_logo {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.wizard_progress {
  width: 100%;
  height: 4px;
  background: var(--color-bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.wizard_progress_bar {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

/* Content */
.wizard_content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Step */
.wizard_step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wizard_title {
  font-size: var(--text-large);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.wizard_subtitle {
  font-size: var(--text-normal);
  color: var(--color-text-light);
  margin: 0 0 2rem;
}

/* Feedback */
.wizard_feedback {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: var(--text-small);
  background: var(--color-bg-light);
  border-radius: 4px;
  text-align: center;

  &.error {
    background: var(--color-danger-light);
    color: var(--color-danger-text);
  }

  &.success {
    background: var(--color-success);
    color: var(--color-success-text);
  }
}

/* Form */
.wizard_form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.wizard_input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-normal);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-white);
  color: var(--color-text);
  text-align: center;

  &:focus {
    outline: none;
    border-color: var(--color-primary);
  }

  &::placeholder {
    color: var(--color-muted);
  }

  &.text-left {
    text-align: left;
  }
}

.wizard_form_field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard_label {
  font-size: var(--text-small);
  color: var(--color-text-light);
}

/* Actions */
.wizard_actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
}

.wizard_button {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-normal);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;

  &.primary {
    color: white;
    background: var(--color-primary);

    &:hover {
      background: var(--color-primary-hover);
    }

    &:disabled {
      background: var(--color-muted);
      cursor: not-allowed;
    }
  }

  &.secondary {
    color: var(--color-text);
    background: var(--color-bg-secondary);

    &:hover {
      background: var(--color-bg-tertiary);
    }
  }
}

/* Options (cards) */
.wizard_options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.wizard_option_form {
  width: 100%;
}

.wizard_option_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1.5rem;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;

  &:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-light);
  }

  &.selected {
    border-color: var(--color-primary);
    background: var(--color-bg-light);
  }

  svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
  }
}

.wizard_option_title {
  font-size: var(--text-normal);
  font-weight: 600;
  color: var(--color-text);
}

.wizard_option_description {
  font-size: var(--text-small);
  color: var(--color-text-light);
}

/* List items */
.wizard_list {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.wizard_list_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--color-bg-white);

  &:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
  }
}

/* Icon containers */
.wizard_icon_success {
  color: var(--color-success-dark);
  margin-bottom: 1rem;

  svg {
    width: 48px;
    height: 48px;
  }

  &.large svg {
    width: 64px;
    height: 64px;
  }
}

.wizard_icon_info {
  color: var(--color-primary);
  margin-bottom: 1rem;

  svg {
    width: 48px;
    height: 48px;
  }
}

.wizard_icon_error {
  color: var(--color-danger);
  margin-bottom: 1rem;

  svg {
    width: 48px;
    height: 48px;
  }
}

/* Help section */
.wizard_help {
  margin-top: 2rem;
  text-align: center;

  p {
    font-size: var(--text-small);
    color: var(--color-text-light);
    margin: 0 0 0.5rem;
  }
}

.wizard_link {
  font-size: var(--text-small);
  color: var(--color-link);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;

  &:hover:not(:disabled) {
    color: var(--color-primary-hover);
  }

  &:disabled {
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.6;
  }
}

/* Back link */
.wizard_back {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-muted);
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;

  &:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
  }

  svg {
    width: 20px;
    height: 20px;
  }
}

/* Footer */
.wizard_footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

/* Note */
.wizard_note {
  margin-top: 1rem;
  font-size: var(--text-x-small);
  color: var(--color-text-light);
}

/* Info box */
.wizard_info_box {
  width: 100%;
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;

  p {
    font-size: var(--text-small);
    color: var(--color-text-light);
    margin: 0;
  }
}
