.contact-popup .form-btn, .contact-popup .form-btn-cancel, .contact-popup .form-btn-error {
  background: transparent;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 5px 24px;
  margin-top: 2.25rem;
  position: relative;
  z-index: 0;
  transition: transform 0.28s ease;
  will-change: transform; }

.contact-popup .form-btn::before,
.contact-popup .form-btn::after,
.contact-popup .form-btn-cancel::before,
.contact-popup .form-btn-cancel::after,
.contact-popup .form-btn-error::before,
.contact-popup .form-btn-error::after {
  position: absolute;
  content: "";
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px; }

.contact-popup .form-btn::before,
.contact-popup .form-btn-cancel::before,
.contact-popup .form-btn-error::before {
  background: #337ab7;
  z-index: -2; }

.contact-popup .form-btn::after,
.contact-popup .form-btn-cancel::after,
.contact-popup .form-btn-error::after {
  background: #000;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.28s ease;
  will-change: opacity; }

.contact-popup .form-btn:focus,
.contact-popup .form-btn-cancel:focus,
.contact-popup .form-btn-error:focus {
  outline: none; }

.contact-popup .form-btn:focus::after,
.contact-popup .form-btn:hover::after,
.contact-popup .form-btn-cancel:focus::after,
.contact-popup .form-btn-cancel:hover::after,
.contact-popup .form-btn-error:focus::after,
.contact-popup .form-btn-error:hover::after {
  opacity: 0.3; }

.contact-popup .form-btn:active,
.contact-popup .form-btn-cancel:active,
.contact-popup .form-btn-error:active {
  transform: translateY(1px); }

