body { font-family: 'Segoe UI', Roboto, sans-serif; background-color: #f8f9fa; color: #333; margin: 0; padding: 40px 20px; }
.container { max-width: 1100px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); overflow: hidden; }

.calculator-header { padding: 40px; border-bottom: 1px solid #dee2e6; }
h1 { color: #002D72; font-size: 28px; margin: 0 0 30px 0; }

.sentence-ui { font-size: 22px; line-height: 2.2; color: #444; }
.sentence-ui select, .sentence-ui input {
  border: none;
  border-bottom: 2px dashed #0056b3;
  font-size: 22px;
  font-weight: 700;
  color: #002D72;
  padding: 2px 5px;
  background: transparent;
  outline: none;
  transition: all 0.3s;
  text-align: center;
}
.sentence-ui input { width: 140px; }
.sentence-ui select { cursor: pointer; }
.sentence-ui select:hover, .sentence-ui input:hover { background: #f0f7ff; }

.results-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 40px; }
.metrics { display: flex; flex-direction: column; gap: 15px; }
.metric-card { padding: 20px; border-radius: 8px; border: 1px solid #dee2e6; background: #fff; }
.metric-card.savings { border: 2px solid #28a745; background: #f0fff4; }
.label { font-size: 13px; font-weight: 700; color: #666; text-transform: uppercase; display: block; margin-bottom: 5px; }
.value { font-size: 28px; font-weight: 800; color: #002D72; }
.savings .value { color: #28a745; }

.chart-wrapper { position: relative; min-height: 350px; background: #fff; padding: 10px; border-radius: 8px; border: 1px solid #dee2e6; }

.footer { padding: 20px 40px; background: #f1f3f5; font-size: 13px; color: #777; border-top: 1px solid #dee2e6; }

@media (max-width: 850px) {
  .results-panel { grid-template-columns: 1fr; }
  .sentence-ui { font-size: 18px; }
  .sentence-ui input { width: 100px; font-size: 18px; }
}

/* Lead Generation Section */
.lead-capture-section {
  margin-top: 40px;
  padding: 30px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}

.cta-header h3 {
  margin: 0 0 10px 0;
  color: #1a202c;
  font-size: 1.5rem;
}

.cta-header p {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

/* Form Layout */
#lead-gen-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 10px;
}

#lead-gen-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#lead-gen-form input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Submit Button */
#submit-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#submit-btn:hover {
  background-color: #218838;
}

#submit-btn:active {
  transform: translateY(1px);
}

#submit-btn:disabled {
  background-color: #a1d9b1;
  cursor: not-allowed;
}

/* Responsive Fix */
@media (max-width: 480px) {
  .form-row {
      flex-direction: column;
  }
}

/* Success Message */
#form-feedback {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}