.views-exposed-agents-form .views-exposed-agents-wrapper,
.views-exposed-agents-form .views-exposed-agents-wrapper .form-item-address-source-configuration-origin-address {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.views-exposed-agents-form .views-exposed-agents-wrapper {
  flex-wrap: wrap;
}

.views-exposed-agents-form .views-exposed-agents-wrapper .form-item-address-source-configuration-origin-address .field-autodetect {
  margin: 0 0 0 0.5em !important;
  max-width: 40px;
  background: #efefef;
}

.node--type-cta .views-exposed-agents-form input.address-input,
.node--type-cta .views-exposed-agents-form .views-exposed-agents-wrapper .form-item-address-source-configuration-origin-address .field-autodetect {
  background: white;
}

.views-exposed-agents-form .views-exposed-agents-wrapper #edit-submit-agents,
.views-exposed-agents-form .form-actions input {
  max-width: 100%;
}

.views-exposed-agents-form input.address-input {
  max-width: 100%;
  min-width: 100px;
}

.views-exposed-agents-form .js-form-item-address-source-configuration-origin-address,
.views-exposed-agents-form .field-autodetect {
  margin-right: 0;
}

.views-exposed-agents-form .field-autodetect {
  margin-left: 0.5em;
}

.views-exposed-agents-form input,
.views-exposed-agents-form .field-autodetect,
.views-exposed-agents-form select {
  color: #575757;
  background: #efefef;
}

a.button {
  display: inline-block;
  color: white;
  background: #f7a838;
  text-decoration: none;
  border-radius: 4px;
}

.views-exposed-agents-form h3 {
  font-size: 35px;
  margin: 0 0 16px;
  width: 100%;
}

.views-exposed-agents-form .form-type-select,
.views-exposed-agents-form .form-radios {
  flex: auto;
  width: 100%;
  margin: 0 0 20px;
}

.views-exposed-agents-form .form-radios {
  display: flex;
  margin-left: -10px;
  margin-right: -10px;
}

.views-exposed-agents-form .form-radios .form-type-radio {
  flex: 1 0 auto;
  margin: 0 10px;
  float: none;
}

.views-exposed-agents-form .form-radios .form-type-radio input {
  position: absolute;
  left: -9999px;
}

.views-exposed-agents-form .form-radios .form-type-radio input + label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff3f680;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  line-height: 20px;
  font-weight: bold;
  letter-spacing: 0.38px;
  color: #000;
  text-transform: uppercase;
  cursor: pointer;
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label {
  border-color: #f7a838;
  background-color: #fff;
}

.views-exposed-agents-form .form-radios .form-type-radio span {
  display: block;
}

.views-exposed-agents-form .form-radios .form-type-radio .icon:before {
  content: '';
  display: block;
  min-width: 55px;
  height: 40px;
  background: no-repeat center center;
  background-size: contain;
  margin: 10px auto 15px;
}

.views-exposed-agents-form .form-radios .form-type-radio .icon-business:before {
  background-image: url(../images/icon-home-business.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label .icon-business:before {
  background-image: url(../images/icon-home-business-active.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio .icon-auto:before {
  background-image: url(../images/icon-home-auto.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label .icon-auto:before {
  background-image: url(../images/icon-home-auto-active.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio .icon-home:before {
  background-image: url(../images/icon-home-home.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label .icon-home:before {
  background-image: url(../images/icon-home-home-active.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio .icon-farm:before {
  background-image: url(../images/icon-home-farm.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label .icon-farm:before {
  background-image: url(../images/icon-home-farm-active.svg);
}

.views-exposed-agents-form .form-radios .form-type-radio .plus {
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url(../images/icon-home-plus.svg);
  background-size: contain;
  vertical-align: 2em;
  margin: 0 20px;
}

.views-exposed-agents-form .form-radios .form-type-radio input:checked + label .plus {
  background-image: url(../images/icon-home-plus-active.svg);
}

.views-exposed-agents-form .form-type-textfield,
.views-exposed-agents-form .form-actions {
  flex: 1;
  margin: 0 0 20px;
}

.views-exposed-agents-form .form-actions {
  margin: 0 0 20px 0.5em;
}

.views-exposed-agents-form .field-autodetect {
  flex: 0 1 auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.views-exposed-agents-form .field-autodetect:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url(../images/icon-pin.svg) no-repeat center center;
  background-size: contain;
}

.views-exposed-agents-form .field-autodetect .label {
  position: absolute;
  color: #000;
  bottom: 130%;
  left: 50%;
  width: auto !important;
  white-space: nowrap;
  transform: translate(-50%, -3px);
  padding: 10px 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  font-weight: normal;
  font-size: 0.8em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, bottom 0.2s ease;
}

.views-exposed-agents-form .field-autodetect:hover .label {
  bottom: 100%;
  opacity: 1;
}

.views-exposed-agents-form .field-autodetect .label:before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.views-exposed-agents-form input[type="hidden"] {
  display: none;
}

a.button,
.views-exposed-agents-form input,
.views-exposed-agents-form select {
  box-sizing: border-box;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 10px 15px;
  height: 36px;
}

.views-exposed-agents-form input,
.views-exposed-agents-form select {
  width: 100%;
}

.views-exposed-agents-form select[name="tid"] {
  min-width: 180px;
}

.views-exposed-agents-form .form-item-address-value {
  display: none;
  order: -999;
  flex: 100%;
  text-align: right;
  margin: -52px 0 16px;
}

.views-exposed-agents-form.no-results .form-item-address-value {
  display: block;
}

.views-exposed-agents-form select[name="address[value]"] {
  width: auto;
  min-width: 95px;
}

.views-exposed-agents-form .views-exposed-agents-wrapper #edit-submit-agents,
.views-exposed-agents-form .form-actions input {
  background: #faa836;
  color: white;
}

.views-exposed-agents-form p.error {
  margin: 0;
  font-size: 0.8em;
  color: #f00;
}

.view-agents .views-exposed-agents-form .form-radios .form-type-radio .icon,
.node--type-cta .views-exposed-agents-form .form-radios .form-type-radio .icon,
.tg--insurance-headline-intro .views-exposed-agents-form .form-radios .form-type-radio .icon {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.view-agents .views-exposed-agents-form .form-radios .form-type-radio .icon:before,
.node--type-cta .views-exposed-agents-form .form-radios .form-type-radio .icon:before,
.tg--insurance-headline-intro .views-exposed-agents-form .form-radios .form-type-radio .icon:before {
  margin: 0 12px 0 0;
  height: 25px;
  min-width: 30px;
}

.view-agents .views-exposed-agents-form .form-radios .form-type-radio .plus,
.node--type-cta .views-exposed-agents-form .form-radios .form-type-radio .plus,
.tg--insurance-headline-intro .views-exposed-agents-form .form-radios .form-type-radio .plus {
  width: 16px;
  height: 16px;
  margin: 0 16px;
}

.view-agents .views-exposed-agents-form .form-radios .form-type-radio input + label,
.node--type-cta .views-exposed-agents-form .form-radios .form-type-radio input + label,
.tg--insurance-headline-intro .views-exposed-agents-form .form-radios .form-type-radio input + label {
  padding: 10px;
  justify-content: flex-start;
}

.node--type-cta .views-exposed-agents-form .form-radios .form-type-radio input + label,
.tg--insurance-headline-intro .views-exposed-agents-form .form-radios .form-type-radio input + label {
  background: white;
}

@media screen and (max-width: 1280px) {
  .view-agents .views-exposed-agents-form .form-radios {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .view-agents .views-exposed-agents-form .form-radios .form-type-radio {
    margin: 0 0 10px;
  }

  .view-agents .views-exposed-agents-form .form-radios .form-type-radio:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 991px) {
  .views-exposed-agents-form {
    width: 100%;
    box-sizing: border-box;
  }

  .views-exposed-agents-form .field-autodetect {
    margin-left: 0;
  }

  .views-exposed-agents-form .field-autodetect .label {
    display: none !important;
  }

  .views-exposed-agents-form input.address-input {
    max-width: 100%;
  }

  .views-exposed-agents-form .views-exposed-agents-wrapper #edit-submit-agents,
  .views-exposed-agents-form .form-actions input {
    max-width: 100%;
  }

  .views-exposed-agents-form {
    background: transparent;
  }

  .views-exposed-agents-form h3 {
    display: none;
  }

  .views-exposed-agents-form .views-exposed-agents-wrapper {
    flex-direction: column;
  }

  .views-exposed-agents-form input,
  .views-exposed-agents-form .field-autodetect,
  .views-exposed-agents-form select {
    background: #efefef;
    height: 44px;
  }

  .views-exposed-agents-form .views-exposed-agents-wrapper div {
    width: 100%;
    margin-left: 0;
    margin-right: 0;

  }
  .tg--insurance-headline-controls .views-exposed-agents-form .views-exposed-agents-wrapper div {
    margin-left: 0;
    margin-right: 0;
  }

  .views-exposed-agents-form .form-radios {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .views-exposed-agents-form .form-radios .form-type-radio {
    margin: 0 0 10px;
  }

  .views-exposed-agents-form .form-radios .form-type-radio:last-child {
    margin-bottom: 0;
  }

  .views-exposed-agents-form .form-radios .form-type-radio .icon {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .views-exposed-agents-form .form-radios .form-type-radio .icon:before {
    margin: 0 12px 0 0;
    height: 25px;
    min-width: 37px;
  }

  .views-exposed-agents-form .form-radios .form-type-radio .plus {
    width: 16px;
    height: 16px;
    margin: 0 16px;
  }

  .views-exposed-agents-form .form-radios .form-type-radio input + label {
    padding: 10px;
    justify-content: flex-start;
  }

  .views-exposed-agents-form input.address-input {
    max-width: 100%
  }

  .views-exposed-agents-form .views-exposed-agents-wrapper {
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .views-exposed-agents-form .form-radios .form-type-radio .icon:before {
    margin: 0 8px 0 0;
    height: 20px;
    min-width: 27px;
  }

  .views-exposed-agents-form .form-radios .form-type-radio .plus {
    width: 10px;
    height: 10px;
    margin: 0 8px;
  }

  .views-exposed-agents-form .form-radios .form-type-radio input + label {
    font-size: 13px;
  }
}
