@charset "UTF-8";
body {
  color: #797e86;
  max-width: 533px;
  margin: 0 auto;
  padding-top: 0;
  width: 100%;
}
.bg-img {
  padding: 70px 50px;
  background: url(bg.png) no-repeat top right #f2f4f6;
  background-size: 533px;
  margin: 0;
  height: 100vh;
}

h1 {
  color: #18191b;
  margin-bottom: 2rem;
}
h2 {
  margin-top: 0;
  margin-bottom: 10px;
}
p {
  margin: 0 auto;
}

section {
  display: flex;
  flex-flow: column wrap;
}

section > div {
  width: 100%;
  flex: 1;
  padding: 0.5rem 0;
}

input[type="radio"] {
  display: none;
}
input[type="radio"]:not(:disabled) ~ label {
  cursor: pointer;
}
input[type="radio"]:disabled ~ label {
  color: #bcc2bf;
  border-color: #bcc2bf;
  box-shadow: none;
  cursor: not-allowed;
}

label {
  width: 100%;
  height: 100%;
  display: block;
  background: white;
  border: 2px solid #9ab3fb;
  padding: 30px 0;
  border-radius: 20px;
  /* padding: 1rem; */
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0px 3px 10px -2px rgb(164 161 170 / 50%);
  position: relative;
}

input[type="radio"]:checked + label {
  background: #5680f9;
  color: white;
  box-shadow: 0px 0px 14px rgb(125 125 125 / 60%);
}
input[type="radio"]:checked + label::after {
  color: #3d3f43;
  font-family: FontAwesome;
  border: 2px solid #5680f9;
  content: "";
  font-size: 24px;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  width: 40px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.25);
}

input[type="radio"]:checked + label.singapore::after {
  background: url(singapore.svg) no-repeat center;
  background-size: cover;
}

input[type="radio"]:checked + label.america::after {
  background: url(america.svg) no-repeat center;
  background-size: cover;
}

input[type="radio"]:checked + label.malaysia::after {
  background: url(malaysia.svg) no-repeat center;
  background-size: cover;
}

input[type="radio"]:checked + label.china::after {
  background: url(china.svg) no-repeat center;
  background-size: cover;
}

input[type="radio"]#control_05:checked + label {
  background: red;
  border-color: red;
}

p {
  font-weight: 900;
}
body .btn {
  display: table;
  width: 100%;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  color: white;
  margin: 30px auto;
  padding: 14px 0px;
  text-decoration: none;
  border-radius: 7px;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
  box-shadow: 0 2px 0 rgb(0 0 0 / 5%);
  background-color: rgb(86, 128, 249) !important;
  border-color: rgb(86, 128, 249) !important;
}

@media only screen and (max-width: 700px) {
  section {
    flex-direction: column;
  }
}

/* Button loading state */

.button.button--loader {
  display: flex;
  align-items: center;
}

/* Animation 
source: https://loading.io/css/
*/

.button--loading:before {
  content: " ";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: 0;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: loading-spinner-animation 1s linear infinite;
}

@keyframes loading-spinner-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Button */

.button,
button,
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  line-height: 1.5;
  padding: 0.25rem 2rem;
  background: 0 0;
  color: #58563a;
  border: 1px solid #c1c0b5;
  border-radius: 4px;
  color: #2e2c09;
  border-color: #2e2c09;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.button:active,
.button:focus,
.button:hover {
  text-decoration: none;
  border-color: #5fa316;
  color: #5fa316;
}

.button.button--primary,
button.button--primary,
input[type="submit"].button--primary {
  transition: all 0.1s;
  background: #5fa316;
  border-color: #002c3a;
  color: #fff;
  text-shadow: none;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25), inset -1px -1px 1px rgba(0, 0, 0, 0.25);
}

.button.button--primary:focus,
.button.button--primary:hover,
button.button--primary:focus,
button.button--primary:hover,
input[type="submit"].button--primary:focus,
input[type="submit"].button--primary:hover {
  background: #528d13;
  color: #fff;
  border-color: #002c3a;
}

.button.button--primary:active,
button.button--primary:active,
input[type="submit"].button--primary:active {
  background: #528d13;
  color: #fff;
  border-color: #002c3a;
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25), inset 1px 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25), inset 1px 1px 1px rgba(0, 0, 0, 0.25);
}

.button.button--primary:disabled,
button.button--primary:disabled,
input[type="submit"].button--primary:disabled {
  box-shadow: none;
  background-color: grey;
  cursor: auto;
}

@media only screen and (max-width: 767px) {
  .bg-img {
    padding: 70px 20px;
  }
}
