/* FCG Interest Only Calculator - Exact React Replication */

:root {
  --fcg-navy: #0c2641;
  --fcg-blue: #6cd1e9;
  --fcg-grey-border: #e5e7eb;
  --fcg-white: #ffffff;
  --fcg-text-dark: #0c2641;
  --shadow-soft: 0 4px 20px rgba(12, 38, 65, 0.1);
  --shadow-medium: 0 8px 30px rgba(12, 38, 65, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  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(--background);
}

.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.25rem;
  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);
  margin-bottom: 1.5rem;
}

.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;
}

/* 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-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.fcg-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.fcg-section-subtitle {
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

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

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

.fcg-label {
  font-size: 1rem;
  font-weight: 500;
  color: #0c2641;
  margin-bottom: 0;
  white-space: nowrap;
}

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

.fcg-input-group .fcg-label {
  flex: 1;
  min-width: 0;
}

.fcg-input {
  width: 6rem;
  min-width: 6rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #0c2641;
  font-size: 1rem;
  text-align: right;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

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

.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);
}

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

.fcg-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: #0c2641;
  outline: none;
  cursor: pointer;
}

.fcg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #0c2641;
  border: 2px solid #ffffff;
  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: #0c2641;
  border: 2px solid #ffffff;
  cursor: pointer;
}

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

.fcg-helper-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.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: 8rem;
  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: flex-end;
  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: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.fcg-result-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fcg-navy);
  margin-bottom: 1rem;
}

.fcg-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fcg-result-row:last-child {
  margin-bottom: 0;
}

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

.fcg-result-value {
  font-weight: 600;
  color: var(--foreground);
}

.fcg-result-value.large {
  font-size: 1.125rem;
}

.fcg-summary-card {
  background: hsla(210, 30%, 95%, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.fcg-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.fcg-summary-row:last-child {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-bottom: 0;
}

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

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

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

/* 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-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .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%;
  }
}

@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;
  }
}