/* Weblysoft — Contact page (ctp2-*). Scoped to body.ctp2-page. Tokens from public-site.css. */
body.ctp2-page { background: var(--ws-paper); --ctp2-muted: var(--ws-text-2); }
.ctp2-main:focus { outline: none; }

/* hero: compact navy gradient with faint blueprint grid */
.ctp2-hero { position: relative; overflow: hidden; color: var(--ws-on-dark);
  background: linear-gradient(128deg, var(--ws-ink) 0%, #12305C 58%, var(--ws-navy) 100%); }
.ctp2-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ws-line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--ws-line-dark) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(100deg, transparent 35%, #000 100%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); opacity: .7; }
.ctp2-hero-in { position: relative; max-width: calc(var(--ws-wrap) + var(--ws-gutter)*2); margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--ws-gutter) clamp(44px, 6vw, 72px); }
.ctp2-crumb { display: flex; gap: 8px; font-size: 13px; color: #C1CCE0; margin-bottom: 26px; }
.ctp2-crumb a { color: #B9D0F5; }
.ctp2-crumb a:hover { text-decoration: underline; }
.ctp2-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9DBDF0; margin-bottom: 20px; }
.ctp2-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
body.public-site .ctp2-h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; color: #fff; max-width: 17ch; text-wrap: balance; }
body.public-site .ctp2-lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.6; color: var(--ws-on-dark-2); max-width: 58ch; }

/* body grid: form is first in DOM, placed in column 2 on desktop */
.ctp2-body { padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }
.ctp2-grid { max-width: calc(var(--ws-wrap) + var(--ws-gutter)*2); margin: 0 auto; padding: 0 var(--ws-gutter);
  display: grid; grid-template-columns: minmax(260px, 29%) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ctp2-formcard { grid-column: 2; grid-row: 1; }
.ctp2-side { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--ws-header) + 24px); }

/* form card */
.ctp2-formcard { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 rgba(11,22,40,.03), 0 30px 60px -44px rgba(11,22,40,.45); }
.ctp2-formhead { background: var(--ws-ink); padding: 28px clamp(22px, 3vw, 40px) 26px; border-bottom: 1px solid var(--ws-line-dark); position: relative; }
.ctp2-formhead::after { content: ""; position: absolute; left: clamp(22px, 3vw, 40px); bottom: -1px; width: 48px; height: 2px; background: var(--ws-signal); }
body.public-site .ctp2-formtitle { font-size: clamp(22px, 2vw, 28px); color: #fff; letter-spacing: -.025em; }
body.public-site .ctp2-formsub { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ws-on-dark-2); }
.ctp2-formbody { padding: clamp(22px, 3vw, 40px); }
.ctp2-reqnote { font-size: 13px; color: var(--ws-muted); margin-bottom: 18px; }
.ctp2-req { color: var(--ws-err); font-weight: 600; }
.ctp2-opt { font-size: 12px; font-weight: 500; color: var(--ws-muted); margin-left: 4px; }

.ctp2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ctp2-field { margin-bottom: 20px; min-width: 0; }
.ctp2-label { display: block; font-size: 14px; font-weight: 600; color: var(--ws-text); margin-bottom: 7px; letter-spacing: -.005em; }
.ctp2-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 'Inter', sans-serif; color: var(--ws-text);
  background: #FFFEFC; border: 1px solid #C9D1DC; border-radius: 8px; transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none; }
.ctp2-input::placeholder { color: #5B677B; }
.ctp2-input:hover { border-color: #A9B5C6; }
.ctp2-input:focus { outline: none; border-color: var(--ws-navy); box-shadow: 0 0 0 3px rgba(62,127,224,.28); }
.ctp2-input[aria-invalid="true"] { border-color: var(--ws-err); box-shadow: inset 3px 0 0 var(--ws-err); }
.ctp2-input[aria-invalid="true"]:focus { box-shadow: inset 3px 0 0 var(--ws-err), 0 0 0 3px rgba(184,58,46,.2); }
.ctp2-textarea { min-height: 156px; resize: vertical; line-height: 1.6; }
.ctp2-select { position: relative; }
.ctp2-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--ws-navy); border-bottom: 1.6px solid var(--ws-navy); transform: rotate(45deg); pointer-events: none; }
.ctp2-select select { padding-right: 40px; cursor: pointer; }
.ctp2-hint { font-size: 13px; color: var(--ws-navy); margin-top: 7px; }
.ctp2-count { font-size: 12px; color: var(--ws-muted); text-align: right; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ctp2-err { display: flex; gap: 7px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ws-err); margin-top: 7px; font-weight: 500; }
.ctp2-err::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ws-err); color: #fff; font: 700 11px/16px 'Inter', sans-serif; text-align: center; margin-top: 1px; }
.ctp2-err[hidden] { display: none; }

