/*	---------------------------------------------------------------
	PX to REM
	---------------------------------------------------------------
*/
/*	---------------------------------------------------------------
	Maps for styleguide and utility classes
	---------------------------------------------------------------
*/
.form-title.page-title {
  font-size: 1.5rem;
  font-weight: 400;
  width: 100%;
  text-align: center;
  margin: 0 0 1.875rem;
}

@media (min-width: 768px) {
  .form-title.page-title {
    font-size: 2rem;
  }
}

.form-container {
  width: 100%;
  max-width: unset;
  padding: 0;
  background-color: #e9f0f6;
}

.form-container .card {
  margin: 1.25rem auto 3.75rem;
  width: calc(100% - 20px);
  max-width: 57.1875rem;
  border: 0;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.form-container .card:before {
  display: block;
  content: '';
  position: absolute;
  top: -1.25rem;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  background-color: #fff;
  box-shadow: 0 0 0.625rem 0 #bebebe;
}

.form-container .card-header {
  margin: 0;
  padding: 0.625rem 1.875rem 1.25rem;
  z-index: 1;
  border-bottom: 0;
}

.form-container .card-body {
  padding: 0.625rem 0.75rem;
  z-index: 1;
}

#braintreeCreditCardFieldsContainer .form-group.float .form-control-label span {
  font-size: 0.75rem;
}

#braintreeCreditCardFieldsContainer .form-group {
  margin: 0;
}

#braintreeCreditCardFieldsContainer .form-control-label span {
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 900px) {
  #braintreeCreditCardFieldsContainer .field-cvv,
  #braintreeCreditCardFieldsContainer .field-expirationdate {
    margin-bottom: 0;
  }
}

#braintreeCreditCardFieldsContainer .info-icon {
  z-index: 1;
}

#braintreeCreditCardFieldsContainer .form-caption {
  position: relative;
  top: -10px;
}

.form-group {
  position: relative;
  margin: 0.9375rem 0;
}

.form-group .form-control-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #6c6c6c;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}

.form-group .form-control-label.is-invalid {
  color: #612c17;
}

.form-group .form-control, .form-group .form-control-label {
  transition: all 0.15s ease;
}

.form-group .invalid-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #c00;
}

.form-group span:not(.info-icon):not(.icon) {
  display: inline-block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group label span {
  font-size: 1rem;
}

.form-group .help-text {
  font-style: italic;
}

.form-group .form-control {
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  height: auto;
  border: 1px solid #d8d9da;
  color: #000;
  line-height: 1;
}

.form-group .form-control::placeholder, .form-group .form-control:-ms-input-placeholder, .form-group .form-control::-ms-input-placeholder {
  color: #6c6c6c;
  padding: 1.25rem 0.9375rem;
}

.form-group .form-control:focus {
  outline: 0;
  border: 1px solid #00263e;
  box-shadow: 0 0 0 1px #00263e;
}

.form-group .form-control.is-invalid {
  border-color: #c00;
  border-width: 1px;
  box-shadow: 0 0 0 1px #c00;
}

.form-group .custom-select {
  padding-right: 2.8125rem;
  padding: .85rem 2.3rem .85rem 1rem;
}

.form-group.float .form-control-label {
  top: -0.375rem;
  left: 0.75rem;
  font-size: 0.75rem;
  padding: 0 0.3125rem;
  color: #000;
}

.form-group.float .form-control-label::before {
  content: '';
  display: block;
  position: absolute;
  top: 35%;
  left: -0.3125rem;
  background-color: #fff;
  width: calc(100% + 10px);
  height: 3px;
  z-index: -1;
}

.form-group:not(.required) .form-control-label::after {
  content: ' (optional)';
}

.contact-us-signup-message {
  transform: translate(-50%, -50%);
  position: fixed;
  top: 35%;
  left: 50%;
  z-index: 3;
}

.contact-us-signup-alert {
  animation: fade 5s linear forwards;
  box-shadow: 1px 1px 5px grey;
  padding: 1em;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.contact-us-signup-alert.show {
  display: block;
}

@media (min-width: 768px) {
  .contact-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.1875rem;
  }
  .contact-us .contact-us-topic,
  .contact-us .contact-us-comment {
    grid-column: 1 / 3;
  }
}

.contact-us .contact-us-submit button {
  display: block;
}

@media (min-width: 768px) {
  .contact-us .contact-us-submit button {
    display: inline-block;
  }
}

.contact-us .field-address1, .contact-us .field-address2 {
  grid-column: 1/3;
}

.contact-us .contact-us-topic .form-group {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .contact-us .contact-us-topic .form-group {
    margin-top: 0.9375rem;
  }
}

.contact-us .contact-us-comment .form-group {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .contact-us .contact-us-comment .form-group {
    margin-top: 0.9375rem;
  }
}

.contact-us .contact-us-comment .char-counter span {
  font-size: .65rem !important;
}

.contact-us .contact-us-comment .char-counter {
  position: absolute;
  bottom: calc(100%);
  right: .3125rem;
  font-size: .65rem;
  color: #aaa;
}
