:root {
  /* Color variables */
  --color-primary: #5463d6;
  --color-secondary: #3c4774;
  --color-neutral-dark: #18181d;
  --color-neutral-light: #e4e4e4;
  --color-text-default: #676767;
  --color-border: #76757b;
  --color-error: #db2f43;

  /* Font variables */
  --font-size-base: 16px;
  --font-size-large: 26px;
  --font-size-medium: 14px;
  --font-size-small: 12px;

  /* Other variables */
  --border-radius: 6px;
}

/* Base form */
.form {
  font-size: var(--font-size-base);
  width: 100%;
}

/* Heading */
.form__heading,
.form__heading h2 {
  margin-bottom: 20px;
}

.form__heading h2 {
  color: var(--color-secondary);
  font-size: var(--font-size-large);
  font-weight: 600;
}

/* Fieldsets */
.form fieldset {
  border: none;
  display: none;
  padding: 0;
}

.form fieldset.current {
  display: block;
}

/* Autofill */
.form input:-webkit-autofill,
.form input:-webkit-autofill:active,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:hover {
  -webkit-box-shadow: inset 0 0 0 30px #fff !important;
}

/* Labels */
.form label {
  color: var(--color-text-default);
  display: inline-block;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 5px;
}

.form label.floating {
  cursor: text;
  display: inline !important;
  position: absolute;
  left: 0;
  top: 28%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  margin: 0;
  padding: 0 17px;
  transition: all 0.2s ease;
}

.form label .required {
  color: red;
}

.form label.radio-field-label {
  margin: 10px 0 8px;
}

.form label.radio-option-label {
  color: inherit;
  cursor: pointer;
  font-weight: inherit;
}

/* Radio and Checkbox containers */
.form .radio-option-container {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
}

.form .radio-field {
  text-align: left;
}

.form .radio-field div.error {
  cursor: text;
  position: absolute;
  right: 0;
  top: 5px;
}

/* Go Back Button */
.form .go-back-button {
  font-feature-settings: "clig" off, "liga" off;
  background-color: transparent;
  color: var(--color-primary);
  display: block;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 24px;
  margin: 0 auto -30px;
  text-align: center;
  border: none;
}

/* Inputs and Selects */
.form input,
.form select {
  background-color: #fff;
  border: 1px solid var(--color-border);
}

.form input[type="email"],
.form input[type="tel"],
.form input[type="text"],
.form select {
  width: 100%;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 28px 17px 8px !important;
  outline: none;
  box-shadow: none;
}

/* Error states in inputs */
.form input[type="email"].error,
.form input[type="tel"].error,
.form input[type="text"].error,
.form select.error {
  border-color: var(--color-error);
}

.form input[type="email"]:disabled,
.form input[type="tel"]:disabled,
.form input[type="text"]:disabled,
.form select:disabled {
  background-color: #fff;
  opacity: 0.7;
}

/* Fields with custom select */
.form .custom-select-field,
.form select {
  appearance: none;
  background-image: url("../images/carrot.svg");
  background-position: 97% 50%;
  background-repeat: no-repeat;
  background-size: 12px;
  height: auto;
  padding-top: 24.5px;
}

/* Checkbox and Radio */
.form input[type="checkbox"],
.form input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Buttons */
.form .button {
  width: 100%;
}

.form .button.button--primary {
    padding: 8px 15px;
    margin-bottom: 10px !important;
}

/* Result Message */
.form__result-message {
    color: var(--color-neutral-dark) !important;
}

/* Disclaimer Message */
.form:has(.step.last.current) .form__disclaimer-message {
  display: block;
  color: var(--color-neutral-dark);
}

.form__disclaimer-message {
  display: none;
  margin-top: 20px;
}

.form__disclaimer-message p {
  font-size: var(--font-size-small);
  font-weight: 400 !important;
}

.form__disclaimer-message p a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
}

/* Layout: rows and columns */
.form .row {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  margin: 0 -5px;
}

.form .row > * {
  padding: 0;
}

