/* CSS stylesheet for LP - specific styles */

@font-face {
  font-family: 'lp_font_bold';
  src: url('../fonts/amag_text-bold-webfont.ttf') format('truetype');
  src: url('../fonts/amag_text-bold-webfont.woff') format('woff');
}

@font-face {
  font-family: 'lp_font_light';
  src: url('../fonts/amag_text-light-webfont.ttf') format('truetype');
  src: url('../fonts/amag_text-light-webfont.woff') format('woff');
}
/*hacky;)*/
.half-width {
  width: 98%;
}

html {
  font-family: 'lp_font_light';
  font-size: 16px;
  height: 100%;
  margin: 0;
}

select,
input,
textarea {
  font-family: 'lp_font_light';
}

.top-nav span:first-child,
h1 {
  font-family: 'lp_font_bold';
}

* {
  font-size: 1rem;
}

h1 {
  font-size: 2rem;
}

body {
  margin: 0;
  height: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Stick Footer To Bottom, No matter the total size of the page content */
  margin-bottom: 50px;
}

/* Make sure that footer won't overlap page content */
.footer-pusher {
  height: 60px;
}

* {
  box-sizing: border-box;
}

#top-page-container, .header-text-container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.image-container {
  width: 100%;
  margin-bottom: 50px;
}

img {
  width: 100%;
}

.top-nav {
  margin-bottom: 0;
  width: 120px;
}

.top-nav span:not(:first-child) {
  border-left: 2px solid black;
}

.top-nav span {
  padding: 0 10px;
  height: 10px;
}

.top-nav span:first-child {
  padding-left: 0;
}

.top-nav span:first-child {
  padding-left: 0;
  font-weight: bold;
}

.intro-text {
  line-height: 1.6;
  margin: 0;
}

#custom-contact-form {
  width: 100%;
  max-height: 2500px;
  opacity: 1;
  overflow-y: hidden;
  transition: max-height 1s ease-in-out, opacity 1s;
  margin: 0 auto 0 auto;
  max-width: 1020px;
}

.thank-you-par {
  margin-top: 60px;
  font-family: 'lp_font_bold', sans-serif;
  padding: 0 10px 70px 10px !important;
}

.form-heading {
  font-weight: 700;
  font-size: 1.2rem;
}

.custom-upload-button,
.contact-form-submit-button {
  padding: 20px 25px;
  color: white;
  background-color: rgb(227,6,19);
  border: 2px solid rgb(227,6,19);
  transition: background-color 0.5s, color 0.5s;
  font-size: 1rem;
  white-space: nowrap;
  font-family: inherit;
}

.custom-upload-button:hover,
.custom-upload-button:focus,
.contact-form-submit-button:hover,
.contact-form-submit-button:focus {
  cursor: pointer;
  background-color: white;
  color: rgb(227,6,19);
}

.upload-button-container {
  margin-bottom: 30px;
}
img.header-logo-image {
  margin: 8px 0 5px 0;
}
.contact-form-submit-button {
  margin-top: 20px;
  margin-bottom: 30px;
  background-color: #4a8938;
  border: 2px solid #4a8938;
}

.contact-form-submit-button:hover, .contact-form-submit-button:focus, .contact-form-submit-button:active, .contact-form-submit-button:visited {
  background-color: #fff;
  color: #4a8938;
}

.header-text-container h1:not(.text-light) {
  margin-bottom: -10px;
}

.checkbox-option-description {
  margin-top: 20px;
}

.customized-checkbox {
  width: 30px;
  height: 30px;
  border-radius: 0;
  top: 3px;
  left: 0;
}

.customized-checkbox::after {
  width: 6px;
  height: 16px;
  bottom: 7px;
}

.customized-radio {
  border-radius: 15px;
}

.radio-container {
  margin: -15px 0 30px;
}

input,
select,
textarea,
label {
  font-size: 1rem;
}

.head-of-page,
.content-of-page {
  width: 80%;
}

.head-of-page {
  display: flex;
  margin-top: 30px;
}

.content-of-page {
  margin-bottom: 30px;
}

.head-left {
  flex-grow: 1
}

.head-right {
  width: 150px;
}

.head-right img {
  margin: 0;
}
.text-light {
  font-family: 'lp_font_light';
}
.header-text-container {
  width: 100%;
}

.disclaimer {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 10px;
}
.stop-go-subtitle {
  white-space: nowrap;
  font-size: 0.8em;
  width: 100%;
  display: block;
  text-align: right;
}

a {
  color: #000;
  text-decoration: none;
}

/* Loading animation */
.loading-icon {
  display: block;
  height: 30px;
  width: 30px;
  background-color: rgb(227,6,19);
  border-radius: 15px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  animation-name: loader;
  animation-duration: 0.75s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transition: background-color 0.5s, border-color 0.5s;
}

#submit-contact-form:hover .loading-icon,
#submit-contact-form:focus .loading-icon {
  background-color: white;
  border-right: 2px solid rgb(227,6,19);
  border-bottom: 2px solid rgb(227,6,19);
}

#top-page-container,
#custom-contact-form,
.header-text-container{
  padding: 0 10px;
  margin: 0 auto;
}

.footer-nav {
  position: absolute;
  padding: 20px;
}

html[lang="de"] ul#rechnungs-file-preview:after {
  content: "(Formate: jpg, jpeg, png, gif oder pdf)";
  display: block;
  padding-top: 15px;
}

html[lang="fr"] ul#rechnungs-file-preview:after {
  content: "(Formats: jpg, jpeg, png, gif ou pdf)";
  display: block;
  padding-top: 15px;
}

html[lang="it"] ul#rechnungs-file-preview:after {
  content: "(Formati: jpg, jpeg, png, gif o pdf)";
  display: block;
  padding-top: 15px;
}
.radio-container .checkbox-option-description {
  line-height: 20px;
  margin-top: 15px;
}

@keyframes loader {
  100% { transform:rotate(360deg); }
}

@media (max-width:690px) {
  html {
    font-size: 14px;
  }
}

@media (max-width:570px) {
  html {
    font-size: 13px;
  }
  h1 {
    font-size: 21px;
  }
  #top-page-container,
  #custom-contact-form,
  .header-text-container,
  .disclaimer {
    width: 85%;
  }
  #language-switcher {
    position: absolute;
    margin-top: 55px;
    justify-content: center;
  }
  .footer-nav {
    text-align: center;
    left: 0;
    right: 0;
  }
}

/* IE Layout bug fixes */

#feedback-popup-background {
  left: 0;
}

select::-ms-expand {
  display: none;
}

.checkbox-option-description {
  width: 100%;
  display: block;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {

  #custom-contact-form {
    margin-top: -300px;
  }

}
label.checkbox-option-description {
  padding-top: 8px;
}
