/* src/public/css/tools/forms.css
   The form helpers that are not exam pages: name and date on a photo, and
   photo + signature in one image. Same card, preview and fields as the
   signature cards (ink.css); this file only lays them out.
   Order on the page (the UX scale): heading, drop zone, then, once a photo is
   in, the preview with the few things to fill in, and one white button. */
.form-tool { margin: 28px auto 0; max-width: 920px; min-width: 0; }
.form-drops { display: grid; gap: 12px; }
.form-drops.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-drop.upload-zone { min-height: 170px; padding: 20px; text-align: center; margin: 0; }
.form-drop.upload-zone p { margin: 0; font-size: 17px; }
.form-drop.upload-zone.dragover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }
.form-drop.is-set { border-style: solid; border-color: rgba(143, 240, 187, 0.5); min-height: 0; padding: 14px 16px; }
.form-drop.is-set .upload-subtext { color: #8ff0bb; }
.form-drops.is-done .form-drop.upload-zone { min-height: 0; padding: 12px 16px; }

.form-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.form-work.hidden { display: none; }
.form-work .ink-preview { margin-bottom: 12px; min-height: 200px; }
.form-work .ink-preview canvas { max-height: 380px; min-width: 0; image-rendering: auto; }
.form-fields.ink-custom { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 12px; }
.form-fields .is-wide { grid-column: 1 / -1; }
.form-fields input, .form-fields select { width: 100%; min-width: 0; box-sizing: border-box; }
.form-fields input[type="checkbox"] { width: auto; }
.form-fields .form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.form-more { margin: 0 0 12px; }
.form-more > summary { cursor: pointer; font-size: 13px; color: #a3a3a8; padding: 6px 0; list-style-position: inside; }
.form-more[open] > summary { margin-bottom: 10px; }
/* The one white button on the page (system.css .ax-btn--primary), full width, a thumb tall. */
.form-save.ax-btn { width: 100%; min-height: 48px; font-size: 17px; justify-content: center; }
.form-after { margin: 14px 0 0; }
.form-after.exam-disclaimer { margin-top: 16px; }

@media (max-width: 720px) {
    .form-work { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .form-drop.upload-zone { min-height: 130px; padding: 16px; }
    .form-drops.is-two .form-drop.upload-zone { min-height: 120px; justify-content: flex-start; }
    .form-drops.is-two .form-drop.upload-zone p { font-size: 15px; }
    .form-drops.is-two .form-drop.upload-zone > svg { display: none; }
}
