.report-form-intro {
  background-color: rgb(var(--color-light));
  padding: var(--space-4) 0;
}

.report-form-intro p {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: rgb(var(--color-dark));
  margin: 0;
}

.form-stepper {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.form-stepper-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  position: relative;
  z-index: 1;
}

.form-stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 8px;
  transform: translateY(-50%);
  background: rgb(var(--color-grey) / 0.5);
  z-index: -1;
}

.form-stepper-step.is-complete::after {
  background: rgb(var(--color-dark));
}

.form-stepper-step.is-active::after {
  background: rgb(var(--color-main-blue));
}

.form-stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgb(var(--color-grey) / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-h4);
  color: rgb(var(--color-grey));
  background: rgb(var(--color-white));
  box-sizing: border-box;
}

.form-stepper-step.is-active .form-stepper-circle {
  background: rgb(var(--color-white));
  border-color: rgb(var(--color-main-blue));
  color: rgb(var(--color-main-blue));
}

.form-stepper-step.is-complete .form-stepper-circle {
  background: rgb(var(--color-dark));
  border-color: rgb(var(--color-dark));
  color: rgb(var(--color-white));
}

.form-stepper-label {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-grey));
  white-space: nowrap;
}

.form-stepper-step.is-active .form-stepper-label {
  color: rgb(var(--color-main-blue));
  font-weight: var(--font-weight-h4);
}

.form-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.form-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(var(--color-main-blue));
  color: rgb(var(--color-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-h4);
  flex-shrink: 0;
}

.form-step-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-body);
  color: rgb(var(--color-black));
  margin: 0;
  line-height: 125%;
}

.form-required-note {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-grey));
  margin: var(--space-6) 0 0;
}

.report-form-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-3) 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-left: 3px solid rgb(var(--color-main-blue));
  padding-left: var(--space-2);
}

.form-field-label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field-label,
.form-upload > label {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-h4);
  color: rgb(var(--color-black));
  margin: 0;
}

.form-required-mark {
  color: rgb(var(--color-red));
}

.form-field-desc {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-black));
  margin: 0;
  line-height: 1.5;
}

.form-link {
  color: rgb(var(--color-main-blue));
  text-decoration: underline;
  font-weight: var(--font-weight-button);
}

.form-field-input {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-body);
  font-family: inherit;
  border: 1px solid rgb(var(--color-grey) / 0.4);
  border-radius: 4px;
  color: rgb(var(--color-black));
  background: rgb(var(--color-white));
  box-sizing: border-box;
}

.form-field-input:focus {
  outline: 2px solid rgb(var(--color-main-blue));
  outline-offset: 1px;
}

.form-field-input.error {
  border-color: rgb(var(--color-red));
}

.form-field-error {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-red));
  margin-top: 4px;
}

textarea.form-field-input {
  min-height: 88px;
  resize: vertical;
}

.form-field-row {
  display: flex;
  gap: var(--space-3);
}

.form-field-row .form-field {
  flex: 1;
  min-width: 0;
}

.form-radio-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-black));
  cursor: pointer;
}

.form-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: rgb(var(--color-dark));
  flex-shrink: 0;
  cursor: pointer;
}

.form-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Matches the design: label, then the description, then the drop zone -
   core/Webform's own default order renders the description last (after
   the widget), so this reorders the three (already a flex column) rather
   than fighting the render array's own element order. */
.form-upload > label {
  order: 0;
}

.form-upload > .description {
  order: 1;
}

.form-upload > .form-upload-zone {
  order: 2;
}

.form-upload-hint,
.form-upload .webform-element-description {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  /* Black, not grey - matches the design and the same form's other field
     descriptions (.form-field-desc below also uses --color-black). */
  color: rgb(var(--color-black));
  margin: 0;
}

.form-upload-zone {
  /* Per the design. */
  width: 426px;
  max-width: 100%;
  border: 2px dashed rgb(var(--color-grey) / 0.4);
  border-radius: 4px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.form-upload-zone.is-dragover {
  border-color: rgb(var(--color-main-blue));
  background-color: rgb(var(--color-main-blue) / 0.05);
}

.form-upload-zone p {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-grey));
  margin: 0;
}

.form-upload-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgb(var(--color-main-blue));
  text-decoration: underline;
  cursor: pointer;
  font-weight: var(--font-weight-button);
}

.form-upload-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  text-align: left;
}

.form-upload-file-item {
  position: relative;
  width: 120px;
}

.form-upload-file-item__remove {
  position: absolute;
  top: -8px;
  left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgb(var(--color-red));
  color: rgb(var(--color-white));
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.form-upload-file-item__thumb {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgb(var(--color-grey) / 0.2);
  margin-bottom: var(--space-1);
}

.form-upload-file-item__info {
  font-family: var(--font-family-base);
  font-size: 14px;
  color: rgb(var(--color-black));
  word-break: break-word;
}

.form-upload-file-item__size {
  color: rgb(var(--color-grey));
}

.form-checkgroup {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-check-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-black));
  cursor: pointer;
}

.form-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: rgb(var(--color-dark));
  flex-shrink: 0;
  cursor: pointer;
}

.form-info-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: rgb(var(--color-black));
  margin: 0;
}

.form-captcha {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-captcha-container {
  background: rgb(var(--color-light));
  padding: var(--space-2);
  border-radius: 4px;
}

.form-captcha-widget {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px dashed rgb(var(--color-grey) / 0.5);
  border-radius: 4px;
  padding: var(--space-2);
  background: rgb(var(--color-white));
  min-width: 300px;
}

.form-captcha-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-black));
  cursor: pointer;
}

.form-captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgb(var(--color-grey) / 0.5);
  border-radius: 2px;
  flex-shrink: 0;
  background: rgb(var(--color-white));
}

.form-captcha-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.form-captcha-logo {
  width: 40px;
  height: 40px;
  background: rgb(var(--color-grey) / 0.15);
  border-radius: 2px;
}

.form-captcha-brand-text {
  font-family: var(--font-family-base);
  font-size: 11px;
  color: rgb(var(--color-grey));
  letter-spacing: 0.02em;
}

.form-captcha-hint {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: rgb(var(--color-grey));
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-actions > *:only-child {
  margin-left: auto;
}

@media (max-width: 767px) {
  .form-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .form-actions .button {
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
  }

  .form-actions > *:only-child {
    margin-left: 0;
  }
}
