/* Kadara Contact (Slice 8A). Consumes theme.css + rp-system.css + kadara-solutions.css.
   Namespace: `ct-`. Calm, low-friction conversion surface. */

.ct-layout { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 40px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .ct-layout { grid-template-columns: 1fr; gap: 32px; } }

/* form container: one calm surface, not a card per field */
.ct-form { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); padding: 30px; }
@media (max-width: 560px) { .ct-form { padding: 22px; } }
.ct-form-intro { font-size: 15px; line-height: 1.6; color: var(--sub); margin: 0 0 24px; }

.ct-field { margin-bottom: 20px; }
.ct-field > label, .ct-legend { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ct-field .ct-opt { font-weight: 400; color: var(--faint); font-size: 13px; }
.ct-input, .ct-textarea { width: 100%; font-family: var(--ff-body); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .12s ease; }
.ct-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.ct-input:focus-visible, .ct-textarea:focus-visible { outline: 2px solid var(--brand-verdigris); outline-offset: 1px; border-color: var(--brand-verdigris); }
.ct-input[aria-invalid="true"], .ct-textarea[aria-invalid="true"] { border-color: var(--red); }
.ct-err { display: none; font-size: 13px; color: var(--red); margin-top: 6px; }
.ct-err.is-shown { display: block; }

/* self-selection pill radios */
.ct-pills { display: flex; flex-wrap: wrap; gap: 10px; border: none; padding: 0; margin: 0; }
.ct-pill { position: relative; }
.ct-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-pill label { display: inline-block; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.ct-pill label:hover { border-color: var(--brand-verdigris-line); }
.ct-pill input:checked + label { border-color: var(--brand-verdigris); background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); font-weight: 600; }
.ct-pill input:focus-visible + label { outline: 2px solid var(--brand-verdigris); outline-offset: 2px; }

/* contextual hint under self-selection */
.ct-hint { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--sub); padding: 12px 16px; border-radius: 10px; background: var(--brand-verdigris-soft); border: 1px solid var(--brand-verdigris-line); }
.ct-hint[hidden] { display: none; }
.ct-hint a { color: var(--brand-verdigris-text); text-decoration: none; font-weight: 600; }
.ct-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ct-scope { font-size: 13px; line-height: 1.55; color: var(--faint); margin: 4px 0 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.ct-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ct-formnote { font-size: 13px; color: var(--faint); }

/* honeypot */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success state */
.ct-success { display: none; text-align: left; padding: 8px 4px; }
.ct-success.is-shown { display: block; }
.ct-success .ct-check { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.ct-success h2 { font-family: var(--ff-heading); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px; }
.ct-success p { font-size: 15.5px; line-height: 1.6; color: var(--sub); margin: 0 0 8px; max-width: 46ch; }
.ct-form.is-submitted .ct-formbody { display: none; }

/* sidebar */
.ct-side { display: flex; flex-direction: column; gap: 28px; }
.ct-side-block h3 { font-family: var(--ff-heading); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 14px; }
.ct-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.ct-steps li { position: relative; padding-left: 38px; counter-increment: s; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.ct-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); font-family: var(--ff-mono); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ct-next-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

.ct-channels { display: grid; gap: 10px; }
.ct-channel { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.ct-channel:hover { border-color: var(--brand-verdigris-line); }
.ct-channel .ct-ch-k { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ct-channel .ct-ch-v { font-size: 14.5px; color: var(--ink); font-weight: 600; }

.ct-trust { font-size: 13.5px; line-height: 1.6; color: var(--sub); }
.ct-trust a { color: var(--brand-verdigris-text); text-decoration: none; font-weight: 600; }
.ct-trust a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* pilot section */
.ct-pilot { margin-top: 8px; }
.ct-pilot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.ct-pilot-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ct-pilot-card .ct-pk { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-brass-text); }
.ct-pilot-card h3 { font-family: var(--ff-heading); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 8px 0 8px; }
.ct-pilot-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sub); }
@media (max-width: 760px) { .ct-pilot-grid { grid-template-columns: 1fr; } }

/* alternative paths */
.ct-alts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.ct-alt { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
.ct-alt:hover { border-color: var(--brand-verdigris-line); transform: translateY(-2px); }
.ct-alt .ct-alt-t { display: block; font-family: var(--ff-heading); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ct-alt .ct-alt-d { font-size: 13px; line-height: 1.5; color: var(--sub); }
.ct-alt .ct-alt-go { display: block; margin-top: 8px; font-family: var(--ff-mono); font-size: 11px; font-weight: 600; color: var(--brand-verdigris-text); }
@media (max-width: 820px) { .ct-alts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ct-alts { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .ct-alt, .ct-input, .ct-textarea { transition: none !important; } }
