/* Contact page: a dark panel with the founders on the left, and one card on
   the right to book a call or send a message. Classes are prefixed cx- so
   nothing collides with ui.css. Built from the option C preview. */

/* ---------- shared pieces ---------- */
.cx-main { min-height: calc(100vh - 88px); display: grid; place-items: center;
  padding: clamp(24px, 5vw, 64px) 16px; background: var(--field); }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 6px 12px; }
.cx-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--stamp);
  box-shadow: 0 0 0 4px rgba(179,39,28,.14); }
.cx-h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.05;
  margin: 16px 0 10px; }
.cx-sub { color: var(--text-2); font-size: 1.05rem; margin: 0; }

.cx-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(22,24,28,.04), 0 24px 60px -36px rgba(22,24,28,.45); }

.cx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--field);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.cx-seg button { appearance: none; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--text-2); min-height: 48px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, color .15s; }
.cx-seg button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cx-seg button[aria-pressed="true"] { background: var(--surface); color: var(--carbon);
  box-shadow: 0 1px 2px rgba(22,24,28,.08), 0 4px 12px -6px rgba(22,24,28,.25); }

.cx-k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); margin: 22px 0 10px; display: flex; justify-content: space-between; gap: 12px; }
.cx-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cx-day, .cx-time { appearance: none; font: inherit; cursor: pointer; background: var(--surface);
  border: 1px solid var(--rule); color: var(--carbon); border-radius: var(--radius-lg); transition: border-color .15s, background .15s, transform .15s; }
