
.fb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;               /* above the simulation header dropdown (z 200) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.fb-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.fb-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.fb-overlay.is-open .fb-card { transform: translateY(0); }

.fb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #e1e5e9;
}
.fb-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}
.fb-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #7f8c8d;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  line-height: 1;
}
.fb-close:hover { background: #f5f5f5; color: #e74c3c; }

.fb-form-view   { padding: 16px 24px 20px; }
.fb-intro {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0 0 16px;
}

.fb-field { margin-bottom: 18px; }
.fb-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.fb-required  { color: #e74c3c; }
.fb-optional  { color: #95a5a6; font-weight: 400; font-size: 0.85rem; }
.fb-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 0;
}

.fb-stars { display: flex; gap: 4px; }
.fb-star-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fb-star-label {
  font-size: 1.9rem;
  line-height: 1;
  color: #dfe4e8;               /* unlit */
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.fb-star-label:hover { transform: scale(1.15); }
.fb-star-label.lit   { color: #f39c12; }   /* lit = same gold as your highlights */


.fb-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;              /* same vertical / horizontal rhythm as before */
}

.fb-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}


.fb-checks label, .fb-radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #34495e;
  cursor: pointer;
}
.fb-checks input, .fb-radios input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3498db;        /* matches your primary blue */
}


.fb-field textarea,
.fb-field input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2c3e50;
  transition: border-color 0.2s ease;
}
.fb-field textarea:focus,
.fb-field input[type="email"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.fb-field textarea { resize: vertical; }


.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.fb-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}
.fb-btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  height: 36px;
  min-width: 90px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.fb-btn-primary {
  background: #3498db;
  color: #ffffff;
  border: none;
}
.fb-btn-primary:hover:not(:disabled) {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(41, 128, 185, 0.3);
}
.fb-btn-primary:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}
.fb-btn-secondary {
  background: #ffffff;
  color: #34495e;
  border: 1px solid #bdc3c7;
}
.fb-btn-secondary:hover { background: #f5f5f5; }

/* ── Success view ──────────────────────────────────────────────────────── */
.fb-success-view {
  display: none;                 /* toggled by JS after submit */
  text-align: center;
  padding: 32px 24px;
}
.fb-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f6f3;
  color: #27ae60;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-success-view h4 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 6px;
}
.fb-success-view p {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ── Landing page footer trigger (looks like the legal links) ──────────── */
.footer-feedback-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #3498db;
  cursor: pointer;
}
.footer-feedback-link:hover { text-decoration: underline; }

/* ── Phones ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .fb-card { max-height: 90vh; }
  .fb-footer {
    flex-direction: column-reverse;   /* primary button at the bottom for thumb reach */
  }
  .fb-btn { width: 100%; min-height: 44px; }   /* comfortable touch targets */
}