/* work-with-karakter/index.html: the vendor self-signup form (docs/VENDOR_SIGNUP.md).
   Built on ds-content.css's calc-* form vocabulary; this file adds only what a
   long, multi-section form needs. Tokens only (docs/DESIGN-SYSTEM.md). */

/* How it works: three numbered steps under the intro. */
.wk-steps {
  display: grid;
  gap: var(--ds-space-3);
  margin: var(--ds-space-5) 0;
  padding-left: var(--ds-space-5);
}

.wk-steps li {
  padding-left: var(--ds-space-2);
}

/* The note an invite link shows above the form. */
.wk-invite {
  margin: var(--ds-space-5) 0 0;
  padding: var(--ds-space-4) var(--ds-space-5);
  border-left: 2px solid var(--ds-accent);
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent-subtle);
  color: var(--ds-fg);
  font-size: 16px;
  line-height: 1.5;
}

/* Sections of the form. A fieldset keeps the questions grouped for a screen
   reader; the legend reads as a section heading. */
.wk-section {
  min-width: 0;
  margin: 0 0 var(--ds-space-6);
  padding: 0;
  border: 0;
}

.wk-legend {
  display: block;
  width: 100%;
  margin: 0 0 var(--ds-space-2);
  padding: 0 0 var(--ds-space-2);
  border-bottom: 1px solid var(--ds-border);
  font-family: var(--ds-font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ds-fg);
}

.wk-block {
  margin-top: var(--ds-space-5);
}

/* A label for a group of checkboxes, matching .calc-field label. */
.wk-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ds-fg);
}

/* Checkbox lists: service areas, and the extra types inside their groups. */
.wk-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 var(--ds-space-4);
}

.wk-options .calc-check {
  align-items: center;
  min-height: var(--ds-target);
  margin: 0;
  color: var(--ds-fg);
}

.wk-options .calc-check input {
  margin: 0;
}

.wk-options .calc-check input:disabled + span {
  color: var(--ds-fg-muted);
}

/* "Do you do more than one?" opens to the full list, grouped. */
.wk-more {
  margin: var(--ds-space-5) 0 0;
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
}

.wk-more summary {
  display: flex;
  align-items: center;
  min-height: var(--ds-target);
  padding: var(--ds-space-3) 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ds-fg);
  cursor: pointer;
}

.wk-more[open] summary {
  margin-bottom: var(--ds-space-2);
}

.wk-groups {
  display: grid;
  gap: var(--ds-space-4);
}

.wk-group-title {
  margin: var(--ds-space-2) 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ds-fg-muted);
}

.wk-count {
  text-align: right;
}

/* A field with a problem: the edge turns the danger colour, and the message
   sits under it. */
.calc-field :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--ds-danger);
  box-shadow: inset 0 0 0 1px var(--ds-danger);
}

.wk-err {
  margin: 0;
}

/* The file picker keeps the platform's own button, sized like the fields. */
.calc-field input.wk-file {
  padding: var(--ds-space-3) var(--ds-space-4);
  appearance: auto;
  font-size: 15px;
}

/* The honeypot: present for a script that fills every field, out of sight and
   out of the tab order for a person. */
.wk-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .wk-options {
    grid-template-columns: 1fr;
  }

  .wk-legend {
    font-size: 24px;
  }
}
