/* ==========================================================================
   HEXARISE ONBOARDING - DESKTOP-OPTIMIZED & RESPONSIVE STYLES
   ========================================================================== */

:root {
  --onboarding-max-w: 1100px;
}

body.onboarding-body {
  background-color: var(--bg-surface);
  color: var(--text-on-surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  font-family: var(--font-editorial);
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
.onboarding-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(252, 213, 53, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(45, 189, 182, 0.05) 0%, transparent 45%),
    var(--bg-surface);
  z-index: 0;
}

/* Header */
.onboarding-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) clamp(20px, 5vw, 48px);
  height: 76px;
  width: 100%;
  max-width: var(--onboarding-max-w);
  margin: 0 auto;
  flex-shrink: 0;
}

.icon-close-btn {
  color: var(--text-variant);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  transition: all 0.2s ease;
}

.icon-close-btn:hover {
  color: #ffffff;
  border-color: var(--primary-yellow);
  background-color: var(--bg-elevated-dark);
}

/* Main Container */
.onboarding-main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: var(--onboarding-max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) var(--space-xxl) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
}

/* Progress Wrapper */
.progress-wrapper {
  margin-bottom: var(--space-xl);
  max-width: 100%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xs);
}

.progress-step-text {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-yellow);
}

.progress-percentage {
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-elevated-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fcd535 0%, #e9c320 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Card Desktop Layout */
.step-card {
  display: none;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  flex: 1;
}

.step-card.active {
  display: grid;
  animation: fadeInStep 0.4s ease-out forwards;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-intro {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-on-surface);
  margin-bottom: var(--space-md);
}

.step-subtitle {
  font-size: clamp(15px, 1.8vw, 16px);
  color: var(--text-variant);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.desktop-value-box {
  background: var(--bg-container-low);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.desktop-value-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text-on-surface);
}

.desktop-value-item span.icon {
  color: var(--primary-yellow);
  font-size: 20px;
}

/* Question Box & Card Grid */
.question-box {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.question-heading {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

/* Search Input for Step 2 */
.search-box-wrapper {
  position: relative;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-variant);
  pointer-events: none;
  font-size: 20px;
}

.search-input-field {
  width: 100%;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 12px 14px 12px 44px;
  color: #ffffff;
  font-family: var(--font-editorial);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input-field:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
}

/* Industry Cards/Chips Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.industry-chip {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  cursor: pointer;
  color: var(--text-on-surface);
  transition: all 0.2s ease;
  min-height: 88px;
  user-select: none;
}

.industry-chip:hover {
  border-color: rgba(252, 213, 53, 0.4);
  background-color: var(--bg-elevated-dark);
  transform: translateY(-2px);
}

.industry-chip.chip-selected {
  background-color: var(--primary-yellow);
  color: var(--text-ink);
  border-color: var(--primary-yellow);
  box-shadow: 0 4px 16px rgba(252, 213, 53, 0.25);
}

.industry-chip .chip-icon {
  font-size: 26px;
  transition: transform 0.2s ease;
}

.industry-chip:hover .chip-icon {
  transform: scale(1.1);
}

.industry-chip .chip-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Step 4 Multi-Select Goal Cards Grid */
.goal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.goal-select-card {
  position: relative;
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  user-select: none;
}

.goal-select-card:hover {
  border-color: rgba(252, 213, 53, 0.4);
  background-color: var(--bg-elevated-dark);
  transform: translateY(-2px);
}

.goal-select-card.selected {
  border-color: var(--primary-yellow);
  background-color: var(--bg-container-high);
  box-shadow: 0 4px 20px rgba(252, 213, 53, 0.15);
}

.goal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-md);
}

.goal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-elevated-dark);
  color: var(--text-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.goal-select-card.selected .goal-icon-badge {
  background-color: var(--primary-yellow);
  color: var(--text-ink);
}

.goal-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background-color: var(--bg-surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.goal-select-card.selected .goal-checkbox-box {
  background-color: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

.goal-checkbox-box span {
  font-size: 16px;
  color: var(--text-ink);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.goal-select-card.selected .goal-checkbox-box span {
  opacity: 1;
  transform: scale(1);
}

.goal-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-surface);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.goal-select-card.selected .goal-card-title {
  color: var(--primary-yellow);
}

/* Options Grid for Desktop Widescreen */
.options-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.option-card {
  display: block;
  cursor: pointer;
  position: relative;
}

.option-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  width: 100%;
  height: 100%;
  min-height: 72px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  background-color: var(--bg-surface-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.option-card:hover .option-content {
  border-color: rgba(252, 213, 53, 0.4);
  background-color: var(--bg-elevated-dark);
  transform: translateY(-2px);
}

.option-card.active .option-content,
.option-radio:checked + .option-content {
  border-color: var(--primary-yellow);
  background-color: var(--bg-container-high);
  box-shadow: 0 4px 20px rgba(252, 213, 53, 0.15);
}

.option-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-surface);
  transition: color 0.2s ease;
}

.option-card.active .option-text,
.option-radio:checked + .option-content .option-text {
  color: var(--primary-yellow);
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.option-card.active .custom-radio,
.option-radio:checked + .option-content .custom-radio {
  border-color: var(--primary-yellow);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary-yellow);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.option-card.active .radio-dot,
.option-radio:checked + .option-content .radio-dot {
  transform: scale(1);
}

/* Action Footer Bar */
.onboarding-action-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--onboarding-max-w);
  margin: auto auto 0 auto;
  padding: var(--space-lg) clamp(20px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.btn-back {
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-on-surface);
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.2s ease;
}

.btn-back:hover:not(:disabled) {
  color: #ffffff;
  border-color: var(--primary-yellow);
  background-color: var(--bg-elevated-dark);
}

.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-continue {
  height: 52px;
  min-width: 200px;
  padding: 0 36px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-yellow);
  color: var(--text-ink);
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(252, 213, 53, 0.25);
}

.btn-continue:hover {
  background-color: var(--primary-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 213, 53, 0.35);
}

.btn-continue:active {
  transform: scale(0.97);
}

/* Mobile & Tablet Breakpoint (< 768px) */
@media (max-width: 768px) {
  .step-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .options-group {
    grid-template-columns: 1fr;
  }

  .desktop-value-box {
    display: none;
  }

  .btn-continue {
    flex: 1;
    min-width: auto;
  }
}
