/* ===========================
   Vitalisite Setup Wizard
   =========================== */

.vitalisite-wizard-wrap {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.vitalisite-wizard {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Header */
.vitalisite-wizard__header {
  padding: 24px 32px;
  border-bottom: 1px solid #f0f0f1;
}

.vitalisite-wizard__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
  color: #1d2327;
}

.vitalisite-wizard__title .dashicons {
  color: #d63638;
  font-size: 28px;
  width: 28px;
  height: 28px;
}

/* Steps indicator */
.vitalisite-wizard__steps {
  display: flex;
  padding: 20px 32px;
  gap: 8px;
  border-bottom: 1px solid #f0f0f1;
  background: #fafafa;
}

.vitalisite-wizard__step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #8c8f94;
  transition: all 0.2s ease;
}

.vitalisite-wizard__step--active {
  background: #2271b1;
  color: #fff;
  font-weight: 600;
}

.vitalisite-wizard__step--done {
  color: #00a32a;
}

.vitalisite-wizard__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #dcdcde;
  color: #50575e;
  flex-shrink: 0;
}

.vitalisite-wizard__step--active .vitalisite-wizard__step-number {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.vitalisite-wizard__step--done .vitalisite-wizard__step-number {
  background: #00a32a;
  color: #fff;
}

/* Content area */
.vitalisite-wizard__content {
  padding: 32px;
}

.vitalisite-wizard__step-content h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3em;
}

.vitalisite-wizard__step-content > p {
  color: #50575e;
  margin-bottom: 24px;
}

/* License form */
.vitalisite-wizard__license-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.vitalisite-wizard__license-form input {
  flex: 1;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

.vitalisite-wizard__license-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vitalisite-wizard__license-info code {
  font-size: 14px;
  padding: 6px 12px;
  background: #f0f0f1;
  border-radius: 4px;
}

/* Notices */
.vitalisite-wizard__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.vitalisite-wizard__notice--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.vitalisite-wizard__notice--success .dashicons {
  color: #00a32a;
}

.vitalisite-wizard__notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Feedback */
.vitalisite-wizard__feedback {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.vitalisite-wizard__feedback--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.vitalisite-wizard__feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Form fields */
.vitalisite-wizard__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vitalisite-wizard__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vitalisite-wizard__field label {
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
}

.vitalisite-wizard__field input {
  max-width: 100%;
}

/* Choice cards */
.vitalisite-wizard__choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vitalisite-wizard__choice-card,
.vitalisite-wizard__page-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}

.vitalisite-wizard__choice-card {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.vitalisite-wizard__choice-card:hover {
  border-color: #2271b1;
  box-shadow: 0 8px 24px rgba(34, 113, 177, 0.08);
  transform: translateY(-1px);
}

.vitalisite-wizard__choice-card:has(input[type="radio"]:checked),
.vitalisite-wizard__page-card:has(input[type="checkbox"]:checked) {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
  background: #f7fbff;
}

.vitalisite-wizard__choice-card input,
.vitalisite-wizard__page-card input {
  margin: 0;
}

.vitalisite-wizard__choice-title,
.vitalisite-wizard__page-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.vitalisite-wizard__choice-description,
.vitalisite-wizard__page-card-description,
.vitalisite-wizard__page-card-meta {
  color: #50575e;
  font-size: 13px;
  line-height: 1.5;
}

.vitalisite-wizard__page-list {
  display: grid;
  gap: 12px;
}

.vitalisite-wizard__page-card[disabled],
.vitalisite-wizard__page-card input:disabled {
  cursor: not-allowed;
}

.vitalisite-wizard__page-card:has(input:disabled) {
  background: #f6f7f7;
}

.vitalisite-wizard__demo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vitalisite-wizard__toggle-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #c3dafe;
  border-radius: 10px;
  background: #f7fbff;
}

.vitalisite-wizard__toggle-card input {
  margin-top: 3px;
}

.vitalisite-wizard__toggle-card strong,
.vitalisite-wizard__toggle-card small {
  display: block;
}

.vitalisite-wizard__toggle-card strong {
  color: #1d2327;
  font-size: 14px;
}

.vitalisite-wizard__toggle-card small {
  margin-top: 4px;
  color: #50575e;
  font-size: 13px;
  line-height: 1.5;
}

/* Style variations */
.vitalisite-wizard__variations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.vitalisite-wizard__variation-card {
  border: 2px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.vitalisite-wizard__variation-card:hover {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.vitalisite-wizard__variation-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: #f6f7f7;
}

.vitalisite-wizard__variation-name {
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
}

/* Navigation */
.vitalisite-wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f1;
}

/* Done step */
.vitalisite-wizard__done {
  text-align: center;
  padding: 20px 0;
}

.vitalisite-wizard__done-icon {
  font-size: 64px;
  width: 64px;
  height: 64px;
  color: #00a32a;
  margin-bottom: 16px;
}

.vitalisite-wizard__done h2 {
  font-size: 1.5em;
}

.vitalisite-wizard__done-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.vitalisite-wizard__done-actions .button-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vitalisite-wizard__done-actions .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.vitalisite-wizard__theme-list {
  margin: 24px 0;
}

.vitalisite-wizard__theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.vitalisite-wizard__theme-tags li {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f6fc;
  color: #0a4b78;
  font-weight: 600;
}

/* Disabled button */
.vitalisite-wizard__btn-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Hours table */
.vitalisite-wizard__hours-table {
  margin-bottom: 8px;
}

.vitalisite-wizard__hours-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
}

.vitalisite-wizard__hours-table td {
  padding: 6px 12px;
  vertical-align: middle;
}

.vitalisite-wizard__hours-table input[type="time"] {
  width: 130px;
}

.vitalisite-wizard__hours-table input[type="checkbox"] {
  margin: 0;
}

/* Personalization guide */
.vitalisite-wizard__personalization-guide {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.vitalisite-wizard__personalization-guide h3 {
  margin-top: 0;
}

.vitalisite-wizard__guide-steps {
  margin: 16px 0;
  padding-left: 20px;
}

.vitalisite-wizard__guide-steps li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .vitalisite-wizard-wrap {
    margin: 20px auto;
  }

  .vitalisite-wizard__steps {
    flex-direction: column;
    gap: 4px;
    padding: 16px;
  }

  .vitalisite-wizard__content {
    padding: 20px;
  }

  .vitalisite-wizard__license-form {
    flex-direction: column;
  }

  .vitalisite-wizard__done-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vitalisite-wizard__choice-grid {
    grid-template-columns: 1fr;
  }

  .vitalisite-wizard__step-label {
    display: none;
  }
}
