/* ==========================================================
   Spin Strategic: custom contact form + thank-you page
   Matched to spinstrategic.com:
   - #151515 page, Inter body, Impact display headlines, Sora buttons
   - cyan→blue gradient (#06b6d4 → #3b82f6) for actions
   - orange-red #ff4a29 highlight for eyebrows
   All classes are prefixed .ssx- so nothing collides with main.css
   ========================================================== */

:root {
  --ssx-cyan: #06b6d4;
  --ssx-blue: #3b82f6;
  --ssx-teal: #59bdce;
  --ssx-grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --ssx-orange: #ff4a29;
  --ssx-grad-accent: linear-gradient(90deg, #06b6d4 0%, #3b82f6 55%, #ff4a29 100%);
  --ssx-bg: #151515;
  --ssx-panel: #1b1b1e;
  --ssx-field: #111113;
  --ssx-line: rgba(255, 255, 255, 0.07);
  --ssx-line-2: rgba(255, 255, 255, 0.14);
  --ssx-text: #e2e8f0;
  --ssx-muted: #94a3b8;
  --ssx-danger: #ff6b5a;
  --ssx-radius: 14px;
  --ssx-font: 'Inter', sans-serif;
  --ssx-font-btn: 'Sora', 'Inter', sans-serif;
  --ssx-font-display: Impact, 'Anton', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
}

body.ssx-page { background: var(--ssx-bg) !important; }
.ssx-page [hidden] { display: none !important; }
.ssx-wrap, .ssx-wrap *, .ssx-wrap *::before, .ssx-wrap *::after { box-sizing: border-box; }

.ssx-wrap {
  background: var(--ssx-bg);
  color: var(--ssx-text);
  font-family: var(--ssx-font);
  font-weight: 300;
  min-height: 100vh;
  padding: 0 16px 90px;
}
.ssx-shell { max-width: 860px; margin: 0 auto; }

/* ---------- Motion graphics (inline, same as original page) ---------- */
.ssx-motion { display: flex; justify-content: center; margin: 0 auto; }
.ssx-motion video {
  display: block;
  width: 100%;
  max-width: 716px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--ssx-bg);
}

/* ---------- Hero ---------- */
.ssx-hero { text-align: center; margin: -10px auto 40px; }
.ssx-eyebrow {
  display: inline-block;
  font-family: var(--ssx-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ssx-text);
}
.ssx-eyebrow em { font-style: normal; color: var(--ssx-orange); }
.ssx-h1 {
  font-family: var(--ssx-font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  color: #fff;
  margin: 14px 0 18px;
  letter-spacing: 0.5px;
}
.ssx-h1 span {
  background: linear-gradient(90deg, #fff, var(--ssx-teal), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ssxShine 4s linear infinite;
}
@keyframes ssxShine { to { background-position: 200% center; } }
.ssx-lede {
  color: var(--ssx-muted);
  font-size: 17.6px;
  line-height: 1.6;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

.ssx-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 26px 0 0; }
.ssx-direct a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.ssx-direct a:hover { color: var(--ssx-orange); }
.ssx-direct small { display: block; color: var(--ssx-muted); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.ssx-direct-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 74, 41, 0.45);
  color: var(--ssx-orange);
}
.ssx-direct-icon svg { width: 16px; height: 16px; }

/* ---------- Card + progress ---------- */
.ssx-card {
  background: var(--ssx-panel);
  border: 1px solid var(--ssx-line);
  border-radius: 20px;
  padding: clamp(20px, 4.5vw, 44px);
  position: relative;
  overflow: hidden;
}
.ssx-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ssx-grad-accent);
}
.ssx-progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--ssx-muted); letter-spacing: 1.2px; text-transform: uppercase; }
.ssx-progress-row #ssx-step-label { color: var(--ssx-orange); }
.ssx-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; margin-bottom: 34px; }
.ssx-progress-fill { height: 100%; width: 25%; background: var(--ssx-grad-accent); border-radius: 999px; transition: width 0.4s ease; }

.ssx-step { animation: ssxIn 0.35s ease; }
@keyframes ssxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ssx-q { font-family: var(--ssx-font); font-size: clamp(22px, 3.2vw, 28px); font-weight: 600; color: #fff; margin: 0 0 6px; letter-spacing: -0.01em; line-height: 1.25; }
.ssx-hint { color: var(--ssx-muted); font-size: 15px; font-weight: 300; margin: 0 0 26px; }

/* ---------- Fieldsets ---------- */
.ssx-card fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.ssx-card legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ssx-text);
}
.ssx-card legend + * { clear: both; }
.ssx-card legend small, .ssx-field small { color: var(--ssx-muted); font-weight: 300; }
.ssx-card legend::before, .ssx-field > label:not(.ssx-consent)::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ssx-orange); margin: 0 9px 2px 0; vertical-align: middle; }

/* ---------- Big tiles (industry) ---------- */
.ssx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ssx-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.ssx-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ssx-tile-body {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--ssx-line-2);
  border-radius: var(--ssx-radius);
  background: var(--ssx-field);
  transition: border-color 0.2s, background 0.2s;
}
.ssx-tile:hover .ssx-tile-body { border-color: rgba(255, 74, 41, 0.45); }
.ssx-tile input:checked + .ssx-tile-body .ssx-tile-icon { background: rgba(255, 74, 41, 0.14); color: var(--ssx-orange); }
.ssx-tile input:checked + .ssx-tile-body {
  border-color: var(--ssx-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: inset 0 0 0 1px var(--ssx-cyan), 0 0 24px rgba(6, 182, 212, 0.15);
}
.ssx-tile input:focus-visible + .ssx-tile-body { outline: 2px solid var(--ssx-cyan); outline-offset: 3px; }
.ssx-tile-icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--ssx-cyan);
}
.ssx-tile-icon svg { width: 22px; height: 22px; }
.ssx-tile-title { display: block; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.25; }
.ssx-tile-sub { display: block; font-size: 13px; font-weight: 300; color: var(--ssx-muted); margin-top: 3px; }

