/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/public/css/get-started.css
   Description: Onboarding wizard styles for AutoMarketer AI get-started page
   Last Edited: 2026-04-27
   ================================================== */

/* --------------------------------------------------
   Wizard shell
   -------------------------------------------------- */
.amai-wizard {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 80px;
  background: var(--bg);
}

.amai-wizard__inner {
  width: 100%;
  max-width: 560px;
}

/* --------------------------------------------------
   Progress bar
   -------------------------------------------------- */
.amai-wizard__progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.amai-wizard__step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--stone-light);
  flex-shrink: 0;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.amai-wizard__step-dot--active {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--white);
}

.amai-wizard__step-dot--done {
  border-color: var(--clay);
  background: var(--clay-light);
  color: var(--clay);
}

.amai-wizard__step-dot--done::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg) translateY(-1px);
}

.amai-wizard__step-dot--done span {
  display: none;
}

.amai-wizard__step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.25s ease;
}

.amai-wizard__step-line--done {
  background: var(--clay);
}

/* --------------------------------------------------
   Card
   -------------------------------------------------- */
.amai-wizard__card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 48px 48px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.amai-wizard__eyebrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}

.amai-wizard__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.amai-wizard__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* --------------------------------------------------
   Form elements
   -------------------------------------------------- */
.amai-wizard__group {
  margin-bottom: 20px;
}

.amai-wizard__label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.amai-wizard__label span {
  font-weight: 400;
  color: var(--stone-light);
  margin-left: 4px;
}

.amai-wizard__input,
.amai-wizard__select,
.amai-wizard__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.amai-wizard__input:focus,
.amai-wizard__select:focus,
.amai-wizard__textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}

.amai-wizard__input.is-error,
.amai-wizard__select.is-error {
  border-color: #E53E3E;
}

.amai-wizard__textarea {
  resize: vertical;
  min-height: 90px;
}

.amai-wizard__hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--stone-light);
  margin-top: 5px;
  line-height: 1.5;
}

.amai-wizard__hint a {
  color: var(--clay);
  text-decoration: none;
}

.amai-wizard__hint a:hover {
  text-decoration: underline;
}

/* Key input row */
.amai-wizard__key-row {
  display: flex;
  gap: 8px;
}

.amai-wizard__key-row .amai-wizard__input {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.amai-wizard__validate-btn {
  flex-shrink: 0;
  padding: 11px 18px;
  border: 1.5px solid var(--clay);
  border-radius: 10px;
  background: transparent;
  color: var(--clay);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.amai-wizard__validate-btn:hover {
  background: var(--clay-light);
}

.amai-wizard__validate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Validation state */
.amai-wizard__key-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

.amai-wizard__key-status--ok {
  color: #2F855A;
}

.amai-wizard__key-status--err {
  color: #E53E3E;
}

.amai-wizard__key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.amai-wizard__key-status--ok .amai-wizard__key-status-dot {
  background: #48BB78;
}

.amai-wizard__key-status--err .amai-wizard__key-status-dot {
  background: #E53E3E;
}

/* Model select */
.amai-wizard__select-wrap {
  position: relative;
}

.amai-wizard__select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--stone);
  pointer-events: none;
}

/* --------------------------------------------------
   Provider picker (step 3 + 4)
   -------------------------------------------------- */
.amai-wizard__providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.amai-wizard__provider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.amai-wizard__provider:hover {
  border-color: var(--clay);
  background: var(--clay-light);
}

.amai-wizard__provider.is-selected {
  border-color: var(--clay);
  background: var(--clay-light);
}

.amai-wizard__provider input[type="radio"] {
  display: none;
}

.amai-wizard__provider-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.amai-wizard__provider.is-selected .amai-wizard__provider-radio {
  border-color: var(--clay);
  background: var(--clay);
}

.amai-wizard__provider.is-selected .amai-wizard__provider-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.amai-wizard__provider-info {
  flex: 1;
}

.amai-wizard__provider-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.amai-wizard__provider-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  background: rgba(217,119,87,0.15);
  padding: 2px 7px;
  border-radius: 20px;
}

.amai-wizard__provider-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--stone);
  margin-top: 2px;
  line-height: 1.4;
}

/* --------------------------------------------------
   Facebook connect step
   -------------------------------------------------- */
.amai-wizard__connect-box {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 24px;
  background: #F7F9FF;
}

.amai-wizard__connect-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1877F2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amai-wizard__connect-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.amai-wizard__connect-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
}

.amai-wizard__connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: #1877F2;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.amai-wizard__connect-btn:hover {
  background: #1565d8;
  color: #fff;
}

.amai-wizard__skip-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--stone-light);
  text-align: center;
}

.amai-wizard__skip-note a {
  color: var(--stone);
  text-decoration: underline;
  cursor: pointer;
}

/* --------------------------------------------------
   Error banner
   -------------------------------------------------- */
.amai-wizard__error {
  background: #FFF5F5;
  border: 1.5px solid #FEB2B2;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #C53030;
  margin-bottom: 20px;
  display: none;
}

.amai-wizard__error.is-visible {
  display: block;
}

/* --------------------------------------------------
   Nav buttons
   -------------------------------------------------- */
.amai-wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.amai-wizard__back {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--stone);
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.amai-wizard__back:hover {
  color: var(--ink);
}

.amai-wizard__back svg {
  flex-shrink: 0;
}

.amai-wizard__next {
  margin-left: auto;
}

/* --------------------------------------------------
   Spinner
   -------------------------------------------------- */
.amai-wizard__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: amai-spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes amai-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------
   Step transitions
   -------------------------------------------------- */
.amai-wizard__step {
  display: none;
}

.amai-wizard__step.is-active {
  display: block;
  animation: amai-step-in 0.22s ease;
}

@keyframes amai-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 600px) {
  .amai-wizard__card {
    padding: 32px 24px 28px;
  }

  .amai-wizard__title {
    font-size: 22px;
  }

  .amai-wizard__key-row {
    flex-direction: column;
  }

  .amai-wizard__validate-btn {
    width: 100%;
  }
}