/*
 * Apply Now dialog styles.
 *
 * The job application twin of the Get in Touch dialog. get-in-touch/style.css
 * owns the shared popup card, close control, heading, standfirst, field grid,
 * textarea and submit geometry; this file carries only what the application
 * form adds or does differently.
 */

/* The application form has three more rows than the enquiry form, so the card
   may use the height the viewport actually offers instead of the enquiry
   popup's own Figma node height; it still scrolls inside itself on short
   screens, exactly like the enquiry dialog does. */
.apply-dialog { max-height: 90vh; max-height: 90dvh; }

/* File row: the whole width, with the legacy helper text underneath. */
.apply-dialog__form .apply-dialog__file { grid-column: 1 / -1; margin-top: clamp(14px, 2vw, 28px); }
.apply-dialog__form .apply-dialog__file input[type="file"] { width: 100%; height: auto; padding: .45rem 0; font-size: clamp(13px, 1.4vw, 16px); }
.apply-dialog__hint { color: #949494; font-size: clamp(11px, 1.2vw, 14px); line-height: 1.4; text-transform: none; }

/* Consent row: a checkbox, so it steps out of the underlined field styling. */
.apply-dialog__form .apply-dialog__consent { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: flex-start; margin-top: clamp(12px, 1.6vw, 20px); color: #000; font-size: clamp(12px, 1.4vw, 16px); line-height: 1.35; text-transform: none; }
.apply-dialog__form .apply-dialog__consent input[type="checkbox"] { flex: 0 0 auto; width: 1rem; height: 1rem; margin: .15rem 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: #dd0b81; }

/* Feedback line */
.apply-dialog__status { grid-column: 1 / -1; margin: clamp(10px, 1.4vw, 18px) 0 0; font-size: clamp(13px, 1.4vw, 16px); line-height: 1.35; }
.apply-dialog__status:empty { display: none; }
.apply-dialog__status.is-error { color: #d63638; }
.apply-dialog__status.is-success { color: #0b0701; }
.apply-dialog__form .apply-dialog__error { margin: 0; color: #d63638; font-size: clamp(11px, 1.3vw, 14px); font-weight: 400; line-height: 1.4; text-transform: none; }

/* Honeypot: reachable by bots, hidden from people and assistive technology. */
.apply-dialog__hp { position: absolute; left: -9999px; width: 1px; height: 1px; margin: 0; overflow: hidden; }