.form .col {
  flex: 1 0 0%;
  margin: 0 5px 10px;
}

/* Field containers */
.form__field-container {
  font-size: var(--font-size-base);
  position: relative;
  margin: 30px auto 0;
}

/* Floating label for filled or focused inputs */
.form__field-container:has(input:not(:-moz-placeholder-shown)) > label.floating,
.form__field-container:has(input:focus) > label.floating,
.form__field-container:has(input:not(:placeholder-shown)) > label.floating,
.form__field-container:has(select:not([data-chosen=""])) > label.floating {
  font-size: var(--font-size-medium);
  transform: translateY(-20px);
}

/* Adjustment in case of error */
.form__field-container:has(input.error),
.form__field-container:has(select.error) {
  margin-top: 0;
}

.form__field-container:has(input.error) > label.floating,
.form__field-container:has(select.error) > label.floating {
  font-size: var(--font-size-medium);
  transform: translateY(-27px);
}

.form__field-container div.error {
  color: var(--color-error);
  font-size: var(--font-size-medium);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 5px;
  text-align: left;
}

/* Multiflow options */
.form__multiflow_options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 180px;
  position: relative;
}

.form__multiflow_options > label {
  display: flex;
  flex-direction: column;
  flex-basis: 0;
  flex-grow: 1;
  align-items: center;
  cursor: pointer;
  background: #e8ebfb;
  border: 3px solid #e8ebfb;
  border-radius: 8px;
  color: var(--color-neutral-dark);
  font-size: var(--font-size-small);
  font-weight: 500;
  line-height: 14px;
  margin: 0;
  padding: 12px 8px;
  text-align: center;
}

