/* IPS forms (F1 to F14). Uses the site tokens; no inline styles are used anywhere (CSP). */
.fmpage__wrap { max-width: 1120px; }
.fm { display: grid; gap: clamp(22px, 3vw, 34px); }
.fm__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm__intro { font-weight: 400; color: var(--muted); max-width: 42em; }
.fm__progress { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; counter-reset: s; }
.fm__progress li { flex: 1 1 90px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; border-top: 2px solid var(--line); padding-top: 10px; color: var(--muted); transition: color .3s, border-color .3s; }
.fm__progress li span { display: block; font-weight: 600; }
.fm__progress li em { font-style: normal; display: block; }
.fm__progress li.is-on { color: var(--paper); border-color: var(--gold); }
.fm__progress li.is-done { color: var(--gold); border-color: var(--gold); }
.fm__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: clamp(20px, 2.6vw, 28px); }
.fm__step[hidden], .fm [hidden] { display: none !important; }
.fm__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; margin-bottom: 6px; padding: 0; }
.fm__field { display: grid; gap: 10px; min-width: 0; }
.fm__field > label, .fm__group > legend, .fm__legend { font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.fm__group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.fm__group > legend { padding: 0; margin-bottom: 4px; }
.fm__req { color: var(--gold); }
.fm__help { font-size: .88rem; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; margin: 0; }
.fm__input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); font-family: var(--sans); font-size: 1.05rem; padding: 10px 0 14px; border-radius: 0; letter-spacing: 0; text-transform: none; font-weight: 400; transition: border-color .3s; }
.fm__input::placeholder { color: rgba(245, 240, 232, .4); }
.fm__input:focus { outline: none; border-color: var(--gold); }
select.fm__input { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c79f01' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; }
select.fm__input option { color: #111; }
.fm__textarea { resize: vertical; min-height: 110px; border: 1px solid var(--line); padding: 14px; }
.fm__textarea:focus { border-color: var(--gold); }
.fm__field.is-error .fm__input { border-color: #e0795b; }
.fm__err { margin: 0; font-size: .86rem; color: #f0a78f; min-height: 0; letter-spacing: 0; text-transform: none; font-weight: 400; }
.fm__err:empty { display: none; }
.fm__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.fm__choices:not(.fm__choices--chips):not(.fm__choices--scale) .choice span { padding: 18px 22px; line-height: 1.4; display: flex; align-items: center; min-height: 100%; }
.fm__choices--chips { display: flex; flex-wrap: wrap; }
.fm__choices--chips .choice span { padding: 12px 18px; font-size: .96rem; }
.fm__choices--scale .choice span { padding: 10px 0; min-width: 44px; text-align: center; }
.fm__choices--limit.is-full .choice input:not(:checked) + span { opacity: .4; }
.choice--check { display: flex; gap: 14px; align-items: flex-start; }
.choice--check input { position: static; opacity: 1; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--gold); inset: auto; }
.choice--check span { border: 0; padding: 0; font-size: .95rem; line-height: 1.55; }
.choice--check:hover span { border: 0; }
.fm__field--inline { margin-top: -10px; }
.fm__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 22px; }
.fm__sub { display: grid; gap: 6px; align-content: start; }
.fm__sublabel { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: grid; gap: 6px; }
.fm__yn { display: flex; gap: 8px; }
.fm__yn .choice span { padding: 10px 18px; }
.fm__rows { display: grid; gap: 16px; }
.fm__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 18px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fm__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.fm__file { font-family: var(--sans); font-size: .95rem; color: var(--paper); }
.fm__file::file-selector-button { background: none; border: 1px solid var(--line-gold, var(--gold)); color: var(--paper); padding: 10px 18px; margin-right: 14px; cursor: pointer; font-family: var(--sans); }
.fm__slotday { display: grid; gap: 8px; margin-bottom: 14px; }
.fm__slotdate { font-weight: 500; margin: 0; }
.fm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fm__card { border: 1px solid var(--line-gold, var(--gold)); padding: 22px; }
.fm__cardname { font-size: 1.2rem; font-weight: 500; margin: 0 0 4px; }
.fm__pdf { width: 100%; height: min(78vh, 760px); border: 1px solid var(--line); background: #fff; }
.fm__note, .fm__switch { border-left: 2px solid var(--gold); padding: 6px 0 6px 14px; font-weight: 400; margin: 0; }
.fm__switch { display: grid; gap: 14px; justify-items: start; padding: 16px 0 16px 18px; }
.fm__nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fm .btn--ghost { background: none; border: 1px solid var(--line); color: var(--paper); padding: 16px 28px; cursor: pointer; font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-block; transition: border-color .3s; }
.fm .btn--ghost:hover { border-color: var(--gold); }
.fm .btn.is-sending { opacity: .55; pointer-events: none; }
.fm__msg { margin: 0; min-height: 1.4em; }
.fm__msg[data-type="error"] { border-left: 2px solid #e0795b; padding-left: 12px; }
.fm__save { font-size: .8rem; }
.fm__done { display: grid; gap: 18px; justify-items: start; padding: clamp(10px, 3vw, 28px) 0; }
.fm__done h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 400; margin: 0; }
.fm__done p { max-width: 38em; font-weight: 400; font-size: 1.1rem; margin: 0; white-space: pre-line; }
.fm__done ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 1.05rem; }
.fm__done ul li::before { content: "\25C6"; color: var(--gold); margin-right: 10px; font-size: .7em; }
.fm__altlink { background: none; border: 0; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-family: var(--sans); font-size: 1rem; padding: 0; }
.fmpage__alt { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.fm__locked { border-left: 2px solid var(--gold); padding-left: 12px; margin-bottom: 18px; }
.fmpage__form[inert] { opacity: .45; }
.fm__errlist { padding-left: 18px; }
/* quick-enquiry popup */
.fm-pop { border: 1px solid var(--line-gold, var(--gold)); background: var(--ink, #1c1c1c); color: var(--paper, #f5f0e8); width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: clamp(22px, 4vw, 40px); overflow: auto; margin: auto; }
.fm-pop::backdrop { background: rgba(0, 0, 0, .7); }
.fm-pop__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.fm-pop__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; margin: 0; }
.fm-pop__close { background: none; border: 1px solid var(--line); color: var(--paper); width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; line-height: 1; flex: 0 0 40px; }
.fm-pop__close:hover { border-color: var(--gold); }
@media (max-width: 600px) { .fm__choices { grid-template-columns: 1fr; } .fm__choices--chips { display: flex; } .fm__nav .btn { width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .fm * { transition: none !important; } }
.fm-pop--fade[open] { animation: fmfade .35s ease; }
.fm-pop--slide[open] { animation: fmslide .4s cubic-bezier(.2,.7,.2,1); }
.fm-pop--none[open] { animation: none; }
@keyframes fmfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fmslide { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fm-pop[open] { animation: none; } }
.fm, .fm .choice span, .fm-pop { font-weight: 400; }

/* resume banner, save for later, success message, "continue your questionnaire" pill */
.fm { scroll-margin-top: 100px; }
.fm__resume { border-left: 2px solid var(--gold); padding: 8px 0 8px 16px; }
.fm__resume p { margin: 0; font-weight: 400; }
.fm__msg[data-type="success"] { border-left: 2px solid var(--gold); padding-left: 12px; }
.fm .fm__later { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-left: 8px; padding-right: 8px; }
.fm-resume-pill { position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 60; display: flex; align-items: center; gap: 6px; background: var(--ink, #1c1c1c); color: var(--paper, #f5f0e8); border: 1px solid var(--gold); max-width: calc(100vw - 24px); }
.fm-resume-pill[hidden] { display: none; }
.fm-resume-pill a { color: inherit; text-decoration: none; padding: 14px 8px 14px 18px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.fm-resume-pill a:hover { color: var(--gold); }
.fm-resume-pill button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 14px 16px 14px 8px; }

/* Date and month pickers: the calendar icon sits right beside the date, not at the far edge */
.fm input[type="date"], .fm input[type="month"] { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.fm input[type="date"]::-webkit-datetime-edit, .fm input[type="month"]::-webkit-datetime-edit { flex: 0 0 auto; padding: 0; }
.fm input[type="date"]::-webkit-calendar-picker-indicator, .fm input[type="month"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; cursor: pointer; opacity: .9; filter: invert(1) sepia(1) saturate(4) hue-rotate(3deg); }
