body, header section, footer {
  display: flex;
}

body {
  font-family: 'Open Sans','Helvetica Neue',helvetica,arial,verdana,sans-serif;
  color: #5c6471;
  height: 100vh;
  flex-direction: column;
  line-height: 1.35;
}

section {
  flex-grow: 1;
}

h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 2em;
}

a {
  color: #1aaf94;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

label {
  display: block;
  clear: both;
  color: #555555;
  padding-bottom: .5em;
}

.cd-content {
  max-width: 800px;
  margin: 1em auto;
}

.cd-main-content {
  background-color: white;
  padding: 2em;
}

span.mandatory{
  color: #1aaf94;
}

span.errorMessage {
  line-height: 1.7;
  color: #c70000;
}

/* ==== Header ==== */

.headerPanel {
  top: 0;
  width: 100%;
  background-color: white;
  padding: 1.5em;
  border-bottom: 1px solid #E5E5E5;
}

.headerContent {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filler {
  flex-grow: 1;
  width: 1em;
}

.logo {
  display: inline-flex;
}

.logo img {
  height: 40px;
}

.headerText {
  color: #1aaf94;
  display: inline-flex;
  font-size: 2em;
  font-weight: 200;
  padding-left: 0.2em;
}

.headerText a {
  text-decoration: none;
}

.rightSideLogo {
  display: inline-flex;
}

.rightSideLogo img {
  height: 40px;
}

.partnerLabel {
  font-size: 10px;
  padding-right: 1em;
}

.userPanel {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid #E5E5E5;
  padding: 0.5em 1.5em;
}

.userContent {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  font-size: 0.8em;
}

.userName {
  text-align: left;
}

.userName .desktop {
  display: inherit;
}

.userName .mobile {
  display: none;
}

.userDetails {
  padding-left: 0;
  font-size: smaller;
  line-height: 1.2em;
}

.userIcon {
  padding-right: 10px;
  color: #1aaf94;
}

span.mandatory {
  padding-left: .2em;
}

.smallerText {
  font-size: 12px;
  margin-top: 2em;
  margin-bottom: 1em;
}

.backLink-col {
  flex-direction: row-reverse;
}

.backLink {
  font-size: 0.8em;
}

.infoMessage {
  margin: 1em 0;
}

.value {
  margin-bottom: 1em;
}

/* ==== Forms ==== */

.formbody input[type=text], .formbody input[type=password], .formbody select, .formbody textarea {
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  padding: .7em .7em;
  border-radius: 0;
  border: 1px solid #5c6471;
  margin-bottom: 1.5em;
  width: 100%;
  color: #555555;
  line-height: normal;
  transition: border-color .15s ease-out;
}

.formbody input[type=text]:hover, .formbody input[type=password]:hover, .formbody select:hover, .formbody textarea:hover,
.formbody input[type=text]:focus, .formbody input[type=password]:focus, .formbody select:focus, .formbody textarea:focus {
  border-color: #1aaf94;
}

.formbody select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url(../images/arrow-down-16x16.png);
  background-repeat: no-repeat;
  background-position: right .7em top 50%, 0 0;
}

.formbody input[type=checkbox], .formbody input[type=radio] {
  margin-right: .3em;
  width: auto;
  background: none;
  border: none;
  margin-bottom: 0;
}

.formbody .formfield,  .formbody .formfieldleft, .formbody .formfieldright{
  margin-bottom: .2em;
  margin-left: 1px;
}

.formbody .formfieldleft {
  padding-right: 0.5em;
}

.formbody .formfieldmiddle {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.formbody .formfieldright {
  padding-left: 0.5em;
}

.formbody  .afterinput {
  display: flex;
  line-height: 1.7;
}

.formbody input.cdButtonPrimary {
  color: white;
  background-color: #1aaf94;
  border: 0;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  margin-left: 1em;
  margin-bottom: 1em;
  cursor: pointer;
  float: right;
  min-width: 150px;
  transition-duration: 0.15s;
}

.formbody input.cdButtonPrimary:hover {
  background-color: #13806c;
}

.formbody .cdButtonSecondary {
  color: #1aaf94 !important;
  background-color: white;
  border: 1px solid #1aaf94;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  cursor: pointer;
  float: right;
  margin-bottom: 1em;
  min-width: 150px;
}

.formbody input.cdLink {
  color: #1aaf94 !important;
  background-color: white;
  border: none;
  padding: .5em 0.1em;
  margin-right: 1em;
  cursor: pointer;
  float: right;
}

.formbody input.cdLink:hover {
  text-decoration: underline;
}

.formbody textarea.readOnly {
  font-family: Courier, serif;
  font-size: 9pt;
  color: #666;
  width: 100%;
  height: 140px;
  margin-top: 0.5em;
  resize: none;
}

.formbody .submit_container {
  min-height: 2.5em;
  margin-top: 1em;
}

/* ==== Footer ==== */

footer {
  color: #666666;
  padding: 0.5em 2em;
  text-align: center;
  border-top: 1px solid #E5E5E5;
  line-height: 1.5em;
}

.middlePart {
  text-align: center;
  flex-direction: row;
  justify-content: center;
}

.separator {
  margin: 0 1em;
}

.nowrap {
  white-space: nowrap;
}

footer a {
  color: #666666;
  transition: color 0.65s;
  text-decoration: none;
}

footer a:hover {
  color:#1aaf94;
  text-decoration: none;
}

.title-row {
  margin-bottom: 2em;
}

.introMessage-row {
  margin-bottom: 2.5em;
}

.introMessage-row a {
  display: contents;
}

img.cd-captcha {
  margin-left: 1em;
}

/* ==== media settings ==== */

@media (max-width: 576px) {

  .headerPanel {
    padding: 1.2em 1em;
  }

  .headerText {
    font-size: 1em;
  }

 .cd-main-content {
    padding: 0 1em;
  }

  .nowrap {
    white-space: inherit;
  }

  footer {
    font-size: 0.8em;
  }

  /* override layout.css */
  .logo img {
    height: 18px;
  }

  .rightSideLogo img {
    height: 18px;
  }

  img.cd-captcha {
    width: fit-content;
    margin: 0 auto 1em;
  }

  .formbody .formfieldleft {
    padding-right: 0;
  }

  .formbody .formfieldmiddle {
    padding-left: 0;
    padding-right: 0;
  }

  .formbody .formfieldright {
    padding-left: 0;
  }

  .userPanel {
    padding: 0.5em 1em;
  }
  .userName .desktop {
    display: none;
  }

  .userName .mobile {
    display: inherit;
  }
}

/* ==== checkbox/radiobutton styling ==== */

input.cd-hiddenCheckbox, input.cd-hiddenRadiobutton {
  display: none;
}

.cd-checkbox, .cd-radiobutton {
  margin-bottom: 1em;
}

.cd-checkbox label, .cd-radiobutton label {
  cursor: pointer;
  display: flex;
}

.cd-checkbox .switch, .cd-radiobutton .switch {
  padding: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1px solid #1aaf94;
  line-height: 1;
  display: inline-block;
  margin-right: 10px;
}

.cd-radiobutton .switch {
  border-radius: 11px;
}

.cd-checkbox .switch:after, .cd-radiobutton .switch:after {
  content: "";
  width: 14px;
  height: 14px;
  background: #ffffff;
  display: inline-block;
}

.cd-checkbox input:checked  + label .switch:after, .cd-radiobutton input:checked  + label .switch:after {
  background: #1aaf94;
}

.cd-radiobutton input:checked  + label .switch:after {
  border-radius: 7px;
}

.cd-checkbox input:disabled  + label, .cd-radiobutton input:disabled  + label {
  cursor: default;
}

.cd-checkbox input:disabled  + label .switch, .cd-radiobutton input:disabled  + label .switch {
  border-color: #e5e5e5;
}

.cd-checkbox input:disabled:checked  + label .switch:after, .cd-radiobutton input:disabled:checked  + label .switch:after {
  background: #e5e5e5;
}

.couponLink {
  margin-bottom: 1.5em;
}