/* ---------------- General ---------------- */
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f1f4f8;
  color: #2f2f2f;
  line-height: 1.5;
}

/* ---------------- Header ---------------- */
header {
  background: linear-gradient(135deg, #004aad, #003080);
  color: white;
  text-align: center;
  padding: 30px 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  margin: 8px 0 18px;
  font-weight: 400;
  opacity: 0.95;
}

/* ---------------- NAV TABS ---------------- */
.nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.nav-tabs button {
  background: #ffffff;
  border: 2px solid #004aad;
  color: #004aad;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-tabs button:hover,
.nav-tabs button.active {
  background: #004aad;
  color: white;
  transform: translateY(-2px);
}

/* ---------------- SEARCH ---------------- */
.search-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.search-box input {
  flex: 1 1 260px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cfd6e0;
  font-size: 1em;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #004aad;
  box-shadow: 0 0 0 3px rgba(0,74,173,0.15);
}

.search-box button {
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  background: #004aad;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s, transform 0.15s;
}

.search-box button:hover {
  background: #003080;
  transform: translateY(-2px);
}

/* ---------------- Selection Boxes ---------------- */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

.selection-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.selection-box select {
  flex: 1 1 200px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cfd6e0;
  background: white;
  font-size: 0.95em;
}

.selection-box button {
  flex: 1 1 180px;
  padding: 12px;
  border-radius: 8px;
  background: #004aad;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.selection-box button:hover {
  background: #003080;
  transform: translateY(-2px);
}

/* ---------------- Table Styling ---------------- */
.contacts-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  padding: 15px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.results-table th {
  background: #004aad;
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}

.results-table tr {
  transition: background 0.2s;
}

.results-table tr:hover {
  background: #eef3fb;
}

.results-table tr:nth-child(even) {
  background: #f8f9fb;
}

.results-table td {
  border-bottom: 1px solid #e1e6ef;
  word-wrap: break-word;
}

.results-table td a {
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
}

.results-table td a:hover {
  text-decoration: underline;
}

/* Column min-widths */
.results-table th:nth-child(5),
.results-table td:nth-child(5) { min-width: 180px; }

.results-table th:nth-child(7),
.results-table td:nth-child(7) { min-width: 150px; }

/* ---------------- Footer ---------------- */
footer {
  text-align: center;
  padding: 18px 10px;
  background: #1f2937;
  color: #d1d5db;
  margin-top: 40px;
  font-size: 0.9em;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-tabs,
  .search-box,
  .selection-box {
    flex-direction: column;
  }

  .results-table th,
  .results-table td {
    font-size: 0.85em;
  }
}

@media (max-width: 600px) {
  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table th {
    display: none;
  }

  .results-table tr {
    margin-bottom: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 10px;
  }

  .results-table td {
    border: none;
    padding: 6px 0;
  }
}
