:root {
  --white: #fff;
  --orange: #ef3f6f;
  --grey: #5f6c84;
  --light-grey: #e7e6ea;
}

/** TEST */
#test-mode {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: white;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
}

/** GLOBAL */
div, * {
  box-sizing: border-box;
  /** outline: 1px solid rgba(0,0,0,0.01); */
}
body, html {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: Karbon;
  font-size: 13pt;
  line-height: 1;
  color: var(--grey);
}
a {
  color: inherit;
}
::-webkit-input-placeholder {
  opacity: 0.5;
}

/** HEADER */
.header {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--light-grey);
}
.header .header__title {
  font-family: 'OpenSans';
  position: absolute;
  font-weight: bold;
  font-size: 35pt;
  top: 50%;
  left: 50%;
  width: 700px;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
}
.header .header__title small {
  font-size: 0.5em;
  position: absolute;
  font-weight: normal;
  right: 0;
}
.header .header__title sup {
  font-size: 0.35em;
}
.header .header__icon {
  width: 70px;
  height: 70px;
  border-radius: 100%;
  background-color: white;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(430px, 50%);
}

/** WRAPPER */
.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}
.content {
  width: 860px;
  padding: 60px 0;
}
.hero {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 280px;
  height: auto;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
}

/** INTRO */
.introduction {
  font-size: 16pt;
  width: 100%;
  text-align: center;
  padding: 0 50px;
  margin-bottom: 60px;
}

/** FORM */
form {
  width: 100%;
  transition: 0.5s;
  position: relative;
}
form.sending .form__row {
  pointer-events: none;
  opacity: 0.5;
}
@keyframes sending-icon {
  0% { opacity: 0; width: 20px; transform: translate(calc(-50% - 30px), -50%); }
  30% { opacity: 1; width: 40px; }
  60% { transform: translate(calc(-50% + 30px), -50%); width: 20px; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + 30px), -50%); width: 20px; }
}
#sending-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: var(--orange);
  box-shadow: 6px 6px 12px rgba(0,0,0,0.25);
  display: none;
}
form.sending #sending-icon {
  animation-name: sending-icon;
  display: block;
}
form #message {
  padding-top: 10px;
  width: 100%;
  text-align: right;
}

/** HEADINGS */
.form__heading {
  margin: 30px 0 10px 0;
}

/** ROW */
.form__row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.form__row label {
  padding-right: 30px;
  line-height: 1.15;
}
.form__row label:nth-child(1) {
  min-width: 120px;
  flex-shrink: 0;
}
.form__row input, .form__row textarea, .form__row select {
  padding: 8px 10px;
  width: 100%;
  border: 1px solid var(--orange);
  border-radius: 0;
  outline: none;
  font-family: Karbon;
  font-size: 18px;
  color: #646567;
  line-height: 1;
}
.form__row input[type="submit"] {
  background: var(--orange);
  color: var(--white);
  font-size: 18pt;
  width: 200px;
  padding: 10px;
}
.form__row input[type="submit"].success {
  pointer-events: none;
  background: var(--white);
  color: var(--orange);
  font-weight: bold;
  border: 2px solid var(--orange);
}
.form__row input[disabled] {
  opacity: 0.5;
}
.form__row input[required] {}

/** CHECKBOX */
.checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 1px solid var(--orange);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkbox input {
  display: none;
}
.checkbox .checkbox__inner {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--orange);
  transition: opacity 0.3s;
}
.checkbox:not(.checked) .checkbox__inner {
  opacity: 0;
}

/** RADIO CHECKBOX */
.radio-checkbox {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.radio-checkbox .radio-checkbox__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.radio-checkbox .radio-checkbox__item .checkbox {
  margin-right: 8px;
}
.radio-checkbox .radio-checkbox__item label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 20px;
  line-height: 1;
  flex: 1;
}
.radio-checkbox .radio-checkbox__item:last-child {
  flex: 1;
}
.radio-checkbox .radio-checkbox__item input {
  width: 100%;
  min-width: 120px;
}
.radio-checkbox .radio-checkbox input:disabled {
  opacity: 0.5;
}

/** FOOTER **/

/** ROW SPECIFIC */
.form__row[data-row='printed_copies'] {
  pointer-events: none;
  margin-bottom: 40px;
}
.form__row[data-row='printed_copies'] .checkbox { margin-right: 15px; }
.form__row[data-row="title"] select { width: 120px; flex-shrink: 0; }
.form__row[data-row="title"] label:nth-child(3) { padding-left: 30px; white-space: nowrap; }
.form__row[data-row="suburb"] label:nth-child(3) { padding-left: 30px; }
.form__row[data-row="suburb"] input:nth-child(4) { width: 200px; }
.form__row[data-row="state"] select { width: 120px; }
.form__row[data-row="submit"] {
  margin-top: 20px;
}
.form__row[data-row="submit"] .checkbox { margin-right: 15px; }
.form__row[data-row="submit"] label { width: 100%; flex: 1; }
.form__row[data-row="submit"] input[type="submit"] {}

