body {
  font-family: "Poppins", "Roboto", sans-serif;
  display: block;
  align-content: center;

  height: 100vh;
}

h2 {
  margin: 0;

  font-size: 16px;
  line-height: 24px;
}

.hosted-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 400px;
  background-color: #fff;

  margin: 0 auto;
  padding: 20px;
  border: 2px solid #e1dfdd;
  border-radius: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;

  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #3e3e3e;
}

/* INPUT GROUP STYLE */
.input-group {
  position: relative;
}
.input-invalid {
  border: 1px solid #e31617 !important;
}
.input-style {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #c8c6c4;
  outline: 0;
  border-radius: 5px;
  font-weight: 500;
  font-size: 14px;
}

input::placeholder {
  color: #c8c6c4;
  font-weight: 500;
  font-size: 14px;
}

input:focus {
  border-color: #0142af;
  outline: none;
}

.label-w-info span {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;

  margin-right: 4px;
  margin-bottom: 8px;
}

.fa-circle-info {
  cursor: pointer;
  color: #757575;
}

/* CARD NUMBER & CARD TYPE STYLE */
.card-num-card-type-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-type-list {
  display: flex;
  gap: 4px;
}

/* SECURITY CODE & EXPIRY DATE */
.security-code-expiry-date {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FLEX MICROFORM STYLE */

.flex-microform {
  height: 38px;
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.flex-microform input {
  width: calc(100% - 40px);
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.flex-microform-focused {
  border-color: #0142af;
}

.flex-microform-valid {
  border-color: #159a00;
}

.flex-microform-invalid {
  border-color: #e31617;
}

/* plus style */
.cvv-code {
  position: relative;
}

.info-btn {
  position: absolute;
  right: 20px;
  top: calc(50% - 10px);
  background: none;
  border: none;
  color: #007bff;
  font-size: 1.2rem;
  cursor: pointer;
}

.security-message-wrap {
  margin-bottom: 16px;

  font-size: 12px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.security-message {
  margin-left: 4px;
}

.terms {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 500;
}

.terms a {
  color: #007bff;
  text-decoration: none;
}

/* BUTTON SUBMIT STYLE */
.btn-primary {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #0142af;

  font-style: bold;
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

.continue-btn:disabled {
  background-color: #ccc;
}

.error-message {
  font-size: 14px;

  color: #e31617;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  padding: 24px;
  border: 1px solid #888;
  max-width: 300px;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal-text {
  margin: 0;

  font-size: 14px;
  line-height: 20px;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.cvv-guide-img {
  margin-top: 8px;
  margin-bottom: 24px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* LOADING overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0142af;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}

.processing-title {
  margin-top: 24px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
  body {
    height: unset;
    padding: 10px;
  }
  .hosted-page-wrapper {
    border: none;
    display: block;

    margin: 0;
    padding: 0;
    max-width: unset;
  }
  .security-code-expiry-date {
    flex-direction: column;
  }

  .security-message-wrap {
    text-align: center;
  }

  .btn {
    font-size: 14px;
  }

  .terms {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 12px;
  }
}

@media screen and (max-width: 300px) {
  .card-num-card-type-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 200px) {
.input-group label {
font-size: 12px;
}

.label-w-info {
  display: flex;
  gap: 2px;
}

.label-w-info span {
  font-size: 12px;
}
}
