/** @import 'https://fonts.googleapis.com/css?family=Open+Sans:400,700'; **/

/* CSS Reset */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
  * Show the overflow in IE.
  * 1. Show the overflow in Edge.
  */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
  * Remove the inheritance of text transform in Edge, Firefox, and IE.
  * 1. Remove the inheritance of text transform in Firefox.
  */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
  * Correct the inability to style clickable types in iOS and Safari.
  */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #333333;
  color: white;
  font-size: 16px;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: auto;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5em;
  margin: 0;
}

form {
  width: 100%;
}

.form__section {
  border-top: 2px solid #6b6b6b;
  width: 100%;
}

.form__section--orange {
  border-color: #e6853f;
}

.form__section--blue {
  border-color: #00a9cc;
}

.form__section--red {
  border-color: #c41230;
}

.form__section--purple {
  border-color: #771e7e;
}

@media screen and (min-width: 1250px) {
  .form__fieldset {
    display: flex;
    max-width: 1200px;
    width: 100%;
    padding: 3rem;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 1250px) {
  .form__fieldset {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
  }

  h3 {
    margin-bottom: 2rem !important;
  }
}

.form__fieldset > .fieldset__legend {
  width: 33.33%;
  align-self: stretch;
  margin: 0;
}

@media screen and (max-width: 1250px) {
  .form__fieldset > .fieldset__legend {
    width: 100%;
  }
}

.form__fieldset > .fieldset__content {
  width: 66.66%;
  height: auto;
  align-self: stretch;
  margin: 0;
}

@media screen and (max-width: 1250px) {
  .form__fieldset > .fieldset__content {
    width: 100%;
  }
}

.legend__heading {
  margin: 0px;
  color: #f1f1f1;
}

.legend__text {
  margin-right: 4rem;
  font-size: 1rem;
  color: #bbbcba;
}

@media screen and (min-width: 1200px) {
  .form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 1200px) {
  .form__group {
    display: relative !important;
    padding-right: 0 !important;
    width: 100% !important;
  }
}

.form__group--half {
  width: 50%;
  float: left;
  padding: 0 0.5rem 0 0rem;
  box-sizing: border-box;
}

.form__group--third {
  width: 33%;
  float: left;
  padding: 0 0.5rem 0 0rem;
  box-sizing: border-box;
}

.form__group--threequarter {
  width: 75%;
  float: left;
  padding: 0 0.5rem 0 0rem;
  box-sizing: border-box;
}

.form__group--singleLine {
  flex-direction: row;
  justify-content: space-between;
}

.form__group--singleLine::after {
  content: "";
  display: table;
  clear: both;
}

.form__group--singleLine > .form__group:last-child {
  padding-right: 0;
}

.form__label {
  display: block;
  margin-bottom: 0.25rem;
  color: #d8d8d8;
  letter-spacing: 0.02rem;
}

.form__label--checkbox {
  cursor: pointer;
  padding: 8px 10px 9px 48px;
  display: block;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

.form__label--checkbox::before {
  content: "";
  border: 2px solid #bcbcbc;
  background: transparent;
  width: 34px;
  height: 34px;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: 0.25rem;
}

.form__label--checkbox::after {
  content: "";
  border: solid;
  border-width: 0 0 5px 5px;
  background: transparent;
  border-top-color: transparent;
  width: 17px;
  height: 7px;
  position: absolute;
  top: calc(0.5rem + 10px);
  left: calc(0.5rem + 8px);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  transition: opacity 0.1s linear;
  opacity: 0;
}

.form__optional {
  opacity: 0.5;
}

.form__input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  border: 0px solid #bcbcbc;
  border-radius: 4px;
  box-shadow: none;
  background-color: #666666;
}

.form__input--checkbox {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
  margin: 0;
  opacity: 0;
}

.form__input--checkbox:focus + .form__label--checkbox::before {
  outline: 2px solid transparent;
  outline-offset: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgb(59, 153, 252);
  box-shadow: 0 0 0px 2px rgb(59, 153, 252);
}

.form__input--checkbox:checked + .form__label--checkbox::after {
  opacity: 1;
}

@media screen and (min-width: 1250px) {
  .content {
    width: 100%;
    height: auto;
    display: flex;
  }
}

@media screen and (max-width: 1250px) {
  .content {
    display: static;
    width: 100%;
    height: auto;
  }
}

.section {
  display: flex;
  position: relative;
}

.section--quarter {
  width: 25%;
  flex-direction: column;
}

@media screen and (max-width: 1250px) {
  .section--quarter {
    width: 100%;
  }
}

.section__background {
  width: 100%;
  height: 100vh;
  position: absolute;
  background: url("img/readingroom_blur.jpg");
  background-size: cover;
  background-position: center;
}

.section__background--building {
  background: url("img/building_blur.jpg");
  background-size: cover;
  background-position: center;
}

.section__background::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgb(51, 51, 51) 10%, rgba(0, 0, 0, 0) 100%);
}

@media screen and (max-width: 1250px) {
  .section__background::before {
    background: black;
    background: rgba(51, 51, 51, 1);
    background-position: fixed !important;
  }
}

.section--threequarter {
  width: 75%;
  flex-direction: column;
}

@media screen and (max-width: 1250px) {
  .section--threequarter {
    width: 100%;
  }
}

.header {
  display: flex;
  align-items: center;
  height: 100px;
}

.header__title {
  margin-left: 3rem;
}

@media screen and (max-width: 1250px) {
  .header__title {
    padding: 2rem;
    margin: 0;
    line-height: 2rem;
    font-size: 1.2rem;
  }
}

.logo-wrapper {
  padding-top: 1rem;
  padding-left: 2rem;
  z-index: 1;
}

.logo {
  max-width: 320px;
  height: auto;
}

.infoBox {
  z-index: 1;
  margin: 2rem;
  flex-grow: 1;
}

.infoBox__text {
  margin: 0;
  margin-bottom: 1rem;
  padding: 2rem;
  line-height: 1.5rem;
  color: #e0dfdb;
  background-color: rgba(51, 51, 51, 0.88);
  border-radius: 0.25rem;
}

@media screen and (max-width: 1250px) {
  .infoBox__text {
    background-color: #666;
  }
}

.errorList {
  display: inline-block;
}

.error {
  color: #d60028;
  padding: 0.75rem 1rem;
  border-left: 5px solid #ff4e6f;
  border-radius: 0.25rem;
  background-color: #ffd8d8;
  display: block;
  margin-bottom: 0.5rem;
}

.checkbox__item-wrapper {
  padding-bottom: 2rem;
}

.checkbox__item {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25rem;
  display: inline-block;
  position: relative;
  min-height: 36px;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s linear, transform 0.1s linear;
}

.checkbox__item:hover {
  background-color: #666666;
}

.checkbox__item:active {
  transform: scale(0.98);
}

.button-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1200px;
}

.button {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0rem;
  color: white;
  background-color: #38c172;
  font-size: 1rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  -webkit-transition: background-color linear 0.15s;
  transition: background-color linear 0.15s;
  margin-right: 3rem;
}

@media screen and (max-width: 1250px) {
  .button {
    margin: 0;
    width: 100%;
  }
}

.button:hover,
.button:focus {
  background-color: #1f9d55;
}

/* Success Page */

.success_box-wrapper {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
}

.success_box {
  margin: 0 auto;
  z-index: 2;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0px 3px 15px rgba(0, 0, 0, 0.6);
  text-align: center;
  line-height: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05rem;
}

div.p1{
    padding: 1rem;
}

div.alert{
    border-radius: 5px;
    padding: 1rem;
    background: white;
    color: black;
}
