/* ============================================================
   GARAGE DESIGNER — page-specific styles
   Extends the shared dfs-saas tokens in /assets/css/style.css
   ============================================================ */

:root {
  --gd-tenant-brand: var(--purple);        /* overridden per-tenant from JSON */
  --gd-tenant-accent: var(--orange);
  --gd-stage-pad: 32px;
}

/* HTML `hidden` attribute should always win over our flex/grid display rules.
   Without this, .gd-render-skeleton (display:flex) stayed visible while
   variations rendered below it — quota counter went up but the shimmer kept
   scrolling. */
[hidden] { display: none !important; }

[data-theme="dark"] {
  --gd-card-bg: rgba(20, 12, 36, 0.55);
  --gd-card-border: rgba(124, 58, 237, 0.22);
  --gd-input-bg: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] {
  --gd-card-bg: #FFFFFF;
  --gd-card-border: rgba(124, 58, 237, 0.16);
  --gd-input-bg: #FAFAFC;
}

body { padding-top: 64px; }

/* ── Header ──────────────────────────────────────────────────── */
.gd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; display: flex; align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.gd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; gap: 24px;
}
.gd-header-logo img { height: 28px; width: auto; display: block; }
.gd-header-logo .logo-light { display: none; }
[data-theme="light"] .gd-header-logo .logo-dark { display: none; }
[data-theme="light"] .gd-header-logo .logo-light { display: block; }
.gd-header-actions { display: flex; align-items: center; gap: 14px; }
.gd-header-link {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
}
.gd-header-link:hover { color: var(--text-primary); }
@media (max-width: 520px) { .gd-header-link { display: none; } }

/* ── Hero (stage 0 entry) ────────────────────────────────────── */
.gd-hero {
  position: relative; padding: 96px 0 64px; overflow: hidden;
  background: var(--bg-deepest);
}
.gd-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000 30%, transparent 75%);
}
.gd-hero::after {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18), transparent 65%);
  pointer-events: none; filter: blur(20px);
}
[data-theme="light"] .gd-hero::after { background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08), transparent 65%); }

.gd-hero-inner {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto; padding: 0 24px; text-align: center;
}
.gd-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.08);
  margin-bottom: 22px;
}
.gd-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: gdPulse 2.2s infinite;
}
@keyframes gdPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gd-h1 {
  font-size: clamp(38px, 5.4vw, 64px); font-weight: 900;
  line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 18px; color: var(--text-primary);
}
.gd-h1 .accent, .accent {
  background: linear-gradient(120deg, var(--gd-tenant-brand) 0%, var(--gd-tenant-accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gd-sub {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: var(--text-muted); max-width: 620px; margin: 0 auto 24px;
}

.gd-bullets {
  list-style: none; padding: 0; margin: 0 auto 32px;
  display: inline-flex; flex-direction: column; gap: 10px; text-align: left;
}
.gd-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; color: var(--text-secondary); font-weight: 500;
}
.gd-bullets .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light); font-size: 12px; font-weight: 900; margin-top: 1px;
}

.gd-cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}
.gd-trustline {
  font-size: 13px; color: var(--text-faint); font-weight: 500;
}

/* ── CTAs ────────────────────────────────────────────────────── */
.gd-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gd-tenant-brand), var(--gd-tenant-accent));
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.2px;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.gd-cta-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.45);
}
.gd-cta-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.gd-cta-primary.gd-full-width { width: 100%; justify-content: center; }

.gd-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  color: var(--text-primary); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.gd-cta-secondary:hover { background: rgba(124, 58, 237, 0.08); border-color: var(--purple-light); }

.gd-link-btn {
  background: none; border: none; color: var(--purple-light);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 4px;
}
.gd-link-btn:hover { text-decoration: underline; }

/* ── Wizard frame ────────────────────────────────────────────── */
.gd-wizard { padding: 24px 16px 80px; background: var(--bg-deepest); min-height: 60vh; }
.gd-wizard-inner { max-width: 980px; margin: 0 auto; }

