.hbf-application {
  --hbf-red: #c9001c;
  --hbf-text: #0b0b10;
  --hbf-muted: #6f7182;
  --hbf-soft: #f1f1f4;
  --hbf-line: #c6c6c8;
  width: min(550px, calc(100vw - 34px));
  margin: 0 auto;
  background: #fff;
  color: var(--hbf-text);
  font-family: inherit;
}

.hbf-application * {
  box-sizing: border-box;
}

.hbf-step {
  display: none;
}

.hbf-step.is-active {
  display: block;
}

.hbf-header {
  margin: 0 0 24px;
  text-align: center;
}

.hbf-header h2 {
	font-family: var(--gp-font--just-sans-variable);
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: 0;
}

.hbf-header p {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.hbf-progress {
  width: calc(100% - 44px);
  margin: 0 auto 19px;
}

.hbf-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--hbf-muted);
  font-size: 15px;
  line-height: 1.25;
}

.hbf-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #cfcfd0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .23);
}

.hbf-progress__track span {
  display: block;
  height: 100%;
  border-radius: 999px 0 0 999px;
  background: var(--hbf-red);
}

.hbf-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 0 44px;
  color: var(--hbf-muted);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.hbf-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hbf-tabs b {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid #c9c9cc;
  border-radius: 50%;
  color: var(--hbf-muted);
  font-size: 16px;
  font-weight: 500;
}

.hbf-tabs .is-active {
  color: var(--hbf-red);
}

.hbf-tabs .is-active b {
  border-color: var(--hbf-red);
  color: var(--hbf-red);
}

.hbf-grid {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 20px 22px;
}

.hbf-application label {
  display: block;
  margin: 0 0 22px;
  color: var(--hbf-text);
  font-size: 14px;
  line-height: 1.35;
}

.hbf-input {
  display: block;
  width: 100%;
  height: 39px;
  margin-top: 4px;
  border: 0;
  border-radius: 7px !important;
  background-color: var(--hbf-soft);
  color: var(--hbf-muted);
  font: inherit;
  font-size: 14px;
  padding: 0 17px;
  outline: none;
  box-shadow: none;
}

select.hbf-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777b8c 50%), linear-gradient(135deg, #777b8c 50%, transparent 50%);
  background-position: calc(100% - 26px) 17px, calc(100% - 20px) 17px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.hbf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 0px;
}

.hbf-btn {
  display: inline-flex;
  min-width: 113px;
  height: 51px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s ease;
}

.hbf-btn:disabled {
  cursor: default;
}

.hbf-btn--ghost {
  border-color: #e1e1e4;
  background: #fff;
  color: #b4b4bc;
}

.hbf-btn--ghost span {
  font-size: 20px;
  font-weight: 400;
}

.hbf-btn--primary {
  border-color: var(--hbf-red);
  background: var(--hbf-red);
  color: #fff;
  padding-inline: 14px;
}

.hbf-btn--primary:hover {
	background: #000;
	border-color: #000;
}

.hbf-btn--primary.is-loading {
  opacity: .7;
}

.hbf-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 21px;
  margin-top: 50px;
}

.hbf-upload {
  position: relative;
  margin: 0;
}

.hbf-file {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  width: 100%;
  height: 40px;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.hbf-upload span {
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 1;
  color: #777b8c;
  font-size: 24px;
  line-height: 1;
}

.hbf-upload em {
  display: flex;
  height: 40px;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--hbf-soft);
  color: var(--hbf-muted);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  padding: 0 16px 0 49px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hbf-upload small {
  display: block;
  margin-top: 7px;
  color: var(--hbf-text);
  font-size: 14px;
  line-height: 1.35;
}

.hbf-review {
  margin-top: 0;
}

.hbf-review + .hbf-review {
  margin-top: 14px;
}

.hbf-review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.hbf-review__head h3 {
  margin: 0;
  color: var(--hbf-muted);
  font-size: 15px;
  font-weight: 400;
}

.hbf-review__head button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hbf-red);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.hbf-review__box {
  border-radius: 7px;
  background: var(--hbf-soft);
  padding: 10px 17px 8px;
}

.hbf-review__box p {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}

.hbf-review__box p:last-child {
  margin-bottom: 0;
}

.hbf-uploaded {
  color: var(--hbf-red);
}

.hbf-consent {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  margin: 18px 0 18px !important;
  color: var(--hbf-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.hbf-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--hbf-red);
  cursor: pointer;
}

.hbf-consent span {
  display: block;
}

.hbf-success-icon {
  margin: 0 auto 10px;
  color: var(--hbf-red);
  text-align: center;
}

.hbf-step-4 {
  padding: 0px;
}

.hbf-step-4 .hbf-header {
  margin-bottom: 18px;
}

.hbf-step-4 .hbf-header h2 {
  font-size: 27px;
}

.hbf-step-4 .hbf-header p {
  font-size: 17px;
}

.hbf-tabs--success {
  margin: 18px 0 0;
  gap: 29px;
}

.hbf-instagram-box {
  margin: 54px auto 0;
  padding: 22px 28px 21px;
  border-radius: 8px;
  background: #B8001A;
  text-align: center;
}

.hbf-instagram-box h3 {
  font-family: var(--gp-font--just-sans-variable);
	margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.hbf-instagram-box p {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.42;
}

.hbf-instagram-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 7px;
  background: #fff;
  color: var(--hbf-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease;
}

.hbf-instagram-btn:hover {
  background: #000;
  color: #fff;
}

.hbf-instagram-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hbf-instagram-btn span {
  margin-left: 8px;
  font-size: 19px;
  font-weight: 400;
}

.hbf-instagram-btn span svg {
  width: 14px;
  height: 14px;
}

.hbf-instagram-btn:hover span svg {
  color: #fff;
}

.hbf-message {
  min-height: 18px;
  color: var(--hbf-red);
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .hbf-application {
    padding: 28px 20px 22px;
  }

  .hbf-progress {
    width: 100%;
  }

  .hbf-tabs {
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hbf-grid,
  .hbf-upload-grid {
    grid-template-columns: 1fr;
  }

  .hbf-upload-grid {
    margin-top: 34px;
  }

  .hbf-actions {
    margin-top: 32px;
  }

  .hbf-step-4 {
    padding-inline: 0;
  }

  .hbf-instagram-box {
    margin-top: 38px;
    padding: 21px 18px;
  }

  .hbf-instagram-box h3 {
    font-size: 20px;
  }

  .hbf-instagram-box p {
    font-size: 16px;
  }

  .hbf-instagram-box p br {
    display: none;
  }
}
