/* ==========================================================
   All Keyboards – Contact page
   (header and footer come from style.css)
   ========================================================== */
.ct-page {
  --ct-ink: #10262c;
  --ct-muted: #5b6b70;
  --ct-line: #e2e9eb;
  --ct-soft: #e3f1f4;
  --ct-danger: #b42318;
  --ct-danger-soft: #fef3f2;
  --ct-radius: 16px;
  --ct-shadow: 0 1px 2px rgba(16, 38, 44, .04), 0 10px 30px rgba(16, 38, 44, .05);

  font-family: "Plus Jakarta Sans", var(--font-hi), system-ui, sans-serif;
  color: var(--ct-ink);
  background: #f3f7f8;
  padding: 56px 0 80px;
}
.ct-page svg.lucide { width: 20px; height: 20px; stroke-width: 1.7; flex-shrink: 0; }

/* ---------- Hero ---------- */
.ct-hero { max-width: 720px; margin-bottom: 40px; }
.ct-eyebrow {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.ct-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.ct-lead { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ct-muted); }

/* ---------- Layout ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ct-aside { display: grid; gap: 24px; }

.ct-card {
  background: var(--white);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
  padding: 32px;
}
.ct-card-title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.ct-card-sub { margin: 0 0 24px; font-size: .92rem; color: var(--ct-muted); }
.ct-info .ct-card-title { margin-bottom: 20px; }

/* ---------- Form ---------- */
.ct-form { display: grid; gap: 20px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ct-field { display: grid; gap: 8px; min-width: 0; }
.ct-field label { font-size: .9rem; font-weight: 600; }
.ct-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.ct-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dfe2;
  border-radius: 10px;
  background: var(--white);
  color: var(--ct-ink);
  font: inherit;
  font-size: .98rem;
  transition: border-color .15s, box-shadow .15s;
}
.ct-input::placeholder { color: #a9b3b6; }
.ct-input:hover { border-color: #b9c8cc; }
.ct-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(63, 167, 191, .18);
}
.ct-input.is-invalid { border-color: var(--ct-danger); }
.ct-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }

.ct-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.ct-select:invalid { color: #a9b3b6; }
.ct-select option { color: var(--ct-ink); }

.ct-textarea { min-height: 160px; resize: vertical; line-height: 1.55; }

.ct-error { margin: 0; min-height: 0; font-size: .84rem; color: var(--ct-danger); }
.ct-error:empty { display: none; }

.ct-counter { font-size: .8rem; color: var(--ct-muted); font-variant-numeric: tabular-nums; }
.ct-counter.is-over { color: var(--ct-danger); font-weight: 600; }

/* honeypot – off-screen, not display:none (some bots skip hidden fields) */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #fecdca;
  border-radius: 10px;
  background: var(--ct-danger-soft);
  color: var(--ct-danger);
  font-size: .92rem;
}

.ct-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ct-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .85rem;
  color: var(--ct-muted);
}
.ct-privacy svg.lucide { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.ct-btn svg.lucide { width: 18px; height: 18px; }
.ct-btn:active { transform: translateY(1px); }
.ct-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.ct-btn--primary { border: 0; background: var(--teal-dark); color: var(--white); }
.ct-btn--primary:hover { background: #0f4f5d; }
.ct-btn--outline { border: 1px solid #d5dfe2; background: var(--white); color: var(--ct-ink); }
.ct-btn--outline:hover { border-color: var(--teal); color: var(--ct-ink); }

.ct-btn-spinner { display: none; animation: ct-spin .9s linear infinite; }
.ct-btn.is-loading { pointer-events: none; opacity: .85; }
.ct-btn.is-loading .ct-btn-icon { display: none; }
.ct-btn.is-loading .ct-btn-spinner { display: block; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.ct-success { padding: 32px 8px; text-align: center; }
.ct-success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ct-soft);
  color: var(--teal-dark);
}
.ct-success-icon svg.lucide { width: 32px; height: 32px; }
.ct-success h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 700; }
.ct-success p { max-width: 380px; margin: 0 auto 24px; color: var(--ct-muted); }

/* ---------- Details ---------- */
.ct-info-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ct-info-list li { display: flex; align-items: flex-start; gap: 14px; }
.ct-info-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ct-soft);
  color: var(--teal-dark);
}
.ct-info-label { margin: 2px 0 2px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-muted); }
.ct-info-value { margin: 0; font-size: 1rem; font-weight: 500; color: var(--ct-ink); line-height: 1.45; overflow-wrap: anywhere; }
a.ct-info-value { color: var(--teal-dark); text-decoration: none; }
a.ct-info-value:hover { text-decoration: underline; }

.ct-social .ct-card-sub { margin-bottom: 18px; }
.ct-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d5dfe2;
  border-radius: 50%;
  color: var(--teal-dark);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.ct-social-links a:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

/* ---------- FAQ ---------- */
.ct-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  margin-top: 64px;
}
.ct-faq-head h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.ct-faq-head p { margin: 0; color: var(--ct-muted); }

.ct-faq-list { display: grid; gap: 12px; }
.ct-faq-item {
  background: var(--white);
  border: 1px solid var(--ct-line);
  border-radius: 12px;
  transition: box-shadow .15s;
}
.ct-faq-item[open] { box-shadow: var(--ct-shadow); }
.ct-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 12px; }
.ct-faq-item summary svg.lucide { color: var(--ct-muted); transition: transform .2s; }
.ct-faq-item[open] summary svg.lucide { transform: rotate(180deg); }
.ct-faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ct-muted); line-height: 1.6; }
.ct-faq-item strong { color: var(--ct-ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-aside { grid-template-columns: 1fr 1fr; }
  .ct-faq { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
}

@media (max-width: 767.98px) {
  .ct-page { padding: 32px 0 56px; }
  .ct-hero { margin-bottom: 28px; }
  .ct-lead { font-size: 1rem; }
  .ct-card { padding: 22px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-aside { grid-template-columns: 1fr; }
  .ct-form-foot { flex-direction: column-reverse; align-items: stretch; }
  .ct-btn--primary { width: 100%; }
}
