/* THMC Forms Hub core styles. Every selector is scoped under .thmcf so nothing
   reaches the theme or third-party embeds (Cognito). */

/* ===== Core tokens (scoped to .thmcf so nothing leaks to the theme or embeds) ===== */
.thmcf {
  --signal: #1DBBF0;
  --signal-dark: #14A6D6;
  --signal-link: #0F8FBD;
  --ink: #000000;
  --deep: #101418;
  --paper: #FFFFFF;
  --mute: #6E767C;
  --rule: #D8DCDF;
  --wash: #F4F6F7;
  --error: #C8322B;
  --display: 'Urbanist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: 'Figtree', system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: 'Roboto Mono', ui-monospace, monospace;
  --r-btn: 3px;
  --r-input: 4px;
  --r-card: 12px;
  font-family: var(--body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.thmcf *, .thmcf *::before, .thmcf *::after { box-sizing: border-box; }
.thmcf p a { color: var(--signal-link); }
.thmcf [hidden] { display: none !important; }


.thmcf { max-width: 1200px; margin: 0 auto; padding: 0 0 96px; }
.thmcf.thmcf--panel { padding: 0; max-width: 760px; }
@media (max-width: 640px) { .thmcf { padding: 0 16px 64px; } .thmcf.thmcf--panel { padding: 0 16px; } }

/* ===== Type ===== */
.thmcf .thmcf-eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px;
}
.thmcf .thmcf-h1 {
  font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 16px;
}
.thmcf .thmcf-h2 {
  font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.15;
  letter-spacing: -.01em; margin: 0 0 12px;
}
.thmcf .thmcf-h3 {
  font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 8px;
}
.thmcf .thmcf-lead { font-size: 18px; max-width: 34em; margin: 0; color: #22282C; }
.thmcf .thmcf-small { font-size: 14px; color: var(--mute); }
@media (max-width: 640px) {
  .thmcf .thmcf-h1 { font-size: 30px; }
  .thmcf .thmcf-h2 { font-size: 24px; }
  .thmcf .thmcf-lead { font-size: 16px; }
}

/* ===== Buttons ===== */
.thmcf .thmcf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.thmcf .thmcf-btn:focus-visible, .thmcf a:focus-visible, .thmcf button:focus-visible, .thmcf input:focus-visible, .thmcf select:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}
.thmcf .thmcf-btn--primary { background: var(--signal); color: var(--paper); }
.thmcf .thmcf-btn--primary:hover { background: var(--signal-dark); }
.thmcf .thmcf-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.thmcf .thmcf-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.thmcf .thmcf-btn--text { background: none; border: 0; color: var(--mute); padding-left: 0; padding-right: 0; }
.thmcf .thmcf-btn--text:hover { color: var(--ink); }

/* ===== Hub header ===== */
.thmcf .thmcf-hub-head { margin-bottom: 40px; }

/* ===== Notice (bad slug) ===== */
.thmcf .thmcf-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--signal);
  border-radius: var(--r-input); padding: 14px 16px; margin-bottom: 32px; font-size: 15px;
}
.thmcf .thmcf-notice strong { font-family: var(--display); }

/* ===== Card grid ===== */
.thmcf .thmcf-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) { .thmcf .thmcf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .thmcf .thmcf-grid { grid-template-columns: 1fr; gap: 12px; } }

.thmcf .thmcf-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: border-color 150ms ease, transform 150ms ease;
  min-height: 176px;
}
.thmcf .thmcf-card:hover { border-color: var(--ink); }
.thmcf .thmcf-card__title { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0; }
.thmcf .thmcf-card__text { font-size: 15px; color: #3A4247; margin: 0; flex: 1; }
.thmcf .thmcf-card__cta {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal-link); display: inline-flex; align-items: center; gap: 6px;
}
.thmcf .thmcf-card__cta svg { transition: transform 150ms ease; }
.thmcf .thmcf-card:hover .thmcf-card__cta svg { transform: translateX(3px); }

.thmcf .thmcf-card--featured {
  grid-column: span 2; background: var(--deep); border-color: var(--deep); color: var(--paper);
  padding: 32px;
}
.thmcf .thmcf-card--featured:hover { border-color: var(--signal); }
.thmcf .thmcf-card--featured .thmcf-card--featured .thmcf-card__title { font-size: 28px; }
.thmcf .thmcf-card--featured .thmcf-card__text { color: rgba(255,255,255,.75); font-size: 16px; }
.thmcf .thmcf-card--featured .thmcf-card__cta { color: var(--signal); }
.thmcf .thmcf-badge {
  align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--deep); background: var(--signal);
  padding: 4px 8px; border-radius: 2px;
}
@media (max-width: 600px) {
  .thmcf .thmcf-card--featured { grid-column: auto; padding: 24px; }
  .thmcf .thmcf-card--featured .thmcf-card__title { font-size: 24px; }
  .thmcf .thmcf-card { min-height: 0; }
}

