/* Apply form, careers/apply.html only. The shared form styles (.form-grid,
   inputs, .form-alert) live in main.css; this adds what only this form needs:
   yes/no questions, the resume drop box and the optional section. */

/* The form starts right under the hero with no heading of its own, so the full section gap reads as a hole. */
#apply { padding-top: clamp(32px, 4vw, 48px); }

.apply-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
/* A legend sits on the fieldset's border by default; floating it puts it inside the box. */
.apply-form legend { float: left; width: 100%; padding: 0; margin-bottom: .55rem; font-size: 13px; font-weight: 600; color: var(--ink); }
.apply-form legend + * { clear: both; }
.apply-form .opt { font-weight: 300; color: var(--ink-soft); }

/* main.css makes every input full width; radios and checkboxes stay small. */
.apply-form input[type="radio"],
.apply-form input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--pg-navy); }

.phone-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 8px; }

.yes-no { padding: .8rem .9rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.choice-row label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: 15px; font-weight: 400; cursor: pointer; }

/* The drop box is a label around the native file input, so clicking it and
   the keyboard work without JavaScript; apply.js adds drag and drop. */
.drop {
  display: block; padding: 1.1rem; text-align: center; cursor: pointer;
  background: var(--paper); border: 2px dashed var(--rule); border-radius: var(--r-card);
}
.drop.over { border-color: var(--indigo); background: var(--indigo-tint); }
.drop strong { display: block; font-size: 15px; }
.drop small { display: block; margin-bottom: .7rem; }
.drop input[type="file"] { width: auto; max-width: 100%; padding: 0; background: transparent; border: 0; }
.file-note { margin-top: .4rem; font-size: 13px; color: var(--ink-soft); }
.file-note.bad { color: var(--safety); }

/* Expertise boxes: two columns, one on a phone. */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .4rem 1rem; margin-top: .5rem; font-size: 15px; }
.choice-grid label { display: flex; gap: .5rem; align-items: baseline; font-weight: 400; }
details.apply-more { border-top: 1px solid var(--rule); padding-top: 1rem; }
details.apply-more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--indigo); }
details.apply-more .form-grid { margin-top: 1rem; }

.consent { display: flex; gap: .55rem; align-items: flex-start; font-size: 14px; font-weight: 400; }
.consent input { margin-top: .2rem; }
@media (max-width: 640px) { .phone-row { grid-template-columns: 7rem 1fr; } }
