/* Loan EMI Calculator Styles */
.tool-hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tool-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.tool-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.calc-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.calc-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-card h2 i { color: #0ea5e9; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field input {
  width: 100%;
  background: var(--bg, #ffffff);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.form-field input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: all 0.2s;
}
.calc-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14,165,233,0.35);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.result-card {
  background: var(--bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
}
.result-card .rc-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  opacity: 0.7;
}
.result-card .rc-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.result-card.highlight {
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
  border-color: #7dd3fc;
}
.result-card.highlight .rc-value { color: #0ea5e9; font-size: 2rem; }
.schedule-container {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1rem;
  border-radius: 12px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.schedule-table th, .schedule-table td {
  padding: 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.schedule-table th:first-child, .schedule-table td:first-child { text-align: left; }
.schedule-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  font-weight: 700;
}
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #0ea5e9;
  padding-left: 0.75rem;
}
.content-section p {
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted, #6b7280);
}
.steps-box {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-pill {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.feature-pill strong {
  color: #0ea5e9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.feature-pill p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}
.faq-item {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.65;
}
.related-list {
  list-style: none;
  padding: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--text-muted, #6b7280);
  transition: color 0.15s;
}
.related-list a:hover { color: #0ea5e9; }
.related-list a::before {
  content: "→";
  color: #0ea5e9;
  font-weight: 700;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111827;
  color: white;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
html[data-theme="dark"] .result-card.highlight {
  background: linear-gradient(135deg, #0c1a2a, #0a1622);
  border-color: #0369a1;
}
html[data-theme="dark"] .feature-pill {
  background: #1a2a3a;
}
html[data-theme="dark"] .schedule-table th {
  background: #1a1a2e;
}