/* Shire Careers form - matches shirefoods.com (cream, brown, Shire red, Bebas Neue headings, square corners).
   The page background is transparent so the form sits on whatever the embedding section paints. */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #412722;
  --brown-2: #6b4d45;
  --red: #e40520;
  --red-dark: #b5041a;
  --cream: #f9f5e3;
  --cream-2: #f0eacf;
  --line: #d9cfae;
  --white: #ffffff;
  --muted: #6b5d55;
  --error: #b5041a;
  --error-bg: #fdecee;
  --ok: #2f6b3a;
  --radius: 2px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
body { font: 16px/1.5 var(--font); color: var(--brown); -webkit-text-size-adjust: 100%; }

.wrap { max-width: 760px; margin: 0 auto; padding: var(--s4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; color: var(--brown); margin: 0; }
h1 { font-size: 40px; line-height: 1.05; }
h2 { font-size: 26px; line-height: 1.1; margin-bottom: var(--s4); }

.intro { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.intro .logo { flex: none; display: block; width: 81px; height: 62px; }   /* the file is 162 x 124: sharp on high-density screens */
.intro > div { min-width: 0; }
.intro p { margin: var(--s2) 0 0; color: var(--muted); }
.req { color: var(--red); font-weight: 700; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brown);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s4);
}

.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.grid.two > .field { margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .wrap { padding: var(--s3); }
  .card { padding: var(--s4); }
  .grid.two { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .intro { align-items: flex-start; gap: var(--s3); }
  .intro .logo { width: 63px; height: 48px; margin-top: 2px; }
}

.field { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: var(--s1); padding: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  display: block; width: 100%;
  font: inherit; color: var(--brown);
  background: var(--white);
  border: 1px solid #b9ab8a;
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 72px; }
input.short { max-width: 220px; }
input.medium, select.medium { max-width: 340px; }
select { cursor: pointer; }
input.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
[hidden] { display: none !important; }
.note { font-size: 13px; color: var(--muted); margin: var(--s1) 0 0; }
.note.list { padding-left: 18px; }
.note.list li { margin-top: 2px; }
.note strong { color: var(--brown); }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.ok { font-size: 14px; font-weight: 600; color: var(--ok); margin: var(--s1) 0 0; }
.ok::before { content: "\2713\00a0"; }
.hint { font-size: 14px; color: var(--brown); background: var(--cream); border-left: 3px solid var(--brown); padding: 6px 10px; margin: var(--s1) 0 0; }
.linklike { font: inherit; font-weight: 700; color: var(--brown); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linklike:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #9a8c80; }
input:hover, textarea:hover, select:hover { border-color: var(--brown-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(65, 39, 34, .18); }

[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-bg) !important; }

.choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice { position: relative; margin: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 44px; padding: 8px 18px;
  border: 1px solid #b9ab8a; border-radius: var(--radius); background: var(--white);
  cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s;
}
.choice span:hover { border-color: var(--brown); background: var(--cream); }
.choice input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--white); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(65, 39, 34, .3); }
fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }
fieldset[aria-invalid="true"] { background: transparent !important; }

.check { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brown); flex: none; }

.err { color: var(--error); font-size: 14px; margin: var(--s1) 0 0; min-height: 0; }
.err:empty { display: none; }

.declaration { background: var(--cream); border-left: 4px solid var(--brown); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); font-size: 15px; }
.privacy { font-size: 14px; color: var(--muted); margin: var(--s4) 0 0; }
.privacy a, .wrap a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.turnstile { margin-top: var(--s4); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s6); }
.btn {
  font-family: var(--display); font-size: 24px; letter-spacing: .04em;
  color: var(--white); background: var(--red);
  border: 0; border-radius: var(--radius);
  padding: 12px 32px; min-height: 52px; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.btn[disabled] { background: #c9a3a8; cursor: progress; }
.send-error { color: var(--error); margin: 0; font-weight: 600; }

.summary { background: var(--error-bg); border: 1px solid var(--error); border-left: 4px solid var(--error); padding: var(--s4) var(--s5); margin-bottom: var(--s4); }
.summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.summary h2 { color: var(--error); font-size: 24px; margin-bottom: var(--s2); }
.summary ul { margin: 0; padding-left: 20px; }
.summary a { color: var(--error); font-weight: 600; }

.done { border-top-color: var(--ok); text-align: left; }
.done:focus { outline: none; }
.done h2 { color: var(--ok); }
.done p { margin: 0 0 var(--s2); }
.ref strong { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .06em; }
