/* Globals */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 100vw;
  margin: 0;
  padding: 0;
  background: #dce8ef;
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5em;
}

button, input, select {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5em;
}

.display-none {
  display: none;
}

a {
  color: #07529e;
}

/* Session */
._session {
  display: none;
}

/* Hide by default */
._has_session ._session._session_with {
  display: unset;
}

._no_session ._session_without {
  display: unset;
}

/* Body */
.header {
  background: #1a407d;
  background: linear-gradient(180deg, rgb(26, 64, 125) 0%, rgb(13, 39, 112) 70%, rgb(26, 64, 125) 100%);
}

.header h1 {
  margin: 0;
  padding: 1vh 0 0 0;
  padding-bottom: calc(1vh + 20px);
}

.header h1 a {
  display: block;
  font-size: 1;
  color: transparent;
  background: url(../../img/logo.png) no-repeat 50% 0;
  background-size: auto 100%;
  width: 100%;
  height: 8vh;
}

.footer p {
  font-size: 10px;
  margin: 0;
  padding: 10px 10px 4px;
  color: #566fa6;
  text-align: center;
}

.body {
  border-radius: 20px 20px 0 0;
  overflow: scroll;
  margin: -20px 0 0 0;
  padding: 10px;
  background: #dce8ef;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-height: 81vh;
}

.body > h2 {
  margin: 12px 12px 20px;
  font-weight: 300;
  text-shadow: 0 2px 2px #FFF;
}

.body_content {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.box {
  background: #FFF;
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 10px;
}

.box > h3 {
  margin: 10px 0 20px;
  text-align: center;
  font-weight: 300;
}

.box > h4 {
  margin: 0 0 20px;
  font-weight: 500;
  text-align: center;
}

/* Components */
/*      Popup: */
.popup_background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(15, 17, 59, 0.4) 33%, rgb(0, 0, 0) 100%);
}

.popup_container {
  position: fixed;
  width: 40vw;
  padding: 42px;
  background: #fff;
  margin: 15vh auto;
  border: 1px solid #5c5c5c;
  border-radius: 10px;
  box-shadow: 4px 12px 10px rgba(0, 0, 0, 0.2);
}

/*      Errors: */
.errorpop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #980d0d;
  color: #FFF;
  font-size: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.errorpop li {
  margin: 0 auto;
  padding: 20px 0;
  max-width: 1300px;
}

/*      Help: */
a.help_icon {
  text-decoration: none;
  color: #FFF;
  background: #214595;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  display: inline-block;
  text-align: center;
  line-height: 20px;
}

a.help_icon span {
  opacity: 0;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  background: #072464;
  z-index: 1;
  text-align: left;
  font-size: 14px;
  color: #FFF;
  border-radius: 8px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  height: 0;
  width: 0;
  padding: 0;
}

@-moz-keyframes unhide {
  0% {
    width: fit-content;
    height: fit-content;
    opacity: 0;
  }
  100% {
    width: fit-content;
    height: fit-content;
    opacity: 1;
  }
}
@-webkit-keyframes unhide {
  0% {
    width: fit-content;
    height: fit-content;
    opacity: 0;
  }
  100% {
    width: fit-content;
    height: fit-content;
    opacity: 1;
  }
}
@keyframes unhide {
  0% {
    width: fit-content;
    height: fit-content;
    opacity: 0;
  }
  100% {
    width: fit-content;
    height: fit-content;
    opacity: 1;
  }
}
a.help_icon:hover span {
  animation: unhide 0.3s normal;
  animation-fill-mode: forwards;
  padding: 14px;
}

/*      Loader: */
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(-360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(-360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}
.processIndicator {
  position: absolute;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.5);
}

.processIndicator span {
  left: 50%;
  margin: -15px 0 0 -15px;
  position: absolute;
  top: 50%;
}

.processIndicator span,
.processIndicator-icon {
  display: block;
  width: 30px;
  height: 30px;
  animation: spin 0.5s steps(12, end) infinite;
  background: url(/static/img/spinner.png) 0 0 no-repeat;
  background-size: 100% 100%;
}

