.hdf-pathway {
  --path-blue: #1357d8;
  --path-navy: #081a3a;
  --path-muted: #536681;
  --path-line: #cbd8e7;
  --path-surface: #f4f8fd;
  max-width: 940px;
  margin: 0 auto;
}

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

.hdf-path-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--path-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hdf-path-progress span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--path-muted);
  background: #eaf0f7;
  border-radius: 50%;
}

.hdf-path-progress li.is-active,
.hdf-path-progress li.is-complete {
  color: var(--path-navy);
}

.hdf-path-progress li.is-active span {
  color: #fff;
  background: var(--path-blue);
}

.hdf-path-progress li.is-complete span {
  color: #065f46;
  background: #d9f4e6;
}

.hdf-path-form,
.hdf-path-success,
.hdf-after-order {
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--path-line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(8, 26, 58, 0.08);
}

.hdf-path-step h2,
.hdf-path-success h2,
.hdf-after-order h2 {
  margin: 0 0 12px;
  color: var(--path-navy);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.hdf-path-kicker {
  margin: 0 0 10px;
  color: var(--path-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hdf-path-intro {
  margin: 0 0 26px;
  padding: 16px 18px;
  color: #29415f;
  background: #edf4ff;
  border-left: 4px solid var(--path-blue);
  border-radius: 9px;
}

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

.hdf-path-field {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.hdf-path-grid .hdf-path-field {
  margin: 10px 0;
}

.hdf-path-field label,
.hdf-path-consent {
  color: var(--path-navy);
  font-weight: 700;
  line-height: 1.45;
}

.hdf-path-field input:not([type="file"]),
.hdf-path-field select,
.hdf-path-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: #122542;
  background: #fff;
  border: 1px solid #aebfd3;
  border-radius: 10px;
  font: inherit;
  line-height: 1.5;
}

.hdf-path-field textarea {
  min-height: 130px;
  resize: vertical;
}

.hdf-path-field input:focus,
.hdf-path-field select:focus,
.hdf-path-field textarea:focus {
  outline: 3px solid rgba(19, 87, 216, 0.18);
  border-color: var(--path-blue);
}

.hdf-path-field [aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
}

.hdf-optional {
  color: var(--path-muted);
  font-size: 0.86em;
  font-weight: 500;
}

.hdf-path-help {
  margin: 0;
  color: var(--path-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.hdf-mandate {
  margin-top: 22px;
}

.hdf-mandate__terms {
  margin: 24px 0;
  padding: 20px;
  color: #243a57;
  background: var(--path-surface);
  border: 1px solid var(--path-line);
  border-radius: 14px;
}

.hdf-mandate__terms p {
  margin: 0 0 12px;
}

.hdf-mandate__terms ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.hdf-path-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.hdf-path-warning,
.hdf-path-errors {
  padding: 15px 17px;
  color: #6a3d00;
  background: #fff7df;
  border: 1px solid #f0d48b;
  border-radius: 10px;
}

.hdf-path-errors {
  margin-top: 18px;
  color: #7a271a;
  background: #fff1f0;
  border-color: #f0b8b2;
}

.hdf-path-errors ul {
  margin: 8px 0 0;
}

.hdf-path-privacy {
  margin-top: 24px;
  color: var(--path-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hdf-path-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.94rem;
}

.hdf-path-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.hdf-path-summary {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 20px;
  background: var(--path-surface);
  border: 1px solid var(--path-line);
  border-radius: 14px;
}

.hdf-path-summary__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce5ef;
}

.hdf-path-summary__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hdf-path-summary__row strong {
  color: var(--path-navy);
}

.hdf-order-reference {
  margin-bottom: 20px;
  padding: 14px 18px;
  color: #1d3554;
  background: #eaf2ff;
  border-radius: 10px;
}

.hdf-after-order {
  clear: both;
  margin: 30px 0;
}

.hdf-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 700px) {
  .hdf-path-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdf-path-grid,
  .hdf-path-summary__row {
    grid-template-columns: 1fr;
  }

  .hdf-path-actions {
    display: grid;
  }

  .hdf-path-actions .hdf-button {
    width: 100%;
  }
}
