.pb-new-client-page {
  background: #f7f5ff;
}

.pb-brief-page,
.pb-brief-page * {
  box-sizing: border-box;
}

.pb-brief-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 99, 0, .14), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f7f5ff 48%, #fff 100%);
}

.pb-brief-hero {
  padding: 78px 0 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(55, 41, 120, .92), rgba(55, 41, 120, .78)),
    url("planbox-hero-bg.jpg") center / cover no-repeat;
}

.pb-brief-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: end;
}

.pb-brief-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: clamp(2.35rem, 4vw, 4.45rem);
  line-height: .96;
  letter-spacing: 0;
}

.pb-brief-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
}

.pb-brief-summary {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}

.pb-brief-summary span {
  display: block;
  color: #ffb27d;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pb-brief-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.pb-brief-summary p {
  margin-top: 12px;
  font-size: .94rem;
}

.pb-brief-section {
  padding-top: 54px;
}

.pb-brief-form {
  overflow: hidden;
  border: 1px solid rgba(55, 41, 120, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(55, 41, 120, .12);
}

.pb-brief-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(55, 41, 120, .12);
}

.pb-brief-alert {
  display: none;
  margin: 22px 34px 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 900;
}

.pb-brief-alert.is-visible {
  display: block;
}

.pb-brief-alert.is-success {
  color: #14532d;
  background: #dcfce7;
}

.pb-brief-alert.is-error {
  color: #7f1d1d;
  background: #fee2e2;
}

.pb-brief-progress button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  border: 0;
  color: #372978;
  background: #f4f1ff;
  font: inherit;
  font-size: .9rem;
  font-weight: 900;
  cursor: pointer;
}

.pb-brief-progress button span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #372978;
  font-size: .82rem;
}

.pb-brief-progress button.is-active {
  color: #fff;
  background: #372978;
}

.pb-brief-progress button.is-active span {
  color: #111827;
  background: #ff6300;
}

.pb-brief-step {
  display: none;
  margin: 0;
  padding: 34px;
  border: 0;
}

.pb-brief-step.is-active {
  display: block;
}

.pb-brief-step legend {
  margin-bottom: 8px;
  color: #171129;
  font-size: 1.55rem;
  font-weight: 950;
}

.pb-brief-step > p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #5f5b70;
}

.pb-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pb-brief-grid label,
.pb-check-group {
  display: grid;
  gap: 8px;
}

.pb-brief-grid label span,
.pb-check-group > span {
  color: #2c2540;
  font-size: .86rem;
  font-weight: 900;
}

.pb-brief-grid input,
.pb-brief-grid select,
.pb-brief-grid textarea {
  width: 100%;
  border: 1px solid rgba(55, 41, 120, .18);
  border-radius: 8px;
  padding: 13px 14px;
  color: #211a36;
  background: #fbfaff;
  font: inherit;
  outline: none;
}

.pb-brief-grid textarea {
  resize: vertical;
}

.pb-brief-grid input:focus,
.pb-brief-grid select:focus,
.pb-brief-grid textarea:focus {
  border-color: #ff6300;
  box-shadow: 0 0 0 4px rgba(255, 99, 0, .14);
}

.pb-brief-wide {
  grid-column: 1 / -1;
}

.pb-check-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid rgba(55, 41, 120, .12);
  border-radius: 8px;
  background: #fbfaff;
}

.pb-check-group > span {
  grid-column: 1 / -1;
}

.pb-check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #423b55;
  font-size: .92rem;
}

.pb-check-group input {
  width: 18px;
  height: 18px;
  accent-color: #ff6300;
}

.pb-brief-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 34px 34px;
  border-top: 1px solid rgba(55, 41, 120, .1);
}

.pb-brief-submit {
  display: none;
}

.pb-brief-form.is-final-step [data-brief-next] {
  display: none;
}

.pb-brief-form.is-final-step .pb-brief-submit {
  display: inline-flex;
}

.pb-brief-form.is-first-step [data-brief-prev] {
  visibility: hidden;
}

@media (max-width: 900px) {
  .pb-brief-hero__grid {
    grid-template-columns: 1fr;
  }

  .pb-brief-summary {
    max-width: 520px;
  }

  .pb-brief-progress {
    grid-template-columns: 1fr;
  }

  .pb-brief-progress button {
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 18px;
  }

  .pb-brief-grid,
  .pb-check-group {
    grid-template-columns: 1fr;
  }

  .pb-brief-step,
  .pb-brief-actions {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .pb-brief-hero {
    padding: 54px 0 34px;
  }

  .pb-brief-hero h1 {
    font-size: 2.35rem;
  }

  .pb-brief-actions {
    flex-direction: column-reverse;
  }

  .pb-brief-actions .pb-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .pb-brief-section {
    padding-top: 28px;
  }

  .pb-brief-form {
    width: 100%;
    overflow: hidden;
  }

  .pb-brief-alert {
    margin: 16px 14px 0;
  }

  .pb-brief-step {
    padding: 22px 14px;
  }

  .pb-brief-step legend {
    max-width: 100%;
    font-size: 1.28rem;
    line-height: 1.15;
  }

  .pb-brief-step > p {
    margin-bottom: 18px;
    font-size: .94rem;
    line-height: 1.5;
  }

  .pb-brief-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    width: 100%;
  }

  .pb-brief-grid label,
  .pb-check-group,
  .pb-brief-wide {
    min-width: 0;
    width: 100%;
    grid-column: 1 / -1;
  }

  .pb-brief-grid input,
  .pb-brief-grid select,
  .pb-brief-grid textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    font-size: 16px;
  }

  .pb-check-group {
    padding: 14px;
  }

  .pb-check-group label {
    align-items: flex-start;
    line-height: 1.35;
  }

  .pb-brief-progress button {
    min-width: 0;
    width: 100%;
    padding: 0 14px;
  }

  .pb-brief-actions {
    padding: 18px 14px 22px;
  }
}
