:root {
  --primary-color: #dd6657;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Montserrat, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-color) 100%);
}
/* Global Stylings */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333333;
}

input::placeholder {
  font-style: italic;
}

.invalidInput {
  background-color: #ffdddd;
}

input:not([type="checkbox"],[type="submit"]),
select {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  /* background-color: white; */
}

a {
  align-items: center;
}

.width-50 {
  width: 50%;
}

.ml-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
}

/* Progressbar */
.progressbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  counter-reset: step;
  margin: 1.0rem 0 4rem;
}

.progressbar::before,
.progress {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background: #dcdcdc;
  /* z-index: 1; */
}

.progress {
  background-color: var(--primary-color);
  width: 0%;
  transition: 0.5s;
}

.progress-step {
  width: 2.1875rem;
  height: 2.1875rem;
  background-color: #dcdcdc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.progress-step::before {
  counter-increment: step;
  /* content: counter(step); */
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: calc(100% + 0.5rem);
  font-size: 0.85rem;
  color: #666;
}

/* other progress */
.progress-japanese{
  position: absolute;
  top: calc(80% + 2.0rem);
  font-size:xx-small;
  color: #a7a6a6;
  font-weight: bold;
}

/* password progress */
.progress-japanese-special{
  position: absolute;
  top: calc(80% + 2.0rem);
  font-weight: bold;
  font-size: xx-small;
  color: #a7a6a6;
}

.japanese{
  color: grey;
  font-size:x-small;
  font-weight: bold;
}

.progress-step-active {
  background-color: var(--primary-color);
  color: #f3f3f3;
}

/* Form */
.form {
	width: clamp(370px, 30%, 430px);
	margin: 0 auto;

	border-radius: 0.35rem;
	padding: 1.5rem;
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.form-step {
  display: none;
  transform-origin: top;
  animation: animate 0.5s;
}

.form-step-active {
  display: block;
}

.input-group {
  margin: 0.51rem 0;
}

/* phone by country */
.iti{
  width: 100%;
}

.input-group-clustered {
  display: inline-block;
  width: 49.4%;
  margin-bottom: 0.5rem;
}

@keyframes animate {
  from {
    transform: scale(1, 0);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

/* Button */
.btns-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.btns-group-login {
  display: grid;
  align-items: center;
  grid-template-columns: max-content max-content auto;
  gap: 1rem;
  position: relative;
  width: auto;
}


.btn {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #f3f3f3;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary-color);
}

@media screen and (max-width: 1389px) {
  .input-group-clustered {
    display: inline-block;
    width: 49%;
    margin-bottom: 0.5rem;
  }
}

.mainForm{
  transform-origin: top;
  animation: animate 0.5s;
}

#toggleButton {
  font-size: small;
  background-color: #8d8888;
  color: #fff; /* Choose your desired text color */
  padding: 1px 10px; /* Adjust padding as needed */
  border-radius: 2px; /* Add rounded corners */
  text-decoration: none; /* Remove the underline from the link */
}


.text-red-600{
	color: rgb(220 38 38);
}

.text-green-600{
	color: rgb(22 163 74);
}

.text-sm{
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
}

.font-medium{
	font-weight: 500;
}



