/* The shoplot application. The public stylesheet already carries the cards,
   fields, chips, buttons and notices; what is here is the form's own: the
   people repeater, and the closer reading the approved design sets for a form
   of this length - a narrower column, a quieter heading, sentence-case labels
   and square-cornered choices. */

/* A field or a grid the form is not asking for yet. Both .tenant-field and
   .tenant-grid set a display, which beats the hidden attribute on its own, so
   the form states it here rather than leaving a question on screen that has
   not been opened. */
.va-form [hidden] { display: none !important; }

.va-main { max-width: 940px; margin-left: auto; margin-right: auto; }
.va-form .tenant-panel-title { margin-bottom: 18px; letter-spacing: -.015em; }

/* ---- Headings and labels -------------------------------------------------- */

/* A section heading reads as a title with a short rule under it, not as a
   coloured band: on a form of nine sections a band every screen shouts. */
.va-form .tenant-section {
  margin: 26px 0 15px; padding: 0; border-left: 0;
  font-size: 13.5px; font-weight: 800; letter-spacing: .01em; text-transform: none;
  color: #10182b;
}
.va-form .tenant-section::after {
  content: ''; display: block; width: 34px; height: 2px; border-radius: 2px;
  background: #6d28d9; margin-top: 6px;
}
.va-form > .tenant-section:first-of-type { margin-top: 4px; }

.va-form .field-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: #475569; margin-bottom: 5px;
}
.va-form .field-required { color: #dc2626; }
.va-form > .field-label { margin-top: 15px; }
.va-form > .tenant-section + .field-label { margin-top: 0; }

/* ---- Fields --------------------------------------------------------------- */

.va-form .field { font-size: 13px; padding: 10px 13px; border-color: #dfe2ea; }
.va-form .field:focus { border-color: #c4b4f6; box-shadow: 0 0 0 3px #ece5ff; }
.va-form textarea.field { line-height: 1.55; min-height: 82px; }
.va-form .tenant-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr)); gap: 7px; margin-top: 6px; }
.va-form .hint { font-size: 11px; }
.va-form > .hint { margin-bottom: 10px; }

/* ---- Choices -------------------------------------------------------------- */

.va-form .tenant-choice { gap: 8px; margin: 0 0 6px; }
.va-form .tenant-chip {
  gap: 8px; border-radius: 9px; padding: 8px 13px;
  font-size: 12px; font-weight: 600; color: #475569;
}
.va-form .tenant-chip:hover { border-color: #c4b4f6; background: #faf8ff; color: #5b21b6; }
.va-form .tenant-chip input { width: 15px; height: 15px; }

/* The chosen answer reads as pressed in: a colour frame and a soft inset,
   never a colour alone. */
.va-form .tenant-chip:has(input:checked) {
  border-color: #7f56d9; background: #f6f4ff; color: #5b21b6;
  box-shadow: inset 0 1px 3px rgba(109, 40, 217, .16);
}

.va-form .tenant-chip-block {
  border-radius: 11px; padding: 12px 15px; font-size: 12px; font-weight: 500;
  color: #334155; line-height: 1.6; margin-bottom: 9px;
}
.va-form .tenant-chip-block input { width: 16px; height: 16px; }

.va-form .tenant-notice p { text-align: justify; hyphens: auto; }

/* ---- The people named on the application ---------------------------------- */

.va-subhead { font-size: 12.5px; font-weight: 800; color: #10182b; margin: 22px 0 10px; }

.va-waiting {
  margin: 0; padding: 11px 14px; width: 100%;
  border: 1px dashed #dfe2ea; border-radius: 10px; background: #f9fafc;
  font-size: 12px; font-weight: 500; color: #8a93a8;
}

.va-people { display: flex; flex-direction: column; gap: 12px; }

.va-person {
  border: 1px solid #e6e9f0; border-radius: 12px; background: #fbfcfe;
  padding: 14px 16px 16px;
}
.va-person-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.va-person-count {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a879f;
}
.va-person-remove {
  padding: 5px 11px; border: 1px solid #f6c9c9; border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: #a52020; cursor: pointer;
}
.va-person-remove:hover { background: #fdf1f1; }
.va-people .va-person:only-child .va-person-remove { display: none; }

.va-add {
  margin-top: 13px; padding: 9px 15px;
  border: 1px dashed #c4b4f6; border-radius: 10px; background: #faf8ff;
  font-family: inherit; font-size: 12px; font-weight: 700; color: #6d28d9; cursor: pointer;
}
.va-add:hover { border-style: solid; border-color: #7f56d9; }
.va-add[hidden] { display: none; }

@media (max-width: 640px) {
  .va-person { padding: 12px 13px 14px; }
}