.contact-popup .form-btn-error::before {
  background: #d9534f; }

.contact-popup .form-btn-cancel {
  transition: color 0.28s ease, transform 0.28s ease;
  color: #b52b27;
  border-color: currentColor;
  will-change: color, transform; }

.contact-popup .form-btn-cancel.-nooutline {
  border-color: transparent; }

.contact-popup .form-btn-cancel::before {
  background: #b52b27;
  opacity: 0;
  transition: opacity 0.28s ease;
  will-change: opacity; }

.contact-popup .form-btn-cancel::after {
  display: none; }

.contact-popup .form-btn-cancel:focus,
.contact-popup .form-btn-cancel:hover {
  color: #fff; }

.contact-popup .form-btn-cancel:focus::before,
.contact-popup .form-btn-cancel:hover::before {
  opacity: 1; }

.contact-popup .form-btn-block {
  display: block;
  width: 100%;
  padding: 5px; }

.contact-popup .form-checkbox,
.contact-popup .form-radio {
  position: relative;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
  text-align: left; }

.contact-popup .form-checkbox-inline .form-checkbox-label,
.contact-popup .form-radio-inline .form-radio-label {
  display: inline-block;
  margin-right: 1rem; }

.contact-popup .form-checkbox-legend,
.contact-popup .form-radio-legend {
  margin: 0 0 0.125rem 0;
  font-weight: 500;
  font-size: 1rem;
  color: #333; }

.contact-popup .form-checkbox-label,
.contact-popup .form-radio-label {
  position: relative;
  cursor: pointer;
  padding-left: 1.5rem;
  text-align: left;
  color: #333;
  display: block;
  margin-bottom: 0.5rem; }

.contact-popup .form-checkbox-label:hover i,
.contact-popup .form-radio-label:hover i {
  color: #337ab7; }

.contact-popup .form-checkbox-label span,
.contact-popup .form-radio-label span {
  display: block; }

.contact-popup .form-checkbox-label input,
.contact-popup .form-radio-label input {
  width: auto;
  opacity: 0.0001;
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  margin: 0;
  padding: 0; }

.contact-popup .form-checkbox-button {
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: block;
  color: #999;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  z-index: 0;
  border: 0.125rem solid currentColor;
  border-radius: 0.0625rem;
  transition: color 0.28s ease;
  will-change: color; }

.contact-popup .form-checkbox-button::before,
.contact-popup .form-checkbox-button::after {
  position: absolute;
  height: 0;
  width: 0.2rem;
  background-color: #337ab7;
  display: block;
  transform-origin: left top;
  border-radius: 0.25rem;
  content: "";
  transition: opacity 0.28s ease, height 0s linear 0.28s;
  opacity: 0;
  will-change: opacity, height; }

.contact-popup .form-checkbox-button::before {
  top: 0.65rem;
  left: 0.38rem;
  transform: rotate(-135deg);
  box-shadow: 0 0 0 0.0625rem #fff; }

.contact-popup .form-checkbox-button::after {
  top: 0.3rem;
  left: 0;
  transform: rotate(-45deg); }

.contact-popup .form-checkbox-field:checked ~ .form-checkbox-button {
  color: #337ab7; }

.contact-popup .form-checkbox-field:checked ~ .form-checkbox-button::after,
.contact-popup .form-checkbox-field:checked ~ .form-checkbox-button::before {
  opacity: 1;
  transition: height 0.28s ease; }

.contact-popup .form-checkbox-field:checked ~ .form-checkbox-button::after {
  height: 0.5rem; }

.contact-popup .form-checkbox-field:checked ~ .form-checkbox-button::before {
  height: 1.2rem;
  transition-delay: 0.28s; }

.contact-popup .form-radio-button {
  position: absolute;
  left: 0;
  cursor: pointer;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #999; }

.contact-popup .form-radio-button::before,
.contact-popup .form-radio-button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  margin: 0.25rem;
  width: 1rem;
  height: 1rem;
  transition: transform 0.28s ease, color 0.28s ease;
  border-radius: 50%;
  border: 0.125rem solid currentColor;
  will-change: transform, color; }

.contact-popup .form-radio-button::after {
  transform: scale(0);
  background-color: #337ab7;
  border-color: #337ab7; }

.contact-popup .form-radio-field:checked ~ .form-radio-button::after {
  transform: scale(0.5); }

.contact-popup .form-radio-field:checked ~ .form-radio-button::before {
  color: #337ab7; }

.contact-popup .form-has-error .form-checkbox-button,
.contact-popup .form-has-error .form-radio-button {
  color: #d9534f; }

.contact-popup .form-card {
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.56s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0; }

.contact-popup .form-card:hover,
.contact-popup .form-card:focus {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); }

.contact-popup .form-card:focus-within {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); }

.contact-popup .form-actions {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  margin-top: 2.25rem; }

.contact-popup .form-actions .form-btn-cancel {
  -ms-flex-order: -1;
  order: -1; }

.contact-popup .form-actions::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #999;
  opacity: 0.3; }

.contact-popup .form-actions > * {
  -ms-flex: 1;
  flex: 1;
  margin-top: 0; }

.contact-popup .form-fieldset {
  padding: 0 10px;
  border: 1px solid #e1e1e1; }

.contact-popup .form-fieldset + .form-fieldset {
  margin-top: 15px; }

.contact-popup .form-modal-fieldset {
  padding-right: 30px !important;
  padding-left: 30px !important; }

.contact-popup .form-legend {
  font-size: 1.5rem;
  text-align: center; }

.contact-popup .form-legend + p {
  margin-top: 1rem; }

.contact-popup .form-element {
  position: relative;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem; }

.contact-popup .form-element-hint {
  font-weight: 400;
  font-size: 0.6875rem;
  color: #a6a6a6;
  display: block; }

.contact-popup .form-element-bar {
  position: relative;
  height: 1px;
  background: #999;
  display: block; }

.contact-popup .form-element-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #337ab7;
  height: 2px;
  display: block;
  transform: rotateY(90deg);
  transition: transform 0.28s ease;
  will-change: transform; }

.contact-popup .form-element-label {
  position: absolute;
  top: 0.75rem;
  line-height: 1.5rem;
  pointer-events: none;
  padding-left: 0.125rem;
  z-index: 1;
  font-size: 1rem;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: #a6a6a6;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform 0.28s ease, color 0.28s linear, opacity 0.28s linear;
  will-change: transform, color, opacity; }

.contact-popup .form-element-field {
  outline: none;
  height: 1.5rem;
  display: block;
  background: none;
  padding: 0.125rem 0.125rem 0.0625rem;
  font-size: 1rem;
  border: 0 solid transparent;
  line-height: 1.5;
  width: 100%;
  color: #333;
  box-shadow: none;
  opacity: 0.001;
  transition: opacity 0.28s ease;
  will-change: opacity; }

.contact-popup .form-element-field:-ms-input-placeholder {
  color: #a6a6a6;
  transform: scale(0.9);
  transform-origin: left top; }

.contact-popup .form-element-field::placeholder {
  color: #a6a6a6;
  transform: scale(0.9);
  transform-origin: left top; }

.contact-popup .form-element-field:focus ~ .form-element-bar::after {
  transform: rotateY(0deg); }

.contact-popup .form-element-field:focus ~ .form-element-label {
  color: #337ab7; }

.contact-popup .form-element-field.-hasvalue,
.contact-popup .form-element-field:focus {
  opacity: 1; }

.contact-popup .form-element-field.-hasvalue ~ .form-element-label,
.contact-popup .form-element-field:focus ~ .form-element-label {
  transform: translateY(-100%) translateY(-0.5em) translateY(-2px) scale(0.9);
  cursor: pointer;
  pointer-events: auto; }

.contact-popup .form-has-error .form-element-label.form-element-label,
.contact-popup .form-has-error .form-element-hint {
  color: #d9534f; }

.contact-popup .form-has-error .form-element-bar,
.contact-popup .form-has-error .form-element-bar::after {
  background: #d9534f; }

.contact-popup .form-is-success .form-element-label.form-element-label,
.contact-popup .form-is-success .form-element-hint {
  color: #259337; }

.contact-popup .form-is-success .form-element-bar::after {
  background: #259337; }

.contact-popup input.form-element-field:not(:placeholder-shown),
.contact-popup textarea.form-element-field:not(:placeholder-shown) {
  opacity: 1; }

.contact-popup input.form-element-field:not(:placeholder-shown) ~ .form-element-label,
.contact-popup textarea.form-element-field:not(:placeholder-shown) ~ .form-element-label {
  transform: translateY(-100%) translateY(-0.5em) translateY(-2px) scale(0.9);
  cursor: pointer;
  pointer-events: auto; }

.contact-popup textarea.form-element-field {
  height: auto;
  min-height: 3rem; }

.contact-popup select.form-element-field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer; }

.contact-popup .form-select-placeholder {
  color: #a6a6a6;
  display: none; }

.contact-popup .form-select .form-element-bar::before {
  content: "";
  position: absolute;
  height: 0.5em;
  width: 0.5em;
  border-bottom: 1px solid #999;
  border-right: 1px solid #999;
  display: block;
  right: 0.5em;
  bottom: 0;
  transition: transform 0.28s ease;
  transform: translateY(-100%) rotateX(0deg) rotate(45deg);
  will-change: transform; }

.contact-popup .form-select select:focus ~ .form-element-bar::before {
  transform: translateY(-50%) rotateX(180deg) rotate(45deg); }

.contact-popup .form-element-field[type="number"] {
  -moz-appearance: textfield; }

.contact-popup .form-element-field[type="number"]::-webkit-outer-spin-button,
.contact-popup .form-element-field[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; }

.contact-popup #blur-bg {
  /* Absolutely position it, but stretch it to all four corners, then put it just behind #search's z-index */
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 99;
  /* Pull the background 70px higher to the same place as #bg's */
  background-position: center -70px;
  -webkit-filter: blur(10px);
  filter: url("http://greenfieldmorealestate.com/media/blur.svg#blur");
  filter: blur(10px); }