:root {
  --accent: #2c7be5;
  --bg: #f7f9fc;
  --card: #fff;
  --muted: #6b7280;
  --error: #b91c1c;
  --ok: #16a34a;
  --header-bg: #1A1A33;
  --footer-bg: #1A1A33;
  --gold: #FFD700;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: #111;
}

/* Navigation */
nav {
  background-color: #003366;
  padding: 16px 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #FFD700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 16px; /* same as review page */
  font-weight: 500;     /* ensure thickness */
}

nav a:hover {
  background-color: #FFD700;
  color: #003366;
}


/* Header */
header {
  background: #1a1a2e;
  color: #FFD700;
  text-align: center;
  padding: 30px 20px;
}

header h1, header p {
  color: #FFD700; /* consistent yellow/golden */
}

header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600; /* same boldness as review page */
}


/* Main */
main {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 22px rgba(18, 38, 63, 0.06);
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 15px;
}

button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.reset-btn {
  background: #f3f4f6;
  color: #111;
}

.btn-group {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.breakdown {
  font-family: monospace;
  background: #fbfdff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.note {
  font-size: 13px;
  color: #f59e0b;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
footer {
  background-color: var(--footer-bg); /* your background color */
  color: #ffffff; /* default text color white */
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}

/* Footer Links - Always Gold */
footer a {
  color: var(--gold); /* links gold */
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff; /* optional: change to white on hover */
}

/* Social Icons */
footer .social-links i {
  font-size: 35px;
  margin: 0 10px;
  color: var(--gold); /* icons also gold if you want */
}

footer .social-links i:hover {
  color: #ffffff; /* subtle hover effect */
}

/* Disclaimer */
footer .disclaimer {
  color: #FF0000; /* disclaimer stays red */
  font-weight: bold;
  margin-top: 15px;
}

footer .disclaimer a {
  color: var(--gold); /* links in disclaimer gold as well */
  text-decoration: underline;
}

footer .disclaimer a:hover {
  color: #ffffff; /* hover effect for disclaimer links */
}

/* ✅ Mobile full-width fix */
@media (max-width: 768px) {
  nav, header, footer {
    width: 100vw;             /* force full viewport width */
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  nav {
    justify-content: center;  /* keep links centered */
    flex-wrap: wrap;          /* wrap on small screens */
  }

  header h1,
  header p,
  footer {
    text-align: center;
  }
}
