/* FCG Income Gross Up Calculator - Exact React Replication */

:root {
  --fcg-navy: hsl(210, 69%, 15%);
  --fcg-blue: hsl(191, 74%, 58%);
  --fcg-blue-light: hsl(191, 60%, 70%);
  --fcg-navy-light: hsl(210, 40%, 25%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 69%, 15%);
  --muted-foreground: hsl(210, 30%, 45%);
  --border: hsl(210, 20%, 90%);
  --card: hsl(0, 0%, 100%);
  --secondary: hsl(210, 30%, 95%);
  --accent: hsl(191, 74%, 58%);
  --shadow-soft: 0 4px 20px hsla(210, 69%, 15%, 0.1);
  --shadow-medium: 0 8px 30px hsla(210, 69%, 15%, 0.15);
  --gradient-blue: linear-gradient(135deg, hsl(191, 74%, 58%), hsl(191, 60%, 70%));
  --gradient-primary: linear-gradient(135deg, hsl(210, 69%, 15%), hsl(210, 40%, 25%));
  --gradient-muted: linear-gradient(to bottom right, hsl(0, 0%, 100%), hsl(210, 30%, 95%));
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --success: hsl(142, 76%, 36%);
  --destructive: hsl(0, 84%, 60%);
}

* {
  box-sizing: border-box;
}

.fcg-calculator-container {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem;
  color: var(--foreground);
  background: var(--gradient-muted);
  min-height: 100vh;
}

.fcg-calculator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.fcg-calculator-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.fcg-calculator-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* Card Styling */
.fcg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.fcg-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.fcg-card-content {
  padding: 2rem;
}

.fcg-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
  text-align: center;
}

.fcg-card-subtitle {
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Step Wizard */
.fcg-step-wizard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.fcg-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.fcg-step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.fcg-step-progress-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fcg-navy);
}

.fcg-progress-bar {
  width: 100%;
  height: 0.5rem;
  background: var(--secondary);
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.fcg-progress-fill {
  height: 100%;
  background: var(--fcg-navy);
  transition: width 0.3s ease;
}

.fcg-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fcg-step-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
}

.fcg-step-item.current {
  background: hsla(210, 69%, 15%, 0.1);
  border: 1px solid hsla(210, 69%, 15%, 0.2);
}

.fcg-step-item.completed {
  background: hsla(142, 76%, 36%, 0.1);
  border: 1px solid hsla(142, 76%, 36%, 0.2);
}

.fcg-step-item.upcoming {
  background: hsla(210, 30%, 95%, 0.5);
}

.fcg-step-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.fcg-step-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.fcg-step-number.current {
  background: var(--fcg-navy);
  color: white;
}

.fcg-step-number.completed {
  background: var(--success);
  color: white;
}

.fcg-step-number.upcoming {
  background: var(--secondary);
  color: var(--muted-foreground);
}

.fcg-step-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.fcg-step-text.current {
  color: var(--fcg-navy);
}

.fcg-step-text.completed {
  color: var(--success);
}

.fcg-step-text.upcoming {
  color: var(--muted-foreground);
}

/* Form Elements */
.fcg-form-section {
  margin-bottom: 2rem;
}

.fcg-form-group {
  margin-bottom: 2rem;
}

.fcg-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.fcg-select {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fcg-select:focus {
  outline: none;
  border-color: var(--fcg-navy);
  box-shadow: 0 0 0 3px hsla(210, 69%, 15%, 0.1);
}

/* Slider */
.fcg-slider-container {
  margin: 1rem 0;
}

.fcg-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: var(--secondary);
  outline: none;
  cursor: pointer;
}

.fcg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--fcg-navy);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fcg-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.fcg-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--fcg-navy);
  cursor: pointer;
  border: none;
}

.fcg-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Switch Component */
.fcg-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
}

.fcg-switch-info {
  flex: 1;
}

.fcg-switch-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.fcg-switch-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.fcg-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.fcg-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.fcg-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  transition: .4s;
  border-radius: 1.5rem;
}

.fcg-switch-slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.fcg-switch input:checked + .fcg-switch-slider {
  background-color: var(--fcg-navy);
}

.fcg-switch input:checked + .fcg-switch-slider:before {
  transform: translateX(1.5rem);
}

/* Buttons */
.fcg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.fcg-button-primary {
  background: var(--fcg-navy);
  color: white;
  min-width: 12.5rem;
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.fcg-button-primary:hover {
  background: var(--fcg-navy-light);
  transform: translateY(-1px);
}

.fcg-button-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.fcg-button-outline:hover {
  background: var(--accent);
  color: white;
}

.fcg-button-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.fcg-button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Results Styling */
.fcg-results-container {
  margin-top: 2rem;
}

.fcg-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.fcg-result-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--secondary);
  border-radius: 0.5rem;
}

.fcg-result-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.fcg-result-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1;
}

.fcg-result-value.primary {
  color: var(--fcg-navy);
}

.fcg-result-value.destructive {
  color: var(--destructive);
}

.fcg-result-value.secondary {
  color: var(--accent);
}

/* Chart placeholder */
.fcg-chart-container {
  margin: 2rem 0;
}

.fcg-chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.fcg-chart-placeholder {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.fcg-disclaimer {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 2rem;
}

.fcg-disclaimer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* Animations */
.fcg-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive */
@media (max-width: 768px) {
  .fcg-calculator-header h2 {
    font-size: 1.875rem;
  }
  
  .fcg-calculator-header p {
    font-size: 1rem;
  }
  
  .fcg-card-content {
    padding: 1.5rem;
  }
  
  .fcg-steps-grid {
    grid-template-columns: 1fr;
  }
  
  .fcg-results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .fcg-button-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .fcg-button {
    width: 100%;
  }
  
  .fcg-switch-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .fcg-calculator-container {
    padding: 0.5rem;
  }
  
  .fcg-calculator-header h2 {
    font-size: 1.5rem;
  }
  
  .fcg-card-content {
    padding: 1rem;
  }
  
  .fcg-step-wizard {
    padding: 1rem;
  }
  
  .fcg-result-value {
    font-size: 1.5rem;
  }
}