/* Agent Wizard — Interactive styles
 * Layout, typography, button base styles handled by Bricks.
 * Only wizard-specific interactive / dynamic bits. */

/* ── Step Visibility ── */

[data-wizard-step] {
  display: none;
}

[data-wizard-step].aw-active {
  display: block;
}

/* ── Progress Bar ── */

.aw-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3em;
}

.aw-progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.aw-progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #E5E7EB;
  background: #fff;
  color: rgba(28, 25, 23, 0.3);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.aw-progress-dot.aw-completed {
  background: var(--lazio-orange, #F97316);
  border-color: var(--lazio-orange, #F97316);
  color: #fff;
}

.aw-progress-dot.aw-current {
  border-color: var(--lazio-orange, #F97316);
  color: var(--lazio-orange, #F97316);
}

.aw-progress-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.3);
  margin-left: 8px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.aw-progress-label.aw-completed,
.aw-progress-label.aw-current {
  color: #1C1917;
}

.aw-progress-line {
  width: 40px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 8px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.aw-progress-line.aw-completed {
  background: var(--lazio-orange, #F97316);
}

@media (max-width: 767px) {
  .aw-progress-label {
    display: none;
  }
  .aw-progress-line {
    width: 24px;
  }
}

/* ── Selectable Card States (lazio-card inside Bricks wrappers) ── */

[data-use-case],
[data-scope],
[data-plan] {
  cursor: pointer;
}

.aw-selected .lazio-card {
  border-color: var(--lazio-orange, #F97316);
  box-shadow: 0 0 0 1px var(--lazio-orange, #F97316);
  background: #FFF7ED;
}

/* ── Plan Card Content Formatting (inside lazio-card body) ── */

.aw-plan-price {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: var(--text-xl, 35px);
  font-weight: 700;
  color: var(--lazio-orange, #F97316);
  margin-bottom: 0.15em;
}

.aw-plan-price-unit {
  font-size: var(--text-s, 12px);
  color: rgba(28, 25, 23, 0.6);
  font-weight: 400;
}

.aw-plan-features {
  list-style: none;
  padding: 0;
  margin: 1.25em 0 0 0;
}

.aw-plan-features li {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 15px;
  color: rgba(28, 25, 23, 0.6);
  line-height: 1.6;
  padding-left: 1.25em;
  position: relative;
}

.aw-plan-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--lazio-orange, #F97316);
  font-weight: 600;
}

/* ── Tools Grid (Step 3) ── */

.aw-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
}

.aw-tool-category {
  margin-bottom: 2em;
}

.aw-tool-category-label {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-s, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(28, 25, 23, 0.6);
  margin-bottom: 0.75em;
}

.aw-tool-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.8em;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.aw-tool-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.aw-tool-item.aw-selected {
  border-color: var(--lazio-orange, #F97316);
  background: #FFF7ED;
}

.aw-tool-item input[type="checkbox"] {
  accent-color: var(--lazio-orange, #F97316);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.aw-tool-item label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1C1917;
  cursor: pointer;
  user-select: none;
}

/* ── Pricing Summary (Step 5) — Signal Frame ── */

.aw-summary {
  border-left: 6px solid var(--lazio-orange, #F97316);
  padding: 2em 2em 2em 2.5em;
  background: #FFF7ED;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2em;
}

.aw-summary-title {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-s, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(28, 25, 23, 0.6);
  margin-bottom: 1.25em;
}

.aw-summary-config {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: var(--text-m, 17px);
  color: #1C1917;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.aw-summary-config strong {
  font-weight: 600;
}

.aw-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5em 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.aw-summary-line-label {
  color: #1C1917;
  font-weight: 500;
}

.aw-summary-line-value {
  font-weight: 600;
  color: #1C1917;
}

.aw-summary-line-detail {
  font-size: 13px;
  color: rgba(28, 25, 23, 0.6);
  font-weight: 400;
  padding-left: 1em;
}

.aw-summary-divider {
  height: 1px;
  background: rgba(28, 25, 23, 0.1);
  margin: 0.5em 0;
}

.aw-summary-line.aw-total {
  padding-top: 0.75em;
}

.aw-summary-line.aw-total .aw-summary-line-value {
  color: var(--lazio-orange, #F97316);
  font-size: var(--text-m, 17px);
}

/* ── Wizard Navigation ── */

.aw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid #E5E7EB;
}

.aw-nav-back {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.6);
  cursor: pointer;
  padding: 0.5em 1em;
  transition: color 0.2s ease;
}

.aw-nav-back:hover {
  color: #1C1917;
}

.aw-nav-next {
  background: var(--lazio-orange, #F97316);
  border: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0.75em 2em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.aw-nav-next:hover {
  background: var(--lazio-orange-dark, #EA580C);
}

.aw-nav-next:disabled {
  background: #E5E7EB;
  color: rgba(28, 25, 23, 0.3);
  cursor: not-allowed;
}

/* ── Custom Text Input (Step 1 "Custom" option) ── */

.aw-custom-input {
  display: none;
  margin-top: 1em;
}

.aw-custom-input.aw-visible {
  display: block;
}

.aw-custom-input textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75em;
  border: 1px solid #E5E7EB;
  border-left: 3px solid var(--lazio-orange, #F97316);
  border-radius: 4px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: var(--text-m, 17px);
  color: #1C1917;
  background: #fff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.aw-custom-input textarea:focus {
  background: #FFF7ED;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

/* ── Other/Custom Tools Input ── */

.aw-other-tools {
  margin-top: 1em;
}

.aw-other-tools input {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid #E5E7EB;
  border-left: 3px solid var(--lazio-orange, #F97316);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1C1917;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

.aw-other-tools input:focus {
  background: #FFF7ED;
}

/* ── Checkout Actions ── */

.aw-checkout-actions {
  display: flex;
  gap: 1.5em;
  align-items: center;
  margin-top: 1.5em;
}

.aw-checkout-actions .aw-btn-primary {
  background: var(--lazio-orange, #F97316);
  border: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 0.9em 2.5em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.aw-checkout-actions .aw-btn-primary:hover {
  background: var(--lazio-orange-dark, #EA580C);
}

.aw-checkout-actions .aw-btn-primary:disabled {
  background: #E5E7EB;
  color: rgba(28, 25, 23, 0.3);
  cursor: not-allowed;
}

.aw-checkout-actions .aw-btn-secondary {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.6);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.aw-checkout-actions .aw-btn-secondary:hover {
  color: var(--lazio-orange, #F97316);
}

@media (max-width: 767px) {
  .aw-checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .aw-checkout-actions .aw-btn-primary {
    text-align: center;
  }
  .aw-checkout-actions .aw-btn-secondary {
    text-align: center;
  }
}

/* ── Founding Badge ── */

.aw-founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #FFF7ED;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 20px;
  padding: 0.35em 1em;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--lazio-orange, #F97316);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}

/* ── LLM Cost Note ── */

.aw-llm-note {
  background: rgba(28, 25, 23, 0.03);
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 1.25em 1.5em;
  margin-top: 1.5em;
}

.aw-llm-note-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1C1917;
  margin-bottom: 0.35em;
}

.aw-llm-note-text {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 15px;
  color: rgba(28, 25, 23, 0.6);
  line-height: 1.5;
}

/* ── Spinner (reuse pattern) ── */

.aw-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aw-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

/* ── Hero variant swap (hidden by default, JS shows matching one) ── */

[data-hero-variant] {
  display: none;
}

[data-hero-variant].aw-active {
  display: block;
}
