/* /contact: the Contact us and Enterprise forms (js/contact.js). Built from the tokens in css/site.css and the
   card look of css/page.css. */
.ct-hero { padding-bottom: 2vh; }
.ct-sec { padding-top: 2vh; }
.ct-sec .wrap { max-width: calc(44rem + var(--gutter) * 2); }

/* The switch: two pills, like the filters elsewhere on the site. */
.ct-switch { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.6rem; }
.ct-switch[hidden] { display: none; }
.ct-switch button { height: 2.5rem; padding: 0 1.2rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); border: 1px solid var(--hair); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.ct-switch button:hover { color: var(--foreground); background: var(--tint); }
.ct-switch button[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--btn-fill); box-shadow: 0 8px 22px -12px #a78bfa; }

.ct-panels { display: grid; gap: 14px; }
.ct-card { scroll-margin-top: 90px; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 22px; background: linear-gradient(160deg, rgb(36 30 52 / .6), rgb(24 20 31 / .5)); box-shadow: inset 0 0 0 1px rgb(244 243 247 / .08); }
.ct-card[hidden] { display: none; }
.ct-card:focus { outline: 0; }
.ct-h { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; }
.ct-intro { margin-top: .45rem; font-size: .95rem; line-height: 1.55; color: var(--muted-foreground); }

.ct-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ct-field { display: grid; gap: .4rem; align-content: start; }
.ct-field label { font-size: .875rem; font-weight: 500; color: var(--foreground); }
.ct-opt { margin-left: .35rem; font-weight: 400; font-size: .8125rem; color: var(--text-ghost); }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; min-width: 0; padding: .75rem .95rem; border-radius: 14px;
  border: 1px solid var(--hair); background: color-mix(in oklch, var(--foreground) 5%, transparent);
  font: 400 1rem/1.4 var(--font-body); color: var(--foreground);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ct-field input, .ct-field select { height: 3rem; }
.ct-field textarea { min-height: 8rem; resize: vertical; }
.ct-field select { appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23b2a6c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5l3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; background-size: .8rem; }
.ct-field select option { color: var(--foreground); background: var(--card); }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: color-mix(in oklch, var(--foreground) 18%, transparent); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: 0; border-color: rgb(167 139 250 / .6); box-shadow: 0 0 0 3px rgb(167 139 250 / .18); }
.ct-field [aria-invalid="true"] { border-color: color-mix(in oklch, var(--err) 70%, transparent); }
.ct-err { font-size: .8125rem; color: var(--err); }
.ct-err[hidden] { display: none; }

/* The honeypot: off screen, out of the tab order, hidden from screen readers. */
.ct-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: .4rem; }
.ct-send .btn:disabled { opacity: .6; cursor: default; }
.ct-fine { font-size: .8125rem; color: var(--text-ghost); }
.ct-status { min-height: 1.2em; font-size: .9rem; line-height: 1.5; color: var(--muted-foreground); }
.ct-status:empty { display: none; }
.ct-status.err { color: var(--foreground); padding: .8rem 1rem; border-radius: 14px; background: color-mix(in oklch, var(--err) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--err) 35%, transparent); }

.ct-done { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: 16px; background: color-mix(in oklch, #a78bfa 10%, transparent); box-shadow: inset 0 0 0 1px rgb(167 139 250 / .35); }
.ct-done:focus { outline: 0; }
.ct-done h3 { font: 600 1.2rem/1.3 var(--font-display); }
.ct-done p { margin-top: .4rem; color: var(--muted-foreground); }

.ct-note { margin-top: 1.6rem; text-align: center; font-size: .9rem; color: var(--text-ghost); }

@media (max-width: 600px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-send .btn { width: 100%; }
}
