/* ─────────────────────────────────────────
   BRICK MATCHING PRO — Frontend Styles
   Aesthetic: Industrial warmth / Terracotta editorial
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bmp-clay:      #8B4513;
  --bmp-clay-dark: #6b3410;
  --bmp-clay-light:#c4733a;
  --bmp-sand:      #faf7f4;
  --bmp-cream:     #fff9f5;
  --bmp-warm:      #f5ede3;
  --bmp-border:    #e8ddd3;
  --bmp-text:      #2c1a0e;
  --bmp-muted:     #8c7a6e;
  --bmp-accent:    #d4763b;
  --bmp-shadow:    0 4px 24px rgba(139,69,19,0.12);
}

/* ── Wrap ── */
.bmp-hero-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--bmp-text);
  background: var(--bmp-sand);
  max-width: 100%;
  overflow-x: hidden;
}

/* ── HERO ── */
.bmp-hero {
  position: relative;
  background: var(--bmp-clay);
  background-image:
    radial-gradient(ellipse at 30% 60%, rgba(212,118,59,0.35) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 20%, rgba(107,52,16,0.5) 0%, transparent 60%);
  color: #fff;
  padding: 80px 40px 90px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.bmp-hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='0' y='0' width='28' height='12' rx='2'/%3E%3Crect x='32' y='0' width='28' height='12' rx='2'/%3E%3Crect x='14' y='16' width='28' height='12' rx='2'/%3E%3Crect x='0' y='32' width='28' height='12' rx='2'/%3E%3Crect x='32' y='32' width='28' height='12' rx='2'/%3E%3Crect x='14' y='48' width='28' height='12' rx='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.bmp-hero-content { position: relative; z-index: 1; max-width: 580px; }
.bmp-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.bmp-hero-title {
  font-family: Space Grotesk;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.bmp-accent { color: #f5c97a; }
.bmp-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 460px;
}
.bmp-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--bmp-clay);
  border: none;
  padding: 18px 36px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.bmp-upload-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.bmp-upload-icon { font-size: 20px; }
.bmp-courier-trust {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.7;
}
.bmp-courier-trust strong { opacity: 1; }

/* ── Brick Mosaic Visual ── */
.bmp-hero-visual { position: relative; z-index: 1; }
.bmp-brick-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 24px);
  gap: 5px;
  transform: rotate(-8deg);
  opacity: 0.6;
}
.bmp-brick {
  border-radius: 3px;
  animation: bmpPulse 3s infinite;
}
.b1{background:#d4763b;}.b2{background:#a0522d;}.b3{background:#cd853f;animation-delay:.4s}
.b4{background:#b8621f;animation-delay:.8s}.b5{background:#e8956d;}.b6{background:#8B4513;animation-delay:.5s}
.b7{background:#c47030;animation-delay:1s}.b8{background:#d2854a;animation-delay:.3s}.b9{background:#9a4a1a;animation-delay:.7s}
@keyframes bmpPulse { 0%,100%{opacity:.6}50%{opacity:1} }

/* ── How It Works ── */
.bmp-how-it-works {
  padding: 70px 40px;
  background: var(--bmp-cream);
  text-align: center;
}
.bmp-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 48px;
  color: var(--bmp-clay);
}
.bmp-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.bmp-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 24px 16px;
}
.bmp-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bmp-clay-light);
  margin-bottom: 10px;
}
.bmp-step-nav { justify-content: center !important; }
.bmp-step-icon { font-size: 32px; margin-bottom: 14px; }
.bmp-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.bmp-step p  { font-size: 13px; color: var(--bmp-muted); line-height: 1.6; margin: 0; }
.bmp-step-arrow { font-size: 24px; color: var(--bmp-border); align-self: center; margin: 0 -4px; }

