/* *:focus {
  outline: 2px solid #9e2a2f;
} */


.formerror {
  border-color: #b6001e !important;
  outline: 2px solid #b6001e !important;
  
}
.formborder {
  outline: 2px solid #b6001e !important;
}

#errormessage {
  box-sizing: border-box;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #b6001e;
  color: #fff;
  border-radius: 0.25rem;
  
}

.form-floating {
    position: relative;
    flex: 1;
  }
  .form-floating > .form-control,
  .form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
  }
  .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  }
  @media (prefers-reduced-motion: reduce) {
    .form-floating > label {
      transition: none;
    }
  }
  .form-floating > .form-control {
    padding: 1rem 0.75rem;
  }
  .form-floating > .form-control::-moz-placeholder {
    color: transparent;
  }
  .form-floating > .form-control::placeholder {
    color: transparent;
  }
  .form-floating > .form-control:not(:-moz-placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  .form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  .form-floating > .form-control:-webkit-autofill {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  .form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  .form-floating > .form-control:not(:-moz-placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  }
  .form-floating > .form-control:focus ~ label,
  .form-floating > .form-control:not(:placeholder-shown) ~ label,
  .form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  }
  .form-floating > .form-control:-webkit-autofill ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  }

  .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .form-select {
      transition: none;
    }
  }
  .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  .form-select[multiple], .form-select[size]:not([size="1"]) {
    padding-right: 0.75rem;
    background-image: none;
  }
  .form-select:disabled {
    background-color: #e9ecef;
  }
  .form-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #212529;
  }
  
  .form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
  }
  
  .form-select-lg {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: 1.25rem;
  }
  
  .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  @media (prefers-reduced-motion: reduce) {
    .form-control {
      transition: none;
    }
  }
  .form-control[type=file] {
    overflow: hidden;
  }
  .form-control[type=file]:not(:disabled):not([readonly]) {
    cursor: pointer;
  }

  .form-control::-webkit-date-and-time-value {
    height: 1.5em;
  }
  .form-control::-moz-placeholder {
    color: #6c757d;
    opacity: 1;
  }
  .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
  }
  .form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
  }
  .form-control::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  @media (prefers-reduced-motion: reduce) {
    .form-control::file-selector-button {
      transition: none;
    }
  }
  .form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: #dde0e3;
  }
  .form-control::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  @media (prefers-reduced-motion: reduce) {
    .form-control::-webkit-file-upload-button {
      -webkit-transition: none;
      transition: none;
    }
  }
  .form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #dde0e3;
  }
  
  .form-control-plaintext {
    display: block;
    width: 100%;
    padding: 0.375rem 0;
    margin-bottom: 0;
    line-height: 1.5;
    color: #212529;
    background-color: transparent;
    border: solid transparent;
    border-width: 1px 0;
  }
  .form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg {
    padding-right: 0;
    padding-left: 0;
  }
  
  .form-control-sm {
    min-height: calc(1.5em + (0.5rem + 2px));
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
  }
  .form-control-sm::file-selector-button {
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    -webkit-margin-end: 0.5rem;
    margin-inline-end: 0.5rem;
  }
  .form-control-sm::-webkit-file-upload-button {
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    -webkit-margin-end: 0.5rem;
    margin-inline-end: 0.5rem;
  }
  
  .form-control-lg {
    min-height: calc(1.5em + (1rem + 2px));
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
  }
  .form-control-lg::file-selector-button {
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem;
    -webkit-margin-end: 1rem;
    margin-inline-end: 1rem;
  }
  .form-control-lg::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem;
    -webkit-margin-end: 1rem;
    margin-inline-end: 1rem;
  }
  
  textarea.form-control {
    min-height: calc(1.5em + (0.75rem + 2px));
  }
  textarea.form-control-sm {
    min-height: calc(1.5em + (0.5rem + 2px));
  }
  textarea.form-control-lg {
    min-height: calc(1.5em + (1rem + 2px));
  }
  
  .form-control-color {
    max-width: 3rem;
    height: auto;
    padding: 0.375rem;
  }
  .form-control-color:not(:disabled):not([readonly]) {
    cursor: pointer;
  }
  .form-control-color::-moz-color-swatch {
    height: 1.5em;
    border-radius: 0.25rem;
  }
  .form-control-color::-webkit-color-swatch {
    height: 1.5em;
    border-radius: 0.25rem;
  }
  
  .toforen {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
  }

  #bestilling-wrapper {
    margin: 200px auto;
    max-width: 1300px;
  }

  #bestilling-wrapper * {
    box-sizing: border-box;
    
  }
  #bestilling-wrapper * :focus, #foldoutbutton-search:focus, #foldoutbutton-menu:focus, #pagesearch:focus, .exec-search:focus { z-index: 999; outline: 4px solid #9e2a2f !important; outline-offset: 2px !important; transition: none !important; text-decoration: none !important; } 

  #bestilling-wrapper * a:active, a:hover { outline: 0 !important } 


