/* ── Vendor Product Capture — Stylesheet v2.0 ───────────────────────────── */

/* ── Form base ────────────────────────────────────────────────────────────── */
.bida-form { background: transparent; padding: 40px 0; border-radius: 8px; margin: 20px 0; max-width: 100%; }
.bida-form h2 { margin: 0 0 20px; color: #333; font-size: 28px; }

/* ── Type toggle (Product / Service) ─────────────────────────────────────── */
.bida-type-toggle { text-align: center; margin-bottom: 30px; }
.bida-type-filter { display: inline-flex; background: #e8e8e8; border-radius: 20px; padding: 2px; }
.bida-type-filter label { cursor: pointer; margin: 0; }
.bida-type-filter input[type="radio"] { display: none; }
.bida-type-filter span { display: inline-block; padding: 6px 16px; border-radius: 18px; font-size: 14px; font-weight: 500; transition: all 0.2s; background-color: transparent; color: #666; white-space: nowrap; }
.bida-type-filter input[type="radio"]:checked + span { background-color: #92FF57; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.bida-msg { padding: 20px; margin-bottom: 25px; background: #92FF57; border-radius: 4px; font-weight: bold; font-size: 16px; }

/* ── Form controls ────────────────────────────────────────────────────────── */
.bida-form label { display: block; margin: 20px 0 8px; font-weight: bold; color: #333; font-size: 15px; }
.bida-form input,
.bida-form textarea,
.bida-form select { width: 100%; max-width: 100%; padding: 15px 18px; border: 1px solid #ddd; border-radius: 4px; font-size: 18px; box-sizing: border-box; }
.bida-form input[type="number"] { width: 100%; max-width: 100%; }
.bida-form textarea { min-height: 120px; resize: vertical; }
.bida-form select { background: white; }
.bida-form button { background: #92FF57; border: none; padding: 18px 40px; font-size: 18px; font-weight: bold; border-radius: 4px; cursor: pointer; margin-top: 25px; width: 100%; }
.bida-form button:hover { background: #7de63f; }
.bida-required { color: #dc3545; }

/* ── Image upload ─────────────────────────────────────────────────────────── */
.bida-image-hint { font-size: 13px; color: #666; margin-top: 8px; font-weight: normal; }
.bida-image-preview { max-width: 200px; max-height: 200px; margin-top: 15px; border-radius: 4px; display: none; border: 2px solid #ddd; }

/* ── Digital / Delivery toggles ──────────────────────────────────────────── */
.bida-digital-toggle { margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 4px; border-left: 4px solid #92FF57; }
.bida-digital-toggle label { display: inline-flex; align-items: center; font-weight: normal; cursor: pointer; margin: 0; }
.bida-digital-toggle input[type="checkbox"] { width: auto; margin-right: 10px; cursor: pointer; transform: scale(1.2); }
.bida-digital-fields { margin-top: 15px; padding-top: 15px; border-top: 2px dashed #92FF57; display: none; }
.bida-digital-hint { font-size: 14px; color: #666; margin-top: 5px; font-style: italic; }

/* ── Section visibility ──────────────────────────────────────────────────── */
.bida-service-fields { display: none; }
.bida-product-fields { display: block; }

/* ── Barcode — collapsible toggle ────────────────────────────────────────── */
.bida-barcode-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; background: #fff; border: 1.5px solid #F59E0B; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #92400E; user-select: none; transition: background 0.15s; }
.bida-barcode-toggle:hover { background: #fffbeb; }
.bida-barcode-toggle .bida-bc-arrow { font-size: 11px; transition: transform 0.2s; display: inline-block; }
.bida-barcode-toggle.open .bida-bc-arrow { transform: rotate(180deg); }

/* ── Barcode — expanded body ─────────────────────────────────────────────── */
.bida-barcode-body { display: none; margin: 8px 0 20px; padding: 16px 18px; background: #fffbeb; border: 1.5px solid #F59E0B; border-radius: 12px; }
.bida-barcode-body.open { display: block; }
.bida-barcode-hint { font-size: 13px; color: #92400E; margin: 0 0 12px; font-weight: 400; }

/* ── Barcode — row with input + button ───────────────────────────────────── */
.bida-barcode-row { display: flex; gap: 10px; align-items: center; width: 100%; }
.bida-barcode-field { flex: 1 1 0; min-width: 0; width: auto !important; max-width: none !important; font-size: 16px !important; padding: 12px 14px !important; border-radius: 6px; box-sizing: border-box; }
.bida-scan-btn { flex: 0 0 auto; width: auto !important; background: #F59E0B; color: #fff; border: none; padding: 12px 18px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1; margin-top: 0 !important; }
.bida-scan-btn:hover { background: #D97706; }
.bida-barcode-status { font-size: 13px; color: #92400E; margin-top: 8px; min-height: 18px; line-height: 1.4; }

/* ── Scanner modal ───────────────────────────────────────────────────────── */
.bida-scanner-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 999999; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.bida-scanner-overlay.active { display: flex; }
.bida-scanner-box { background: #111; border-radius: 16px; padding: 20px; width: 100%; max-width: 460px; text-align: center; }
.bida-scanner-title { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 16px; }
#bida-qr-region { width: 100%; border-radius: 8px; overflow: hidden; background: #000; min-height: 220px; }
.bida-scanner-hint { color: #999; font-size: 13px; margin: 12px 0 0; line-height: 1.5; }
.bida-scanner-cancel { background: #dc2626; color: #fff; border: none; padding: 13px 24px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 16px; width: 100%; }
