body {
  --bg-color: #f7f9fc;
  --text-color: #333;
  --panel-bg: #fff;
  --panel-text: #333;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;   /* tighter, cleaner */
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

header {
  background: #2b6cb0;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;  /* slightly tighter for bold titles */
  margin-bottom: 0.2rem;
}

h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.container {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="number"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  color: #333;
}

button {
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #225ea8;
}

.result {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a202c;
  background: #edf2f7;
  padding: 1rem;
  border-radius: 8px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 2rem;
  background: #f1f1f1;
}

/* ---- Home screen grid ---- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: white;
  border-radius: 10px;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.icon-placeholder {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #cbd5e0;
  border-radius: 12px;
}

.icon-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
}

select.full-width {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
}
/* Responsive tweaks for screens under 600px */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  header {
    padding: 1.2rem 0.8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .container {
    margin: 1rem;
    padding: 1rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .card {
    padding: 1rem;
  }

  button {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  footer {
    padding: 1rem;
  }
}
.guide-button {
  position: absolute;
  top: 2.5rem;
  right: 1rem;
  z-index: 999;
  background: #1a4d8f;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 1s ease-out forwards;
  transition: background 0.3s ease;
}

.guide-button:hover {
  background: #143a6f;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html { scroll-padding-top: 100px; }
@keyframes flash {
  0%   { background-color: #e6f0ff; }
  50%  { background-color: #cde0ff; }
  100% { background-color: #e6f0ff; }
}

section.active {
  animation: flash 0.6s ease;
}
.back-home {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #1a4d8f;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s;
}
.back-home:hover {
  background: #143a6f;
}
@media (max-width: 600px) {
  .button {
    font-size: 14px;
    padding: 8px 12px;
    width: auto;
    display: inline-block;
    margin: 10px auto;
  }
}
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .container,
  .calculator-box,
  .result-box {
    padding: 15px;
    margin: 10px 0;
  }

  input,
  select,
  button {
    font-size: 1rem;
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 1.4rem;
  }
}
#cookieOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#cookiePopup {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

#cookiePopup h2 {
  margin-top: 0;
  font-size: 20px;
  color: #222;
}

#cookiePopup p {
  font-size: 14px;
  color: #555;
  margin: 15px 0;
}

#cookiePopup a {
  color: #007bff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

#acceptCookies {
  background-color: #4caf50;
  color: white;
}

#declineCookies {
  background-color: #f44336;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media screen and (max-width: 480px) {
  #cookiePopup {
    width: 90%;
    padding: 20px;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-buttons button {
    width: 100%;
  }
}
/* Contact Page Styling */
.contact-content {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

form {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

form button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #45a049;
}

#thankYouPopup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

#thankYouPopup .popup {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#thankYouPopup h2 {
  margin-top: 0;
}

@media screen and (max-width: 600px) {
  .contact-content {
    padding: 15px;
  }

  form {
    padding: 20px;
  }
}

.acontent {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #f7f9fc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

    html {
      scroll-padding-top: 70px; /* Fix scroll offset */
    }
    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      margin: 0;
      padding: 0;
      background: #f7f9fc;
      color: #333;
    }
    header {
      background: #1a4d8f;
      color: white;
      padding: 1rem;
      text-align: center;
    }
    h1 {
      margin: 0;
      font-size: 1.8rem;
    }
    nav {
     display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: #e2e8f0;
  padding: 1rem;
}
    
    nav a {
      background: #1a4d8f;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      text-decoration: none;
      font-size: 0.9rem;
    }
    nav a:hover {
      background: #143a6f;
    }
    main {
      max-width: 900px;
      margin: auto;
      padding: 2rem 1rem;
    }
    section {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      transition: background-color 0.3s;
    }

    /* Flash animation */
    @keyframes flash {
      0% {
        background-color: #e6f0ff;
      }
      50% {
        background-color: #cde0ff;
      }
      100% {
        background-color: #e6f0ff;
      }
    }

    section.active {
      animation: flash 0.6s ease;
    }

    section h2 {
      margin-top: 0;
      color: #1a4d8f;
    }
    a.inline-link {
      color: #1a4d8f;
      text-decoration: underline;
    }
    @media (max-width: 600px) {
      nav {
        flex-direction: column;
        align-items: center;
      }
    }
  