/* server-issued check */
.ctp2-check { padding: 16px; background: var(--ws-ice); border-radius: 10px; border: 1px solid rgba(24,70,132,.12); }
.ctp2-check-row { display: grid; grid-template-columns: 1fr 132px; gap: 14px; align-items: end; }
.ctp2-check .ctp2-label { margin-bottom: 4px; }
.ctp2-question { font: 600 20px/1.3 'Inter', sans-serif; letter-spacing: -.01em; color: var(--ws-ink); font-variant-numeric: tabular-nums; min-height: 26px; }
.ctp2-skel { display: inline-block; width: 110px; height: 18px; border-radius: 4px; color: transparent; background: linear-gradient(90deg, rgba(24,70,132,.08), rgba(24,70,132,.18), rgba(24,70,132,.08)); background-size: 200% 100%; animation: ctp2-shimmer 1.4s linear infinite; overflow: hidden; vertical-align: middle; }
@keyframes ctp2-shimmer { to { background-position: -200% 0; } }
.ctp2-answer { text-align: center; font-weight: 600; }
.ctp2-cap-fail { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--ws-text-2); }
.ctp2-cap-fail[hidden] { display: none; }
.ctp2-textbtn { background: none; border: 0; padding: 4px 0; font: 600 14px 'Inter', sans-serif; color: var(--ws-navy); border-bottom: 1.5px solid currentColor; cursor: pointer; min-height: 32px; }
.ctp2-textbtn:hover { color: var(--ws-ink); }

.ctp2-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ctp2-formerr { margin: 4px 0 16px; padding: 13px 16px; border-left: 3px solid var(--ws-err); background: #F8EAE7; border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.5; color: #7A2219; }
.ctp2-formerr[hidden] { display: none; }

/* submit */
.ctp2-submitrow { margin-top: 26px; display: grid; gap: 14px; }
.ctp2-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--ws-navy); color: #fff; font: 600 16px/1 'Inter', sans-serif; letter-spacing: -.005em; cursor: pointer;
  transition: background .2s, transform .2s var(--ws-ease); }
.ctp2-submit:hover:not(:disabled) { background: var(--ws-ink); }
.ctp2-submit:active:not(:disabled) { transform: scale(.99); }
.ctp2-submit:focus-visible { outline: 2.5px solid var(--ws-focus); outline-offset: 3px; }
.ctp2-submit .ctp2-arr { width: 16px; height: 16px; transition: transform .25s var(--ws-ease); }
.ctp2-submit:hover:not(:disabled) .ctp2-arr { transform: translateX(4px); }
.ctp2-submit:disabled { cursor: progress; background: #3A5A8A; }
.ctp2-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ctp2-rot .8s linear infinite; }
.ctp2-submit.is-busy .ctp2-spin { display: inline-block; }
.ctp2-submit.is-busy .ctp2-arr { display: none; }
@keyframes ctp2-rot { to { transform: rotate(360deg); } }
.ctp2-privacy { font-size: 13.5px; line-height: 1.55; color: var(--ws-muted); text-align: center; }
.ctp2-privacy a { color: var(--ws-navy); text-decoration: underline; text-underline-offset: 2px; }

/* success */
.ctp2-success { padding: clamp(16px, 4vw, 40px) 0 8px; text-align: center; }
.ctp2-success[hidden] { display: none; }
.ctp2-success:focus { outline: none; }
.ctp2-success-mark { width: 56px; height: 56px; color: var(--ws-ok); margin: 0 auto 22px; display: block; }
body.public-site .ctp2-success-h { font-size: clamp(24px, 2.4vw, 32px); color: var(--ws-ink); line-height: 1.15; }
.ctp2-success-p { font-size: 16.5px; line-height: 1.6; color: var(--ws-text-2); max-width: 46ch; margin: 12px auto 0; }
.ctp2-ref { display: inline-flex; gap: 6px; margin-top: 20px; padding: 7px 14px; border-radius: 999px; background: var(--ws-ice); color: var(--ws-navy); font: 600 13px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .02em; }
.ctp2-success-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; align-items: center; margin-top: 28px; }
.ctp2-ghostbtn { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ws-ink); background: transparent; color: var(--ws-ink); font: 600 15px 'Inter', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.ctp2-ghostbtn:hover { background: var(--ws-ink); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .ctp2-success.is-in { animation: ctp2-rise .5s var(--ws-ease) both; }
  .ctp2-success.is-in .ctp2-success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ctp2-draw .6s .15s var(--ws-ease) forwards; }
}
@keyframes ctp2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ctp2-draw { to { stroke-dashoffset: 0; } }