/* ── Form Section ── */
.bmp-form-section {
  /* padding: 70px 20px 90px; */
  background: var(--bmp-sand);
}
.bmp-form-container {
  background: #fff;
  border: 1px solid var(--bmp-border);
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: var(--bmp-shadow);
  overflow: hidden;
}
.bmp-form-header {
  background: var( --e-global-color-primary );
  padding: 32px 40px;
  text-align: center;
  color: #fff;
}
.bmp-form-header h2 { font-family:Space Grotesk; font-size:26px; color:#fff; font-weight:700; margin:0 0 6px; }
.bmp-form-header p  { margin:0;font-size:18px; }

/* ── Progress ── */
.bmp-progress-bar { padding: 28px 40px 0; }
.bmp-progress-track { height: 4px; background: var(--bmp-border); border-radius: 4px; margin-bottom: 16px; }
.bmp-progress-fill { height: 4px; background: var( --e-global-color-primary ); border-radius: 4px; transition: width 0.4s ease; width: 33.3%; }
.bmp-progress-steps { display: flex; gap: 0; }
.bmp-ps {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--bmp-border);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}
.bmp-ps span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bmp-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  transition: background 0.3s;
}
.bmp-ps.active { color: var(--bmp-clay); }
.bmp-ps.active span { background: var( --e-global-color-primary ); }
.bmp-ps.done { color: #10b981; }
.bmp-ps.done span { background: #10b981; }

/* ── Step Panels ── */
.bmp-step-panel { display: none; padding: 32px 40px; }
.bmp-step-panel.active { display: block; }

/* ── Upload Zone ── */
.bmp-upload-zone {
  border: 2px dashed var(--bmp-border);
  border-radius: 12px;
  background: var(--bmp-warm);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.bmp-upload-zone:hover { border-color: var(--bmp-clay); background: #fdf0e8; }
.bmp-upload-zone.dragover { border-color: var(--bmp-clay); background: #fde8d8; transform: scale(1.01); }
.bmp-file-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.bmp-upload-placeholder { padding: 48px 24px; text-align: center; }
.bmp-upload-big-icon { font-size: 48px; margin-bottom: 16px; }
.bmp-upload-text { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--bmp-text); }
.bmp-upload-hint { font-size: 12px; color: var(--bmp-muted); margin: 0 0 20px; }
.bmp-upload-trigger {
  display: inline-block;
  background: var( --e-global-color-primary );
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative; z-index: 3;
  transition: background 0.2s;
}
.bmp-upload-trigger:hover { background: var( --e-global-color-primary ); }
.bmp-upload-preview { padding: 20px; }
.bmp-upload-preview img { width: 100%; border-radius: 10px; max-height: 280px; object-fit: cover; display: block; }
.bmp-preview-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
#bmp-preview-name { font-size: 13px; color: var(--bmp-muted); }
.bmp-retake-btn {
  background: none; border: 1px solid var(--bmp-border); color: var(--bmp-muted);
  padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.bmp-retake-btn:hover { border-color: var(--bmp-clay); color: var(--bmp-clay); }

/* ── Form Fields ── */
.bmp-form-field { margin-bottom: 22px; }
.bmp-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.bmp-form-field label .req { color: var(--bmp-clay); }
.bmp-form-field label .opt { color: var(--bmp-muted); font-weight: 400; font-size: 12px; }
.bmp-form-field input,
.bmp-form-field select,
.bmp-form-field textarea {
  width: 100%;
  border: 1.5px solid var(--bmp-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--bmp-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}
.bmp-form-field input:focus,
.bmp-form-field select:focus,
.bmp-form-field textarea:focus {
  outline: none;
  border-color: var(--bmp-clay);
  box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}
.bmp-form-field small { font-size: 12px; color: var(--bmp-muted); margin-top: 5px; display: block; }

.bmp-location-row { display: flex; gap: 10px; }
.bmp-location-row select { flex: 1; }
.bmp-autodetect-btn {
  white-space: nowrap;
  border: 1.5px solid var(--bmp-border);
  background: var(--bmp-warm);
  color: var(--bmp-clay);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.bmp-autodetect-btn:hover { border-color: var(--bmp-clay); background: #fde8d8; }

/* ── Navigation Buttons ── */
.bmp-step-nav { margin-top: 28px; display: flex; justify-content: flex-end; }
.bmp-step-nav-two { justify-content: space-between; gap: 20px; }
.bmp-next-btn, .bmp-submit-btn {
  background: var( --e-global-color-primary );
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.bmp-next-btn:hover, .bmp-submit-btn:hover { background: var( --e-global-color-primary ); transform: translateY(-1px); }
.bmp-back-btn {
  background: none;
  border: 1.5px solid var(--bmp-border);
  color: var(--bmp-muted);
  padding: 13px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.bmp-back-btn:hover { border-color: var(--bmp-clay); color: var(--bmp-clay); }

/* ── Trust Row ── */
.bmp-trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bmp-warm);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0 0;
}
.bmp-trust-item { font-size: 12px; color: var(--bmp-muted); display: flex; align-items: center; gap: 6px; }
.bmp-trust-item span { font-weight: 500; }

/* ── Alert ── */
.bmp-alert { padding: 14px 20px; border-radius: 8px; font-size: 14px; margin: 0 40px 24px; }
.bmp-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Success State ── */
.bmp-success-state { padding: 48px 40px; text-align: center; }
.bmp-success-icon { font-size: 52px; margin-bottom: 20px; }
.bmp-success-state h2 { font-family:'Playfair Display',serif; font-size:28px; font-weight:700; margin:0 0 12px; color:var(--bmp-clay); }
.bmp-success-state p { font-size: 15px; line-height: 1.7; color: var(--bmp-muted); margin: 0 0 20px; max-width:460px;margin-left:auto;margin-right:auto; }
.bmp-success-detail { font-size:13px;color:var(--bmp-muted);background:var(--bmp-warm);border-radius:8px;padding:12px 20px;display:inline-block;margin-bottom:20px; }
.bmp-courier-note { background: #fef9f0; border: 1px solid #f5deb3; border-radius: 8px; padding: 18px 24px; font-size: 14px; line-height: 1.7; color: var(--bmp-text); max-width: 400px; margin: 0 auto; }
.bmp-btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--bmp-border);
  background: none;
  color: var(--bmp-clay);
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.bmp-btn-secondary:hover { border-color: var(--bmp-clay); background: var(--bmp-warm); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .bmp-hero { grid-template-columns: 1fr; padding: 52px 24px 60px; }
  .bmp-hero-visual { display: none; }
  .bmp-how-it-works { padding: 48px 24px; }
  .bmp-steps-row { gap: 16px; }
  .bmp-step-arrow { display: none; }
  .bmp-step { max-width: 100%; min-width: 130px; flex: 1 1 40%; }
  .bmp-step-panel { padding: 24px 20px; }
  .bmp-form-header { padding: 24px 20px; }
  .bmp-progress-bar { padding: 20px 20px 0; }
  .bmp-alert { margin: 0 20px 20px; }
  .bmp-success-state { padding: 36px 20px; }
  .bmp-trust-row { gap: 14px; }
}
