.form-header,
.form-field {
  margin-bottom: 36px;
}

.form-headline {
  font-size: 24px;
}

.form-headline,
.thank-you-headline {
  margin-bottom: 0;
}

.form-description,
.thank-you-description,
.form-checkbox .form-checkbox-text {
  color: #5f6368;
}

.form-checkbox {
  display: flex;
  margin-top: 12px;
}

.form-field-input,
.form-field-select,
.form-radio-btns {
  height: 45px;
  width: 265px;
}

.form-radio-btns {
  padding: 10px 0;
}

.form-field-select {
  max-width: 265px;
}

.form-radio-text {
  margin-right: 16px;
}

.form-checkbox .form-checkbox-input {
  margin-top: 4px;
}

.form-checkbox .form-checkbox-text {
  margin: 0;
  max-width: 682px;
}

.form-submit-btn {
  margin: 24px 0;
}

.form-success .form-container,
.form-field-error,
.thank-you-container {
  display: none;
}

.form-success .thank-you-container {
  align-items: center;
  display: flex;
  flex-direction: inherit;
  flex-wrap: inherit;
  justify-content: flex-end;
  margin: 50px 0;
  max-width: 1024px;
}

.thank-you-headline {
  font-size: 32px;
}

.thank-you-button .button {
  padding: 0;
}

.form-field {
  flex-basis: 49%;
  min-width: 260px;
  position: relative;
}

.form-field .form-field-show-error {
  color: #ea4335;
  display: block;
  font-size: 12px;
  font-style: italic;
  position: absolute;
}

.form-field .form-field-input {
  background-color: #e7e7e7;
  border: 0;
  border-radius: 4px;
  font: 500 14px/36px Google Sans;
  outline: none;
  resize: none;
  width: 100%;
}

.form-field-input:focus {
  background-color: #fff;
  caret-color: #1b73e7;
}

.form-field.company-type > select {
  background-color: #e7e7e7;
  background-position: 100%;
  background-repeat: no-repeat;
  font-size: 16px;
  height: 50px;
  min-width: 100%;
  padding: 12px 0 0 8px;
}

.form-header {
  text-align: center;
}

.form-field-name {
  font-size: 16px;
  left: 10px;
  position: absolute;
  top: 15px;
  transition: font .4s, translate .4s;
}

.form-field.company-type > select:valid ~ .form-field-name,
.form-field.company-type > select:focus ~ .form-field-name {
  font-size: 12px;
  left: 7px;
  line-height: 20px;
  top: 0;
}

.form-field.company-type > select:focus ~ .form-field-name {
  color: #1b73e7;
}

.form-field.company-type > select:valid ~ .form-field-name {
  color: #5f6368;
}

.form-field.company-type > select:focus {
  background-color: #fff;
}

.form-container {
  margin: 0 auto;
  max-width: 806px;
}

.form-field-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-field-sub-container {
  flex-basis: 49%;
}

.form-field-show-error ~ .form-field-name {
  color: #ea4335;
}

.form-field-sub-container:last-child {
  flex: 1;
}


form textarea:not(:placeholder-shown) ~ .form-field-name,
form input[type=email] ~ .form-field-show-error ~ .form-field-name,
.form-field-input.how-can-we-help:focus ~ .form-field-name,
input:valid ~ .form-field-name,
input:focus ~ .form-field-name {
  font-size: 12px;
  left: 7px;
  line-height: 20px;
  top: 0;
}

.form-field-input.how-can-we-help:focus ~ .form-field-name,
input:focus ~ .form-field-name {
  color: #1b73e7;
}

form textarea:not(:placeholder-shown) ~ .form-field-name,
form input[type=email] ~ .form-field-show-error ~ .form-field-name {
  color: #5f6368;
}

form input[type=email] ~ .form-field-show-error ~ .form-field-name {
  color: #ea4335;
}

textarea:placeholder-shown ~ .form-field-show-error ~ .form-field-name,
input[type=email]:placeholder-shown ~ .form-field-show-error ~ .form-field-name {
  color: #ea4335;
  font-size: 16px;
  top: 15px;
}

input[type=email]:focus ~ .form-field-show-error ~ .form-field-name,
textarea:focus ~ .form-field-name {
  color: #1b73e7;
  font-size: 12px;
  top: 0;
}

.form-warning {
  margin-bottom: 16px;
}

label.form-field-name {
  transition: all .3s;
}

textarea.form-field-input {
  height: 150px;
}

::-webkit-input-placeholder {
  opacity: 0;
  transition: inherit;
}

:-ms-input-placeholder {
  opacity: 0;
  transition: inherit;
}

::-moz-placeholder {
  opacity: 0;
  transition: inherit;
}

@media (max-width:480px) {
  .form-field-sub-container:last-child {
    flex: 0;
  }

  .thank-you-headline {
    font-size: 24px;
  }

  .form-success .thank-you-container {
    flex-direction: column-reverse;
  }

  .form-field-container {
    justify-content: center;
  }
}
