/* Shared high-conversion funnel styles – Stonebrook Workspace brand identical */
:root {
  --theme: #c47a60;
  --theme-dark: #8b5342;
  --secondary: #dfa691;
  --title: #2c2c2c;
  --body: #374950;
  --light: #f8fafc;
  --success: #16a34a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Rubik', 'Archivo', system-ui, sans-serif;
  background: #f1f5f9;
  color: var(--title);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Header bar */
.funnel-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.funnel-header .logo img { height: 36px; }
.funnel-header .phone-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--theme);
  color: #fff;
  padding: 8px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.funnel-header .phone-cta:hover { background: var(--theme-dark); transform: scale(1.03); }
.funnel-header .phone-cta i { font-size: 16px; }

/* Progress */
.progress-wrap {
  background: #fff;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme), var(--secondary));
  border-radius: 10px;
  transition: width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  width: 0%;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Main card */
.funnel-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.funnel-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 10px 40px -10px rgba(13, 86, 214, 0.12);
  position: relative;
  overflow: hidden;
}
.funnel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme), var(--secondary));
}

/* Steps */
.step {
  display: none;
  animation: fadeSlide 0.4s ease;
}
.step.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 8px;
  line-height: 1.25;
}
.step-sub {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Option buttons (high conversion – big touch targets) */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--title);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.option-btn:hover, .option-btn:focus {
  border-color: var(--theme);
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 86, 214, 0.12);
}
.option-btn.selected {
  border-color: var(--theme);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(13, 86, 214, 0.15);
}
.option-btn .icon {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--theme);
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.option-btn .text { flex: 1; }
.option-btn .arrow { color: #94a3b8; font-size: 14px; }

/* Form inputs */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(13, 86, 214, 0.15);
}
.form-group textarea { min-height: 90px; resize: vertical; }

/* Primary CTA */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--theme), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 86, 214, 0.35);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  font-family: inherit;
}
.btn-secondary:hover { color: var(--theme); }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.trust-item i { color: var(--theme); font-size: 14px; }

/* Urgency banner */
.urgency-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}
.social-proof .avatars {
  display: flex;
}
.social-proof .avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--theme);
  border: 2px solid #fff;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.social-proof .avatars span:first-child { margin-left: 0; }
.social-proof p {
  font-size: 13px;
  color: #166534;
  font-weight: 500;
  line-height: 1.3;
}

/* Thank you / Success */
.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.success-sub {
  text-align: center;
  color: #64748b;
  margin-bottom: 24px;
  font-size: 15px;
}
.call-box {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}
.call-box p { font-size: 14px; color: #1e40af; margin-bottom: 10px; font-weight: 500; }
.call-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

/* Footer mini */
.funnel-footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: #94a3b8;
}
.funnel-footer a { color: var(--theme); text-decoration: none; }

/* Loading spinner */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile polish */
@media (max-width: 480px) {
  .step-title { font-size: 22px; }
  .funnel-card { padding: 24px 18px; }
  .option-btn { padding: 14px 16px; font-size: 15px; }
}
