/* ================================================
   Goals Setup Form - Multi-Step Wizard
   ================================================ */

:root {
  --mcc-primary: #1AB69D;
  --mcc-primary-alt: #31B978;
  --mcc-secondary: #EE4A62;
  --mcc-connections-color: #3B82F6;
  --mcc-achievements-color: #F59E0B;
  --mcc-care-color: #10B981;
  --mcc-finances-color: #8B5CF6;
}

.mcc-goals-setup-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Progress Bar */
.mcc-progress-wrapper {
  margin-bottom: 3rem;
}

.mcc-progress-bar-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.mcc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mcc-primary) 0%, var(--mcc-primary-alt) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 12.5%; /* 1 of 8 steps */
}

.mcc-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mcc-progress-text {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.mcc-timeframe-indicator {
  font-size: 0.938rem;
  color: var(--mcc-primary);
  margin: 0;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  background: rgba(26, 182, 157, 0.1);
  border-radius: 999px;
}

/* Form Container */
.mcc-goals-form-container {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 3rem 2rem;
  position: relative;
  min-height: 550px;
}

/* Steps */
.mcc-goal-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.mcc-goal-step.active {
  display: block;
}

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

.mcc-goal-step-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Icon Wrapper */
.mcc-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mcc-icon-connections {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.mcc-icon-achievements {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.mcc-icon-care {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.mcc-icon-finances {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.mcc-icon-user {
  background: linear-gradient(135deg, #1AB69D 0%, #31B978 100%);
}

/* Intro Text (explanatory paragraphs) */
.mcc-intro-text {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 100%);
  border-left: 4px solid var(--mcc-primary);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem 0;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mcc-intro-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mcc-intro-paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
  text-align: left;
}

/* Category Title (at top) */
.mcc-category-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  text-align: center;
}

/* Step Question (bold, after description) */
.mcc-step-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.5rem 0 0.5rem 0;
  line-height: 1.4;
}

/* Step Hint (small text below question) */
.mcc-step-hint {
  font-size: 0.938rem;
  color: #6b7280;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  font-style: italic;
}

/* Legacy: Step Title & Subtitle (for guest info step) */
.mcc-step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.mcc-step-subtitle {
  font-size: 1.063rem;
  color: #6b7280;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

/* Goals Input List */
.mcc-goals-input-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mcc-goal-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mcc-goal-input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
  background: #ffffff;
}

.mcc-goal-input:focus {
  outline: none;
  border-color: var(--mcc-primary);
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.1);
}

.mcc-goal-input::placeholder {
  color: #9ca3af;
}

.mcc-remove-goal-btn {
  padding: 0.5rem;
  background: #fee2e2;
  border: none;
  border-radius: 0.375rem;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcc-remove-goal-btn:hover {
  background: #fecaca;
  transform: scale(1.05);
}

/* Add Goal Button */
.mcc-add-goal-btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.mcc-add-goal-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #4b5563;
}

/* Guest Info Inputs */
.mcc-input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.mcc-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.mcc-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.mcc-input:focus {
  outline: none;
  border-color: var(--mcc-primary);
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.1);
}

/* Navigation Buttons */
.mcc-form-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.mcc-btn {
  padding: 0.875rem 2rem;
  font-size: 1.063rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mcc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mcc-btn:active {
  transform: translateY(0);
}

.mcc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.mcc-btn-primary {
  background: linear-gradient(135deg, var(--mcc-primary) 0%, var(--mcc-primary-alt) 100%);
  color: #ffffff;
}

.mcc-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.mcc-btn-secondary:hover {
  background: #e5e7eb;
}

.mcc-btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
}

/* Status Messages */
.mcc-status-message {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  display: none;
  text-align: center;
}

.mcc-status-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.mcc-status-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Loading State */
.mcc-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

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

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

/* Transition Step (Intermidiary) */
.mcc-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.mcc-transition-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.mcc-transition-icon i {
  color: var(--mcc-primary);
}

.mcc-transition-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.mcc-transition-message {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0 0 1rem 0;
  line-height: 1.7;
  max-width: 600px;
}

.mcc-transition-message strong {
  color: var(--mcc-primary);
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .mcc-goals-setup-wrapper {
    padding: 1.5rem 0.75rem;
  }
  
  .mcc-goals-form-container {
    padding: 2rem 1.25rem;
    min-height: 500px;
  }
  
  .mcc-icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .mcc-intro-text {
    padding: 1.25rem 1.25rem;
    margin: 0 0 1.5rem 0;
  }
  
  .mcc-intro-heading {
    font-size: 1.125rem;
  }
  
  .mcc-intro-paragraph {
    font-size: 0.938rem;
    line-height: 1.6;
  }
  
  .mcc-category-title {
    font-size: 1.625rem;
  }
  
  .mcc-step-question {
    font-size: 1.125rem;
  }
  
  .mcc-step-hint {
    font-size: 0.875rem;
  }
  
  .mcc-step-title {
    font-size: 1.5rem;
  }
  
  .mcc-step-subtitle {
    font-size: 1rem;
  }
  
  .mcc-transition-title {
    font-size: 1.875rem;
  }
  
  .mcc-transition-message {
    font-size: 1rem;
  }
  
  .mcc-transition-icon {
    font-size: 3rem;
  }
  
  .mcc-progress-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .mcc-progress-text,
  .mcc-timeframe-indicator {
    text-align: center;
  }
  
  .mcc-goal-input {
    padding: 0.75rem 0.875rem;
    font-size: 0.938rem;
  }
  
  .mcc-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .mcc-form-nav {
    margin-top: 2rem;
  }
}

