/* Scoped styles for /offers/real-estate-ai-automation/ */
.bd-re-page {
  --re-navy-deep: #07142b;
  --re-navy-mid: #0d2144;
  --re-gold: #f59e0b;
  --re-gold-light: #fde68a;
  --re-crimson: #dc2626;
  --re-crimson-dark: #991b1b;
  --re-pine: #15803d;
}

/* Hero Section */
.bd-re-hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #16366d 0%, #0a1b3a 48%, #07142b 100%);
  color: #ffffff;
  padding: 44px 0 64px;
  overflow: hidden;
}
.bd-re-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.45) 50%, transparent 100%),
    radial-gradient(2px 2px at 28% 36%, rgba(255,255,255,0.35) 50%, transparent 100%),
    radial-gradient(3px 3px at 45% 14%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 66% 26%, rgba(255,255,255,0.35) 50%, transparent 100%),
    radial-gradient(2px 2px at 84% 12%, rgba(255,255,255,0.45) 50%, transparent 100%);
  pointer-events: none;
}
.bd-re-snow-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(248,250,252,0) 0%, rgba(241,245,249,0.92) 70%, #ffffff 100%);
  pointer-events: none;
}
.bd-re-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: start;
}

/* Left Hero Content */
.bd-re-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.bd-re-hero h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 14px;
}
.bd-re-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 580px;
}

/* Festive Scene + Offer Card */
.bd-re-visual-stage {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 39, 77, 0.85) 0%, rgba(9, 23, 49, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  overflow: hidden;
}
.bd-re-scene-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
}
.bd-re-scene-art {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1c3c;
  border: 1px solid rgba(255,255,255,0.1);
}
.bd-re-scene-art img,
.bd-re-scene-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.bd-re-price-badge {
  background: linear-gradient(155deg, #b91c1c 0%, #7f1d1d 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  position: relative;
}
.bd-re-price-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 4px;
}
.bd-re-price-amount {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 6px;
}
.bd-re-price-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef3c7;
  line-height: 1.3;
}
.bd-re-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.bd-re-cta-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bd-re-cta-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
  color: #ffffff;
}
.bd-re-audience-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bd-re-audience-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Right Lead Form Card */
.bd-re-form-card {
  background: #ffffff;
  color: var(--navy);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
  border: 1px solid #e2e8f0;
}
.bd-re-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.bd-re-form-sub {
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.45;
}
.bd-re-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bd-re-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bd-re-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bd-re-field label,
.bd-re-group-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}
.bd-re-field input[type="text"],
.bd-re-field input[type="email"],
.bd-re-field input[type="tel"],
.bd-re-field select,
.bd-re-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy);
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bd-re-field input:focus,
.bd-re-field select:focus,
.bd-re-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.bd-re-field.has-error input,
.bd-re-field.has-error select {
  border-color: #dc2626;
  background: #fef2f2;
}
.bd-re-error-msg {
  font-size: 11.5px;
  color: #b91c1c;
  font-weight: 500;
}

/* Multi-select Checkbox Pills */
.bd-re-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-re-check-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bd-re-check-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.bd-re-check-pill span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.bd-re-check-pill input[type="checkbox"]:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.bd-re-check-pill input[type="checkbox"]:checked + span {
  background: #eff6ff;
  border-color: var(--blue);
  color: #1d4ed8;
  font-weight: 600;
}
.bd-re-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.45;
}
.bd-re-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.bd-re-consent a {
  color: var(--blue);
  text-decoration: underline;
}
.bd-re-submit-btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
}
.bd-re-trust-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.bd-re-success-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.bd-re-success-box h3 {
  color: #166534;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.bd-re-success-box p {
  color: #15803d;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Challenges & Services Grids */
.bd-re-challenges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bd-re-challenge-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bd-re-challenge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bd-re-challenge-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.bd-re-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bd-re-service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bd-re-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.bd-re-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.bd-re-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.bd-re-service-card p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
}

/* How Automation Works Band */
.bd-re-workflow-band {
  background: linear-gradient(135deg, #07142b 0%, #0f2954 100%);
  border-radius: 22px;
  padding: 40px 32px;
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}
.bd-re-workflow-band .section-header {
  margin-bottom: 32px;
}
.bd-re-workflow-band .section-header h2 {
  color: #ffffff;
}
.bd-re-workflow-band .section-header p {
  color: #cbd5e1;
}
.bd-re-steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.bd-re-step-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
}
.bd-re-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 10px;
}
.bd-re-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-re-step-card p {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.45;
  font-weight: 500;
}
.bd-re-step-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #60a5fa;
  z-index: 2;
  background: #0b2042;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Integrations Grid */
.bd-re-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 18px;
}
.bd-re-tool-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bd-re-tools-disclaimer {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Benefits Grid */
.bd-re-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bd-re-benefit-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.bd-re-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bd-re-benefit-item span {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

/* December Offer Banner */
.bd-re-offer-banner {
  background: linear-gradient(125deg, #07142b 0%, #102a56 60%, #1e3a8a 100%);
  border-radius: 22px;
  padding: 40px 36px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}
.bd-re-offer-banner h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.18;
}
.bd-re-offer-highlight {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 12px;
}
.bd-re-offer-banner p {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.bd-re-offer-fineprint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 14px;
}
.bd-re-offer-cta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}

/* Final CTA & Contact */
.bd-re-final-cta {
  background: var(--bg-soft-blue);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.bd-re-final-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.bd-re-contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.bd-re-contact-card p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--slate);
}
.bd-re-contact-card a {
  color: var(--blue);
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bd-re-hero-grid { grid-template-columns: 1fr; }
  .bd-re-challenges-grid,
  .bd-re-services-grid,
  .bd-re-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .bd-re-steps-row { grid-template-columns: repeat(3, 1fr); }
  .bd-re-step-arrow { display: none; }
  .bd-re-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .bd-re-offer-banner,
  .bd-re-final-cta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bd-re-hero { padding: 28px 0 48px; }
  .bd-re-scene-wrap { grid-template-columns: 1fr; }
  .bd-re-audience-strip { grid-template-columns: repeat(2, 1fr); }
  .bd-re-form-row { grid-template-columns: 1fr; }
  .bd-re-challenges-grid,
  .bd-re-services-grid,
  .bd-re-benefits-grid,
  .bd-re-steps-row { grid-template-columns: 1fr; }
  .bd-re-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .bd-re-workflow-band,
  .bd-re-offer-banner,
  .bd-re-final-cta { padding: 28px 20px; }
}

/* CPA Landing Page Extensions (5-col services, Trust/Oversight section) */
.bd-cpa-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.bd-cpa-services-grid .bd-re-service-card {
  padding: 20px 16px;
}
.bd-cpa-services-grid .bd-re-service-card.is-featured {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #93c5fd;
}
.bd-cpa-oversight-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.bd-cpa-oversight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.bd-cpa-oversight-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
@media (max-width: 1120px) {
  .bd-cpa-services-grid { grid-template-columns: repeat(2, 1fr); }
  .bd-cpa-oversight-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bd-cpa-services-grid { grid-template-columns: 1fr; }
  .bd-cpa-oversight-card { padding: 26px 20px; }
}
