/* Contact page — the last route still wearing the old design.
   Same language as the rest of the suite: white ground, --blue primary, the four accents
   on the side cards, and the cursor spotlight the plan and step cards already use. */

.ct { max-width: 1120px; margin: 0 auto; padding: 56px min(6vw, 40px) 80px; }

.ct-head { max-width: 640px; margin-bottom: 40px; }
.ct-head .pill { margin-bottom: 18px; }
.ct-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; }
.ct-head > p { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ===== the form ===== */
.ct-form-card {
  position: relative; padding: 30px 30px 26px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 26px 54px -34px rgba(12,44,130,.4);
}
.ct-field { margin-bottom: 18px; }
.ct-field label {
  display: block; font-size: 13.4px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.ct-field input, .ct-field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border-radius: 12px;
  background: #F7F9FD; border: 1px solid var(--line); outline: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.ct-field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #A9B7CE; }
.ct-field input:hover, .ct-field textarea:hover { border-color: rgba(31,98,255,.28); }
.ct-field input:focus, .ct-field textarea:focus {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,98,255,.16);
}
/* only after a failed submit — never colour a field the visitor has not finished typing */
.ct-field.is-bad input, .ct-field.is-bad textarea {
  border-color: rgba(var(--c-red-rgb), .55); background: #FEF6F6;
}
.ct-field.is-bad label { color: var(--c-red-ink); }

.ct-submit {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: #fff;
  padding: 14px 28px; border-radius: 100px; border: 0;
  background: linear-gradient(180deg, #4B8CFF 0%, #1250E6 62%, #0A3AC8 100%);
  box-shadow: 0 12px 26px -10px rgba(15,75,230,.55), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease);
}
.ct-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(15,75,230,.62), inset 0 1px 0 rgba(255,255,255,.45); }
.ct-submit[disabled] { opacity: .62; cursor: default; transform: none; }
.ct-submit .spin {
  width: 14px; height: 14px; border-radius: 50%; display: none;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: ctSpin .7s linear infinite;
}
.ct-submit.is-busy .spin { display: block; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* Messages carry an ICON as well as colour — colour alone is not an accessible signal,
   and this is the one place on the site where a failure has to be unmistakable. */
.ct-msg {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  font-size: 13.8px; line-height: 1.6;
}
.ct-msg[hidden] { display: none; }
.ct-msg.is-bad { background: #FEF2F2; border: 1px solid rgba(var(--c-red-rgb), .34); color: var(--c-red-ink); }
.ct-msg a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ct-direct { margin: 14px 0 0; font-size: 13.6px; color: var(--muted); }
.ct-direct a { color: var(--blue); font-weight: 600; }

/* ===== sent ===== */
.ct-sent { display: grid; place-items: start; gap: 14px; }
.ct-sent[hidden] { display: none; }
.ct-tick {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--c-green-rgb), .12); border: 1px solid rgba(var(--c-green-rgb), .4);
  color: var(--c-green-ink); font-size: 22px; font-weight: 700;
}
.ct-sent h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.ct-sent p { font-size: 15px; line-height: 1.7; color: #3E4F6B; margin: 0; max-width: 46ch; }

/* ===== side cards ===== */
.ct-side { display: grid; gap: 14px; }
.ct-card {
  position: relative; overflow: hidden;
  padding: 22px 24px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.ct-card:hover {
  transform: translateY(-2px); border-color: rgba(var(--acc), .4);
  box-shadow: 0 20px 42px -26px rgba(var(--acc), .5);
}
.ct-card h2 { font-size: 15.6px; font-weight: 700; margin: 0 0 8px; color: var(--acc-ink); }
.ct-card p, .ct-card address {
  font-size: 14.2px; line-height: 1.7; color: #3E4F6B; margin: 0; font-style: normal;
}
.ct-card a.ct-mail { display: inline-block; margin-top: 10px; font-size: 14.2px; font-weight: 600; color: var(--acc-ink); }
.ct-card a.ct-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-note { margin-top: 10px !important; font-size: 13px !important; color: var(--muted) !important; }

/* the spotlight, in each card's own accent — same mechanism as the plan cards */
.ct-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--acc), .12), transparent 62%);
  transition: opacity .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .ct-card:hover::after { opacity: 1; } }

@media (max-width: 880px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-form-card { padding: 24px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-submit { transition: none; }
  .ct-card:hover, .ct-submit:hover { transform: none; }
  .ct-submit .spin { animation: none; }
}