/* ===== Switcher ===== */
.thmcf .thmcf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.thmcf .thmcf-back {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-decoration: none;
}
.thmcf .thmcf-back:hover { color: var(--ink); }

.thmcf .thmcf-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 40px;
  overflow-x: auto; scrollbar-width: none;
}
.thmcf .thmcf-tabs::-webkit-scrollbar { display: none; }
.thmcf .thmcf-tab {
  flex: 0 0 auto; padding: 14px 16px; font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--mute); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
}
.thmcf .thmcf-tab:hover { color: var(--ink); }
.thmcf .thmcf-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal); }
.thmcf .thmcf-tab__ext { font-size: 12px; margin-left: 4px; opacity: .6; }

.thmcf .thmcf-select-switch { display: none; margin-bottom: 28px; }
.thmcf .thmcf-select-switch label { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
@media (max-width: 760px) {
  .thmcf .thmcf-tabs { display: none; }
  .thmcf .thmcf-select-switch { display: block; }
}

/* ===== Form view layout ===== */
.thmcf .thmcf-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
.thmcf .thmcf-view__intro { position: sticky; top: 24px; }
.thmcf .thmcf-view__intro p { margin: 0 0 12px; color: #2C3337; max-width: 34em; }
.thmcf .thmcf-view__intro .thmcf-aside {
  font-size: 14px; color: var(--mute); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 16px;
}
@media (max-width: 900px) {
  .thmcf .thmcf-view { grid-template-columns: 1fr; gap: 24px; }
  .thmcf .thmcf-view__intro { position: static; }
}

/* ===== Form card ===== */
.thmcf .thmcf-formcard { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); }
.thmcf .thmcf-progress { padding: 20px 28px 0; }
.thmcf .thmcf-progress__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.thmcf .thmcf-progress__count { font-family: var(--data); font-size: 12px; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.thmcf .thmcf-progress__label { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.thmcf .thmcf-progress__track { height: 4px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.thmcf .thmcf-progress__fill { height: 100%; background: var(--signal); width: 0; transition: width 250ms ease; }

.thmcf .thmcf-step { padding: 28px; }
.thmcf .thmcf-step__title { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; margin: 0 0 4px; }
.thmcf .thmcf-step__sub { color: var(--mute); font-size: 15px; margin: 0 0 24px; }
@media (max-width: 640px) {
  .thmcf .thmcf-progress { padding: 16px 20px 0; }
  .thmcf .thmcf-step { padding: 20px; }
  .thmcf .thmcf-step__title { font-size: 21px; }
}

/* ===== Fields ===== */
.thmcf .thmcf-field { margin-bottom: 20px; }
.thmcf .thmcf-field:last-child { margin-bottom: 0; }
.thmcf .thmcf-label {
  display: block; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 8px;
}
.thmcf .thmcf-label .thmcf-opt { font-weight: 400; color: var(--mute); font-size: 13px; margin-left: 4px; }
.thmcf .thmcf-help { font-size: 13px; color: var(--mute); margin: 6px 0 0; }
.thmcf .thmcf-input, .thmcf .thmcf-selectbox {
  width: 100%; min-height: 52px; padding: 12px 14px; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-input);
  transition: border-color 150ms ease, box-shadow 150ms ease; -webkit-appearance: none; appearance: none;
}
.thmcf .thmcf-input::placeholder { color: #9AA1A6; }
.thmcf .thmcf-input:hover, .thmcf .thmcf-selectbox:hover { border-color: #AEB4B8; }
.thmcf .thmcf-input:focus, .thmcf .thmcf-selectbox:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(29,187,240,.18); }
.thmcf .thmcf-selectbox {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101418' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.thmcf .thmcf-row { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr 1fr; }
.thmcf .thmcf-row--2 { grid-template-columns: 1fr 1fr; }
.thmcf .thmcf-row .thmcf-field { margin-bottom: 0; }
.thmcf .thmcf-rowwrap { margin-bottom: 20px; }
@media (max-width: 640px) {
  .thmcf .thmcf-row { grid-template-columns: 1fr 1fr; }
  .thmcf .thmcf-row > .thmcf-field:first-child { grid-column: 1 / -1; }
  .thmcf .thmcf-row--2 { grid-template-columns: 1fr; }
}

.thmcf .thmcf-money { position: relative; }
.thmcf .thmcf-money::before {
  content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--data); color: var(--mute); pointer-events: none;
}
.thmcf .thmcf-money .thmcf-input { padding-left: 30px; font-family: var(--data); font-variant-numeric: tabular-nums; }

/* Choice tiles (radio / checkbox) */
.thmcf .thmcf-choices { display: grid; gap: 10px; }
.thmcf .thmcf-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thmcf .thmcf-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .thmcf .thmcf-choices--3 { grid-template-columns: 1fr; } }
.thmcf .thmcf-choice { position: relative; display: block; cursor: pointer; }
.thmcf .thmcf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thmcf .thmcf-choice__box {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--paper);
  font-family: var(--display); font-weight: 600; font-size: 16px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.thmcf .thmcf-choice:hover .thmcf-choice__box { border-color: #AEB4B8; }
.thmcf .thmcf-choice__dot {
  flex: 0 0 20px; height: 20px; border: 1.5px solid #AEB4B8; border-radius: 50%; position: relative;
  transition: border-color 150ms ease;
}
.thmcf .thmcf-choice--check .thmcf-choice__dot { border-radius: 3px; }
.thmcf .thmcf-choice input:checked + .thmcf-choice__box { border-color: var(--ink); background: var(--wash); }
.thmcf .thmcf-choice input:checked + .thmcf-choice__box .thmcf-choice__dot { border-color: var(--ink); background: var(--ink); }
.thmcf .thmcf-choice input:checked + .thmcf-choice__box .thmcf-choice__dot::after {
  content: ""; position: absolute; inset: 5px; background: var(--paper); border-radius: 50%;
}
.thmcf .thmcf-choice--check input:checked + .thmcf-choice__box .thmcf-choice__dot::after {
  inset: auto; left: 6px; top: 2px; width: 5px; height: 10px; background: none; border-radius: 0;
  border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.thmcf .thmcf-choice input:focus-visible + .thmcf-choice__box { outline: 2px solid var(--signal); outline-offset: 2px; }
.thmcf .thmcf-choice__desc { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--mute); }

/* Conditional block */
.thmcf .thmcf-cond {
  border-left: 2px solid var(--signal); padding: 4px 0 4px 16px; margin: 16px 0 20px;
  animation: thmcf-in 200ms ease;
}
@keyframes thmcf-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* File drop */
.thmcf .thmcf-file { position: relative; }
.thmcf .thmcf-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.thmcf .thmcf-file__box {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed #AEB4B8;
  border-radius: var(--r-input); background: var(--paper); transition: border-color 150ms ease, background 150ms ease;
}
.thmcf .thmcf-file:hover .thmcf-file__box { border-color: var(--ink); }
.thmcf .thmcf-file__icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: var(--wash); border-radius: var(--r-input); }
.thmcf .thmcf-file__name { font-family: var(--display); font-weight: 600; font-size: 15px; display: block; word-break: break-all; }
.thmcf .thmcf-file.is-filled .thmcf-file__box { border-style: solid; border-color: var(--ink); background: var(--wash); }

/* Errors */
.thmcf .thmcf-err { display: none; color: var(--error); font-size: 13px; margin: 6px 0 0; }
.thmcf .thmcf-field.is-invalid .thmcf-err { display: block; }
.thmcf .thmcf-field.is-invalid .thmcf-input, .thmcf .thmcf-field.is-invalid .thmcf-selectbox, .thmcf .thmcf-field.is-invalid .thmcf-choice__box, .thmcf .thmcf-field.is-invalid .thmcf-file__box { border-color: var(--error); }

/* Honeypot */
.thmcf .thmcf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Step nav (sticky on mobile) */
.thmcf .thmcf-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 28px; border-top: 1px solid var(--rule); background: var(--paper);
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.thmcf .thmcf-nav .thmcf-btn--primary { margin-left: auto; }
@media (max-width: 640px) {
  .thmcf .thmcf-nav { position: sticky; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.06); z-index: 5; }
  .thmcf .thmcf-nav .thmcf-btn--primary { flex: 1; }
}

/* Review list */
.thmcf .thmcf-review { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: var(--r-input); }
.thmcf .thmcf-review li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.thmcf .thmcf-review li:last-child { border-bottom: 0; }
.thmcf .thmcf-review span:first-child { color: var(--mute); }
.thmcf .thmcf-review span:last-child { font-weight: 500; text-align: right; word-break: break-word; }

/* Success */
.thmcf .thmcf-done { padding: 48px 28px; text-align: left; }
.thmcf .thmcf-done__mark {
  width: 48px; height: 48px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; margin-bottom: 20px;
}

/* Content panel (Repair Draw) */
.thmcf .thmcf-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 32px; }
.thmcf .thmcf-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0 20px; }
@media (max-width: 640px) { .thmcf .thmcf-panel { padding: 24px 20px; } .thmcf .thmcf-panel .thmcf-btn { width: 100%; } }

