form {
  --height: 2.6em;
  --font-size: 1.1em;
  --padding: 0 1em;
  --bg: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

input[type="submit"] {
  font-size: var(--font-size);
  padding: var(--padding);
  min-height: var(--height);
  font-weight: 800;
  margin-top: 1em;
}

.input-box {
  position: relative;
  width: 100%;
  height: fit-content;
}

.input-box span {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size);
  color: rgb(204, 204, 204);
  background-color: var(--bg);
  z-index: 20;
  pointer-events: none;
  transition: all 0.2s ease;
}

.style1 {
  background: transparent;
  border-radius: 5px;
  border: solid 1px rgb(204, 204, 204);
  font-size: var(--font-size);
  width: 100%;
  min-height: var(--height);
  padding: var(--padding);
  outline: var(--primary) !important;
}

.style1:focus {
  border-color: var(--primary);
}

.styl1:focus + span {
    color: var(--primary);
}

.style1:focus + span,
.style1:not(:placeholder-shown) + span {
  font-size: 0.9em;
  top: -2px;
  background-color: var(--bg);
  padding: 0 0.5em;
  border-radius: 2em;
}

.style1:focus + span {
  color: var(--primary);
}

.input-box textarea.style1 + span {
  position: absolute;
  left: 1em;
  top: 1.5em;
  transform: translateY(-50%);
  font-size: var(--font-size);
  color: rgb(204, 204, 204);
  z-index: 20;
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-box textarea.style1 {
  background: transparent;
  border-radius: 5px;
  border: solid 1px rgb(204, 204, 204);
  font-size: var(--font-size);
  width: 100%;
  min-height: var(--height);
  height: 10em;
  padding: 0.8em;
  outline: var(--primary) !important;
  resize: none;
}

textarea.style1:focus + span,
textarea.style1:not(:placeholder-shown) + span {
  font-size: 0.9em;
  color: rgb(146, 146, 146);
  top: -2px;
  background-color: var(--bg);
  padding: 0 0.5em;
  border-radius: 2em;
}

textarea.style1:focus {
  border-color: var(--primary);
}

textarea.style1:focus + span {
  color: var(--primary);
}

select {
  position: relative;
  background-color: rgb(221, 221, 221);
  color: rgb(102, 102, 102);
  border-style: none;
  border-radius: 5px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: "";

  font-size: var(--font-size);
  width: 100%;
  min-height: var(--height);
  padding: var(--padding);
}

select option {
    padding: var(--padding);
}

.account-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.account-form > div {
  width: 100%;
}

.account-form h3 {
  font-size: 0.8rem;
  color: var(--gray-600);
  top: -2px;
  font-weight: 600;
  background-color: var(--bg);
  margin-bottom: 0.5rem;
}

.account-form .double-field {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
}

.account-form .double-field > * {
  flex: 1 1 0;
}

.account-form .triple-field {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.account-form .triple-field > * {
  flex: 1 1 0;
}

.account-form .option {
  border: solid 1px black;
  padding: var(--padding);
  border-radius: 5px;
  min-height: var(--height);
  font-size: var(--font-size);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-form input[type="radio"] {
  outline: none;
  width: clamp(1em, 3vw, 1.4em);
  height: clamp(1em, 3vw, 1.4em);
}

.account-form label {
  font-size: 1.1rem;
  color: black;
}

.account-form .phone-field {
  display: flex;
  gap: 1rem;
}
