/* Reset og basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  padding: 1rem;
  background-color: #f7f7f7;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

/* Skjema-container */
.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Felter og etiketter */
label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Knapp */
button,
input[type="submit"] {
  width: 100%;
  background-color: #1e88e5;
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background-color: #1565c0;
}

/* Sekundær-knapp */
.button-secondary {
  width: 100%;
  background-color: #9e9e9e;
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.button-secondary:hover {
  background-color: #757575;
}

/* Autocomplete-liste */
#autocomplete-liste {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
}

#autocomplete-liste li {
  padding: 0.6rem;
  cursor: pointer;
}

#autocomplete-liste li:hover {
  background-color: #f0f0f0;
}

/* Seksjonsinndeling */
.section {
  margin-bottom: 2rem;
}

/* Kart-container */
#kart {
  width: 100%;
  height: 400px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Responsivitet */
@media screen and (max-width: 600px) {
  body {
    padding: 0.5rem;
  }

  .container {
    padding: 1rem;
  }
}
.alert {
  background-color: #ffe4e1;
  border-left: 4px solid #e53935;
  color: #b71c1c;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}
