/* ============================================
   Astra Kommune-sjekk
   ============================================ */

.aks-widget {
  font-family: inherit;
  max-width: 100%;
}

.aks-widget .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------- Tittel ------------- */

.aks-widget__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

/* ------------- Input-feltet ------------- */

.aks-widget__field {
  position: relative;
  margin-bottom: 1rem;
}

.aks-widget__input {
  width: 100%;
  padding: 1.25rem 1.25rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: #ffffff;
  border: 2px solid #0d1119;
  border-radius: 6px;
  box-sizing: border-box;
  color: #0d1119;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aks-widget__input::placeholder {
  color: #6a6a6a;
}

.aks-widget__input:hover {
  border-color: #054a81;
}

.aks-widget__input:focus {
  outline: none;
  border-color: #054a81;
  box-shadow: 0 0 0 3px rgba(5, 74, 129, 0.15);
}

/* ------------- Dropdown med forslag ------------- */

.aks-widget__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 2px solid #0d1119;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}

.aks-widget__suggestions[hidden] {
  display: none;
}

.aks-suggestion {
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #0d1119;
}

.aks-suggestion:last-child {
  border-bottom: none;
}

.aks-suggestion:hover,
.aks-suggestion:focus {
  background: rgba(0, 0, 0, 0.04);
}

/* ------------- Resultat-boks ------------- */

.aks-widget__result {
  margin-top: 0.75rem;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
}

.aks-widget__result[hidden] {
  display: none;
}

.aks-widget__result--success {
  background: #E2F5EA;
}

.aks-widget__result--failure {
  background: #f3f3f3;
  border: 1px solid #d0d0d0;
}

.aks-result__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.aks-result__body {
  flex: 1;
  min-width: 0;
}

.aks-result__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #0d1119;
}

.aks-result__readmore {
  margin: 0;
  font-size: 1rem;
  color: #0d1119;
}

.aks-result__readmore a {
  color: inherit;
  text-decoration: underline;
}

.aks-result__readmore a:hover {
  text-decoration: none;
}

/* ------------- Astra-symbol ------------- */

.aks-result__icon {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aks-result__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 480px) {
  .aks-result__icon {
    width: 80px;
    height: 80px;
  }
}