#bestilling-wrapper input:not([type=checkbox]):not([type=radio]):focus, input:not([type=checkbox]):not([type=radio]):focus-within {
    border-color: #9e2a2f;
    background: #fff;
    -webkit-box-shadow: 0 0 0 1px #9e2a2f;
    box-shadow: 0 0 0 1px #9e2a2f;
}

#first, #second {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flexthird {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.knapper {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.bilde-box {
    box-sizing: border-box;
    padding: 1rem;
    background-color: #fff;
    outline: 1px solid #9e2a2f;
    border-radius: 0.75rem;

}

.bilde-box label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.bilde-box input[type=radio] {
    visibility: hidden;
}
.bilde-box:has(input:checked) {
    background-color: #9e2a2f !important;
    color: #fff !important;
}

.bilde-box:hover {
    background-color: #9e2a2f;
    color: #fff;
}

.bilde-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    }

    .bilde-box img {
        object-fit: contain;
    }
.next-button {
    width: 50%;
    background-color: #9e2a2f;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 2rem;
    display: flex;
    justify-content: space-between;
}
.next-button:hover, .last-button:hover, .send-button:hover {
    cursor: pointer;

}
.next-button svg {
  margin-top: 6px;
}

.last-button {
    width: 20%;
    background-color: #505051;
    color: #fff;
    border: none;
    padding: 0.95rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    margin: 0px 15px;

}


.three-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 20px;
}

.two-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 18px;
    text-align: center;
}


h3 {
    font-size: 16px;
}

.bigbutton {
    background-color: #fff;
    color: #000;
    border: 1px solid #9e2a2f;
    display: flex;
    flex-direction: column;
    border-radius: 0.25rem;
    width: 50%;
}
.bigbutton label {
  padding: 5px 5px 15px 15px;

}

.bigbutton:hover {
    background-color: #9e2a2f;
    color: #fff;
}

.bigbutton input[type=radio] {
    visibility: hidden;
}
.bigbutton:has(input:checked) {
    background-color: #9e2a2f;
    color: #fff;
}
.bigbutton h3 {
    font-size: 15px;
}
.bigbutton p {
    font-size: 12px;
}



.redBackground {
    background-color: #9e2a2f !important;
    color: #fff !important;
}

.imageupload label {
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: 3px dashed #eaeaeb;
}
header {
  top: 0 !important;
}

::file-selector-button {
    display: none;
  }

  .file-info {
    box-sizing: border-box;
    width:100%;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafb;
  }

  .imageupload label:hover {
    border: 3px dashed #2b50aa;
    background-color: #f2f4fa;
    box-shadow: 0 7px 10px -3px rgb(0 0 0 / 5%), 0 4px 6px -2px rgb(0 0 0 / 3%);
  }

  .file-mp-preview {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px !important;
  }
  .imageupload input[type=file] {
    visibility: hidden;
}

.examples-box {
    box-sizing: border-box;
    padding: 0 0 2rem 0;
    background-color: #fff;
    border-radius: 0.50rem;
    outline: 1px solid #9e2a2f;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;

}

.examples-box p {
    padding: 5px;
}
.examples-box img {
    width: 100%;
    max-height: 295px;
    object-fit: cover;
}

.image-examples {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;

}


.termsbox {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    outline: 1px solid #9e2a2f;
    border-radius: 0.25rem;
    margin-bottom: 20px;
}

label.boxlabel {
    font-size: 16px;
}

textarea {
    height: auto !important;
}

.send-button {
    width: 100%;
    background-color: #9e2a2f;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    cursor: pointer;
}


*:disabled{
  background-color: #6c757d;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
}

.statusactive {
  width: 25px;
  height: 4px;
  background-color: #9e2a2f;
  margin: 30px 2px;
  display: inline-block;
  border-radius: 2px;
}

.statusinactive {
  width: 25px;
  height: 4px;
  background-color: #eaeaeb;
  margin: 30px 2px;
  display: inline-block;
  border-radius: 2px;
}

#sixthButtonLast {
  margin: 20px auto;
}


.dropdown {
  padding: 1rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  background-color: #fff;
}

@media screen and (max-width: 1100px) {
  .bilde-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  #bestilling-wrapper {
    padding: 1.5rem;

}
}
@media screen and (max-width: 900px) {
  .bilde-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* media query under 700px */
@media screen and (max-width: 700px) {
  .image-examples {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  }
  .toforen {
flex-direction:column  
}

.two-buttons {
  flex-direction: column;
}
.bigbutton {
  width: 100%;
}

#bestilling-wrapper {
  padding: 1.5rem;
}

.utsnitt {
  margin-top: 2rem;
}

#date {
  height: calc(6.5rem + 5px)
}

label {
  font-size: 13px !important;
}
p {
  font-size: 14px;
}
.bilde-grid {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
}
#bestilling h4 {
  font-size: 1.2rem !important;
}

.dropdown {
  font-size: 13px !important;
}
}