/* Brand Assessment Form Styles */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --bg-muted: #f9fafb;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-strong: #1d4ed8;
  --danger: #b91c1c;
  --success: #16a34a;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --shadow-card: 0 18px 35px rgba(15, 23, 42, 0.08);
}

#brandAssessmentWrapper * {
  box-sizing: border-box;
}

#brandAssessmentWrapper {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.5;
}

.wizard-shell {
  min-height: 600px;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
}

.wizard-container {
  width: 100%;
  max-width: 1080px;
  background: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.75rem 1.5rem;
}

.wizard-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.wizard-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wizard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 500;
}

.wizard-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.wizard-step-indicator {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.wizard-title {
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0;
}

.wizard-title span {
  color: var(--accent-strong);
}

.wizard-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 40rem;
  margin: 0;
}

/* Progress bar + sections */
.wizard-progress-wrapper {
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wizard-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.wizard-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: inherit;
  transition: width 0.25s ease-out;
}

.wizard-section-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.wizard-section-marker {
  width: 10%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-soft);
  opacity: 0.7;
  white-space: nowrap;
}

.wizard-section-marker span {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.05rem;
}

.wizard-section-marker.active {
  color: var(--accent-strong);
  opacity: 1;
  font-weight: 600;
}

.wizard-body {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.wizard-question-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.wizard-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between; /* space between the buttons container and the counter */
}

.wizard-btn-container {
  display: flex;
  gap: 10px; /* space between buttons */
  justify-content: left;
  flex: 1; /* take up available space */
}

.wizard-question-counter {
  margin-left: auto; /* push counter to the far right */
}

.wizard-question-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wizard-hint{
	    font-size: 0.8rem!important;
    color: var(--text-soft)!important;
    margin-top: 0.2rem!important;
}
#pillarShort {
    padding: 0.15rem 0.6rem!important;
    border-radius: var(--radius-pill)!important;
    border: 1px solid var(--border-strong)!important;
    font-size: 0.72rem!important;
    color: var(--accent-strong)!important;
    background: var(--accent-soft)!important;
}

.wizard-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.wizard-question-help-inline {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.wizard-question-counter {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

.wizard-answers {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wizard-answer-option {
  flex: 1;
  min-width: 130px;
  position: relative;
}

.wizard-answer-input {
  display: none;
}

.wizard-answer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), 
              box-shadow var(--transition-fast), transform var(--transition-fast);
}

.wizard-answer-check {
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.wizard-answer-input:checked + .wizard-answer-label {
  border-color: var(--accent-strong);
  background: #dbeafe;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.wizard-answer-input:checked + .wizard-answer-label .wizard-answer-check {
  opacity: 1;
}

.wizard-answer-label:hover {
  border-color: var(--accent);
}

.wizard-error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0;
}

.wizard-success-message {
  color: var(--success);
  font-size: 0.85rem;
  margin: 0;
  padding: 0.5rem;
  background: #dcfce7;
  border-radius: 0.5rem;
}

.wizard-nav-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.wizard-btn-primary,
.wizard-btn-secondary,
.wizard-btn-submit {
  border-radius: var(--radius-pill)!important;
  padding: 0.55rem 1rem!important;
  font-size: 0.9rem!important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  font-weight: 500!important;
  border: none;
  font-family: inherit;
}

.wizard-btn-primary {
  border: 1px solid transparent!important;
  background: linear-gradient(90deg, #3b82f6, #2563eb)!important;
  color: #ffffff!important;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.wizard-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.wizard-btn-secondary {
  border: 1px solid var(--border-strong)!important;
  background: #ffffff!important;
  color: var(--text-main)!important;
}

.wizard-btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--accent);
}

.wizard-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-btn-submit {
	flex: 0!important;
  border: 1px solid transparent!important;
  background: linear-gradient(90deg, #3b82f6, #2563eb)!important;
  color: #f9fafb!important;
  font-weight: 600!important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25)!important;
  padding: 0.75rem 1.5rem!important;
  font-size: 1rem!important;
  width: 100%!important;
  justify-content: center!important;
}

.wizard-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}

.wizard-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Explainer sidebar */
.wizard-explain-card {
  background: #f9fafb!important;
  border-radius: var(--radius-lg)!important;
  border: 1px solid #e5e7eb!important;
  padding: 1.1rem 1.2rem!important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wizard-explain-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
}
.wizard-explain-tag {
      font-size: 0.75rem!important;
	font-weight: 600;
      padding: 0.15rem 0.6rem !important;
      border-radius: 99px !important;
      background: #eff6ff !important;
      color: #1d4ed8 !important;
      border: 1px solid #bfdbfe !important;
    }


.wizard-explain-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563!important;
  margin: 0;
}

.wizard-explain-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

.wizard-explain-badges {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.wizard-explain-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-soft);
  font-weight: 500;
}

/* Summary / Lead form */
.wizard-summary-section {
  margin-top: 1rem;
  padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
  background: white;
}

.wizard-summary-header {
  margin-bottom: 1.5rem;
}

.wizard-summary-title {
margin: 0 0 0.5rem;
    font-size: 1rem!important;
    font-weight: 600!important;
}

.wizard-summary-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

.wizard-report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wizard-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wizard-form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.full-widthf{
grid-column: 1 / -1;
}
.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}
.helper{
	font-size: 0.78rem!important;
    color: #6b7280!important;
}
.wizard-form-input,
.wizard-form-select {
  border-radius: 0.6rem!important;
    border: 1px solid var(--border-strong)!important;
    padding: 0.55rem 0.7rem!important;
    font-size: 0.9rem!important;
    font-family: inherit!important;
    background: #f9fafb!important;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out!important;
}

.wizard-form-input:focus,
.wizard-form-select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.wizard-lead-footer {
      margin-top: 0.9rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      justify-content: space-between;
    }
 .wizard-lead-note {
      font-size: 0.78rem;
      color: #6b7280;
      max-width: 18rem;
    }
.wizard-lead-form .full-width {
    grid-column: 1 / -1!important;
}
/* Responsive */
@media (max-width: 900px) {
  .wizard-body {
    grid-template-columns: 1fr;
  }
  
  .wizard-explain-card {
    order: -1;
  }
  
  .wizard-container {
    padding: 1.5rem 1.25rem 1.3rem;
  }
}

@media (max-width: 640px) {
  .wizard-shell {
    padding: 1.5rem 0.75rem;
  }
  
  .wizard-nav-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .wizard-btn-primary,
  .wizard-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .wizard-form-row {
    grid-template-columns: 1fr;
  }
  
  .wizard-section-markers {
    display: none;
  }
}

/* Loading state */
.wizard-btn-submit.loading {

  position: relative;
  color: transparent;
}

.wizard-btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