/* Not-in-preview */
.thmcf .thmcf-pending { background: var(--paper); border: 1px dashed #AEB4B8; border-radius: var(--r-card); padding: 32px; color: var(--mute); }



/* ===== Intro collapse on phones (after step 1) ===== */
.thmcf .thmcf-intro-toggle {
  display: none; background: none; border: 0; padding: 0; margin: 4px 0 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--signal-link);
}
@media (max-width: 900px) {
  .thmcf .thmcf-view__intro.is-collapsed .thmcf-view__more { display: none; }
  .thmcf .thmcf-view__intro.is-collapsed .thmcf-intro-toggle { display: inline-block; }
  .thmcf .thmcf-view__intro.is-collapsed.is-open .thmcf-view__more { display: block; }
  .thmcf .thmcf-view__intro.is-collapsed .thmcf-h2 { margin-bottom: 0; }
}

/* ===== Choice text alignment (multi-line labels) ===== */
.thmcf .thmcf-choice__box { text-align: left; }
.thmcf .thmcf-choice__box > span:not(.thmcf-choice__dot) { flex: 1; }
.thmcf .thmcf-choice__dot { width: 20px; min-width: 20px; max-width: 20px; height: 20px; padding: 0; margin: 0; }

/* ===== Keep last field clear of the pinned nav on phones ===== */
@media (max-width: 640px) {
  .thmcf .thmcf-step { padding-bottom: 32px; scroll-margin-bottom: 96px; }
  .thmcf .thmcf-field { scroll-margin-bottom: 96px; scroll-margin-top: 24px; }
}