.processing::before {
  content: ".";
  color: transparent;
  display: block;
  width: 100%;
  min-height: 200px;
  height: 100%;
  background: url(/static/img/spinner.png) 50% 50% no-repeat;
  animation: spin 0.5s steps(12, end) infinite;
  background-size: 30px 30px;
}

/*      Dropdown: */
.fancydd {
  border-radius: 10px;
  border: 1px solid #a6a9cd;
  background: url(/static/img/dropdown.png) no-repeat 100% 50% #FFF;
  -webkit-appearance: none;
  appearance: none !important;
  padding: 10px 107px 10px 20px;
  outline: 0px;
  -webkit-user-select: none;
}

.fancydd.err {
  box-shadow: 0px 0px 5px rgba(203, 6, 6, 0.5490196078);
  border-color: #cb0606;
}

/* text aread */
textarea {
  border-radius: 10px;
  border: 1px solid #a6a9cd;
  padding: 10px;
  font-family: "Lexend", sans-serif;
  font-size: 14px;
}

textarea.err {
  box-shadow: 0px 0px 5px rgba(203, 6, 6, 0.5490196078);
  border-color: #cb0606;
}

/*      Body Loader*/
.bodyLoader {
  height: 500px;
}

.bodyLoader::before {
  content: ".";
  color: transparent;
  display: block;
  width: 100%;
  min-height: 200px;
  height: 100%;
  background: url(/static/img/spinner.png) 50% 50% no-repeat;
  animation: spin 0.5s steps(12, end) infinite;
  background-size: 30px 30px;
}

/*      Form: */
form {
  display: flex;
  flex-flow: column;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}

form .btn {
  margin-top: 20px;
}

form h2 {
  font-size: 17px;
  margin: 0;
  padding: 0 0 6px;
  text-align: center;
}

form h3 {
  font-size: 14px;
  color: #333;
  font-weight: 300;
  margin: 0;
  padding: 0 0 24px;
  text-align: center;
}

form .cl {
  display: flex;
  gap: 2rem;
}

form ul.err {
  display: none;
  margin: 0;
  padding: 0 20px 26px 20px;
  color: #b80d0d;
}

form ul.err li {
  margin: 0 0 6px;
}

form label {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
}

form label input {
  width: 100%;
  border-width: 0px;
  box-shadow: rgba(0, 0, 0, 0.11) 0px 0px 0px 1px, rgba(0, 0, 0, 0.07) 0px 0px 1px 0px;
  padding: 0.375rem 0.75rem;
  margin: 0;
  box-sizing: border-box;
  outline: transparent solid 2px;
  outline-offset: 2px;
  max-height: 2.25rem;
  aspect-ratio: unset;
  accent-color: rgb(47, 48, 55);
  transition-timing-function: ease;
  transition-duration: 200ms;
  border-radius: 0.375rem;
}

form label input:hover {
  box-shadow: rgba(0, 0, 0, 0.28) 0px 0px 0px 1px, rgba(0, 0, 0, 0.11) 0px 0px 1px 0px;
}

form label input:focus-within {
  box-shadow: rgba(0, 0, 0, 0.28) 0px 0px 0px 1px, rgba(0, 0, 0, 0.11) 0px 0px 1px 0px, rgba(0, 0, 0, 0.11) 0px 0px 0px 4px;
}

form label select,
form label input.error {
  box-shadow: rgba(201, 55, 55, 0.18) 0px 0px 0px 3px, rgb(186, 0, 0) 0px 0px 4px 0px;
}

form label.error {
  display: none !important;
}

/*      Buttons: */
.btn {
  font-size: 16px;
  text-shadow: 0 1px #000;
  display: inline-block;
  background: #0d2770;
  border-radius: 8px;
  background: linear-gradient(180deg, #21419a 0%, rgb(11, 22, 101) 100%);
  border: 1px solid #102d73;
  color: #FFF;
  text-align: center;
  text-decoration: none;
  padding: 8px 25px;
  border-color: #84a3ed #102d73 #021136 #102d73;
}

.btn2 {
  font-size: 1.2em;
  padding: 15px 50px;
}