.checkout-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.checkout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1920px;
  padding: 72px;
}

@media (max-width: 768px) {
  .checkout {
    padding: 24px;
  }
}

.checkout__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.checkout__header h1 {
  font-family: var(--faapType);
  color: var(--black);
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.checkout__header__tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .checkout__header__tags {
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.checkout__header__tags-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
}

.checkout__header__tags-item svg {
    width: 30px;
    height: 30px;
}

.checkout__header__tags-item p.text-icon {
  font-family: Montserrat;
  color: var(--black);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}


.checkout__steps {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.multi-steps > li.is-active:before,
.multi-steps > li.is-active ~ li:before {
  content: counter(stepNum);
  font-family: inherit;
  font-weight: 700;
  opacity: 1;
  color: var(--black);
}

.multi-steps > li.is-active:before,
.multi-steps > li.is-active ~ li:before {
  content: counter(stepNum);
  font-family: inherit;
  font-weight: 700;
  opacity: 1;
  color: var(--black);
}

.multi-steps {
  gap: 50px;
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .multi-steps {
    gap: 24px;
    justify-content: space-between;
  }
}

.multi-steps > li {
  counter-increment: stepNum;
  text-align: center;
  position: relative;
  color: #2F2F2F;
  opacity: 1;
  font-family: Montserrat;
  display: flex;
  row-gap: 6px;
  flex-direction: column;
}

.multi-steps > li span {
  opacity: 0.5;
  color: #261B01;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.multi-steps > li.is-active span {
  color: #261B01;
  opacity: 1;
}

.multi-steps > li:before {
  content: "\2713";
  display: block;
  margin: 0 auto 4px;
  background-color: #9da6b1;
  color: #261B01;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #9da6b1;
  border-radius: 50%;
}

.multi-steps > li:after {
  content: "";
  height: 1px;
  left: 95%;
  opacity: 1;
  position: absolute;
  top: 16px;
  width: 70%;
  z-index: -1;
  background-color: #261B01;
}

@media (max-width: 768px) {
  .multi-steps > li:after {
    left: 92%;
    width: 60%;
  }
}

.multi-steps > li:last-child:after {
  display: none;
}

.multi-steps > li.is-active:before {
  background-color: #261B01;
  border-color: #261B01;
  opacity: 1;
  color: var(--white);
}

.multi-steps > li.is-active ~ li span {
  color: #261B01;
  opacity: 0.4;
}

.multi-steps > li.is-active ~ li:before {
  background-color: var(--white);
  border-color: #261B01;
  opacity: 1;
  color: #261B01;
}

.checkout__content {
  align-items: flex-start;
  column-gap: 24px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  max-width: 1210px;
  margin: auto;
}

.checkout-investment__info {
  display: flex;
  width: 60%;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  padding: 24px;
  border: 1px solid var(--black);
}

.checkout-investment__info p {
  color: var(--black);
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.checkout-investment__info__one-installment {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-investment__info__one-installment h2 {
  color: var(--black);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
}

.checkout-investment__info__one-installment h3 {
  color: var(--black);
  font-family: Montserrat;
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
}

.checkout-investment__info__one-installment h3 span {
  font-size: 32px;
}

.checkout-investment__info__one-installment small {
  color: var(--black);
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.checkout-investment__info__price small {
  font-family: Montserrat;
  color: var(--black);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 140%;
}

.checkout-investment__info__coupom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid var(--black);
  padding: 8px;
}

.checkout-investment__info__coupom svg {
  width: 24px;
  height: 24px;
}

.checkout-investment__info__coupom svg path {
    fill: #2F2F2F;
}

.checkout-investment__info__coupom span {
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  font-style: normal;
  line-height: 100%;
  color: var(--dark);
}

.checkout-investment__info__coupom.error {
  border: 1px solid #b30f0f;
}

.checkout-investment__info__coupom.error span {
  color: #b30f0f;
}

.checkout-investment__info__coupom.error svg {
  display: none;
}

.checkout-investment__installments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.checkout-investment__installments table {
  width: 100%;
}

.checkout-investment__installments table tr {
  border-bottom: 1px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 8px;
}

.checkout-investment__installments table td {
  width: 30%;
  text-align: left;
}

.checkout-investment__installments table th {
  width: 30%;
  text-align: left;
}

@media (max-width: 768px) {
  .checkout-investment__installments table tr:nth-child(1) {
    margin-top: 8px;
  }

  .checkout-investment__installments table td:nth-child(1) {
    width: 35%;
  }

  .checkout-investment__installments table th:nth-child(1) {
    width: 35%;
  }
}

.checkout-investment__installments table thead tr {
  border-bottom: none;
  margin-top: 0;
  padding-left: 0;
}

.checkout-investment__installments label{
    color: var(--black);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

tr.condition_label th {
  color: var(--FIADark1);
  font-family: var(--fontAlternative);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 200% */
  text-transform: uppercase;
}

td.payment__definition {
  color: var(--FIADark1);
  font-family: var(--fontAlternative);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

td.payment__info {
  color: var(--FIADark1);
  font-family: var(--fontAlternative);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.checkout-investment__info__show-installments {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--black);
}

.checkout-investment__info__show-installments span {
    color: var(--black);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.checkout-wrapper .checkout-investment__info__one-installment .checkout-investment__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .checkout__content {
        flex-direction: column;
    }
    .checkout-investment__info {
        width: 100%;
        margin-bottom: 34px;
    }
    .checkout-investment__installments table {
        width: 100%;
    }
    .checkout__contact__form {
        width: 100% !important;
    }
}

.checkout__contact__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 60%;
}

.checkout__contact__form form {
    width: 100%;
}

.checkout__contact__form h2 {
  color: var(--black);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 18px;
}

*:focus {
    outline: none;
}

.checkout__contact__loading {
  width: 48%;
  display: flex;
  justify-content: center;
}

.checkout__contact__error {
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .checkout__contact__form {
    width: 100%;
  }

  .checkout__contact__loading {
    width: 100%;
  }

  .checkout__contact__error {
    width: 100%;
  }
}

.checkout__contact__error h1 {
  color: var(--black);
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.checkout__contact__error p {
  color: var(--black);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}


.form__input-wrapper.turma {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 32px;
  gap: 4px;
}

.form__input-wrapper.turma label {
  color: var(--black);
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

select#turma_matricula {
  align-self: stretch;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  height: 40px;
  line-height: normal;
  padding: 0 8px;
  cursor: pointer;
}

.form__input-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 34px;
    position: relative;
}

.form__input-wrapper.nome {
    width: 100%;
}

@media screen and (min-width: 744px) and (max-width: 1199px) {

    .form__input-wrapper.email,
    .form__input-wrapper.telefone {
        width: 100%;
    }
}

@media screen and (max-width:743px) {

    .form__input-wrapper.email,
    .form__input-wrapper.telefone {
        width: 100%;
    }
}

.form__input-wrapper label {
    width: fit-content;
    color: var(--black);
    font-family: Montserrat;
    font-size: 16px;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.form__input {
    font-family: var(--fontBody), sans-serif;
    font-size: 14px;
    font-weight: 400;
    height: 60px;
    background: var(--bgWhite);
}

.form__input-wrapper.consentimento_legal,
.form__input-wrapper.send-button {
    width: 100%;
}

.form__input-wrapper.consentimento_legal {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 4px;
    align-items: center;
}

.form__input-wrapper.consentimento_legal label {
    color: var(--black);
    font-family: var(--fontBody), sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.form__input-wrapper.consentimento_legal a {
    color: var(--primaryBlue);
    text-decoration: underline;
}

.send-button {
    display: flex;
    align-items: flex-end;
}

@media screen and (max-width:430px) {
    .checkout-investment__installments label {
        font-size: 12px;
    }
    .checkout-investment__info p {
        font-size: 12px;
    }
    .checkout-investment__info__coupom span{
        font-size: 12px;
    }
}

@media screen and (max-width:340px) {
    .checkout-investment__installments label {
        font-size: 10px;
    }
}

.form__input-wrapper.consentimento_legal.form__input-wrapper--error {
    margin-bottom: 24px;
}

@media screen and (min-width: 744px) and (max-width: 1199px) {
    .form__input-wrapper.consentimento_legal label {
        font-size: 13px;
    }
}

@media screen and (max-width:743px) {
    .form__input-wrapper.consentimento_legal label {
        font-size: 13px;
    }
}

#address-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 32px;
}

.form-row .form__input-wrapper {
    width: 100%;
}

.form-row .form__input-wrapper.numero {
    width: 25%;
}

@media screen and (max-width:743px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form__input-wrapper.numero {
        width: 100%;
    }
}

.checkout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.checkout__contact__error {
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .checkout__contact__form {
    width: 100%;
  }

  .checkout__contact__loading {
    width: 100%;
  }

  .checkout__contact__error {
    width: 100%;
  }
}

.checkout__contact__error h1 {
  font-family: var(--faapType);
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.checkout__contact__error p {
  font-family: var(--fontBody);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}


.hide {
    display: none;
}

@media screen and (max-width:1280px) {
    .checkout-investment__installments table{
        width: 100%;
    }
}

.hide-step {
  width: 0px !important;
  height: 0px !important;
  overflow: hidden !important;
}

/* FORM HUBSPOT */
.checkout__content {
  hubspot-form {
    width: 100%;
  }

  .hs_submit.hs-submit {
    width: 100%;
  }

  .actions {
    display: flex;
    justify-content: end;
    @media (max-width: 768px) {
      justify-content: center;
    }
  }

  .btn {
    align-items: center;
    background: var(--primaryBlue);
    box-sizing: border-box;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 700;
    gap: 16px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 120%;
    padding: 16px 32px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: all .3s ease-in-out;
  }

  @media screen and (max-width: 768px) {
    .btn {
      width: 100%;
    }
  }

  .hs-form-booleancheckbox {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 0 auto 10px;
  }

  .legal-consent-container .hs-form-booleancheckbox-display>span {
    display: unset;
    margin: unset
  }

  .hs-form-booleancheckbox label {
    gap: 8px;
    color: var(--black);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    display: flex;
  }

  label.hs-error-msg.hs-main-font-element,
  .erromsg {
    color: #b30f0f;
    font-family: font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .hs_error_rollup {
    display: none;
  }

  .hs-fieldtype-text {
    label {
      color: var(--black);
      display: flex;
      flex-direction: row-reverse;
      font-family: Montserrat;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      width: fit-content;
      margin-bottom: 8px;
    }
    input {
      border: 1px solid var(--black);
      width: 100%;
      font-family: Montserrat;
      color: var(--black);
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
  }
  .hs-fieldtype-select {
    label {
      color: var(--black);
      display: flex;
      flex-direction: row-reverse;
      font-family: Montserrat;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      width: fit-content;
      margin-bottom: 8px;
    }
  }
  .hs-fieldtype-phonenumber {
    label {
      color: var(--black);
      display: flex;
      flex-direction: row-reverse;
      font-family: Montserrat;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      width: fit-content;
      margin-bottom: 8px;
    }
  }
  .hs-fieldtype-number {
    label {
      color: var(--black);
      display: flex;
      flex-direction: row-reverse;
      font-family: Montserrat;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      width: fit-content;
      margin-bottom: 8px;
    }
  }
  .hs-form-booleancheckbox-display {
    input {
      appearance: none;
      background: var(--white);
      border: 4px solid var(--white);
      box-sizing: border-box;
      cursor: pointer;
      height: 18px;
      outline: 1px solid var(--black);
      width: 18px;
      margin-bottom: 8px;
    }
    input:checked {
      min-width: 18px;
      background: var(--black);
    }
    a {
      color: var(--black);
      text-decoration: underline;
      font-weight: 600;
    }
  }
}

#contact-form-checkout-step-one,
#contact-form-checkout-step-two {
  form,
  fieldset.form-columns-1 {
    width: 100%;
  }
  fieldset.form-columns-2 {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    gap: 28px;
  }

  @media screen and (max-width: 768px) {
    fieldset.form-columns-2 {
      flex-wrap: wrap;
      flex-direction: column;
      gap: unset;
    }
  }

  .hs-form-field {
    width: 100% !important;
    margin-bottom: 24px !important; 
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input::placeholder,
  select {
    width: 100%;
    font-family: Montserrat;
    color: var(--black);
    align-self: stretch;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--black);
    font-weight: 400;
    height: 40px;
    padding: 0 8px;
    outline: 0;
    margin: 0 auto 10px;
    font-size: 16px;
  }
  input:disabled,
  select:disabled {
    background: #d1d5d9;
  }
  input::placeholder {
    opacity: 0.4;
    margin: unset;
  }
}

.hs-input.invalid.error {
  border-bottom: 1px solid #b30f0f !important;
}

#valor-investimento.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  color: transparent;
  border-radius: 4px;
  min-width: 200px;
  min-height: 48px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-row {
  opacity: 0.7;
}

.skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  height: 20px;
  border-radius: 4px;
  width: 100%;
}

#installments-table-body.loading .payment__row {
  border-bottom: 1px solid #e0e0e0;
}

#installments-table-body.loading .payment__definition .skeleton-text {
  width: 80px;
}

#installments-table-body.loading .payment__info .skeleton-text {
  width: 120px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