.gd-steps {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gd-step {
  flex: 1 1 140px; min-width: 0;
  padding: 10px 14px;
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all var(--transition);
}
.gd-step.is-active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(228, 86, 9, 0.10));
  border-color: rgba(124, 58, 237, 0.45);
}
.gd-step.is-done {
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.4);
}

.gd-stage {
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 22px;
  padding: var(--gd-stage-pad);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.gd-stage-title {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px;
}
.gd-stage-sub {
  font-size: 15px; color: var(--text-muted); margin: 0 0 24px;
}
.gd-stage-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px; flex-wrap: wrap;
}
.gd-stage-error {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5; font-size: 14px;
}

/* ── Dropzone (stage 1) ──────────────────────────────────────── */

/* Visually hide the file input but keep it in the accessibility tree + interactable.
   iOS Safari does NOT fire 'change' reliably on inputs with the `hidden` attribute
   or `display:none`, so we use the standard sr-only pattern instead. */
.gd-file-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gd-dropzone {
  display: block; width: 100%;
  padding: 56px 24px; border-radius: 16px;
  background: var(--gd-input-bg);
  border: 2px dashed var(--gd-card-border);
  text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.gd-dropzone:hover {
  border-color: var(--purple-light);
  background: rgba(124, 58, 237, 0.06);
}
.gd-dropzone.is-dragover {
  border-color: var(--gd-tenant-accent);
  background: rgba(228, 86, 9, 0.06);
}
.gd-dropzone-icon { color: var(--purple-light); margin-bottom: 16px; }
.gd-dropzone-headline {
  font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px;
}
.gd-dropzone-sub { font-size: 14px; color: var(--text-muted); }

.gd-upload-preview {
  margin-top: 24px; padding: 16px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 14px; text-align: center;
}
.gd-upload-preview img {
  max-width: 100%; max-height: 360px; border-radius: 10px;
  margin: 0 auto 12px; display: block;
}

/* ── Finish picker (stage 2) ─────────────────────────────────── */
.gd-finish-categories {
  display: flex; flex-direction: column; gap: 28px;
}
.gd-finish-cat-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); margin: 0 0 12px;
}

/* Style preset pills — one-tap starters above the swatch grids */
.gd-presets-block { /* container set in the column flow */ }
.gd-presets-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.gd-preset-pill {
  text-align: left;
  padding: 14px 16px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.gd-preset-pill:hover {
  border-color: var(--purple-light);
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}
.gd-preset-pill.is-applied {
  border-color: var(--gd-tenant-accent);
  background: linear-gradient(135deg, rgba(228, 86, 9, 0.10), rgba(124, 58, 237, 0.06));
  box-shadow: 0 0 0 2px rgba(228, 86, 9, 0.22);
}
.gd-preset-label {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.gd-preset-blurb {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.4;
}

.gd-swatch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.gd-swatch {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 2px solid var(--gd-card-border);
  background: var(--gd-input-bg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
  padding: 0;
  display: flex; flex-direction: column;
}
.gd-swatch:hover { border-color: var(--purple-light); transform: translateY(-2px); }
.gd-swatch.is-selected {
  border-color: var(--gd-tenant-accent);
  box-shadow: 0 0 0 3px rgba(228, 86, 9, 0.25);
}
.gd-swatch-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  background: rgba(255, 255, 255, 0.05);
}
.gd-swatch-meta {
  padding: 10px 12px 12px;
}
.gd-swatch-label {
  font-size: 13.5px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.gd-swatch-blurb {
  margin-top: 4px;
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
}
.gd-swatch-price {
  margin-top: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--gd-tenant-accent);
}

/* ── Render stage (stage 3) ──────────────────────────────────── */
.gd-render-stage {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 24px; margin: 8px 0 24px;
}
@media (max-width: 768px) {
  .gd-render-stage { grid-template-columns: 1fr; }
}

.gd-render-active { position: relative; }
.gd-render-skeleton {
  position: relative; aspect-ratio: 3 / 2;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(124, 58, 237, 0.08));
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gd-skeleton-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(124, 58, 237, 0.12) 50%,
    transparent 70%);
  background-size: 200% 100%;
  animation: gdShimmer 2.4s linear infinite;
}
@keyframes gdShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.gd-skeleton-progress {
  position: relative; z-index: 1;
  width: 60%; max-width: 320px; height: 6px;
  background: rgba(255, 255, 255, 0.08); border-radius: 999px;
  overflow: hidden; margin-bottom: 12px;
}
.gd-skeleton-bar {
  height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--gd-tenant-brand), var(--gd-tenant-accent));
  border-radius: 999px;
  animation: gdBarSlide 1.6s ease-in-out infinite;
}
@keyframes gdBarSlide {
  0% { margin-left: -30%; }
  100% { margin-left: 100%; }
}
.gd-skeleton-caption {
  position: relative; z-index: 1;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}