/* ===== Form-level error (network / server) ===== */
.thmcf .thmcf-formerror {
  margin: 0 28px 16px; padding: 12px 14px; border: 1px solid var(--error); border-radius: var(--r-input);
  color: var(--error); font-size: 14px; background: #FFF6F5;
}
@media (max-width: 640px) { .thmcf .thmcf-formerror { margin: 0 20px 16px; } }

/* ===== Busy state ===== */
.thmcf .thmcf-btn[disabled] { opacity: .6; cursor: progress; }

/* ===== Embed and content wrappers ===== */
.thmcf .thmcf-embed { min-height: 120px; }
.thmcf .thmcf-done:focus { outline: none; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .thmcf *, .thmcf *::before, .thmcf *::after { animation: none !important; transition: none !important; }
}

/* ===== Content panel text ===== */
.thmcf .thmcf-panel__title { font-size: 28px; margin: 0 0 12px; }
.thmcf .thmcf-panel__text { margin: 0 0 24px; max-width: 34em; }
.thmcf .thmcf-panel .thmcf-small { margin: 0; }
@media (max-width: 640px) { .thmcf .thmcf-panel__title { font-size: 22px; } }

/* ================= 1.1.0 layout: Deep band, lifted cards, form shell ================= */

/* Full-bleed band without horizontal scroll: paint past the container, clip at the viewport. */
.thmcf .thmcf-band {
  position: relative; background: var(--deep); color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax);
}
.thmcf .thmcf-band__in { padding: 56px 0 112px; }
.thmcf .thmcf-band--view .thmcf-band__in { padding: 28px 0 104px; }
.thmcf .thmcf-band .thmcf-eyebrow { color: var(--signal); }
.thmcf .thmcf-band .thmcf-h1 { color: var(--paper); }
.thmcf .thmcf-band .thmcf-h1--view { margin: 0; }
.thmcf .thmcf-band .thmcf-lead { color: rgba(255,255,255,.75); }
.thmcf .thmcf-lift { position: relative; z-index: 1; margin-top: -72px; }
.thmcf .thmcf-band--view + .thmcf-lift { margin-top: -64px; }

