/* =========================
   Credit Card Balance Transfer or Not Calculator Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(27,102,255,0.08), transparent 55%), #f6f9fc;
  color: #0b1b2b;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   Header
   ========================= */
header {
  background: rgba(246,249,252,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,235,243,0.8);
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo img {
  max-width: 150px;
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
}

nav ul li a {
  font-size: 14px;
  color: rgba(11,27,43,0.86);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav ul li a:hover {
  background: rgba(27,102,255,0.08);
  color: #0b2a4a;
}

/* =========================
   Main Layout
   ========================= */
main {
  padding: 56px 5%;
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================
   Calculator Card
   ========================= */
.balance-transfer-calculator {
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid #e5ebf3;
  box-shadow: 0 10px 30px rgba(11, 42, 74, 0.10);
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.balance-transfer-calculator h1 {
  font-size: clamp(30px, 3vw, 40px);
  color: #0b1b2b;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.balance-transfer-calculator h2,
.balance-transfer-calculator h3 {
  font-size: 22px;
  color: #0b1b2b;
  margin-bottom: 10px;
}

.balance-transfer-calculator p {
  font-size: 16px;
  color: #5c6b7a;
  margin-bottom: 20px;
}

/* =========================
   Form Elements
   ========================= */
.balance-transfer-calculator label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
  font-size: 13px;
  color: rgba(11,27,43,0.82);
}

.balance-transfer-calculator input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #e5ebf3;
  background: rgba(255,255,255,0.92);
  font: inherit;
}

.balance-transfer-calculator input:focus {
  outline: none;
  border-color: #1b66ff;
  box-shadow: 0 0 0 3px rgba(27,102,255,0.15);
}

/* =========================
   Buttons
   ========================= */
.balance-transfer-calculator button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1b66ff, #0e4fe6);
  box-shadow: 0 14px 28px rgba(27,102,255,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.balance-transfer-calculator button:hover {
  box-shadow: 0 18px 34px rgba(27,102,255,0.28);
}

.balance-transfer-calculator button:active {
  transform: translateY(1px);
}

/* =========================
   Amortization Tables
   ========================= */
.amortization-section {
  margin-top: 30px;
}

.amortization-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11,42,74,0.10);
}

.amortization-section th,
.amortization-section td {
  padding: 12px;
  text-align: center;
  border: 1px solid #e5ebf3;
  font-size: 0.95rem;
  color: #0b1b2b;
}

.amortization-section th {
  background: linear-gradient(135deg, #1b66ff, #0e4fe6);
  color: #ffffff;
}

.amortization-section tbody tr:nth-child(even) {
  background: rgba(27,102,255,0.05);
}

/* =========================
   Footer
   ========================= */
footer {
  padding: 34px 5%;
  border-top: 1px solid rgba(229,235,243,0.9);
  background: rgba(255,255,255,0.55);
  text-align: center;
  font-size: 13px;
  color: #5c6b7a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11,42,74,0.1);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .balance-transfer-calculator {
    padding: 24px;
  }

  .amortization-section table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .balance-transfer-calculator h1 {
    font-size: 24px;
  }

  .amortization-section th,
  .amortization-section td {
    padding: 6px;
    font-size: 0.75rem;
  }
}