/* ── BEB Signature Generator — Form styles ──────────────────────── */

.beb-sig-wrapper {
  font-family: 'Arial', Helvetica, sans-serif;
  margin: 0 auto;
  max-width: 980px;
}

/* ── SHELL ──────────────────────────────────────────────────────── */
.beb-sig-shell {
  background: #1a1a2e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.beb-sig-header {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  padding: 22px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.beb-sig-header h2 {
  margin: 0 0 4px;
  font-family: Georgia, serif;
  font-size: 19px;
  color: #e8c84a;
  font-weight: normal;
  letter-spacing: 0.4px;
}
.beb-sig-header p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}

/* ── BODY: two-column grid ──────────────────────────────────────── */
.beb-sig-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

@media (max-width: 680px) {
  .beb-sig-body { grid-template-columns: 1fr; }
}

/* ── FORM PANEL ─────────────────────────────────────────────────── */
.beb-sig-form-panel {
  padding: 26px 26px;
  background: #16213e;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

.beb-form-section {
  margin-bottom: 22px;
}
.beb-section-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8c84a;
  margin-bottom: 12px;
  font-family: monospace;
}
.beb-req {
  color: #e8a04a;
}

.beb-form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 11px;
}
.beb-form-row label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
  font-family: monospace;
  letter-spacing: 0.4px;
}
.beb-form-row input[type="text"],
.beb-form-row input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
  font-family: monospace;
  transition: border-color 0.18s;
  width: 100%;
  box-sizing: border-box;
}
.beb-form-row input[type="text"]:focus,
.beb-form-row input[type="email"]:focus {
  border-color: #e8c84a;
}
.beb-form-row input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* File input */
.beb-form-row input[type="file"] {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-family: monospace;
  cursor: pointer;
}
.beb-hint {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  font-family: monospace;
  margin-top: 4px;
  line-height: 1.5;
}

/* Photo preview */
#beb-photo-preview-wrap {
  display: none;
  margin-top: 10px;
}
#beb-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8c84a;
  display: block;
}

/* Campus toggle */
.beb-campus-toggle {
  display: flex;
  gap: 8px;
}
.beb-campus-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  user-select: none;
}
.beb-campus-btn.active {
  background: rgba(232, 200, 74, 0.15);
  border-color: #e8c84a;
  color: #e8c84a;
}

/* Submit button */
.beb-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #e8c84a, #d4a017);
  border: none;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 0.8px;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.18s, transform 0.1s;
}
.beb-submit-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.beb-submit-btn:active              { transform: translateY(0); }
.beb-submit-btn:disabled            { opacity: 0.5; cursor: not-allowed; }

/* Feedback */
.beb-feedback {
  font-size: 12px;
  font-family: monospace;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  color: transparent;
}
.beb-feedback--error   { color: #ff6b6b; }
.beb-feedback--success { color: #4caf50; }

/* ── PREVIEW PANEL ──────────────────────────────────────────────── */
.beb-sig-preview-panel {
  background: #f8f7f2;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.beb-preview-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
  font-family: monospace;
}
.beb-preview-bg {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  flex: 1;
  overflow: auto;
}
.beb-email-chrome {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.beb-chrome-line {
  font-size: 12px;
  color: #888;
  margin-bottom: 3px;
  font-family: Arial, sans-serif;
}
.beb-chrome-line strong { color: #333; }
.beb-email-body {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
  font-family: Arial, sans-serif;
}

/* ── SUCCESS OVERLAY ────────────────────────────────────────────── */
#beb-success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#beb-success-overlay:not([aria-hidden="true"]) {
  display: flex;
}
.beb-success-box {
  background: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.beb-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #003580, #0f3460);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #e8c84a;
}
.beb-success-box h3 {
  color: #003580;
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 0 0 10px;
}
.beb-success-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.beb-close-btn {
  padding: 10px 28px;
  background: #003580;
  color: #e8c84a;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  font-family: monospace;
  transition: opacity 0.18s;
}
.beb-close-btn:hover { opacity: 0.85; }
