/* ===================================================================
   GLOBAL STYLES - General HTML elements and base styling
   ================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  width: 100%;
  text-align: center;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

* {
  box-sizing: border-box;
}
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: 2rem;
  text-transform: uppercase;
  padding-top: 120px;
  padding-bottom: 20px;
  margin: 0;
  margin-bottom: 30px;
}


/* ===================================================================
   NAVIGATION BAR
   ================================================================== */
#navbar {
  position: absolute;
  top: 20px;
  left: 30px;
  transform: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  font-family: "Roboto", sans-serif;
  gap: 0;
  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);
}


form,
.contact-form input,
#message,
#inputMail,
#phone-number,
select {
  max-width: calc(100% - 30px); /* 15px padding på hver side */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
#submit-btn {
    max-width: calc(100% - 30px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* ===================================================================
   MAIN CONTENT & FORM
   ================================================================== */
.section {
  height: auto;
  min-height: 100vh;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  position: relative;
}
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  box-sizing: border-box;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.contact-form input,
#message {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  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: 100px;
  font-family: "Roboto", sans-serif;
  resize: none;
}
#inputMail {
  width: 400px;
}

#velgfag,
#velgsted {
  text-align: left;
  /* margin-left: 25px; */
  margin-top: 35px;
  margin-bottom: 5px;
}

#velgsted {
  padding-top: 130px;
}
#velgsted select{
    margin-top: 10px;
    cursor: pointer;
    padding-left: 10px; 
}

option{
    cursor: pointer;
}

#submit-btn {
  appearance: button;
  background-color: #2f7fca;
  border: solid transparent;
  border-radius: 6px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible; 
  padding: 13px 32px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

#submit-btn:after {
  background-clip: padding-box;
  background-color: #57a3f5;
  border: solid transparent;
  border-radius: 6px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

#submit-btn:focus {
  user-select: auto;
}

#submit-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  -webkit-filter: brightness(1.05);
}

#submit-btn:disabled {
  cursor: auto;
}

#submit-btn:active {
  border-width: 4px 0 0;
  background: none;
}

#submit-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#submit-btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: submitSpinner 0.7s linear infinite;
}

@keyframes submitSpinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#alert {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0px 20px;
  line-height: 1.2;
  background: #79c879;
  color: #fff;
  margin-top: 0px;
  display: none;
  width: 90%;
  border-radius: 6px;
  z-index: 1;
  height: 50px;
}


/* ===================================================================
   CHECKBOX & CUSTOM INPUT STYLES
   ================================================================== */
#checkcheck {
  opacity: 0;
}
#link {
  color: #57a3f5;
  font-weight: 700;
  margin: 0 3px;
  text-decoration: none;
}
#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;
  font-size: 14px;
  min-height: 44px;
}
.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);
  flex-shrink: 0;
  margin-top: 2px;
}
.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: 1.2;
  word-spacing: normal;
  white-space: normal;
}

.checkbox-wrapper-4 .cbx span:last-child {
  display: inline; /* make the text span inline */
  line-height: 1.4em;
}



.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;
}
.checkbox-wrapper-4 .cbx span:last-child a {
  display: inline; /* ensure the link stays inline */
}


@keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}
textarea {
  cursor: text;
  z-index: 1;
  position: relative;
}