/* Switcher on dark */
.thmcf .thmcf-band .thmcf-back { color: rgba(255,255,255,.6); }
.thmcf .thmcf-band .thmcf-back:hover { color: var(--paper); }
.thmcf .thmcf-band .thmcf-tabs { border-bottom-color: rgba(255,255,255,.14); margin-bottom: 28px; }
.thmcf .thmcf-band .thmcf-tab { color: rgba(255,255,255,.6); }
.thmcf .thmcf-band .thmcf-tab:hover { color: var(--paper); }
.thmcf .thmcf-band .thmcf-tab[aria-current="page"] { color: var(--paper); border-bottom-color: var(--signal); }
.thmcf .thmcf-band .thmcf-select-switch label { color: rgba(255,255,255,.6); }
.thmcf .thmcf-band .thmcf-selectbox {
  background-color: rgba(255,255,255,.06); color: var(--paper); border-color: rgba(255,255,255,.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
}
.thmcf .thmcf-band .thmcf-selectbox option { color: #000; }

/* Cards: text links, Signal border on hover; featured card fills its row (spans set inline) */
.thmcf .thmcf-card { border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(16,20,24,.08); transition: border-color 150ms ease, box-shadow 150ms ease; }
.thmcf .thmcf-card:hover { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 10px 30px rgba(16,20,24,.08); }
.thmcf .thmcf-card--featured { grid-column: span var(--s3, 1); background: var(--paper); border: 2px solid var(--signal); color: var(--ink); }
.thmcf .thmcf-card--featured:hover { border-color: var(--signal-dark); box-shadow: 0 0 0 1px var(--signal-dark), 0 10px 30px rgba(16,20,24,.08); }
.thmcf .thmcf-card--featured .thmcf-card__title { color: var(--ink); }
.thmcf .thmcf-card--featured .thmcf-card__text { color: #3A4247; }
.thmcf .thmcf-card--featured .thmcf-card__cta { color: var(--signal-link); }
.thmcf .thmcf-badge { background: var(--deep); color: var(--paper); border: 0; }
@media (max-width: 960px) { .thmcf .thmcf-card--featured { grid-column: span var(--s2, 1); } }
@media (max-width: 600px) { .thmcf .thmcf-card--featured { grid-column: auto; } }

/* Form shell: white form + Deep side panel, like the loan application */
.thmcf .thmcf-shell {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: var(--paper);
  border-radius: var(--r-card); overflow: hidden; box-shadow: 0 18px 50px rgba(16,20,24,.16);
}
.thmcf .thmcf-shell--wide { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.thmcf .thmcf-shell__main { min-width: 0; }
.thmcf .thmcf-shell__main .thmcf-formcard,
.thmcf .thmcf-shell__main .thmcf-panel { border: 0; border-radius: 0; }
.thmcf .thmcf-shell__main .thmcf-embed { padding: 28px; }
.thmcf .thmcf-shell__aside { background: var(--deep); color: rgba(255,255,255,.8); padding: 32px; font-size: 15px; }
.thmcf .thmcf-shell__aside .thmcf-eyebrow { color: rgba(255,255,255,.55); font-size: 11px; }
.thmcf .thmcf-shell__aside p { margin: 0 0 12px; }
.thmcf .thmcf-shell__aside .thmcf-aside { color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; margin-top: 16px; font-size: 14px; }
.thmcf .thmcf-shell__aside a, .thmcf .thmcf-shell__aside p a { color: var(--signal); }
.thmcf .thmcf-shell .thmcf-nav { border-radius: 0; }
.thmcf .thmcf-progress__label { color: var(--signal-link); }

/* Selected choice: Deep fill, white text */
.thmcf .thmcf-choice input:checked + .thmcf-choice__box { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.thmcf .thmcf-choice input:checked + .thmcf-choice__box .thmcf-choice__dot { border-color: var(--signal); background: var(--signal); }
.thmcf .thmcf-choice input:checked + .thmcf-choice__box .thmcf-choice__desc { color: rgba(255,255,255,.65); }
.thmcf .thmcf-btn--primary { min-width: 200px; }

@media (max-width: 900px) {
  .thmcf .thmcf-shell, .thmcf .thmcf-shell--wide { grid-template-columns: 1fr; }
  .thmcf .thmcf-shell__aside { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .thmcf .thmcf-band__in { padding: 36px 0 96px; }
  .thmcf .thmcf-band--view .thmcf-band__in { padding: 20px 0 88px; }
  .thmcf .thmcf-btn--primary { min-width: 0; }
  .thmcf .thmcf-band .thmcf-select-switch { margin-bottom: 20px; }
  .thmcf .thmcf-shell__main .thmcf-embed { padding: 20px 16px; }
}
