:root {
  --mndot-blue: #003865;
  --mndot-gray-900: #2e2e2e;
  --mndot-gray-700: #5c5c5c;
  --mndot-gray-100: #f4f4f4;
  --border-radius: 6px;
  --border-color: #d0d0d0;
}

body {
  font-family: "Brandon Grotesque", "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--mndot-gray-100);
  color: var(--mndot-gray-900);
}

.site-header {
  display: flex;
  align-items: center;            /* Vertically center title with logo */
  gap: 1.5rem;
  background: var(--mndot-blue);
  color: white;
  padding: 1.25rem 2rem;
}

.header-logo {
  height: 4rem;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-text h1 {
  margin: 0;
  font-size: 1.5rem;
}

.header-text p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

main {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

section {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

section h2 {
  margin-top: 0;
  color: var(--mndot-blue);
  font-size: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input, select {
  width: 100%;
  padding: 0.45rem;
  margin-top: 0.25rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.static-field {
  width: 100%;
  padding: 0.45rem;
  margin-top: 0.25rem;
  background: var(--mndot-gray-100);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.hint {
  font-size: 0.9rem;
  color: var(--mndot-gray-700);
}

.autocomplete-container {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-item {
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.autocomplete-item:hover {
  background: var(--mndot-gray-100);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.result-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.result-card h3 {
  margin-top: 0;
  color: var(--mndot-blue);
}

.total {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  text-align: left;
}

th {
  background: var(--mndot-gray-100);
}

/* Tooltip styling */
.tooltip-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: top;
  cursor: pointer;
}

.tooltip-icon img {
  width: 100%;
  height: 100%;
}

.tooltip-text {
  visibility: hidden;
  width: 260px;
  background-color: #003366;
  color: #ffffff;
  text-align: left;
  padding: 8px;
  border-radius: 4px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 0.85em;
  line-height: 1.3em;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: pre-line;
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Mobile tooltip styling */
@media (max-width: 600px) {
  .tooltip-text {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;

    top: 20%;
    bottom: auto;
    transform: none;
  }
}


/* FAQ Section Styles */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: bold;
  color: var(--mndot-blue);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.faq-answer {
  color: var(--mndot-gray-900);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-answer p {
  margin: 0 0 0.5rem 0;
}

.faq-answer ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

