/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #004e92;
  color: white;
  padding: 1rem;
  text-align: center;
}

main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.calculator-card h2 {
  margin-bottom: 1rem;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
}

input {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: #004e92;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0058a6;
}

.results {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: none;
}

.results h3 {
  margin-bottom: 0.5rem;
}

.ad-container {
  text-align: center;
  margin: 1rem 0;
}

footer {
  background: #004e92;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Mobile Fullscreen */
@media (max-width: 768px) {
  body, html {
    height: 100%;
  }
  main {
    flex: 1;
    justify-content: center;
  }
  .calculator-card {
    width: 100%;
    height: auto;
  }
}

.reference-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.reference-link a {
  color: #004e92;
  text-decoration: none;
  font-weight: 600;
}

.reference-link a:hover {
  text-decoration: underline;
}

.faq-section h2 {
  color: #004e92;
}
