/* Loan Funnel Styles */

.loan-funnel-container {
  min-height: 100vh;
  background-color: #f8fafc;
  padding: 2rem 1rem;
}

.funnel-header {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.funnel-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.connection-warning {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* Progress Indicator */
.progress-indicator {
  max-width: 48rem;
  margin: 0 auto 3rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.step {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.2s;
  position: relative;
}

.step.completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.step.current {
  background: #3b82f6;
  color: white;
  font-weight: 500;
}

.step.available {
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.step.available:hover {
  background: #e2e8f0;
}

.checkpoint-marker {
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

/* Funnel Content */
.funnel-content {
  max-width: 32rem;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-option input,
.checkbox-option input {
  width: auto;
  margin-right: 0.5rem;
}

/* Buttons */
button.primary {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.15s;
  border: none;
  cursor: pointer;
}

button.primary:hover {
  background-color: #2563eb;
}

button.secondary {
  background-color: #e5e7eb;
  color: #374151;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.15s;
  border: none;
  cursor: pointer;
}

button.secondary:hover {
  background-color: #d1d5db;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Error Panel */
.error-panel {
  text-align: center;
  padding: 3rem 2rem;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-panel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.error-message {
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Error Messages */
.error-message,
.errors {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Grant Cards */
.grant-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.grant-card {
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.grant-card h3 {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.grant-card p {
  color: #64748b;
  margin-bottom: 0.5rem;
}

.grant-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #64748b;
}

/* Info Box */
.info-box {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1.5rem;
}

.info-box p {
  color: #1e40af;
  font-size: 0.875rem;
}

/* Final Roadmap */
.roadmap-summary {
  margin-bottom: 2rem;
}

.summary-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.summary-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.recommendations {
  margin-bottom: 2rem;
}

.option-card {
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: white;
}

.option-card h4 {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.option-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #64748b;
}

.next-steps {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 0.5rem;
}

.next-steps h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.next-steps ol {
  list-style: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #64748b;
}

.cta-section {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.cta-section p {
  margin-bottom: 1rem;
  color: #64748b;
}