/**
 * Contact page ("TS Contact" template).
 *
 * Ported from the design system's contact.html. Colour, type, radius and
 * shadow come from the tokens in style.css; this file adds the layout: the
 * form-plus-sidebar grid, the deep-plate availability card, the process
 * strip and the FAQ.
 *
 * Everything is ct- prefixed. The design's own class names collide with the
 * theme (.side-card is the blog sidebar, .step and .field are too generic to
 * take), so none of them are reused verbatim.
 *
 * Section rhythm is the front page's 64px, not the design's 72 to 76px.
 */

.ct-page { background: var(--ts-white); }

/* ==========================================================
   HERO
   ========================================================== */

.ct-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F3F6 100%);
  border-bottom: 1px solid var(--border-2);
  padding: 64px var(--gutter);
  text-align: center;
}
.ct-hero .ts-eyebrow { display: inline-block; margin: 0 0 16px; }
.ct-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--fg-1);
  margin: 0 0 16px;
}
.ct-hero h1 .fp-accent { color: var(--ts-coral-400); }
.ct-hero p {
  font-size: 18px;
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================
   MAIN GRID
   ========================================================== */

.ct-main { padding: 64px var(--gutter); }
.ct-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* ==========================================================
   FORM CARD
   ========================================================== */

.ct-form-card {
  background: var(--ts-white);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.ct-form-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.ct-fc-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0 0 24px;
}
.ct-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-3);
  margin: 16px 0 0;
}
.ct-form-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Forminator ships its own styling from the plugin's form designer. These
   nudge its fields toward the design's .ts-input without rebuilding the
   form: anything beyond this is better changed in the Forminator UI than
   fought with here. */
.ct-form-card .forminator-input,
.ct-form-card .forminator-textarea,
.ct-form-card select.forminator-select2,
.ct-form-card .forminator-select select {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  border-radius: var(--r-md) !important;
  border-color: var(--border-1) !important;
}
.ct-form-card .forminator-input:focus,
.ct-form-card .forminator-textarea:focus {
  border-color: var(--ts-plum-400) !important;
  box-shadow: var(--shadow-focus) !important;
}
.ct-form-card .forminator-label {
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--fg-1) !important;
}
.ct-form-card .forminator-button-submit {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: var(--r-md) !important;
  background: var(--ts-coral-400) !important;
  border-color: var(--ts-coral-400) !important;
}
.ct-form-card .forminator-button-submit:hover {
  background: var(--ts-coral-500) !important;
  border-color: var(--ts-coral-500) !important;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.ct-side { display: flex; flex-direction: column; gap: 16px; }
.ct-card {
  background: var(--ts-white);
  border: 1px solid var(--border-1);
  border-radius: var(--r-card);
  padding: 24px;
}
.ct-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--fg-1);
  margin: 0 0 16px;
}

/* Availability card: the design's deep brand plate. */
.ct-avail { background: var(--grad-brand); border: 0; color: #fff; }
.ct-avail h3 { color: #fff; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.ct-avail h3 svg { width: 17px; height: 17px; flex-shrink: 0; }
.ct-avail p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0 0 16px;
}
.ct-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin: 0 0 12px;
}
.ct-avail-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ts-success);
  box-shadow: 0 0 0 3px rgba(16,185,129,.3);
}
.ct-avail .fp-btn { width: 100%; justify-content: center; }

/* Contact methods */
.ct-method { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.ct-method:first-of-type { padding-top: 0; }
.ct-method:last-child { padding-bottom: 0; }
.ct-method + .ct-method { border-top: 1px solid var(--ts-ink-100); }
.ct-method-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--ts-plum-100);
  color: var(--ts-plum-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-method-icon svg { width: 18px; height: 18px; }
.ct-method-text { font-size: 13px; min-width: 0; }
.ct-method-text .k {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 2px;
}
.ct-method-text .v { color: var(--fg-2); line-height: 1.5; overflow-wrap: anywhere; }
.ct-method-text a { color: var(--ts-coral-500); }
.ct-method-text a:hover { color: var(--ts-coral-600); }

/* Social row */
.ct-social { display: flex; gap: 8px; }
.ct-social a {
  flex: 1;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--ts-plum-50);
  border: 1px solid var(--border-2);
  color: var(--ts-plum-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--d-base) var(--ease-out);
}
.ct-social a:hover {
  background: var(--ts-plum-600);
  border-color: var(--ts-plum-600);
  color: #fff;
}
.ct-social svg { width: 17px; height: 17px; }

/* ==========================================================
   PROCESS STRIP
   ========================================================== */

.ct-process {
  padding: 64px var(--gutter);
  background: var(--ts-plum-50);
  border-top: 1px solid var(--border-2);
}
.ct-process-wrap { max-width: var(--container-max); margin: 0 auto; }
.ct-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.ct-head .ts-eyebrow { display: inline-block; margin: 0 0 8px; }
.ct-head h2 {
  font-family: var(--font-display);
  font-size: var(--fp-fs-h2);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--fg-1);
  margin: 0 0 12px;
}
.ct-head p { font-size: 16px; line-height: 1.55; color: var(--fg-2); margin: 0; }

.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-step {
  background: var(--ts-white);
  border: 1px solid var(--border-1);
  border-radius: var(--r-card);
  padding: 24px;
}
.ct-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ts-coral-400);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}
.ct-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg-1);
  margin: 0 0 8px;
}
.ct-step p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0; }

/* ==========================================================
   FAQ
   ========================================================== */

.ct-faq { padding: 64px var(--gutter); }
.ct-faq-wrap { max-width: 760px; margin: 0 auto; }
.ct-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ct-faq-item {
  background: var(--ts-white);
  border: 1px solid var(--border-1);
  border-radius: var(--r-card);
  overflow: hidden;
}
.ct-faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  list-style: none;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:focus-visible { outline: 2px solid var(--ts-plum-400); outline-offset: -2px; }
.ct-faq-icon {
  flex-shrink: 0;
  color: var(--ts-plum-600);
  display: inline-flex;
  transition: transform var(--d-base) var(--ease-out);
}
.ct-faq-item[open] .ct-faq-icon { transform: rotate(45deg); }
.ct-faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
  .ct-grid  { grid-template-columns: 1fr; gap: 24px; }
  .ct-steps { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .ct-hero,
  .ct-main,
  .ct-process,
  .ct-faq { padding: 40px var(--gutter); }
  .ct-head h2 { font-size: 26px; }
  .ct-hero p { font-size: 16px; }
}