/* Invisible Checkbox/Radio inside multiflow label */
.form__multiflow_options > label input[type="checkbox"],
.form__multiflow_options > label input[type="radio"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

/* Checked state */
.form__multiflow_options > label:has(input[type="checkbox"]:checked),
.form__multiflow_options > label:has(input[type="radio"]:checked) {
  border: 2px solid var(--color-primary);
}

.form__multiflow_options > label img {
  width: 64px;
  height: auto;
  min-height: 64px;
  margin-bottom: 8px;
}

/* Customized checkbox inside multiflow */
.form__multiflow_options > label .checkbox {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #babec6;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Checkbox checked */
.form__multiflow_options > label:has(input[type="checkbox"]:checked) .checkbox,
.form__multiflow_options > label:has(input[type="radio"]:checked) .checkbox {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  background-image: url("../images/check.svg");
  background-repeat: no-repeat;
  background-position: 50%;
}

/* Error in multiflow */
.form__multiflow_options > label .error {
  color: red;
  font-size: var(--font-size-medium);
  position: absolute;
  width: 100%;
  bottom: -22px;
  margin-bottom: 8px;
}

/* Multiflow responsiveness */
@media screen and (min-width: 700px) {
  .form__multiflow_options {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 45px;
    max-width: none;
  }
}

@media screen and (min-width: 960px) {
  .form__multiflow_options {
    gap: 34px;
  }

  .form__multiflow_options > label {
    border-radius: 20px;
    font-size: 24px;
    line-height: 32px;
  }

  .form__multiflow_options > label img {
    width: auto;
    height: auto;
    margin-bottom: 34px;
  }

  .form__multiflow_options label .error {
    top: -28px;
    bottom: auto;
    left: 0;
    color: red;
    font-size: var(--font-size-medium);
    margin-bottom: 8px;
    position: absolute;
  }
}

/* Redirection Screen */
.form__redirection-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form__redirection-screen__title {
  color: var(--color-neutral-dark);
  font-size: 24px;
  font-weight: 600;
  line-height: 36.668px;
  margin-bottom: 20px;
  text-align: center;
}

.form__redirection-screen__description {
  color: var(--color-neutral-dark);
  font-size: var(--font-size-small);
  font-weight: 500;
  line-height: 26.085px;
  text-align: center;
}

.form__redirection-screen__countdownmessage {
  color: var(--color-neutral-dark);
  font-size: var(--font-size-small);
  font-weight: 400;
  line-height: 26.085px;
  text-align: center;
}

.form__redirection-screen__image {
  width: 180px;
  height: auto;
  margin: 30px 0;
}

@media screen and (min-width: 960px) {
  .form__redirection-screen {
    padding: 12px;
  }

  .form__redirection-screen__title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .form__redirection-screen__description {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
  }

  .form__redirection-screen__countdownmessage {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
  }

  .form__redirection-screen__image {
    width: 490px;
    margin: 50px 0;
  }
}

/* Progress */
.form__progress {
  text-align: center;
  margin: 0 auto 18px;
}

.form__progress h3 {
  color: var(--color-neutral-dark);
  font-size: var(--font-size-small);
  font-weight: 700;
  line-height: 21.161px;
  text-align: center;
}

.form__progress .step-number {
  font-feature-settings: "clig" off, "liga" off;
  color: #5c5e6a;
  display: block;
  font-size: var(--font-size-small);
  font-weight: 500;
  line-height: 16px;
  margin-top: 12px;
  text-align: center;
}

.form__progress ul {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form__progress ul li {
  background-color: var(--color-neutral-light);
  border-radius: 4px;
  height: 4px;
  width: 37px;
  list-style: none;
}

.form__progress ul li.completed {
  background-color: var(--color-primary);
}

@media screen and (min-width: 960px) {
  .form__progress {
    margin-bottom: 40px;
  }

  .form__progress h3 {
    font-size: 24px;
    line-height: 40px;
  }

  .form__progress ul li {
    width: 116px;
  }
}

/* Multistep Form */
.form.form--multistep {
  background: #fff;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 792px;
  padding: 32px 12px 40px;
  width: 100%;
}

/* Error in multiflow in multistep */
.form.form--multistep:has(
    .form__multiflow_options label .error:not([style="display: none;"])
  )
  .button {
  margin-top: 91px;
}

.form.form--multistep .form__fields-container {
  margin-bottom: 14px;
  padding: 0;
}

.form.form--multistep .form__fields-container:has(input.error) > label.floating,
.form.form--multistep
  .form__fields-container:has(select.error)
  > label.floating {
  transform: translateY(-32px);
}

.form.form--multistep .form__progress {
  margin-bottom: 24px;
  max-width: 208px;
}

.form.form--multistep .form__multiflow_options {
  max-width: none;
}

/* Error in multiflow in multistep */
.form.form--multistep .form__multiflow_options label .error {
  font-feature-settings: "clig" off, "liga" off;
  background: #fff6f5 url("../images/error.svg") no-repeat 12px center;
  background-size: 16px;
  border: 1px solid #ffefee;
  border-radius: 8px;
  color: var(--color-neutral-dark);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 24px;
  padding: 8px 16px 8px 40px;
  bottom: -74px;
  left: 0;
}

/* Style of labels inside multistep multiflow */
.form.form--multistep .form__multiflow_options > label {
  font-feature-settings: "clig" off, "liga" off;
  align-items: center;
  background-color: transparent;
  border: 2px solid #ebeff4;
  border-radius: 16px;
  color: var(--color-neutral-dark);
  flex-direction: row;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 24px;
  gap: 16px;
  padding: 12px 16px;
  text-align: left;
}

/* Hover state */
.form.form--multistep .form__multiflow_options > label:hover {
  border: 2px solid #6476ff;
}

.form.form--multistep .form__multiflow_options > label:hover .checkbox {
  border: 1px solid #37458a;
}

/* Images in multistep */
.form.form--multistep .form__multiflow_options > label img {
  margin: 0;
}

/* Inputs in multistep */
.form.form--multistep input[type="email"],
.form.form--multistep input[type="tel"],
.form.form--multistep input[type="text"],
.form.form--multistep select {
  border-color: #d5d9df;
}

/* Floating label in multistep */
.form.form--multistep label.floating {
  color: #737685;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 24px;
}

/* Button in multistep */
.form.form--multistep .button {
  display: block;
  margin: 0 auto;
  width: auto;
  min-width: 150px;
}

/* Heading in multistep */
.form.form--multistep .form__heading {
  margin-bottom: 0;
  text-align: center;
}

.form.form--multistep .form__heading h2 {
  font-feature-settings: "clig" off, "liga" off;
  color: var(--color-neutral-dark);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

.form.form--multistep .form__heading p {
  color: var(--color-neutral-dark);
  font-size: var(--font-size-small);
  font-weight: 400;
  line-height: 26.085px;
  margin: 0 auto 8px;
  text-align: center;
}

/* Multistep responsiveness */
@media screen and (min-width: 700px) {
  .form.form--multistep {
    padding: 32px 40px;
  }

  .form.form--multistep:has(
      .form__multiflow_options label .error:not([style="display: none;"])
    )
    .button {
    margin-top: 74px;
  }

  .form.form--multistep .form__multiflow_options {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
  }

  .form.form--multistep .form__multiflow_options:has(img) {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .form.form--multistep .form__multiflow_options label .error {
    bottom: -66px;
    top: auto;
    text-align: left;
  }

  .form.form--multistep .form__multiflow_options > label {
    padding: 16px;
  }

  .form.form--multistep .form__multiflow_options > label:has(img) {
    flex-direction: column;
    padding: 12px 16px 24px;
    text-align: center;
  }

  .form.form--multistep .form__multiflow_options > label:has(img) .checkbox {
    align-self: baseline;
  }

  .form.form--multistep .form__multiflow_options > label:not(:has(img)) {
    flex-basis: 30%;
    flex-grow: 0;
  }

  .form.form--multistep .form__multiflow_options > label img {
    margin-top: -20px;
  }

  .form.form--multistep .form__heading h2 {
    font-size: 24px;
    line-height: 32px;
  }
}

@media screen and (min-width: 960px) {
  .form.form--multistep .form__multiflow_options > label:not(:has(img)) {
    flex-basis: 0;
    flex-grow: 1;
  }
}

/* Custom CSS */
.form.form--multistep .button {
    background-color: #f16642;
    color: #fff;
    line-height: 30px;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}

#teaching-learning-panel {
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
}

/* Form container */
.dropdown-form-container {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0px 4px 56px 0px rgba(24, 24, 29, 0.18);
}

/* Inline buttons form */
/* Label Icons */
.form.form--multistep .form__multiflow_options > label > i[class^="fa-"] {
    margin-left: auto;
    align-items: center;
    border-radius: 50%;
    color: #6476ff;
    display: inline-flex;
    flex-shrink: 0;
    height: 26px;
    justify-content: center;
    margin-left: auto;
    padding: .5rem;
    pointer-events: none;
    transition: inherit;
    width: 26px;
}

.form.form--multistep .form__multiflow_options > label:hover > i[class^="fa-"],
.form.form--multistep .form__multiflow_options > label:focus > i[class^="fa-"],
.form.form--multistep .form__multiflow_options > label:active > i[class^="fa-"] {
  color: #FFF;
}

.form.form--multistep .form__multiflow_options > label:hover,
.form.form--multistep .form__multiflow_options > label:focus,
.form.form--multistep .form__multiflow_options > label:active {
    color: #FFF;
    background-color: #5463d6;
    transform: scale(1.02);
    box-shadow: 0 0 0 2px #5463d633;
    z-index: 1;
    transition: transform 0.60s cubic-bezier(.4,2,.3,1), box-shadow 0.18s cubic-bezier(.4,2,.3,1);
}

/* .form.form--multistep .form__multiflow_options > label::before{
    background-image: url(../assets/img/form-svg-home.svg);
    background-color: #e6f6f7;
    color: #5463d6;
    content: "";
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 0.5rem;
    padding: 11px;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-size: contain;
    border-radius: 12px;
    pointer-events: none;
} */