/* ---------- Chips ---------- */
.ssx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ssx-chip { position: relative; margin: 0; cursor: pointer; }
.ssx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ssx-chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--ssx-line-2);
  border-radius: 50px;
  background: var(--ssx-field);
  font-size: 14.5px;
  font-weight: 400;
  color: #cbd5e1;
  transition: all 0.18s;
  user-select: none;
}
.ssx-chip:hover span { border-color: rgba(255, 74, 41, 0.55); color: #fff; }
.ssx-chip input:checked + span { background: var(--ssx-grad); border-color: transparent; color: #fff; font-weight: 600; }
.ssx-chip input:focus-visible + span { outline: 2px solid var(--ssx-cyan); outline-offset: 3px; }

/* ---------- Text inputs ---------- */
.ssx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ssx-field { margin-bottom: 18px; }
.ssx-field > label { display: block; font-size: 14px; color: #cbd5e1; margin-bottom: 8px; font-weight: 400; }
.ssx-input {
  width: 100%;
  background: var(--ssx-field);
  border: 1px solid var(--ssx-line-2);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  font-family: var(--ssx-font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ssx-input::placeholder { color: #5b6472; }
.ssx-input:focus { outline: none; border-color: var(--ssx-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18); }
textarea.ssx-input { min-height: 110px; resize: vertical; }

/* ---------- Errors ---------- */
.ssx-error { color: var(--ssx-danger); font-size: 14px; font-weight: 400; margin-top: 8px; }
.ssx-error:empty { display: none; }
.ssx-invalid .ssx-input { border-color: var(--ssx-danger); }
.ssx-invalid .ssx-tile-body, .ssx-invalid .ssx-chip span { border-color: rgba(255, 107, 90, 0.55); }
.ssx-form-alert {
  border: 1px solid rgba(255, 107, 90, 0.5);
  background: rgba(255, 74, 41, 0.08);
  color: #ffd9d2;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.ssx-form-alert a { color: #fff; }

/* ---------- Consent ---------- */
.ssx-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ssx-muted); line-height: 1.55; margin: 6px 0 4px; cursor: pointer; }
.ssx-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ssx-cyan); flex: none; }

/* ---------- Buttons (match site .btn) ---------- */
.ssx-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--ssx-line);
}
.ssx-actions-end { justify-content: flex-end; }
.ssx-btn {
  appearance: none;
  border: 0;
  border-radius: 50px;
  padding: 15px 35px;
  font-family: var(--ssx-font-btn);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  cursor: pointer;
  background: var(--ssx-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.ssx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 182, 212, 0.3); color: #fff; }
.ssx-btn:active { transform: none; }
.ssx-btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.ssx-btn-ghost { background: transparent; color: #cbd5e1; box-shadow: inset 0 0 0 1px var(--ssx-line-2); }
.ssx-btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 74, 41, 0.6); transform: none; }
.ssx-btn svg { width: 16px; height: 16px; }

.ssx-fineprint { color: #6b7280; font-size: 13px; text-align: center; margin: 22px 0 0; }
.ssx-fineprint a { color: var(--ssx-teal); }

/* Honeypot / visually hidden */
.ssx-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank-you page ---------- */
.ssx-ty-check {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ssx-grad);
  color: #fff;
  margin: 0 auto 22px;
  outline: 2px solid rgba(255, 74, 41, 0.6);
  outline-offset: 5px;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.35);
}
.ssx-ty-check svg { width: 30px; height: 30px; }
.ssx-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 34px; }
.ssx-next-item { border: 1px solid var(--ssx-line); border-top: 2px solid var(--ssx-orange); background: var(--ssx-panel); border-radius: var(--ssx-radius); padding: 20px; }
.ssx-next-num { font-size: 12px; color: var(--ssx-orange); font-weight: 800; letter-spacing: 2px; }
.ssx-next-title { color: #fff; font-weight: 600; font-size: 16px; margin: 8px 0 4px; }
.ssx-next-text { color: var(--ssx-muted); font-size: 14px; font-weight: 300; line-height: 1.55; margin: 0; }
.ssx-cal-card { padding: 0; }
.ssx-cal-head { padding: 26px clamp(20px, 4vw, 36px) 22px; border-bottom: 1px solid var(--ssx-line); }
.ssx-cal-frame { display: block; width: 100%; min-height: 780px; border: 0; background: transparent; }

/* ---------- Responsive ----------
   Site switches from left sidebar to a 96px fixed top bar at ~991px */
@media (max-width: 991px) {
  .ssx-wrap { padding-top: 96px; }
}
@media (max-width: 680px) {
  .ssx-hero { margin-top: 0; }
  .ssx-tiles, .ssx-grid-2, .ssx-next { grid-template-columns: 1fr; }
  .ssx-direct { flex-direction: column; align-items: center; }
  .ssx-actions .ssx-btn { flex: 1; padding-left: 18px; padding-right: 18px; }
  .ssx-cal-frame { min-height: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  .ssx-step, .ssx-h1 span { animation: none; }
  .ssx-progress-fill, .ssx-tile-body, .ssx-chip span, .ssx-btn { transition: none; }
}
