/* ── Business Enquiry Form – Front-end Styles ─────────────────────────────── */

.bef-wrap {
  background: #eef2f5;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Georgia, serif;
}

/* Stepper */
.bef-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.bef-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  font-family: sans-serif;
  background: #d0d8e0;
  color: #888;
  border: none;
  transition: all 0.3s;
}

.bef-step-circle.active {
  background: #1a2840;
  color: #fff;
}

.bef-step-circle.done {
  background: #1a2840;
  color: #fff;
  font-size: 0;
}

.bef-step-circle.done::after {
  content: '';
  display: block;
  width: 12px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}

.bef-step-line {
  width: 90px;
  height: 1.5px;
  background: #c0c8d0;
  transition: background 0.3s;
}

.bef-step-line.done { background: #1a2840; }

/* Pages */
.bef-page { display: none; width: 100%; max-width: 720px; }
.bef-page.active { display: block; }

/* Card */
.bef-card {
  background: #fff;
  border-radius: 10px;
  padding: 40px 36px 36px;
}

.bef-card-title {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #1a2840;
  text-align: center;
  margin: 0 0 32px;
}

/* Option buttons */
.bef-options-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.bef-opt-btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 24px 16px 20px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: sans-serif;
}

.bef-opt-btn:hover { border-color: #1a2840; }
.bef-opt-btn.selected {
  border-color: #1a2840;
  box-shadow: inset 0 0 0 1px #1a2840;
}

.bef-opt-icon {
  display: block;
  margin-bottom: 10px;
}

.bef-opt-label {
  font-size: 14px;
  color: #1a2840;
  font-family: sans-serif;
  display: block;
}

.bef-text-only {
  font-size: 15px;
  padding: 20px 16px;
  color: #1a2840;
}

/* Colored top-bar buttons */
.bef-colored {
  position: relative;
  overflow: visible;
  padding-top: 28px;
}

.bef-color-bar {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 4px;
  background: var(--bar-color, #ccc);
  border-radius: 6px 6px 0 0;
}

.bef-label-padded { padding: 8px 0; }

/* Go back */
.bef-goback {
  text-align: center;
  margin-top: 20px;
}

.bef-back-link {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  font-family: sans-serif;
  cursor: pointer;
}

.bef-back-link:hover { color: #1a2840; }

/* ── Page 4 – Form ─────────────────────────────── */
#bef-page4 { max-width: 960px; }

.bef-form-wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.bef-form-main { flex: 1; min-width: 280px; }

.bef-summary {
  background: #eef2f5;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: sans-serif;
}

.bef-summary-title {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
}

.bef-summary-cols {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.bef-summary-col label {
  font-size: 11px;
  color: #888;
  display: block;
  margin-bottom: 2px;
  font-family: sans-serif;
}

.bef-summary-col span {
  font-size: 15px;
  color: #1a2840;
  font-weight: 600;
  font-family: sans-serif;
}

.bef-error-msg {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c00;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: sans-serif;
  margin-bottom: 16px;
}

.bef-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bef-form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bef-full { flex: 0 0 100%; min-width: 100%; }

.bef-form-group label {
  font-size: 13px;
  color: #1a2840;
  font-family: sans-serif;
}

.bef-req { color: #e24b4a; }

.bef-form-group input,
.bef-form-group textarea {
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1a2840;
  font-family: sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.bef-form-group input:focus,
.bef-form-group textarea:focus { border-color: #1a2840; }

.bef-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.bef-form-group textarea::placeholder { color: #aaa; }

.bef-submit-btn {
  background: #1a2840;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 24px;
  font-size: 14px;
  font-family: sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bef-submit-btn:hover { background: #0f1e30; }
.bef-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Sidebar */
.bef-sidebar {
  width: 260px;
  min-width: 240px;
  background: #1a2840;
  border-radius: 10px;
  padding: 28px 24px;
  font-family: sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: flex-start;
}

.bef-sidebar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bef-sidebar-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bef-sidebar-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 3px;
}

.bef-sidebar-val {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.bef-sidebar-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.bef-sidebar-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

/* ── Success Popup ─────────────────────────────── */
.bef-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: befFadeIn 0.2s ease;
}

.bef-popup-inner {
  background: #fff;
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
  animation: befScaleIn 0.25s ease;
}

.bef-popup-check {
  width: 64px;
  height: 64px;
  background: #1a7a4a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.bef-popup-msg {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #1a2840;
  margin: 0;
}

@keyframes befFadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes befScaleIn { from { transform:scale(.85); opacity:0 } to { transform:scale(1); opacity:1 } }

/* Responsive */
@media (max-width:600px) {
  .bef-card { padding: 24px 16px; }
  .bef-opt-btn { min-width: 100px; }
  .bef-step-line { width: 50px; }
  .bef-sidebar { width: 100%; }
}
