/* ── Brand360x Trial Flow — Shared Base Styles ─────────────────────────── */

/* CSS Variables */
:root {
  --bx-green:       #0F5132;
  --bx-green-dark:  #0B3E26;
  --bx-green-50:    #ECFDF5;
  --bx-green-100:   #D1FAE5;
  --bx-accent:      #EA580C;
  --bx-muted:       #9CA3AF;
  --bx-border:      #E5E7EB;
  --bx-ink:         #111827;
  --bx-ink-2:       #6B7280;
  --bx-info:        #2563EB;
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.12);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--bx-ink);
  background: #FAFAF8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--bx-ink);
}

a { color: var(--bx-green); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.shell        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.shell-medium { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.shell-narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--bx-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .card { padding: 20px 18px; } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--bx-green);
  color: #fff;
  border-color: var(--bx-green);
}
.btn-primary:hover { background: var(--bx-green-dark); border-color: var(--bx-green-dark); }

.btn-outline {
  background: transparent;
  color: var(--bx-ink);
  border-color: var(--bx-border);
}
.btn-outline:hover { border-color: var(--bx-ink-2); background: #f9fafb; color: var(--bx-ink); }

.btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}
.btn-dark:hover { background: #333; border-color: #333; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--bx-ink-2);
  border-color: transparent;
}
.btn-ghost:hover { background: #f3f4f6; color: var(--bx-ink); }

.btn-lg    { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm    { padding: 7px 14px;  font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--bx-ink-2);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bx-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--bx-ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.4;
}
.input:focus {
  border-color: var(--bx-green);
  box-shadow: 0 0 0 3px rgba(15,81,50,.10);
}
.input::placeholder { color: var(--bx-muted); }

.input-error { border-color: #ef4444 !important; }
.field-error { font-size: 12px; color: #dc2626; margin-top: 4px; }

.help    { font-size: 12px; color: var(--bx-muted); margin-top: 5px; }
.optional { color: var(--bx-muted); font-weight: 400; font-size: 12px; }

/* ── Step progress bar ─────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bx-muted);
  white-space: nowrap;
}

.step.active .step-num  { background: var(--bx-green); color: #fff; }
.step.active .step-label { color: var(--bx-ink); font-weight: 600; }

.step.done .step-num  { background: var(--bx-green); color: #fff; }
.step.done .step-label { color: var(--bx-green); }

.step-bar {
  flex: 1;
  height: 2px;
  background: var(--bx-border);
  margin: 0 8px;
  min-width: 16px;
}
.step-bar.done { background: var(--bx-green); }

@media (max-width: 640px) {
  .step-label { display: none; }
  .step-bar   { min-width: 8px; margin: 0 4px; }
}

/* ── Pill badge ────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bx-green-50);
  color: var(--bx-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bx-green);
  flex-shrink: 0;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.center    { text-align: center; }
.text-sm   { font-size: 13px; }
.text-muted { color: var(--bx-muted); }
.text-green { color: var(--bx-green); }
.text-red   { color: #dc2626; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── Minimal page nav (hidden on Canvas) ─────────────────────────────── */
.bx-topbar {
  display: none; /* hidden — WordPress Astra handles nav in Elementor mode */
}
