/* careers.remax-scotland.homes: the REMAX Scotland careers form (6 Oct 2026).
   Light, calm and roomy; built to sit inside the REMAX website as an iframe. */
:root {
  --navy: #0b163b; --blue: #0043ff; --blue-d: #0036cc; --red: #ff1200;
  --ink: #1d2433; --muted: #5d667a; --line: #dfe3ec; --soft: #f4f6fb; --cream: #f7f5ee;
  --ok: #0f8a4b; --bad: #c62828; --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.cf { max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; }
.cf-head { margin-bottom: 8px; }
.cf-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cf h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
.cf-lede { margin: 0; color: var(--muted); font-size: 1.02rem; }

.cf-sec { margin-top: 22px; padding: 22px 22px 6px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(11,22,59,.06), 0 6px 22px rgba(11,22,59,.07); }
.cf-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.08rem; color: var(--navy); }
.cf-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .82rem; font-weight: 700; flex: none; }
.cf-opt { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 2px 9px; }

.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .cf-row2 { grid-template-columns: 1fr; } .cf-sec { padding: 18px 16px 4px; } .cf { padding-top: 18px; } }

.cf-field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.cf-field > label:not(.cf-check):not(.cf-drop), .cf-field > legend { display: block; margin: 0 0 6px; font-weight: 600; font-size: .94rem; color: var(--ink); padding: 0; }
.cf input[type=text], .cf input:not([type]), .cf input[type=email], .cf input[type=tel], .cf textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s; }
.cf textarea { resize: vertical; min-height: 120px; }
.cf input::placeholder, .cf textarea::placeholder { color: #9aa2b4; }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,67,255,.12); }
.cf-hint { margin: 5px 0 0; font-size: .8rem; color: var(--muted); }
.cf-err { margin: 5px 0 0; min-height: 0; font-size: .84rem; color: var(--bad); font-weight: 600; }
.cf-err:empty { display: none; }
.cf-field.is-bad input, .cf-field.is-bad textarea { border-color: var(--bad); }
.cf-field.is-bad .cf-pill span, .cf-field.is-bad .cf-drop { border-color: var(--bad); }

.cf-pills { display: flex; gap: 10px; }
.cf-pill { position: relative; cursor: pointer; }
.cf-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cf-pill span { display: inline-block; min-width: 92px; text-align: center; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 600; color: var(--ink); transition: all .15s; }
.cf-pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.cf-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,67,255,.18); }

.cf-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed #b9c2d6; border-radius: 12px; background: var(--soft); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.cf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cf-drop:hover, .cf-drop.is-over { border-color: var(--blue); background: #eef3ff; }
.cf-drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,67,255,.12); }
.cf-drop-ico { color: var(--blue); }
.cf-drop-text b { color: var(--blue); }
.cf-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #eef8f2; color: var(--ok); font-weight: 600; }
.cf-file-name { overflow-wrap: anywhere; }
.cf-file-name::before { content: "\2713\00a0\00a0"; }
.cf-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--muted); text-decoration: underline; cursor: pointer; }

.cf-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin: 0 0 10px; border-radius: 12px; background: var(--soft); cursor: pointer; font-size: .9rem; line-height: 1.5; color: #39414f; transition: background .15s; }
.cf-check:hover { background: #eceff7; }
.cf-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.cf-field.is-bad .cf-check input:not(:checked) { outline: 2px solid var(--bad); outline-offset: 1px; border-radius: 4px; }
.cf-sign { font-size: 1.15rem !important; letter-spacing: .01em; }

.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cf-submit { margin-top: 24px; }
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 22px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(0,67,255,.25); transition: background .15s, transform .1s; }
.cf-btn:hover { background: var(--blue-d); }
.cf-btn:active { transform: translateY(1px); }
.cf-btn:focus-visible { outline: 3px solid rgba(0,67,255,.35); outline-offset: 2px; }
.cf-btn[disabled] { opacity: .75; cursor: progress; }
.cf-btn .cf-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cf-spin .8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-formerr { margin: 12px 0 0; color: var(--bad); font-weight: 600; text-align: center; }
.cf-formerr:empty { display: none; }
.cf-small { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.cf-small a { color: var(--blue); }

.cf-done { text-align: center; padding: 30px 8px; outline: none; }
.cf-tick { color: var(--ok); margin-bottom: 8px; }
.cf-tick svg circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: cf-draw .6s ease-out forwards; }
.cf-tick svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-draw .35s .5s ease-out forwards; }
@keyframes cf-draw { to { stroke-dashoffset: 0; } }
.cf-next { list-style: none; counter-reset: n; margin: 22px auto 0; padding: 0; max-width: 480px; text-align: left; }
.cf-next li { counter-increment: n; position: relative; padding: 12px 14px 12px 52px; margin-bottom: 10px; border-radius: 12px; background: var(--soft); color: #39414f; }
.cf-next li::before { content: counter(n); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .82rem; }
.cf-next b { color: var(--navy); }
.cf-book { max-width: 480px; margin: 18px auto 0; padding: 18px; border-radius: var(--radius); background: var(--cream); }
.cf-book p { margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .cf-tick svg circle, .cf-tick svg path { stroke-dashoffset: 0; }
}