/* ===================================================================
   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;
  }
}

.contact-pref {
  width: 400px;
  margin-top: 10px;
  text-align: left;
}

.contact-pref p {
  margin: 0 0 8px 0;
  font-weight: 700;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

#submit-btn{
    width: fit-content;
}


.contact-note,
#velgsted,
#velgfag {
  text-align: left;
  font-size: 15px;
  margin: 10px 0 8px 0px;
}

#velgsted {
  margin-top: 30px;
  margin-bottom: 10px;
}
#contactForm .contact-note {
  width: 100%;
}

em {
    font-style: italic;
    font-weight: 400;
}


#select{
  -webkit-appearance: none;
  appearance: none;
  background-image: url("../images/select_arrow.svg");
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;

}

#betingelser{
    font-size: 13px;
    margin: 0;
    color: #475569;
    text-align: left;
    line-height: 1.6;
}

.service-choice {
  max-width: 480px;
  margin: 0 0 30px 0;
  display: grid;
  gap: 8px;
}

.service-choice p {
  margin: 0 0 4px 0;
  font-weight: 400;
  font-size: 15px;
  color: #0f172a;
}

.service-choice .radio-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #edeff1;
  border: 1px dashed #cbd5e1;
  border-radius: 3px;
  color: #1e293b;
  font-size: 15px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.service-choice .radio-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-choice .radio-item:hover {
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.service-choice .radio-item:has(input:checked) {
  background: #57a3f5;
  color: #ffffff;
  border-color: #57a3f5;
  box-shadow: 0 6px 16px rgba(87, 163, 245, 0.25);
}

@media (max-width: 480px) {
  .service-choice {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }

  .service-choice p {
    grid-column: 1 / -1;
  }

  .service-choice .radio-item {
    padding: 4px 8px;
    font-size: 15px;
  }
}

#contactForm.no-place #velgfag {
  margin-bottom: 170px;
}

/* Package Selection Styles */
#package-selection,
#oppgave-package-selection {
  max-width: 480px;
  margin: 0 0 30px 0;
  width: 100%;
}

.package-label {
  margin: 0 0 12px 0;
  font-weight: 400;
  font-size: 14px;
  color: #0f172a;
  text-align: left;
}

.package-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.package-option {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  padding-left: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
  justify-content: flex-start;
}
.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.package-option:hover {
  border-color: #57a3f5;
  background: #e8f2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(87, 163, 245, 0.15);
}
.package-option:has(input:focus-visible) {
  outline: 2px solid #57a3f5;
  outline-offset: 2px;
}
.package-option:has(input:checked) {
  border-color: #57a3f5;
  background: #e0eaf8;
  box-shadow: 0 2px 6px rgba(87, 163, 245, 0.25);
}

@media (max-width: 768px) {
  .package-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .package-option {
    min-height: auto;
    padding: 10px 8px;
    padding-left: 12px;
  }

}

@media (max-width: 480px) {
  #package-selection {
    max-width: 100%;
  }
  
  .package-label {
    font-size: 13px;
  }
  
  .package-options {
    gap: 6px;
  }
  
  .package-option {
    padding: 8px 6px;
    padding-left: 10px;
    min-height: auto;
  }

}

/* .package-featured{
    border: 2px solid #3b82f6;
} */
#velgstedtekst,
#velgfagtekst {
    margin-left: 0;
    font-weight: 500;
    color: var(--ui-text);
    display: block;
    padding-left: 12px;
}


select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
  padding: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 14px;
  height: 40px;
  display: block;
  margin-bottom: 10px;
  background-color: white;
  color: #9e9e9e;
}

#contactForm {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* .form-frame {
  width: 100%;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px 16px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
} */

.form-frame.form-frame-compact {
  padding-left: 10px;
  padding-right: 10px;
}

.form-frame.form-frame-compact input,
.form-frame.form-frame-compact #message,
.form-frame.form-frame-compact select {
  max-width: calc(100% - 12px);
}

.form-frame > div {
  width: 100%;
}

.form-frame .service-choice,
.form-frame #package-selection,
.form-frame #oppgave-package-selection {
  margin-bottom: 6px;
}

.form-frame #name,
.form-frame #inputMail,
.form-frame #phone-number,
.form-frame #velgfag,
.form-frame #velgsted,
.form-frame #message,
.form-frame select {
  width: 100%;
}

.form-frame #velgsted select {
  margin-bottom: -15px;
}
.form-section #name,
.form-section #inputMail,
.form-section #phone-number {
  margin-bottom: -5px;
}

.form-frame #velgsted {
  padding-top: 110px; /* keep current subject-checkbox spacing behavior */
}

