/*Phase 2 enhancements are layered over the original page CSS.*/

.bp-quote-form.bp-wizard-ready .get-form > .row {
  display: block;
}

.bp-wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.bp-wizard-progress button {
  width: 100%;
  min-height: 48px;
  padding: 9px 7px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.bp-wizard-progress button[aria-current="step"] {
  border-color: var(--bp-primary);
  background: var(--bp-primary);
  color: var(--bp-text-light);
}

.bp-wizard-progress button.bp-complete::after {
  content: " ✓";
}

.bp-step-panel[hidden] {
  display: none !important;
}

.bp-step-panel {
  margin-left: -12px;
  margin-right: -12px;
}

.bp-step-heading {
  width: 100%;
  padding: 0 12px 14px;
  font-weight: 700;
}

.bp-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px 0;
}

.bp-wizard-actions button {
  min-width: 120px;
}

.bp-wizard-actions .bp-step-next {
  margin-left: auto;
}

.bp-extra-fields {
  display: contents;
}

.bp-rights-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  line-height: 1.45;
}

.bp-rights-confirm input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.bp-upload-help,
.bp-form-trust {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.bp-form-trust {
  padding: 12px 14px;
  border-left: 3px solid var(--bp-primary);
  background: rgba(255,255,255,.08);
}

.bp-form-notice strong {
  letter-spacing: .03em;
}

.bp-field-invalid .form-control,
.bp-field-invalid input,
.bp-field-invalid select,
.bp-field-invalid textarea {
  outline: 2px solid var(--bp-primary);
  outline-offset: 2px;
}

.bp-order-reference {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0,0,0,.08);
  font-family: monospace;
  font-weight: 700;
}

.bp-quote-form .order-summary {
  position: sticky;
  top: 24px;
}

@media (max-width: 991px) {
  .bp-quote-form .order-summary {
    position: static;
  }
}

@media (max-width: 575px) {
  .bp-wizard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bp-wizard-progress button {
    min-height: 44px;
    font-size: 13px;
  }
  .bp-wizard-actions {
    flex-wrap: wrap;
  }
  .bp-wizard-actions button {
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-wizard-progress button {
    transition: none;
  }
}