.gd-render-figure {
  margin: 0; position: relative; aspect-ratio: 3 / 2;
  border-radius: 16px; overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.gd-render-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gd-render-watermark {
  position: absolute; bottom: 12px; right: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 8px; letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

/* ── Structural Lock trust badge ─────────────────────────────── */
.gd-structural-lock {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 12px;
  font-size: 13.5px; line-height: 1.45;
  color: var(--text-secondary);
}
.gd-structural-lock svg {
  flex-shrink: 0; color: #22C55E; margin-top: 1px;
}
.gd-structural-lock strong { color: var(--text-primary); font-weight: 700; }

/* ── Variation tabs + stage ──────────────────────────────────── */
.gd-variation-tabs {
  display: flex; gap: 6px; margin: 0 0 12px;
  flex-wrap: wrap;
}
.gd-variation-tab {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 14px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.gd-variation-tab:hover { color: var(--text-primary); border-color: var(--purple-light); }
.gd-variation-tab.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(228, 86, 9, 0.08));
  border-color: var(--gd-tenant-accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(228, 86, 9, 0.18);
}
.gd-variation-tab .gd-vtab-badge {
  display: inline-block; margin-left: 6px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.4px; font-weight: 800;
  background: rgba(228, 86, 9, 0.18); color: var(--gd-tenant-accent);
}
.gd-variation-tab.is-loading .gd-vtab-badge {
  background: rgba(124, 58, 237, 0.16); color: var(--purple-light);
}
.gd-variation-tab.is-failed .gd-vtab-badge {
  background: rgba(239, 68, 68, 0.16); color: #EF4444;
}

.gd-variation-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.gd-variation-panel { display: none; }
.gd-variation-panel.is-active { display: block; }
.gd-variation-panel-pending,
.gd-variation-panel-failed {
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--text-muted); font-size: 14px;
  padding: 24px;
  text-align: center;
}
.gd-variation-panel-failed { color: #FCA5A5; }

.gd-ba-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 6px 10px;
  font-size: 12px; color: var(--text-faint);
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 8px;
}

/* ── Before / After slider ───────────────────────────────────── */
.gd-ba {
  position: relative; aspect-ratio: 3 / 2;
  overflow: hidden; border-radius: 16px;
  background: #000;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize; touch-action: none;
  --gd-ba-pos: 50%;
}
.gd-ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.gd-ba-before {
  /* Bottom layer — full visibility */
  z-index: 1;
  filter: saturate(0.92) brightness(0.96); /* hint that it's the "before" */
}
.gd-ba-after {
  /* Top layer — clipped from the left edge to slider position */
  z-index: 2;
  clip-path: inset(0 0 0 var(--gd-ba-pos));
  -webkit-clip-path: inset(0 0 0 var(--gd-ba-pos));
}
.gd-ba-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--gd-ba-pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transform: translateX(-1px);
  z-index: 3;
  pointer-events: none;
}
.gd-ba-handle {
  position: absolute; top: 50%; left: var(--gd-ba-pos);
  width: 40px; height: 40px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #fff, #f1f1f1);
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  pointer-events: none;
  color: #555;
}
.gd-ba-handle svg { width: 16px; height: 16px; }
.gd-ba-label {
  position: absolute; top: 12px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: #fff; border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 3; pointer-events: none;
}
.gd-ba-label-before { left: 12px; }
.gd-ba-label-after { right: 12px; }

