:root {
  --imants-blue: #0c2d5c;
  --imants-yellow: #f2aa00;
  --imants-light-grey: #f8f9fa;
  --imants-dark-grey: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

.body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--imants-light-grey);
  color: var(--imants-dark-grey);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: white;
  border-bottom: 4px solid var(--imants-yellow);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
  height: 50px;
}

.logo-container img {
  height: 100%;
  object-fit: contain;
}

main, #app {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(12, 45, 92, 0.03) 0%, rgba(242, 170, 0, 0.05) 100%);
}

.search-card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--imants-blue);
}

.search-card h1 {
  color: var(--imants-blue);
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 700;
}

.search-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label.hoofd-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--imants-blue);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  /* Box-shadow toegevoegd aan de transitie voor een vloeiende animatie */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

/* Aangepast voor betere toegankelijkheid (duidelijke focus state) */
.form-control:focus {
  outline: none;
  border-color: var(--imants-yellow);
  box-shadow: 0 0 0 3px rgba(242, 170, 0, 0.3);
}

/* Taal Selector bovenin */
.lang-selector {
  display: flex;
  gap: 10px;
}

.lang-selector input[type="radio"] {
  display: none;
}

.lang-selector label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: white;
  border: 2px solid #e0e0e0;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #666;
  margin-bottom: 0;
}

.lang-selector input[type="radio"]:checked + label {
  background-color: var(--imants-blue);
  border-color: var(--imants-blue);
  color: white;
}

.lang-selector label:hover {
  border-color: var(--imants-blue);
  color: var(--imants-blue);
}

/*.lang-selector .flag-icon {*/
/*  width: 22px;*/
/*  height: auto;*/
/*  border-radius: 2px;*/
/*  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);*/
/*}*/

.flag-icon {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px; /* Optioneel: subtiele afgeronde hoekjes */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Optioneel: lichte schaduw voor contrast op een witte achtergrond */
  vertical-align: middle;
  flex-shrink: 0; /* Voorkomt dat de vlag vervormt in een Flexbox layout */
}


/* --- Zoekknop --- */
.btn-submit {
  width: 100%;
  background-color: var(--imants-yellow);
  color: var(--imants-blue);
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  /* Flexbox voor perfecte uitlijning van tekst en pijl */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover:not(:disabled) {
  background-color: #e6a200;
}

.btn-submit:disabled {
  background-color: #cccccc;
  color: #888888;
  cursor: not-allowed;
}

/* Styling en animatie voor de chevron (pijl) */
.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

/* Laat de pijl subtiel naar rechts schuiven bij hover */
.btn-submit:hover:not(:disabled) .btn-icon {
  transform: translateX(5px);
}

/* --- Meldingen (Alerts) met Icoontjes --- */
.alert {
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Resultaten Lijst Items --- */
.result-box {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #e0e0e0;
}

.result-box h3 {
  color: var(--imants-blue);
  font-size: 16px;
  margin-bottom: 15px;
}

.manual-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.manual-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: var(--imants-dark-grey);
  font-weight: 600;
  transition: all 0.2s ease;
}

.manual-item-link:hover {
  border-color: var(--imants-blue);
  background-color: rgba(12, 45, 92, 0.02);
}

.manual-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- HIGHLIGHT STYLING --- */
.manual-item-link.highlighted {
  border-color: var(--imants-yellow);
  background-color: rgba(242, 170, 0, 0.04);
  box-shadow: 0 4px 12px rgba(242, 170, 0, 0.1);
}

.highlight-badge {
  background-color: var(--imants-yellow);
  color: var(--imants-blue);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer {
  background-color: var(--imants-blue);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

footer a {
  color: var(--imants-yellow);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}
/* ==========================================
   Email Field & Tooltip
   ========================================== */

/* Zorgt dat het label en de tooltip-wrapper strak naast elkaar op 1 regel staan */
.label-with-tooltip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px;
}

/* Wrapper voor het icoon en de popover */
.tooltip-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer;
}

/* Het blauwe ronde vraagteken-icoon */
.help-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: var(--imants-blue) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  font-family: sans-serif !important;
  user-select: none;
  margin-top: -3px !important;
  transition: background-color 0.2s ease;
}

/* Hover-effect op het vraagteken */
.tooltip-wrapper:hover .help-icon,
.help-icon:focus {
  background-color: var(--imants-yellow) !important;
  outline: none;
}

/* De popover box met uitleg */
.tooltip-box {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 8px 12px;
  background-color: #2c3e50;
  color: #ffffff;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.4;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  pointer-events: none;
  white-space: normal;
  text-align: left;
}

/* Pijltje aan de onderkant van de popover box */
.tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #2c3e50 transparent transparent transparent;
}


@media (max-width: 600px) {
  .search-card {
    padding: 30px 20px;
    border-radius: 0;
    border-top: none;
    border-left: 6px solid var(--imants-blue);
  }

  header {
    padding: 15px 20px;
  }
}
