/* ===================================================================
   GLOBAL STYLES - General HTML elements and base styling
   ================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  text-align: center;
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}
body.alert-open ::-webkit-scrollbar {
  background-color: #ccc;
}
body.alert-open ::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
}

#title {
  font-size: 35px;
  text-transform: uppercase;
  padding-top: 110px;
}


/* ===================================================================
   NAVIGATION BAR
   ================================================================== */
#navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 50%;
  font-family: "Roboto", sans-serif;
  gap: 32px;
  z-index: 5;
}
.navknapper {
  float: none;
  display: inline-block;
  font-size: 14px;
  color: #1e293b;
  text-align: center;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
}
.navknapper:hover {
  color: #57a3f5;
  transform: translateY(-2px);
}
#kontaktknapp {
  background-color: white;
  position: absolute;
  right: 20px;
  top: 25px;
  font-size: 14px;
  color: #57a3f5;
  text-align: center;
  padding: 0px 16px;
  border: 2px solid #57a3f5;
  border-radius: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.5s, color 0.5s, transform 0.4s ease-in-out;
}
#kontaktknapp:hover {
  background-color: #57a3f5;
  color: white;
}


/* ===================================================================
   MAIN CONTENT & FORM
   ================================================================== */
.section {
  height: 100vh;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
}
.contact-form {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-form input,
#message {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
  display: block;
  box-sizing: border-box;
  font-size: 14px;
  height: 40px;
}
#name,
#phone-number,
#velgfag,
#velgsted {
  width: 400px;
}
#message {
  width: 400px;
  height: 120px;
  font-family: "Roboto", sans-serif;
  resize: none;
}
#inputMail {
  width: 400px;
}
#velgfag,
#velgsted {
  text-align: left;
  margin-left: 25px;
  margin-top: 10px;
}
.contact-form button {
  background-color: white;
  font-weight: 700;
  color: black;
  padding: 10px 20px;
  border: 2px solid #57a3f5;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  width: 400px;
  transition: background-color 0.5s, color 0.5s, transform 0.4s ease-in-out;
  margin-bottom: 100px;
  margin-top: -50px;
}
.contact-form button[type="submit"]:hover {
  background-color: #57a3f5;
  color: white;
}
#submit-btn {
  margin-top: 35px;
}

#alert {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 10px 20px;
  background: #79c879;
  color: #fff;
  margin-top: -143px;
  display: none;
  width: 360px;
  border-radius: 3px;
  z-index: 1;
  height: 22px;
  padding-bottom: 27px;
}


/* ===================================================================
   CHECKBOX & CUSTOM INPUT STYLES
   ================================================================== */
#checkcheck {
  opacity: 0;
}
#link {
  color: #57a3f5;
  font-weight: 700;
  margin-left: 4px;
}
#checkcheck:checked + .cbx span:first-child {
  background: #57a3f5;
  border-color: #57a3f5;
  animation: wave-4 0.4s ease;
}
#checkcheck:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
  visibility: visible;
}
.checkbox-wrapper-4 * {
  box-sizing: border-box;
}
.checkbox-wrapper-4 {
  display: flex;
  flex-direction: column;
}
.checkbox-wrapper-4 .cbx {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.checkbox-wrapper-4 .cbx span {
  display: flex;
  align-items: center;
  transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-4 .cbx span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transform: scale(1);
  border: 1px solid #cccfdb;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px rgba(0, 16, 75, 0.05);
}
.checkbox-wrapper-4 .cbx span:first-child svg {
  width: 12px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(2px, 0, 0);
}
.checkbox-wrapper-4 .cbx span:last-child {
  padding-left: 8px;
  line-height: 18px;
}
.checkbox-wrapper-4 .cbx:hover span:first-child {
  border-color: #57a3f5;
}
.checkbox-wrapper-4 .inp-cbx {
  position: absolute;
  visibility: visible;
}
.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
  background: #57a3f5;
  border-color: #57a3f5;
  animation: wave-4 0.4s ease;
}
.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}
.checkbox-wrapper-4 .inline-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
}
@keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}
textarea {
  cursor: text;
  z-index: 1;
  position: relative;
}
select {
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
  padding: 3px;
  border: 1px solid #ccc;
}


/* ===================================================================
   ANIMATION KEYFRAMES
   ================================================================== */
@keyframes Rbluec {
  from {
    color: #57a3f5;
  }
  to {
    color: white;
  }
}
@keyframes btnbcolor {
  from {
    background-color: none;
  }
  to {
    background-color: #57a3f5;
  }
}
@keyframes Rbtnbcolor {
  from {
    background-color: #57a3f5;
  }
  to {
    background-color: none;
  }
}
@keyframes btncolor {
  from {
    color: black;
  }
  to {
    color: white;
  }
}
@keyframes Rbtncolor {
  from {
    color: white;
  }
  to {
    color: black;
  }
}