/* sidebar: ruled editorial list, not stacked cards */
.ctp2-block { padding: 22px 0; border-top: 1px solid var(--ws-line); }
.ctp2-block:first-child { padding-top: 4px; border-top: 0; }
body.public-site .ctp2-kicker { font: 600 11.5px/1.2 'Inter', sans-serif; letter-spacing: .13em; text-transform: uppercase; color: var(--ws-muted); margin-bottom: 14px; }
.ctp2-mini { font-size: 14px; color: var(--ws-text-2); }
.ctp2-email { display: inline-block; margin-top: 4px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ws-navy); border-bottom: 1.5px solid rgba(24,70,132,.3); padding-bottom: 2px; transition: border-color .2s, color .2s; word-break: break-all; }
.ctp2-email:hover { color: var(--ws-ink); border-color: currentColor; }
.ctp2-note { font-size: 13.5px; line-height: 1.5; color: var(--ws-muted); margin-top: 10px; }
.ctp2-way + .ctp2-way { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--ws-line); }
.ctp2-way-primary { padding: 18px; margin: 0 -2px; background: var(--ws-ink); border-radius: 12px; }
body.public-site .ctp2-way-h { font-size: 17px; font-weight: 620; letter-spacing: -.015em; color: var(--ws-ink); }
body.public-site .ctp2-way-p, .ctp2-way-p { font-size: 14.5px; line-height: 1.55; color: var(--ws-text-2); margin-top: 4px; }
body.public-site .ctp2-way-primary .ctp2-way-h { color: #fff; }
body.public-site .ctp2-way-primary .ctp2-way-p { color: var(--ws-on-dark-2); }
.ctp2-way-primary + .ctp2-way { border-top: 0; }
.ctp2-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ws-ink); font: 600 14.5px/1 'Inter', sans-serif; transition: background .2s; }
.ctp2-pill svg { width: 14px; height: 14px; transition: transform .25s var(--ws-ease); }
.ctp2-pill:hover { background: var(--ws-ice); }
.ctp2-pill:hover svg { transform: translateX(3px); }
.ctp2-link { display: inline-flex; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--ws-navy); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.ctp2-link:hover { color: var(--ws-ink); }
.ctp2-locs { display: grid; gap: 14px; }
.ctp2-locs dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ws-navy); }
.ctp2-locs dd { margin: 3px 0 0; }
.ctp2-locs b { display: block; font-size: 16px; font-weight: 620; color: var(--ws-ink); letter-spacing: -.01em; }
.ctp2-locs span { display: block; font-size: 14px; line-height: 1.5; color: var(--ws-text-2); margin-top: 2px; }

@media (max-width: 960px) {
  .ctp2-grid { grid-template-columns: 1fr; }
  .ctp2-formcard, .ctp2-side { grid-column: 1; grid-row: auto; }
  .ctp2-side { position: static; }
  .ctp2-block:first-child { padding-top: 22px; border-top: 1px solid var(--ws-line); }
}
@media (max-width: 640px) {
  .ctp2-row { grid-template-columns: 1fr; }
  .ctp2-check-row { grid-template-columns: 1fr; }
  .ctp2-answer { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ctp2-skel, .ctp2-spin { animation: none; }
  .ctp2-submit, .ctp2-pill svg, .ctp2-submit .ctp2-arr, .ctp2-input { transition: none; }
}
/* Shared muted color is too light for small text on the warm surface. */
body.ctp2-page .ctp2-reqnote, body.ctp2-page .ctp2-opt,
body.ctp2-page .ctp2-count, body.ctp2-page .ctp2-privacy,
body.ctp2-page .ctp2-kicker, body.ctp2-page .ctp2-note { color: var(--ctp2-muted); }