/* ===== Visual refresh overrides ===== */
/* .form-frame {
  border: 1px solid #d6e2f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
} */

.form-frame.form-frame-compact {
  padding-left: 8px;
  padding-right: 8px;
}

.form-frame input,
.form-frame textarea,
.form-frame select {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-frame input:focus,
.form-frame textarea:focus,
.form-frame select:focus {
  outline: none;
  border-color: #57a3f5;
  box-shadow: 0 0 0 3px rgba(87, 163, 245, 0.15);
  background-color: #fff;
}

.contact-note {
  color: #475569;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* Redone "Velg tjeneste" layout */
.service-choice.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px 0;
}

.service-choice.service-choice-grid p {
  grid-column: 1 / -1;
  margin: 0 0 2px 0;
  font-size: 14px;
  color: #0f172a;
  text-align: left;
}

.service-choice.service-choice-grid .radio-item {
  margin: 0;
  min-height: 48px;
  padding: 10px 12px;
  justify-content: flex-start;
  font-weight: 500;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e293b;
  box-shadow: inset 0 0 0 1px transparent;
}

.service-choice.service-choice-grid .radio-item:hover {
  border-color: #8bbcf2;
  background: #eef6ff;
  transform: translateY(-1px);
}

.service-choice.service-choice-grid .radio-item:has(input:checked) {
  border-color: #57a3f5;
  background: #e7f1ff;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #57a3f5, 0 4px 12px rgba(87, 163, 245, 0.18);
}

.service-choice.service-choice-grid .radio-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 520px) {
  .service-choice.service-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* Slightly tighter inner components */
.form-frame.form-frame-compact input,
.form-frame.form-frame-compact #message,
.form-frame.form-frame-compact select {
  max-width: calc(100% - 8px);
}

/* ===== Final UI/UX polish ===== */
:root {
  --ui-bg: #f8fbff;
  --ui-card: #ffffff;
  --ui-line: #d4deea;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-primary: #57a3f5;
  --ui-primary-soft: rgba(87, 163, 245, 0.16);
}

#contactForm {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.form-frame {
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  padding: 18px 12px 14px;
  gap: 12px;

}

.form-frame.form-frame-compact {
  padding-left: 12px;
  padding-right: 12px;
}

#contactForm .form-frame #message,
#contactForm .form-frame select,
#contactForm .form-frame input {
  max-width: 100%;
}

#velgstedtekst,
#velgfagtekst {
  margin-left: 0;
  font-weight: 500;
  color: var(--ui-text);
  display: block;
  padding-left: 12px;
}

.contact-note {
  color: var(--ui-muted);
  font-size: 13px;
  margin: 0 0 2px 0;
}

.form-frame input,
.form-frame textarea,
.form-frame select {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: var(--ui-card);
  color: var(--ui-text);
  min-height: 44px;
  padding: 10px 12px;
}

.form-frame input::placeholder,
.form-frame textarea::placeholder {
  color: #94a3b8;
}

.form-frame input:focus,
.form-frame textarea:focus,
.form-frame select:focus {
  outline: none;
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px var(--ui-primary-soft);
}

#message {
  min-height: 120px;
  height: auto;
  line-height: 1.45;
  resize: vertical;
}

/* Better service choice cards */
.service-choice.service-choice-grid {
  gap: 10px;
  margin: 0 0 14px 0;
}

.service-choice.service-choice-grid p {
  margin: 0 0 4px 0;
  color: var(--ui-text);
  font-weight: 500;
}

.service-choice.service-choice-grid .radio-item {
  min-height: 50px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: var(--ui-bg);
  justify-content: flex-start;
  padding: 10px 12px;
  font-weight: 500;
}

.service-choice.service-choice-grid .radio-item:hover {
  border-color: #9fc6f2;
  background: #eef6ff;
}

.service-choice.service-choice-grid .radio-item:has(input:checked) {
  border-color: var(--ui-primary);
  background: #e8f2ff;
  color: #0b2542;
  box-shadow: inset 0 0 0 1px var(--ui-primary), 0 4px 12px rgba(87, 163, 245, 0.18);
}

