:root {
  --brand: #0b5ed7;
  --brand-dark: #084298;
  --bg-soft: #f7f9fc;
}

body {
  background: #fff;
  color: #1c1f26;
}

.navbar-brand {
  font-weight: 700;
  color: var(--brand-dark) !important;
}

.hero {
  background: var(--bg-soft);
  padding: 3rem 0;
  border-bottom: 1px solid #e9ecef;
}

.tool-card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  background: #fff;
}

.tool-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ifsc-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brand-dark);
}

.copy-btn {
  cursor: pointer;
}

footer {
  background: #101828;
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

footer a {
  color: #e2e8f0;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .input-group.input-group-lg > .form-control,
  .input-group.input-group-lg > .btn {
    flex: 1 1 100%;
    width: 100%;
    border-radius: 0.375rem !important;
  }
  .input-group.input-group-lg > .form-control {
    margin-bottom: 0.5rem;
  }
}

.breadcrumb-nav {
  font-size: 0.9rem;
}

.bank-link:hover,
.bank-link:focus {
  font-weight: 700;
}

.faq-list {
  counter-reset: faq;
}

.faq-item h2::before {
  counter-increment: faq;
  content: counter(faq) ". ";
}

.navbar .navbar-nav .nav-link {
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus-visible {
  background-color: #e7f0ff;
  color: var(--brand-dark);
}

/* ---- Text pages: About, Contact, Privacy, Terms, guides and calculators ---- */

.legal h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

/* ---- Calculators (templates/pages/tools, static/js/calculators.js) ---- */

.calc-result {
  background: #f4f8ff;
  border: 1px solid #d6e4ff;
  border-radius: 0.5rem;
}

.calc-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark, #0b3d91);
  overflow-wrap: anywhere;
}

.calc-result .progress {
  height: 0.75rem;
}

.calc-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

/* Calculator illustration (pages/tools/_icon.html): do not let flex layouts squash it. */

.tool-icon {
  flex: none;
}

/* ---- Header logo: icon and name side by side ---- */

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo img {
  display: block;
}

.brand-accent {
  color: var(--brand);
  font-weight: 600;
}

/* The "Extra paid" schedule column only shows once the visitor has added extra payments (class set by calculators.js). */

.extra-col {
  display: none;
}

.show-extra .extra-col {
  display: table-cell;
}

/* Keep the section title clear of the sticky header when a link scrolls to #extra-payments. */

#extra-payments {
  scroll-margin-top: 5rem;
}