/* ── Share controls (below each variation slider) ────────────── */
.gd-share-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; flex-wrap: wrap;
}
.gd-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 10px;
  color: var(--text-primary); font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.gd-share-btn:hover:not(:disabled) {
  border-color: var(--purple-light);
  background: rgba(124, 58, 237, 0.08);
}
.gd-share-btn:disabled { opacity: 0.6; cursor: wait; }
.gd-share-status {
  font-size: 12px; color: var(--text-muted);
  word-break: break-all;
}
.gd-share-status a { color: var(--purple-light); }

.gd-render-aside {
  display: flex; flex-direction: column; gap: 12px;
}
.gd-render-quota {
  padding: 12px 14px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.gd-render-quota strong { color: var(--gd-tenant-accent); font-weight: 800; }
.gd-render-note {
  font-size: 12.5px; line-height: 1.5; color: var(--text-faint); margin: 8px 0 0;
}

.gd-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-top: 8px;
}
.gd-gallery-item {
  position: relative; aspect-ratio: 3 / 2;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--gd-card-border);
  cursor: pointer;
  transition: all var(--transition);
}
.gd-gallery-item:hover { border-color: var(--purple-light); transform: translateY(-2px); }
.gd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gd-gallery-item.is-active { border-color: var(--gd-tenant-accent); box-shadow: 0 0 0 2px rgba(228, 86, 9, 0.3); }

.gd-gallery-hd .gd-gallery-item { aspect-ratio: 3 / 2; }

/* ── Lead form (stage 4) ─────────────────────────────────────── */
.gd-lead-form { position: relative; }
.gd-honeypot {
  position: absolute; left: -9999px; opacity: 0;
  width: 1px; height: 1px; pointer-events: none;
}
.gd-form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 16px;
}
@media (max-width: 600px) { .gd-form-grid { grid-template-columns: 1fr; } }
.gd-form-field { display: flex; flex-direction: column; }
.gd-form-field.gd-form-full { grid-column: 1 / -1; }
.gd-form-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.gd-form-field .req { color: var(--gd-tenant-accent); }
.gd-form-field input, .gd-form-field select, .gd-form-field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px; font-weight: 500; font-family: inherit;
  transition: all var(--transition);
}
.gd-form-field input:focus, .gd-form-field select:focus, .gd-form-field textarea:focus {
  outline: none; border-color: var(--purple-light);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.gd-form-field textarea { min-height: 88px; resize: vertical; }
.gd-form-field.has-error input,
.gd-form-field.has-error select,
.gd-form-field.has-error textarea {
  border-color: #EF4444;
}

.gd-consent { font-size: 12.5px; color: var(--text-faint); margin: 4px 0 18px; }

.gd-submit-loading { display: inline-flex; align-items: center; gap: 8px; }

/* ── Thanks (stage 5) ────────────────────────────────────────── */
.gd-thanks { text-align: center; padding: 24px 8px 8px; }
.gd-thanks-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  border: 2px solid #22C55E;
  color: #22C55E;
  margin: 0 auto 18px;
}

/* ── How it works ────────────────────────────────────────────── */
.gd-how { padding: 80px 0 60px; }
.gd-how-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; text-align: center; }
.gd-how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 36px; text-align: left;
}
.gd-how-card {
  padding: 24px;
  background: var(--gd-card-bg);
  border: 1px solid var(--gd-card-border);
  border-radius: 14px;
  transition: all var(--transition);
}
.gd-how-card:hover { transform: translateY(-4px); border-color: var(--purple-light); }
.gd-how-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd-tenant-brand), var(--gd-tenant-accent));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.gd-how-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.gd-how-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.gd-footer {
  padding: 36px 0; border-top: 1px solid var(--border-glass);
  background: var(--bg-deepest);
}
.gd-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.gd-footer-inner a { color: var(--text-muted); }
.gd-footer-inner a:hover { color: var(--text-primary); }

/* ── Mobile tweaks ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gd-stage-pad: 22px; }
  .gd-stage { border-radius: 16px; }
  .gd-cta-primary { padding: 14px 22px; font-size: 15px; }
  .gd-steps { font-size: 12px; }
  .gd-step { padding: 8px 10px; font-size: 12px; }
}
