@font-face {
  font-family: Roboto;
  src: url("./assets/fonts/roboto-v30-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: Roboto;
  src: url("./assets/fonts/roboto-v30-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: Roboto;
  src: url("./assets/fonts/roboto-v30-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  color: #485358;
  line-height: 1.5;
  font-family: Roboto, sans-serif;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable both-edges;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  border: 1px solid #c7ced3;
  border-radius: 0.313rem;
  overflow: hidden;
}

#app-inner {
  width: 300%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

#app-inner[data-active-slide="1"] {
  transform: translateX(0);
}

#app-inner[data-active-slide="2"] {
  transform: translateX(-33.33%);
}

#app-inner[data-active-slide="3"] {
  transform: translateX(-66.66%);
}

.slide {
  min-width: 33.33%;
  max-width: 33.33%;
}

fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 2.5rem 2rem;
  border: 0;
}

@media (max-width: 480px) {
  fieldset {
    gap: 2rem;
  }
}

.field {
  display: flex;
  gap: 0.625rem;
}

.explanation {
  font-size: 0.8rem;
  padding-left: 10.625rem;
  max-width: 28.625rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c7ced3;
}

.checkbox-field input {
  margin-top: 8px;
  width: 20px;
}

.checkbox-field label {
  width: auto;
}

@media (max-width: 480px) {
  .field {
    flex-direction: column;
  }

  .explanation {
    width: 100%;
    padding-left: 0;
    max-width: 100%;
  }
}

label {
  font-size: 1.25rem;
  font-weight: 400;
  width: 10rem;
}

@media (max-width: 480px) {
  .field {
    width: 100%;
  }
}

.field-combo {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 18rem;
}

input,
textarea,
select {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 18rem;
  font-family: inherit;
  padding: 0.375rem 0.625rem;
  border-radius: 0.1875rem;
  border: 1px solid #dadcdd;
}

textarea {
  height: 100px;
}

input.is-error,
textarea.is-error,
select.is-error {
  border-color: #fd2323;
}

@media (max-width: 480px) {
  .field-combo,
  input,
  textarea,
  select {
    max-width: 100%;
  }
}

select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: none;
}

option {
  font-size: 1.125rem;
}

.bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c7ced3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error-box {
  margin: 0;
  padding: 0;
  padding: 0.375rem 0.625rem;
  border-radius: 0.1875rem;
  border: 1px solid #fd2323;
  list-style-type: none;
  display: none;
}

.error-box.is-visible {
  display: block;
}

.error-box li {
  position: relative;
  padding-left: 1rem;
  display: none;
}

.error-box li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #fd2323;
}

.error-box li.is-visible {
  display: list-item;
}

.buttons {
  display: flex;
  gap: 0.625rem;
}

a {
  color: #74b95b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  display: inline-block;
  padding: 0.625rem 1.875rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  background-color: #74b95b;
  border: 1px solid #74b95b;
  border-radius: 0.313rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s;
}

button.is-inverted {
  color: #74b95b;
  background-color: #ffffff;
}

button:hover {
  opacity: 0.85;
}

#ebe-field,
#date-of-birth-field {
  display: none;
}

#ebe-field.is-visible,
#date-of-birth-field.is-visible {
  display: flex;
}

#city {
  min-width: 70%;
}

#website-field {
  display: none;
}
