/* Frank H. Sobey Awards — application + contact forms
   Palette and type follow the site theme: proxima-soft, blue #4f6b81 / #123d60,
   gold #d8cc9f, orange #c5884b, grey #595959 / #373736. */

.apply { --blue: #4f6b81; --blue-d: #123d60; --gold: #d8cc9f; --gold-l: #f3eedc; --orange: #c5884b;
  --ink: #373736; --muted: #777; --line: #d9d9d9; --bg: #f7f6f2; --err: #b3261e; --ok: #2e7d32;
  font-family: "proxima-soft", "Helvetica Neue", Arial, sans-serif; color: var(--ink); max-width: 820px; }
.apply * { box-sizing: border-box; }
.apply h2 { font-weight: 400; font-size: 34px; letter-spacing: .02em; color: var(--blue-d); margin: 4px 0 12px; text-transform: uppercase; }
.apply .lede { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0; }
.apply-head > p { font-size: 16px; line-height: 1.55; max-width: 640px; }
.need { background: var(--gold-l); border-left: 4px solid var(--gold); padding: 16px 20px; margin: 20px 0 32px; font-size: 15px; }
.need p { margin: 0 0 6px; } .need ul { margin: 0 0 10px; padding-left: 20px; } .need li { margin: 3px 0; }
.need .deadline { margin: 0; font-weight: 700; color: var(--blue-d); }

/* progress nav */
.f-nav { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); margin: 0 0 28px; padding: 10px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.f-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
.f-nav a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.f-nav a:hover { color: var(--blue-d); } .f-nav li.done a { color: var(--ok); } .f-nav li.active a { color: var(--blue-d); border-color: var(--blue-d); }
.f-nav li.done a::before { content: "✓ "; }
.f-nav .link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }

/* sections */
.f-section { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; scroll-margin-top: 70px; }
.f-section:last-of-type { border-bottom: 0; }
.f-section h3 { font-size: 22px; font-weight: 600; color: var(--blue-d); margin: 0 0 8px; text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 12px; }
.f-section .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-d); color: #fff; font-size: 14px; align-items: center; justify-content: center; flex: none; }
.sec-intro { font-size: 15px; line-height: 1.55; color: #555; margin: 0 0 18px; max-width: 680px; }

/* grid */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.f-field, .f-radio { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f-radio { border: 0; padding: 0; margin: 0; }
.f label, .f legend { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; padding: 0; }
.f .req { color: var(--orange); margin-left: 3px; } .f .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.f .hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f input[type=url], .f input[type=date], .f select, .f textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #c9c9c9; border-radius: 4px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.f select { background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23595959' stroke-width='1.6'/></svg>") no-repeat right 12px center; padding-right: 36px; }
.f textarea { resize: vertical; line-height: 1.5; min-height: 90px; }
.f :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,107,129,.18); }
.f .invalid :is(input, select, textarea), .f :is(input, select, textarea).invalid { border-color: var(--err); background: #fff8f7; }
.f .count { font-size: 12px; color: var(--muted); align-self: flex-end; } .f .count.warn { color: var(--orange); } .f .count.max { color: var(--err); }
.f .err { color: var(--err); font-size: 13px; margin: 0; } .f .err[hidden] { display: none; }
.f .field-msg { color: var(--err); font-size: 12.5px; margin: 0; }

/* radios & checks */
.radios { display: flex; gap: 10px; }
.radios label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid #c9c9c9; border-radius: 4px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.radios label:has(input:checked) { border-color: var(--blue-d); background: var(--gold-l); }
.radios input, .check input { accent-color: var(--blue-d); width: 18px; height: 18px; margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; line-height: 1.45; }
.check input { margin-top: 2px; }

/* files */
.dropzone { position: relative; border: 2px dashed #c9c9c9; border-radius: 6px; padding: 18px 16px; text-align: center; background: var(--bg); font-size: 14px; transition: border-color .15s, background .15s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone.over { border-color: var(--blue); background: var(--gold-l); }
.dz-btn { display: inline-block; background: var(--blue-d); color: #fff; padding: 7px 14px; border-radius: 4px; font-weight: 600; }
.dz-or { color: var(--muted); margin-left: 6px; }
.dz-name { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); } .dropzone.has-file .dz-name { color: var(--ok); font-weight: 600; }
.dropzone.has-file .dz-name::before { content: "✓ "; }

.tips { background: var(--bg); border-radius: 6px; padding: 14px 18px; margin-top: 18px; font-size: 14px; }
.tips p { margin: 0 0 6px; } .tips ul { margin: 0; padding-left: 20px; } .tips li { margin: 3px 0; }

/* submit */
.f-submit { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.btn { font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--orange); border: 0; border-radius: 4px; padding: 14px 30px; cursor: pointer; transition: background .15s; }
.btn:hover { background: #b2600f; } .btn[disabled] { opacity: .6; cursor: progress; }
.f-done { background: var(--gold-l); border-left: 4px solid var(--gold); padding: 24px 28px; font-size: 16px; line-height: 1.55; }
.f-done h2 { margin-top: 0; } .f-done[hidden], .f[hidden] { display: none; }
.contact h2 { margin-top: 0; }

@media (max-width: 720px) {
  .f-grid { grid-template-columns: 1fr; }
  .apply h2 { font-size: 26px; }
  .f-nav { position: static; }
  .radios { flex-direction: column; }
}
