/**
 * [cvs_publish_wizard] styles — auth panel + the 5-step wizard. Same
 * token set as the other Phase 6 pages; mobile-first (section 7), RTL,
 * dark-mode aware.
 */

.cvs-wizard,
.cvs-wizard-auth {
  --cvs-bg: #F5EFE2;
  --cvs-surface: #FFFDF8;
  --cvs-surface-alt: #EDE3CC;
  --cvs-text: #201C16;
  --cvs-text-muted: #6E6656;
  --cvs-border: #E9DFC4;
  --cvs-primary: #1E3A5F;
  --cvs-primary-strong: #12283F;
  --cvs-danger: #B23A32;
  --cvs-danger-soft: #F3DAD6;
  --cvs-success: #2F7D54;
  --cvs-success-soft: #DCEEE1;

  font-family: 'Assistant', 'Arial Hebrew', 'Segoe UI', sans-serif;
  color: var(--cvs-text);
  max-width: 640px;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .cvs-wizard,
  .cvs-wizard-auth {
    --cvs-bg: #14201C;
    --cvs-surface: #1B2925;
    --cvs-surface-alt: #223530;
    --cvs-text: #EFE9DA;
    --cvs-text-muted: #A79E8A;
    --cvs-border: #2A3B34;
    --cvs-primary: #85AEDC;
    --cvs-primary-strong: #B7D0EC;
    --cvs-danger: #E58177;
    --cvs-danger-soft: #3B2320;
    --cvs-success: #66C295;
    --cvs-success-soft: #1E3428;
  }
}

/* ---- Auth panel ---- */
.cvs-wizard-auth {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cvs-auth-panel {
  background: var(--cvs-surface);
  border: 1px solid var(--cvs-border);
  border-radius: 12px;
  padding: 18px;
}
.cvs-auth-panel h2 {
  margin-top: 0;
  font-size: 17px;
}
.cvs-login-form,
.cvs-register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cvs-login-form label,
.cvs-register-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cvs-text-muted);
}
.cvs-login-form input,
.cvs-register-form input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cvs-border);
  border-radius: 8px;
  background: var(--cvs-bg);
  color: var(--cvs-text);
  font-size: 14px;
}
.cvs-forgot-password {
  font-size: 12.5px;
  color: var(--cvs-text-muted);
}
.cvs-register-error {
  color: var(--cvs-danger);
  font-size: 13px;
  min-height: 1em;
}

/* ---- Wizard shell ---- */
.cvs-wizard-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  gap: 4px;
  overflow-x: auto;
}
.cvs-step-indicator {
  flex: 1 0 auto;
  text-align: center;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cvs-text-muted);
  background: var(--cvs-surface-alt);
  border-radius: 100px;
  cursor: default;
  white-space: nowrap;
}
.cvs-step-indicator.is-active {
  background: var(--cvs-primary);
  color: var(--cvs-bg);
}

.cvs-wizard-status {
  font-size: 12.5px;
  color: var(--cvs-text-muted);
  min-height: 18px;
  margin-bottom: 8px;
}

.cvs-wizard-step {
  display: none;
  flex-direction: column;
  gap: 14px;
  background: var(--cvs-surface);
  border: 1px solid var(--cvs-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}
.cvs-wizard-step.is-active {
  display: flex;
}
.cvs-wizard-step label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cvs-text-muted);
}
.cvs-wizard-step input[type="text"],
.cvs-wizard-step input[type="tel"],
.cvs-wizard-step input[type="number"],
.cvs-wizard-step select,
.cvs-wizard-step textarea {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cvs-border);
  border-radius: 8px;
  background: var(--cvs-bg);
  color: var(--cvs-text);
  font-size: 14px;
  font-family: inherit;
}
.cvs-wizard-step textarea {
  min-height: 100px;
  resize: vertical;
}

.cvs-wizard-row {
  display: flex;
  gap: 10px;
}
.cvs-wizard-row label {
  flex: 1;
}

.cvs-city-autocomplete {
  position: relative;
}
.cvs-city-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  background: var(--cvs-surface);
  border: 1px solid var(--cvs-border);
  border-radius: 8px;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.cvs-city-suggestion {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--cvs-text);
  cursor: pointer;
  font-size: 14px;
}
.cvs-city-suggestion:hover {
  background: var(--cvs-surface-alt);
}
.cvs-city-suggestion-empty {
  padding: 10px 12px;
  color: var(--cvs-text-muted);
  font-size: 13px;
}

.cvs-link-btn {
  background: none;
  border: none;
  color: var(--cvs-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: start;
  width: fit-content;
}
.cvs-add-location-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--cvs-surface-alt);
  border-radius: 8px;
  padding: 12px;
}
.cvs-add-location-note {
  font-size: 12px;
  color: var(--cvs-text-muted);
}

.cvs-wizard-features {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.cvs-wizard-features legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--cvs-text-muted);
  padding: 0;
  margin-bottom: 6px;
}
.cvs-feature-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 400;
}

.cvs-wizard-hint {
  font-size: 12.5px;
  color: var(--cvs-text-muted);
  margin: 0;
}

.cvs-wizard-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.cvs-w-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cvs-surface-alt);
}
.cvs-w-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cvs-w-image-loading {
  animation: cvs-pulse 1.2s ease-in-out infinite;
}
@keyframes cvs-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}
.cvs-w-image-delete {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.cvs-wizard-review p {
  margin: 0 0 8px;
  font-size: 14px;
}

.cvs-wizard-errors {
  background: var(--cvs-danger-soft);
  color: var(--cvs-danger);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.cvs-wizard-errors ul {
  margin: 6px 0 0;
  padding-inline-start: 18px;
}

.cvs-wizard-success {
  background: var(--cvs-success-soft);
  color: var(--cvs-success);
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cvs-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cvs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.cvs-btn-primary {
  background: var(--cvs-primary);
  color: var(--cvs-bg);
}
.cvs-btn-secondary {
  background: var(--cvs-surface-alt);
  color: var(--cvs-text);
  border-color: var(--cvs-border);
}
.cvs-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (min-width: 640px) {
  .cvs-wizard-auth {
    flex-direction: row;
  }
  .cvs-auth-panel {
    flex: 1;
  }
}