/** FOOTER **/
.footer {
  width: 100%;
  font-size: 14px;
  padding: 20px 0;
  line-height: 1.1;
  text-align: justify;
}
.footer .footer__privacy {}
.footer .footer__privacy p {
  margin: 0;
  margin-bottom: 15px;
}
.footer .footer__mandatories {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.footer .footer__mandatories p {
  margin: 0;
}
.footer .footer__mandatories img {
  margin-left: 20px;
  width: 100px;
  height: auto;
}

/** SCREEN: HEADER */
@media screen and (max-width: 1420px) {
  .header {
    height: 220px;
  }
  .header .header__title {
    font-size: 30pt;
    top: 50%;
    left: 50%;
    width: 600px;
    line-height: 1.1;
    text-shadow: 0px 0px 6px rgba(255,255,255,0.5);
    z-index: 2;
  }

  /** WRAPPER */
  .wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
  }
  .content {
    width: 860px;
    padding: 60px 0;
  }
  .hero {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 240px;
    height: auto;
  }
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
  }
}

@media screen and (max-width: 1200px) {
  .header {
    height: 220px;
  }
  .header .header__title {
    font-size: 30pt;
    top: 50%;
    left: 50%;
    width: 600px;
    line-height: 1.1;
  }

  .hero {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 240px;
    height: 220px;
    overflow: hidden;
  }
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
  }
}

/** TABLET: PORTRAIT */
@media screen and (max-width: 920px) {
  form, .content, .footer {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    display: none;
  }
}

/** MOBILE */
@media screen and (max-width: 520px) {
  body {
    width: 100%;
    font-size: 12pt;
  }

  /** HEADER */
  .header {
    height: 200px;
  }
  .header br {
    display: none;
  }
  .header .header__title {
    font-size: 20pt;
    padding: 0 10px;
    width: 100%;
    text-align: center;
  }
  .header .header__title small {
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
  }

  /** WRAPPER */
  .wrapper {
    padding: 0;
  }
  .content {
    width: 100%;
    padding: 20px 20px;
  }

  .introduction {
    font-size: 15pt;
    width: 100%;
    text-align: center;
    padding: 0 0;
    margin-bottom: 20px;
  }

  /** FORM */
  form {
    padding: 10px 0;
  }

  /** HEADINGS */
  .form__heading {
    margin: 30px 0 10px 0;
  }

  /** ROW */
  .form__row {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .form__row label {

    padding-right: 20px;
    line-height: 1.15;
  }
  .form__row label:nth-child(1) {
    min-width: 100px;
    flex-shrink: 0;
    padding-top: 5px;
  }

  /** RADIO CHECKBOX */
  .radio-checkbox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .radio-checkbox .radio-checkbox__item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    width: 100%;
  }
  .radio-checkbox .radio-checkbox__item .checkbox {
    margin-right: 8px;
  }
  .radio-checkbox .radio-checkbox__item label {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 20px;
    line-height: 1;
    flex: 1;
  }
  .radio-checkbox .radio-checkbox__item:last-child {
    flex: 1;
  }
  .radio-checkbox .radio-checkbox__item input {
    width: 100%;
    min-width: 100px;
  }
  .radio-checkbox .radio-checkbox input:disabled {
    opacity: 0.5;
  }

  /** ROW SPECIFIC */
  .form__row[data-row="title"] {
    flex-wrap: wrap;
  }
  .form__row[data-row="title"] select {
    width: calc(100% - 100px);
    margin-bottom: 10px;
  }
  .form__row[data-row="title"] label:nth-child(3) {
    padding-left: 0;
    padding-top: 5px;
    width: 100px;
  }
  .form__row[data-row="title"] input { width: calc(100% - 100px); }
  .form__row[data-row="enquiry"] .equiry__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 10px;
    pointer-events: none;
    opacity: 0.5;
  }
  .form__row[data-row="suburb"] { flex-wrap: wrap; }
  .form__row[data-row="suburb"] input { width: calc(100% - 100px) !important; }
  .form__row[data-row="suburb"] label:nth-child(3) { padding-left: 0; width: 100px; }
  .form__row[data-row="suburb"] input:nth-child(2) { margin-bottom: 10px; }
  .form__row[data-row="state"] select { width: 120px; }
  .form__row[data-row="submit"] {
    flex-wrap: wrap;
  }
  .form__row[data-row="submit"] .checkbox { margin: 20px 10px; }
  .form__row[data-row="submit"] label { margin: 20px 0; }
  .form__row[data-row="submit"] input[type="submit"] {
    width: 100%;
  }

  /** FOOTER **/
  .footer {
    width: 100%;
    font-size: 12px;
    padding: 20px 0;
    line-height: 1.1;
    text-align: justify;
  }
  .footer a {
    word-break: break-all;
  }
  .footer .footer__privacy {}
  .footer .footer__privacy p {
    margin: 0;
    margin-bottom: 15px;
  }
  .footer .footer__mandatories {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer .footer__mandatories p {
    margin: 0;
  }
  .footer .footer__mandatories br {
    display: none;
  }
  .footer .footer__mandatories img {
    margin-left: 20px;
    width: 100px;
    height: auto;
  }
}