/* Package area polish */
#package-selection,
#oppgave-package-selection {
  margin: 2px 0 14px 0;
}

.package-label {
  margin-bottom: 10px;
  color: var(--ui-text);
  font-weight: 500;
}

.package-option {
  border-radius: 12px;
  border-color: #d6e2ef;
  background: #f9fbff;
}

.package-option:hover {
  border-color: #8bbcf2;
  background: #eef6ff;
}

.package-option:has(input:checked) {
  border-color: var(--ui-primary);
  background: #eaf3ff;
}

/* Terms + CTA */
#checkterm {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafcff;
  padding: 4px 6px;
}

#betingelser {
  font-size: 13px;
  margin: 0;
  color: #475569;
  text-align: left;
  line-height: 1.6;
  display: block;
  margin-left: 6px;
}

#submit-btn {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

#submit-btn:focus-visible,
.service-choice .radio-item:has(input:focus-visible),
.package-option:has(input:focus-visible) {
  outline: 3px solid var(--ui-primary-soft);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .form-frame {
    padding: 14px 10px 12px;
    border-radius: 14px;
  }

  #betingelser {
    font-size: 14px;
  }
}

#service-for-who {
  margin: 14px 0 12px 0;
}

#self-age-section,
#other-info-section {
  margin-bottom: 12px;
}

#self-age-section label,
#other-info-section label,
#postnummer-section label,
#location-section label {
  display: block;
  color: var(--ui-text);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
  text-align: left;
}

#age,
#relationship,
#other-name,
#other-age,
#postnummer,
#location {
  width: 100%;
}

#postnummer-section,
#location-section {
  margin-top: 0px;
  margin-bottom: 12px;
}

/* Form Section Styling */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ui-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
  margin-bottom: 4px;
}

.form-section-subtitle {
  font-weight: 400;
  font-size: 13px;
  color: var(--ui-muted);
  margin: 0;
}

.form-section > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-section > div:has(> input),
.form-section > div:has(> textarea) {
  gap: 4px;
}

.form-section input,
.form-section textarea {
  margin: 0;
}

/* Kontaktinformasjon-seksjonen med mindre gap */
.form-section:nth-child(3) > div {
  gap: 4px;
}

#hjemknapp {
  background-color: white;
  /* position: relative;
  right: auto;
  top: auto; */
  font-size: 14px;
  color: #1e293b;
  text-align: center;
  padding: 0px 16px;
  border: 2px solid #1e293b;
  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;
}

#hjemknapp:hover {
  background-color: #1e293b;
  color: white;
}



.package-card {
  /* border: 1px solid #e2e8f0; */
  border: 1px solid #b5bac1;
  /* background: #f8fafc; */
  background: #f1f5f7;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  display: block;
  transition: all 0.2s ease;
  position: relative;
  touch-action: pan-y;
}

.package-card.selected {
  border-color: #57a3f5;
  background: #d5e6fc;
}

.package-badge::before {
  position: absolute;
  right: 8px;
  top: 6px;
  content: "★";           
  font-size: 1.2rem;
  /* color: #ff6f00; */
  color: #fc974a;
}

.package-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.90rem;
  margin-bottom: 4px;
  display: inline;
}

.package-hours {
  color: #64748b;
  font-size: 0.85rem;
  display: inline;
  font-weight: 400;
}

.package-price {
  color: #57a3f5;
  font-weight: 700;
  margin-top: 6px;
  font-size: 0.85rem;
  display: block;
}
ion-icon {
  position: absolute;
  margin: 0;
  font-size: 1.4rem;
  opacity: 0.35;
  right: 42px;
  margin-top: 11px;
  pointer-events: none;
}
#weird-icon{
  right: 42px;
  margin-top: -33px;
}

.field-hint {
  margin-top: -10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.8rem;
}
#charCount {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}