/* =====================================================================
   contact.css — the "work with me" wizard. Mobile-first, RTL/LTR via
   logical properties. Loaded on /contact only.
   ===================================================================== */

.ao-contact-hero { text-align: center; }

.cw {
  max-width: 560px;
  margin: -28px auto 0;      /* lift the card so it overlaps the hero base */
  position: relative;
  background: var(--bg-raised, #fff);
  border: 1px solid var(--border-subtle, rgba(20,8,50,.08));
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(20, 8, 50, 0.18), 0 4px 12px rgba(20, 8, 50, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

/* Progress */
.cw-progress {
  height: 4px; border-radius: 999px;
  background: color-mix(in oklab, var(--fg-secondary) 14%, transparent);
  overflow: hidden; margin-bottom: 18px;
}
.cw-progress-bar {
  display: block; height: 100%; width: 25%;
  background-image: var(--abdul-gradient-salmon, linear-gradient(90deg,#f5536a,#ff8a5c));
  border-radius: 999px;
  transition: width 400ms var(--ease-standard, cubic-bezier(.22,1,.36,1));
}

/* Back */
.cw-back {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--fg-tertiary); font: inherit; font-size: 13px; font-weight: 600;
  padding: 4px 0; margin-bottom: 10px;
}
.cw-back::before { content: '‹ '; }
[dir="rtl"] .cw-back::before { content: '› '; }
.cw-back:hover { color: var(--fg-accent, #f5536a); }

/* Screen transition — directional: forward slides in from the "next" side,
   back from the "previous" side (mirrored under RTL). */
.cw-screen { opacity: 0; transform: translateY(6px); }
[dir="rtl"] .cw-screen.cw-fwd  { transform: translateX(-10px); }
[dir="rtl"] .cw-screen.cw-bwd  { transform: translateX(10px); }
[dir="ltr"] .cw-screen.cw-fwd  { transform: translateX(10px); }
[dir="ltr"] .cw-screen.cw-bwd  { transform: translateX(-10px); }
/* dir-qualified variants included so this outranks the [dir] entry rules
   above — without them the entry translateX sticks and the whole screen
   sits 10px off-grid. */
.cw-screen.is-in,
[dir="rtl"] .cw-screen.is-in,
[dir="ltr"] .cw-screen.is-in { opacity: 1; transform: none; transition: opacity 280ms ease, transform 280ms var(--ease-standard, cubic-bezier(0,.7,.2,1)); }

.cw-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(20px, 3.4vw, 26px); font-weight: 800;
  line-height: 1.35; color: var(--fg-primary); margin: 0 0 8px;
}
.cw-sub { color: var(--fg-secondary); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }

/* Option cards */
.cw-options { display: flex; flex-direction: column; gap: 10px; }
.cw-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
  padding: 15px 16px; border-radius: 14px; cursor: pointer;
  background: var(--bg-canvas, #fcfbf8);
  border: 1.5px solid var(--border-subtle, rgba(20,8,50,.1));
  color: var(--fg-primary); font: inherit;
  transition: border-color 160ms, transform 160ms var(--ease-standard, ease), box-shadow 160ms;
}
.cw-opt:hover {
  border-color: var(--abdul-salmon-400, #f5536a);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 8, 50, 0.10);
}
.cw-opt-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--abdul-violet-500, #6d54e8) 12%, transparent);
  color: var(--abdul-violet-600, #5b3fd6);
}
.cw-opt-ic svg { width: 21px; height: 21px; }
.cw-opt-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cw-opt-label { font-weight: 700; font-size: 15px; line-height: 1.35; }
.cw-opt-sub { font-size: 12.5px; color: var(--fg-tertiary); }
.cw-opt-arrow { flex: none; color: var(--fg-tertiary); font-size: 20px; }

/* Form */
.cw-form { display: flex; flex-direction: column; gap: 14px; }
/* inset-inline-start (not `left`): on RTL pages a left-offscreen element
   extends the scrollable area and the whole page wobbles sideways. */
.cw-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.cw-field { display: flex; flex-direction: column; gap: 6px; }
.cw-field > span { font-size: 13px; font-weight: 600; color: var(--fg-secondary); }
.cw-req { color: var(--abdul-salmon-500, #f5536a); }
.cw-field input, .cw-field select, .cw-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg-primary);
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-canvas, #fcfbf8);
  border: 1.5px solid var(--border-subtle, rgba(20,8,50,.12));
  transition: border-color 160ms;
}
.cw-field textarea { resize: vertical; min-height: 76px; }
.cw-field input:focus, .cw-field select:focus, .cw-field textarea:focus {
  outline: none; border-color: var(--abdul-salmon-400, #f5536a);
}
.cw-field .cw-invalid, .cw-invalid { border-color: var(--abdul-ember-500, #e5484d) !important; }
.cw-err { color: var(--abdul-ember-600, #c62a2f); font-size: 13px; font-weight: 600; }

.cw-submit, .cw-act.is-primary {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  color: #fff; background-image: var(--abdul-gradient-salmon, linear-gradient(90deg,#f5536a,#ff8a5c));
  padding: 14px 20px; border-radius: 999px; text-align: center; text-decoration: none;
  transition: filter 160ms, transform 160ms;
}
.cw-submit { margin-top: 4px; }
.cw-submit:hover, .cw-act.is-primary:hover { filter: brightness(1.08); }
.cw-submit:disabled { opacity: .7; cursor: default; }

/* Outcome */
.cw-outcome { text-align: center; padding: 8px 0; }
.cw-check {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  background-image: var(--abdul-gradient-mint, linear-gradient(135deg,#1fd896,#12b6c9));
  box-shadow: 0 10px 26px color-mix(in oklab, var(--abdul-mint-500, #1fd896) 45%, transparent);
}
.cw-outcome .cw-sub { max-width: 40ch; margin-inline: auto; margin-bottom: 22px; }
.cw-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cw-act {
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--border-subtle, rgba(20,8,50,.14));
  color: var(--fg-primary); background: var(--bg-canvas, #fcfbf8);
  transition: border-color 160ms, transform 160ms;
}
.cw-act:not(.is-primary):hover { border-color: var(--fg-accent, #f5536a); transform: translateY(-1px); }

/* Quiet escape hatch under the outcome actions — restart the wizard. */
.cw-restart {
  display: block; margin: 18px auto 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--fg-tertiary, #7c7868);
  text-decoration: underline; text-underline-offset: 3px;
}
.cw-restart:hover { color: var(--fg-accent, #f5536a); }

.cw-noscript { text-align: center; color: var(--fg-secondary); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .cw-screen, .cw-screen.is-in, .cw-opt, .cw-progress-bar, .cw-submit, .cw-act { transition: none; }
  .cw-screen { opacity: 1; transform: none; }
}