.cx-day { flex: 0 0 auto; min-width: 64px; min-height: 64px; padding: 8px 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.15; }
.cx-day b { font-size: .95rem; } .cx-day span { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.cx-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cx-time { min-height: 44px; font-size: .92rem; font-weight: 600; }
.cx-day:hover, .cx-time:hover { border-color: var(--carbon); }
/* The way to the rest of the day, marked as a door rather than a time. */
.cx-time.cx-more { border-style: dashed; font-weight: 500; color: var(--text-2); }
.cx-time.cx-more:hover { color: var(--carbon); }
.cx-day[aria-pressed="true"], .cx-time[aria-pressed="true"] {
  background: var(--carbon); color: #fff; border-color: var(--carbon); }
.cx-day[aria-pressed="true"] span { color: #c9ced5; }
.cx-loading { color: var(--text-2); font-size: .92rem; }

.cx-f { display: grid; gap: 12px; margin-top: 18px; }
.cx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx-f label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--carbon); }
.cx-f label em { font-style: normal; font-weight: 400; color: var(--text-2); }
.cx-f input, .cx-f textarea { font: inherit; font-size: 1rem; width: 100%; box-sizing: border-box;
  padding: 13px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  color: var(--carbon); transition: border-color .15s, box-shadow .15s; }
.cx-f textarea { min-height: 120px; resize: vertical; }
.cx-f input:focus, .cx-f textarea:focus { outline: none; border-color: var(--carbon);
  box-shadow: 0 0 0 3px rgba(22,24,28,.1); }
.cx-go { appearance: none; font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer;
  background: var(--carbon); color: #fff; border: 0; border-radius: var(--radius-lg); min-height: 54px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; transition: background .15s, transform .15s; }
.cx-go:hover { background: #000; } .cx-go:active { transform: translateY(1px); }
.cx-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.cx-go:hover svg { transform: translateX(3px); }
.cx-go[disabled] { background: #a9afb7; cursor: not-allowed; }
.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cx-pick { display: flex; align-items: center; gap: 10px; background: var(--field); border-radius: var(--radius);
  padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.cx-pick svg { width: 18px; height: 18px; fill: none; stroke: var(--stamp); stroke-width: 2; flex: none; }

.cx-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px;
  color: var(--text-2); font-size: .9rem; }
.cx-trust span { display: inline-flex; align-items: center; gap: 8px; }
.cx-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--carbon); stroke-width: 1.8; }

/* done state: a tick that draws itself */
.cx-done { text-align: center; padding: 28px 8px 8px; }
.cx-done svg { width: 64px; height: 64px; }
.cx-done circle { fill: none; stroke: var(--rule); stroke-width: 3; }
.cx-done path { fill: none; stroke: var(--stamp); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: cxTick .5s .15s ease forwards; }
@keyframes cxTick { to { stroke-dashoffset: 0; } }
.cx-done h2 { margin: 14px 0 6px; font-size: 1.5rem; letter-spacing: -0.02em; }
.cx-done p { color: var(--text-2); margin: 0; }

/* ---------- C: split screen, one form ---------- */
.cxc-wrap { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: calc(100vh - 88px); }
.cxc-side { background: var(--carbon); color: #fff; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.cxc-side .cx-eyebrow { background: transparent; border-color: #3a3f47; color: #c9ced5; align-self: flex-start; }
.cxc-side .cx-h1 { color: #fff; }
.cxc-side .cx-sub { color: #c9ced5; }
.cxc-people { display: flex; align-items: center; gap: 14px; margin: 30px 0; }
.cxc-people span { display: flex; }
.cxc-people img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--carbon); }
.cxc-people img + img { margin-left: -14px; }
.cxc-people p { margin: 0; font-size: .95rem; color: #e6e9ed; }
.cxc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cxc-list li { display: flex; gap: 12px; align-items: center; font-size: .98rem; }
.cxc-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--stamp-on-dark); stroke-width: 1.8; }
/* The panel is on carbon, so this takes the same muted grey as .cx-sub and
   the links lift to white on hover rather than using the stamp, which is
   reserved for the stronger accents on this panel. */
.cxc-social { margin: 22px 0 0; font-size: .92rem; color: #c9ced5; }
.cxc-social a { color: #e6e9ed; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: #5a6470; transition: color .2s ease, text-decoration-color .2s ease; }
.cxc-social a:hover { color: #fff; text-decoration-color: #fff; }
.cxc-main { background: var(--field); display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) 16px; }
.cxc-form { width: 100%; max-width: 560px; }
.cxc-form .cx-card { padding: clamp(20px, 3vw, 32px); }

@media (max-width: 860px) {
  .cxc-wrap { grid-template-columns: 1fr; min-height: 0; }
  .cxc-side { padding: 28px 16px; }
  .cxc-side .cx-h1 { font-size: 2rem; }
  .cxc-people { margin: 18px 0; }
  .cxc-list { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .cx-row { grid-template-columns: 1fr; }
  .cx-main { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-done path { animation: none; } .cx-done path { stroke-dashoffset: 0; }
}

/* hidden has to win over the flex and grid display rules above */
.cx-main [hidden], .cxc-wrap [hidden] { display: none !important; }
/* the day row scrolls inside the card; it must never widen it */
.cxc-main { grid-template-columns: minmax(0, 1fr); }
.cxc-form, .cxc-form .cx-card { min-width: 0; }
/* the card */
.cxc-form { max-width: 600px; }
.cxc-form .cx-card { padding: 18px; }
.cxc-form .cx-pane { padding: 4px 6px 6px; }
/* a dropdown that matches the inputs, with its own chevron */
.cx-f select { font: inherit; font-size: 1rem; width: 100%; box-sizing: border-box; min-height: 50px;
  padding: 13px 44px 13px 14px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--carbon);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cx-f select:invalid { color: var(--text-2); }
.cx-f select:focus { outline: none; border-color: var(--carbon); box-shadow: 0 0 0 3px rgba(22,24,28,.1); }

.cx-warn { color: var(--stamp); }
.cx-err { margin: 0; color: var(--stamp); font-weight: 600; font-size: .92rem; }
.cxc-main .form-status { margin: 0 0 14px; }

/* Control edges at 1.35:1 on white are not boundaries. */
.cx-day,.cx-time,.cx-f input,.cx-f select,.cx-f textarea { border-color: var(--slate); }

@media (max-width: 760px) {
  /* Exactly 44px is the floor, not a target, and these are the controls the
     whole page exists for. */
  .cx-time { min-height: 48px; font-size: max(.92rem, 15px); }
  .cx-f label { font-size: max(.86rem, 14px); }
}

/* SMS consent. Carriers check that this exists, that it is not ticked for you,
   and that nothing is conditional on it. */
.cx-f label.cx-consent { display: flex; gap: 11px; align-items: center;
  font-weight: 500; font-size: .95rem; line-height: 1.4; color: var(--carbon);
  cursor: pointer; margin-top: 2px; }
.cx-f label.cx-consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0;
  accent-color: var(--carbon); cursor: pointer; }
.cx-f label.cx-consent input:focus-visible { outline: 2px solid var(--carbon); outline-offset: 2px; }
.cx-consent-note { margin: -4px 0 0 29px; font-size: .76rem; line-height: 1.5; color: var(--text-3); }
.cx-consent-note a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) {
  /* The box is 20px and the label was 21px tall, so the whole consent row
     was a 21px target on a phone. Padding takes the row to 44 without
     moving the text, since the checkbox stays aligned to the first line. */
  .cx-f label.cx-consent { font-size: max(.95rem, 15px); align-items: flex-start;
    min-height: 44px; padding: 11px 0; }
  .cx-f label.cx-consent input { width: 20px; height: 20px; }
}
