@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap");

.formulario-page {
  --orange: #f29100;
  --orange-dark: #c87500;
  --orange-light: #ffb33d;
  --ink: #f4f4f4;
  --muted: rgba(244, 244, 244, .72);
  --panel: #111315;
  --field: rgba(244, 244, 244, .08);
  --line: rgba(244, 244, 244, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  min-height: 0;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

.formulario-page [hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: transparent;
  overflow: visible;
}

.formulario-parceria-wrap {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0;
}

.lead-form {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 19, 21, .98), rgba(17, 19, 21, .94));
  box-shadow: var(--shadow);
  overflow-y: visible;
  padding: 22px 24px 20px;
  scrollbar-color: var(--orange) rgba(244, 244, 244, .16);
  scrollbar-width: thin;
}

.lead-form::-webkit-scrollbar {
  width: 8px;
}

.lead-form::-webkit-scrollbar-track {
  background: rgba(244, 244, 244, .12);
  border-radius: 999px;
}

.lead-form::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  border-radius: 999px;
  border: 2px solid #111315;
}

.lead-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--orange);
}

.form-heading {
  margin-bottom: 12px;
}

.form-heading p {
  margin: 0 0 7px;
  color: var(--orange-light);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.form-heading h1 {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Montserrat", Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 8.4vw, 42px);
  line-height: .92;
  font-weight: 900;
  text-transform: uppercase;
}

.form-heading span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.form-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 244, 244, .14);
}

.form-progress span.is-active {
  background: var(--orange);
}

.form-scroll {
  display: grid;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden] {
  display: none;
}

.form-step legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--orange-light);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.form-step label {
  display: grid;
  gap: 0;
  margin-bottom: 6px;
}

.form-step label span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-step input,
.form-step select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(244, 244, 244, .16);
  border-radius: 6px;
  background: var(--field);
  color: #fff;
  padding: 0 14px;
  outline: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-step input:-webkit-autofill,
.form-step input:-webkit-autofill:hover,
.form-step input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #252729 inset, 0 0 0 4px rgba(242, 145, 0, .14);
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

.form-step input::placeholder {
  color: rgba(244, 244, 244, .74);
}

.form-step select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange-light) 50%),
    linear-gradient(135deg, var(--orange-light) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-step input:focus,
.form-step select:focus {
  border-color: rgba(242, 145, 0, .8);
  background-color: rgba(244, 244, 244, .11);
  box-shadow: 0 0 0 4px rgba(242, 145, 0, .14);
}

.field-message {
  min-height: 0;
  margin: -2px 0 4px;
  color: #ffb3a8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.field-message:empty {
  display: none;
}

.form-step input.is-invalid,
.form-step select.is-invalid {
  border-color: rgba(217, 48, 37, .82);
  box-shadow: 0 0 0 4px rgba(217, 48, 37, .14);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.form-actions.is-final {
  grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
  align-items: center;
}

.button,
.ghost-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  transition: transform .2s ease, background .2s ease, border .2s ease, opacity .2s ease;
}

.form-actions.is-final .button,
.form-actions.is-final .ghost-button {
  min-height: 48px;
  padding-inline: 16px;
  font-size: 14px;
}

.form-actions.is-final .button {
  white-space: normal;
}

.button {
  background: var(--orange);
  box-shadow: 0 16px 34px rgba(242, 145, 0, .28);
}

.button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(244, 244, 244, .2);
  color: rgba(244, 244, 244, .84);
}

.ghost-button:hover {
  border-color: rgba(242, 145, 0, .58);
  color: #fff;
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: .68;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(244, 244, 244, .78);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

@media (max-width: 460px) {
  .formulario-parceria-wrap {
    width: 100%;
  }

  .lead-form {
    border-radius: 8px;
    padding: 22px 18px 20px;
  }

  .form-actions.is-final {
    grid-template-columns: minmax(96px, .38fr) minmax(0, 1fr);
  }

  .form-actions.is-final .button,
  .form-actions.is-final .ghost-button {
    padding-inline: 12px;
    font-size: 13px;
  }
}
