.card-container {
  height: 100%;
  margin-top: 5.5em;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
}

.card {
  position: relative;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  cursor: pointer;
  width: 22em;
  max-width: 80%;
  padding: 2em 0;
  background: #02aec7;
  box-shadow: 0 0 6px 0 #02aec7;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}
/* .card::before,
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  height: 2px;
} */
.card::before {
  width: 0;
  opacity: 0;
  -webkit-transition: opacity 0 ease, width 0 ease;
  transition: opacity 0 ease, width 0 ease;
  -webkit-transition-delay: 0.5s;
  transition-delay: 0.5s;
}
.card::after {
  width: 100%;
  background: white;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}
.card .content {
  width: 18em;
  max-width: 80%;
}
.card .logo {
  margin: 0 0 1em;
  width: 10.625em;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}
.card h6 {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
}
.card .hover_content {
  overflow: hidden;
  max-height: 0;
  -webkit-transform: translateY(1em);
  transform: translateY(1em);
  -webkit-transition: all 0.55s ease;
  transition: all 0.55s ease;
}
.card .hover_content p {
  margin: 0.8em 0 0;
  color: black;
  line-height: 1.4em;
  opacity: 0.7;
}
.card:hover {
  width: 24em;
  box-shadow: 0 10px 20px 0 rgba(32, 32, 36, 0.12);
}
.card:hover::before {
  width: 100%;
  opacity: 1;
  -webkit-transition: opacity 0.5s ease, width 0.5s ease;
  transition: opacity 0.5s ease, width 0.5s ease;
  -webkit-transition-delay: 0;
  transition-delay: 0;
}
.card:hover::after {
  width: 0;
  opacity: 0;
  -webkit-transition: width 0 ease;
  transition: width 0 ease;
}
.card:hover .logo {
  margin-bottom: 0.5em;
}
.card:hover .hover_content {
  max-height: 10em;
  -webkit-transform: none;
  transform: none;
}

.form__group {
  position: relative;
  padding: 15px 0 0;
  margin-top: 10px;
  width: 100%;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 2px solid #ffffff;
  outline: 0;
  font-size: 1rem;
  color: #fff;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.5s;
  letter-spacing: 2px;
}
.form__field::placeholder {
  color: transparent;
}
.form__field:placeholder-shown ~ .form__label {
  font-size: 1rem;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.5s;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 2px;
}

.form__field:focus {
  padding-bottom: 6px;
  font-weight: 200;
  border-width: 2px;
  border-image: linear-gradient(to right, #02aec7, #02aec7);
  border-image-slice: 1;
}
.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.5s;
  font-size: 1rem;
  color: #02aec7;
  font-weight: normal;
}

/* reset input */
.form__field:required,
.form__field:invalid {
  box-shadow: none;
}

/* Button Animation */

button {
  border-bottom: 2px solid #02aec7 !important;
  text-align: left;
  letter-spacing: 2px;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
}

.raise:hover,
.raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  -webkit-transform: translateY(-0.25em);
  transform: translateY(-0.25em);
  transition: 0.5s ease;
  background-color: #02aec7;
}

.raise {
  /* --color: #ffffff; */
  --hover: #02aec7;
  transition: 0.5s ease;
}

.pulse:hover,
.pulse:focus {
  -webkit-animation: pulse 1s;
  animation: pulse 1s;
  box-shadow: 0 0 0 2em rgba(226, 30, 49, 0);
}

@-webkit-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--hover);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--hover);
  }
}

.pulse {
  --color: #ffffff;
  --hover: #02aec7;
}

@media (max-width: 768px) {
  body {
    overflow: scroll;
  }
  .card-container {
    height: 30vh;
    margin-top: 12em;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
  }
}

@media (max-width: 468px) {
  .card-container {
    height: 30vh;
    margin-top: 8em;
    margin-bottom: 2em;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
  }
}
