/* Click-tile application form (forms/tile-form.js). Always a white card, whatever the page theme. */
.tf {
  --tf-fg: #111A26; --tf-muted: #5B6B80; --tf-line: #D9E4F1; --tf-tile: #F5F9FF; --tf-tint: #EAF2FE;
  --tf-blue: #2196FE; --tf-blue-deep: #0B78DE; --tf-ok: #12A150; --tf-warn: #B45309;
  color-scheme: light; color: var(--tf-fg); background: #fff; border-radius: 20px; padding: 22px 22px 16px;
  font-family: "Manrope", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; text-align: left;
}
.tf * { box-sizing: border-box; }
.tf button { font: inherit; }
.tf :focus-visible { outline: 3px solid var(--tf-blue); outline-offset: 2px; }
.tf-top { display: grid; gap: 10px; margin-bottom: 18px; }
.tf-tag { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: "Figtree", system-ui, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--tf-blue-deep); }
.tf-spots { color: var(--tf-warn); background: #FFF4E5; border-radius: 999px; padding: 3px 9px; letter-spacing: .04em; white-space: nowrap; }
.tf-prog { height: 6px; background: #E8EEF6; border-radius: 99px; overflow: hidden; }
.tf-bar { height: 100%; background: linear-gradient(90deg, var(--tf-blue), var(--tf-blue-deep)); border-radius: 99px; transition: width .35s ease; }
.tf-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--tf-muted); font-weight: 600; min-height: 26px; }
.tf-back { border: 0; background: none; padding: 4px 6px 4px 0; cursor: pointer; color: var(--tf-muted); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; }
.tf-back:hover { color: var(--tf-fg); }
.tf-back[hidden] { display: none; }
.tf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tf-back svg { width: 15px; height: 15px; }

.tf-q { animation: tf-in .32s ease both; }
@keyframes tf-in { from { opacity: .001; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tf-title { font-family: "Figtree", system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; text-transform: none; color: var(--tf-fg); text-wrap: balance; }
.tf-help { margin: 0 0 16px; color: var(--tf-muted); font-size: 14px; }
.tf-tiles { display: grid; gap: 10px; }
.tf-tiles.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-tile { position: relative; text-align: left; border: 1.5px solid var(--tf-line); background: var(--tf-tile); border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 60px; color: var(--tf-fg); transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
.tf-tiles.grid .tf-tile { flex-direction: column; align-items: flex-start; min-height: 104px; gap: 10px; }
.tf-tile:hover { border-color: #93C8FF; box-shadow: 0 6px 18px -10px rgba(11, 120, 222, .5); }
.tf-tile:active { transform: scale(.985); }
.tf-tile.on { border-color: var(--tf-blue); background: var(--tf-tint); box-shadow: 0 0 0 3px rgba(33, 150, 254, .18); }
.tf-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--tf-line); color: var(--tf-blue-deep); flex: none; }
.tf-tile.on .tf-ic { background: var(--tf-blue); color: #fff; border-color: var(--tf-blue); }
.tf-txt { display: grid; gap: 2px; min-width: 0; }
.tf-txt b { font-weight: 800; font-size: 15px; line-height: 1.25; }
.tf-txt small { color: var(--tf-muted); font-size: 12.5px; line-height: 1.35; }
.tf-tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--tf-blue); color: #fff; display: none; place-items: center; }
.tf-tick svg { width: 13px; height: 13px; stroke-width: 3; }
.tf-tile.on .tf-tick { display: grid; }
.tf-tiles.list .tf-tick { position: static; margin-left: auto; }
.tf-tile.yes .tf-ic { color: var(--tf-ok); }
.tf-tile.yes.on { border-color: var(--tf-ok); background: #EAF8F0; box-shadow: 0 0 0 3px rgba(18, 161, 80, .16); }
.tf-tile.yes.on .tf-ic, .tf-tile.yes.on .tf-tick { background: var(--tf-ok); border-color: var(--tf-ok); color: #fff; }

.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tf-chip { font-size: 12px; font-weight: 700; background: var(--tf-tint); color: var(--tf-blue-deep); border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 5px; align-items: center; }
.tf-chip svg { width: 12px; height: 12px; stroke-width: 3; }
.tf-fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-fld { display: grid; gap: 5px; min-width: 0; }
.tf-fld.full { grid-column: 1 / -1; }
.tf-fld span { font-size: 12.5px; font-weight: 800; }
.tf-fld span em { font-style: normal; font-weight: 600; color: var(--tf-muted); }
.tf-fld input { width: 100%; font: inherit; font-size: 16px; color: var(--tf-fg); background: #fff; border: 1.5px solid var(--tf-line); border-radius: 11px; padding: 12px 13px; }
.tf-fld input:focus { outline: none; border-color: var(--tf-blue); box-shadow: 0 0 0 3px rgba(33, 150, 254, .18); }
.tf-fld input[aria-invalid="true"] { border-color: #DC2626; }
.tf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tf-err { color: #B91C1C; font-size: 13px; font-weight: 700; margin: 10px 0 0; }
.tf-err:empty { display: none; }
.tf-cta { width: 100%; margin-top: 14px; border: 0; cursor: pointer; border-radius: 13px; padding: 16px 18px; background: linear-gradient(180deg, var(--tf-blue), var(--tf-blue-deep)); color: #fff;
  font-family: "Figtree", system-ui, sans-serif; font-weight: 900; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 12px 26px -10px rgba(11, 120, 222, .8); transition: transform .1s, filter .15s; }
.tf-cta:hover { filter: brightness(1.06); }
.tf-cta:disabled { opacity: .7; cursor: progress; }
.tf-fine { font-size: 12.5px; color: var(--tf-muted); text-align: center; margin: 10px 0 0; }
.tf-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid #EDF2F8; display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 12.5px; color: var(--tf-muted); font-weight: 600; text-align: center; }
.tf-foot svg { width: 14px; height: 14px; }
.tf-done { text-align: center; padding: 10px 4px 4px; }
.tf-done-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: #EAF8F0; color: var(--tf-ok); }
.tf-done-ic svg { width: 30px; height: 30px; stroke-width: 2.5; }
.tf-done p { color: var(--tf-muted); margin: 0 auto; max-width: 30em; }
.tf-done a { color: var(--tf-blue-deep); font-weight: 800; }

@media (max-width: 520px) {
  .tf { padding: 18px 16px 14px; border-radius: 18px; }
  .tf-title { font-size: 20px; }
  .tf-fields { grid-template-columns: minmax(0, 1fr); }
  /* Phones: tile grids become one full-width row per option, icon on the left. */
  .tf-tiles.grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tf-tiles.grid .tf-tile { flex-direction: row; align-items: center; min-height: 0; gap: 12px; padding: 12px 14px; }
  .tf-tiles.grid .tf-tick, .tf-tiles.list .tf-tick { position: static; margin-left: auto; }
  .tf-tag { font-size: 11px; letter-spacing: .07em; }
}
@media (prefers-reduced-motion: reduce) { .tf-q { animation: none; } .tf-bar, .tf-tile { transition: none; } }
