/*----- POSITIONING -----*/
.container {
  display: flex;
  width: 80%;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  perspective: 100;
  position: relative;
}
@media (max-width: 467px) {
  .container {
    width: 90%;
  }
}

#cardForm {
  height: 5em;
  width: 100%;
  height: 5.5em;
  margin-bottom: 1em;
  position: relative;
  transform: translateX(0em);
}

/*----- HF CONTAINERS -----*/
.field-container {
  position: absolute;
  width: 100%;
  border: 1px solid #fff;
  z-index: 2;
  opacity: 1;
  transition: all 500ms cubic-bezier(0.2, 1.3, 0.7, 1);
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.2, 1.3, 0.7, 1), opacity 0.5s;
  opacity: 1;
}

.field-container:nth-child(1) {
  -webkit-animation: inputIntro 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
          animation: inputIntro 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
}

.field-container--hidden {
  opacity: 0;
  transform: translate(0em, 0em) rotateX(180deg);
  z-index: -1;
}

.field-container--button {
  border: 0;
}

.hosted-field {
  height: 5.5em;
  width: 100%;
  display: block;
  padding-left: 1em;
}

/*----- HF LABELS -----*/
.hosted-field--label {
  color: #FFF;
  position: absolute;
  top: 0.9em;
  left: 0.5em;
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.7, 1), color 0.2s;
  transform-origin: 0 0;
  font-size: 2em;
  line-height: 1;
}

.hosted-field--label--moved,
.not-empty {
  transform: scale(0.8) translate(0em, -3em);
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.7, 1), color 0.2s;
  color: #fff;
}

/*----- HF MESSAGES -----*/
.field-message {
  font-size: 1em;
  margin: 1em;
  opacity: 0.3;
}
@media (max-width: 467px) {
  .field-message {
    margin: 0;
  }
}

.field-message--error {
  color: #f44336;
}

/*----- HF SUBMIT -----*/
#button-pay {
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  text-align: center;
  font-size: 2em;
  padding: 0.9em;
  color: #000;
  background: #fff;
  cursor: pointer;
}

/*----- HF CONTROLS -----*/
.form-controls__steps {
  font-size: 1.5em;
  position: absolute;
  right: 1em;
  transform: translateY(-1.9em);
  opacity: 0.3;
}

.form-controls {
  position: absolute;
  right: 0;
  z-index: 5;
  -webkit-animation: arrowIntroScale 0.3s 0.4s cubic-bezier(0.2, 1.3, 0.7, 1) backwards;
          animation: arrowIntroScale 0.3s 0.4s cubic-bezier(0.2, 1.3, 0.7, 1) backwards;
  transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.7, 1);
}
@media (max-width: 467px) {
  .form-controls {
    right: 0.5em;
  }
}
.form-controls a {
  display: inline-block;
  padding: 1em 0.5em;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.7, 1);
}
@media (max-width: 467px) {
  .form-controls a {
    padding: 0.7em 0.1em;
    transform: scale(0.6);
  }
}
.form-controls a:hover {
  transform: scale(0.9);
  transition: transform 0.1s cubic-bezier(0.2, 1.3, 0.7, 1);
}
.form-controls .form-controls--hidden {
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.7, 1);
}
.form-controls .form-controls--hidden:hover {
  transform: scale(0);
}

.form-controls--back {
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.7, 1);
  transform: translateX(2em);
}

.form-controls--end {
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.7, 1);
  transform: translateY(-5em) translateX(-3.5em);
}

/*----- BT CLASSES -----*/
.braintree-hosted-fields-valid {
  background: rgba(76, 175, 80, 0.5);
  -webkit-animation: success 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
          animation: success 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
}

.braintree-hosted-fields-invalid {
  background: rgba(244, 67, 54, 0.5);
  color: #fff;
  -webkit-animation: error 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
          animation: error 0.5s cubic-bezier(0.2, 1.3, 0.7, 1);
}

/*----- ANIMATIONS -----*/
@-webkit-keyframes inputIntro {
  0% {
    transform: translate(0, 0.2em) rotateX(90deg) scale(0.9);
  }
  100% {
    transform: translate(0, 0) rotateX(0) scale(1);
  }
}
@keyframes inputIntro {
  0% {
    transform: translate(0, 0.2em) rotateX(90deg) scale(0.9);
  }
  100% {
    transform: translate(0, 0) rotateX(0) scale(1);
  }
}
@-webkit-keyframes arrowIntroScale {
  0% {
    transform: translate(-1em, 0) scale(0);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes arrowIntroScale {
  0% {
    transform: translate(-1em, 0) scale(0);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@-webkit-keyframes error {
  0% {
    background: #282828;
    transform: scale(1);
  }
  50% {
    background: #f44336;
    transform: scale(1.1);
  }
  100% {
    background: rgba(244, 67, 54, 0.5);
    transform: scale(1);
  }
}
@keyframes error {
  0% {
    background: #282828;
    transform: scale(1);
  }
  50% {
    background: #f44336;
    transform: scale(1.1);
  }
  100% {
    background: rgba(244, 67, 54, 0.5);
    transform: scale(1);
  }
}
@-webkit-keyframes success {
  0% {
    background: #282828;
    transform: scale(1);
  }
  50% {
    background: #3d8b40;
    transform: scale(1.1);
  }
  100% {
    background: rgba(76, 175, 80, 0.5);
    transform: scale(1);
  }
}
@keyframes success {
  0% {
    background: #282828;
    transform: scale(1);
  }
  50% {
    background: #3d8b40;
    transform: scale(1.1);
  }
  100% {
    background: rgba(76, 175, 80, 0.5);
    transform: scale(1);
  }
}

.card .card {
  background: #f5f5f5;
    box-shadow: 0 1px 2px 0 #00000029 !important;
    border: 1px solid #0000000f !important;
}