/*===========
|   Form    |
=============*/
form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 767px) {
  form {
    flex-direction: column;
  }
}

form button {
  width: 100%;
}

.form_wrap {
  width: 100%;
  margin-top: 20px;
}

.form-title {
  margin-bottom: 20px;
  text-align: start;
  font-size: 90%;
}

.form_group {
  position: relative;
  background: #fff;
  margin: 0 0 20px;
}

.form_group label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 16px;
  padding: 0;
  color: #999;
  font-weight: 400;
  transition: .2s ease;
  z-index: 1;
}

.rtl .form_group label {
  right: 1rem;
  left: auto;
}

.form_group input,
.form_group select,
.form_group textarea {
  position: relative;
  width: 100%;
  height: 50px;
  padding-inline-start: 16px;
  box-shadow: inset 0 0 0 1px rgba(153, 153, 153, 0.25);
  border-radius: 6px;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: #000;
  font-weight: 400;
  z-index: 2;
}

@media (max-width: 767px) {
  .form_group input,
  .form_group select,
  .form_group textarea {
    height: 44px;
  }
}

.form_group input:hover,
.form_group select:hover,
.form_group textarea:hover {
  border: 0;
  outline: 0;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(14, 192, 219, 0.28), inset 0 -1px 0 1px rgba(14, 192, 219, 0.28);
  border: 0;
  outline: 0;
}

.form_group select {
  color: #999;
  padding: 0 16px;
}

.text-area label {
  top: 16px;
  transform: none;
}

.text-area textarea {
  height: 100px;
  padding: 16px;
}

.form_group.active label {
  top: -16px;
  left: 0;
  transform: none;
  font-size: 12px;
  color: #0ec0db;
}

.rtl .form_group.active label {
  right: 0;
  left: auto;
}

.form_group .material-icons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  color: #999;
  font-size: 24px;
  z-index: 1;
}

.half .form_group {
  flex: 1;
}

.half .form_group:first-child {
  margin-right: 20px;
}

.cvv-code .material-icons,
.c-card .material-icons {
  font-size: 16px;
}

.cvv-code .material-icons {
  cursor: pointer;
  z-index: 2;
}

.exp-date {
  align-items: center;
}

.exp-date > * {
  flex: auto 1 1;
  margin-right: 20px;
}

.exp-date > *:last-child {
  margin-right: 0;
}

.exp-date p {
  margin-bottom: 20px;
}

.terms_wrap {
  margin-top: 10px;
  font-size: 12px;
}

.terms_wrap label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  padding: 0;
}

.terms_wrap label input[type="checkbox"] {
  position: relative;
  background: #fff;
  width: 15px;
  height: 15px;
  margin-inline-end: 10px;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px #cccccc;
  opacity: 1;
  transition: .3s ease;
  cursor: pointer;
}

.terms_wrap label input[type="checkbox"]:after {
  display: table;
  position: absolute;
  content: "check";
  font-family: 'Material Icons';
  z-index: 1;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #0ec0db;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  transition: .3s ease;
  opacity: 0;
}

.terms_wrap label input[type="checkbox"]:checked:after {
  opacity: 1;
}

.terms_wrap label input[type="checkbox"]:focus {
  outline: 0;
}

.terms_wrap label p {
  font-size: 12px;
}

.terms_wrap p {
  padding: 0 10px;
  font-size: 12px;
  text-align: justify;
  text-align-last: center;
}
