/* Corporate orders page (templates/corporate.php). Form fields reuse info.css (.bp-form / .bp-field). */

.bp-corp { padding: 8px 0 40px; }

.bp-corp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.bp-corp-why-item { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; }
.bp-corp-why-item svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--bh-blue-soft, #eaf3ff); color: var(--bh-blue); box-sizing: border-box; }
.bp-corp-why-item strong { font-size: 15px; color: var(--bh-ink); }
.bp-corp-why-item span { font-size: 13.5px; line-height: 1.45; color: var(--bh-muted); }

.bp-corp-who { margin: 0 0 22px; }
.bp-corp-who h2 { margin: 0 0 10px; font-size: 18px; }
.bp-corp-who ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-corp-who li { padding: 7px 12px; background: #fff; border: 1px solid var(--bh-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--bh-ink); }

.bp-corp-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.bp-corp-formcard { padding: 26px 28px; scroll-margin-top: 120px; }
.bp-corp-formcard > h2 { margin: 0 0 6px; font-size: 22px; }
.bp-corp-intro { margin: 0 0 18px; color: var(--bh-muted); font-size: 14.5px; }
.bp-corp-form fieldset { margin: 0 0 22px; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--bh-line); }
.bp-corp-form fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.bp-corp-form legend { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; font-size: 16px; font-weight: 700; color: var(--bh-ink); }
.bp-corp-form legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bh-blue); color: #fff; font-size: 13px; }
.bp-corp-form .bp-field select { width: 100%; height: 46px; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; padding: 0 12px !important; font-size: 15px; color: var(--bh-ink); background: #fff !important; margin: 0 !important; }
.bp-corp-form .bp-field select:focus { border-color: var(--bh-blue) !important; box-shadow: 0 0 0 3px rgba(0, 119, 255, .12) !important; outline: none; }

.bp-corp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.bp-corp-chips label { position: relative; margin: 0; cursor: pointer; }
.bp-corp-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bp-corp-chips span { display: inline-block; padding: 8px 13px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--bh-ink); transition: background .15s, border-color .15s, color .15s; }
.bp-corp-chips input:checked + span { background: var(--bh-blue); border-color: var(--bh-blue); color: #fff; }
.bp-corp-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 119, 255, .25); }

.bp-corp-vat { gap: 8px; }
.bp-corp-check { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; font-size: 14.5px; color: var(--bh-ink); cursor: pointer; }
.bp-corp-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--bh-blue); }
.bp-field.is-invalid select { border-color: #ef4444 !important; }

.bp-corp-done { text-align: center; padding: 30px 10px; }
.bp-corp-done svg { width: 56px; height: 56px; color: #16a34a; }
.bp-corp-done h3 { margin: 10px 0 6px; font-size: 20px; }
.bp-corp-done p { margin: 0; color: var(--bh-muted); }

.bp-corp-side { display: grid; gap: 16px; position: sticky; top: 120px; }
.bp-corp-talk, .bp-corp-steps { padding: 20px 22px; }
.bp-corp-side h3 { margin: 0 0 12px; font-size: 17px; }
.bp-corp-talk a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bh-line); color: var(--bh-ink); text-decoration: none !important; }
.bp-corp-talk a:first-of-type { border-top: 0; }
.bp-corp-talk a svg { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; background: var(--bh-blue-soft, #eaf3ff); color: var(--bh-blue); box-sizing: border-box; }
.bp-corp-talk a.is-wa svg { background: #dcfce7; color: #16a34a; fill: currentColor; }
.bp-corp-talk a span { display: flex; flex-direction: column; font-size: 14px; color: var(--bh-muted); }
.bp-corp-talk a strong { font-size: 14.5px; color: var(--bh-ink); }
.bp-corp-talk a:hover strong { color: var(--bh-blue); }
.bp-corp-hours { margin: 10px 0 0; font-size: 13px; color: var(--bh-muted); }
.bp-corp-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.bp-corp-steps li { position: relative; padding: 0 0 14px 38px; counter-increment: s; }
.bp-corp-steps li:last-child { padding-bottom: 0; }
.bp-corp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bh-blue-soft, #eaf3ff); color: var(--bh-blue); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.bp-corp-steps strong { display: block; font-size: 14.5px; color: var(--bh-ink); }
.bp-corp-steps span { font-size: 13.5px; color: var(--bh-muted); }

/* quantity: number + unit */
.bp-corp-qty-row { display: flex; height: 46px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.bp-corp-qty-row:focus-within { border-color: var(--bh-blue); box-shadow: 0 0 0 3px rgba(0, 119, 255, .12); }
.bp-corp-form .bp-corp-qty-row input, .bp-corp-form .bp-corp-qty-row select { height: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; margin: 0 !important; }
.bp-corp-form .bp-corp-qty-row input { flex: 1; min-width: 0; text-align: left !important; padding: 0 14px !important; background: transparent !important; }
.bp-corp-form .bp-corp-qty-row select { flex: 0 0 104px; width: 104px !important; padding: 0 10px !important; border-left: 1px solid #e2e8f0 !important; background-color: #f8fafc !important; font-weight: 600; cursor: pointer; }

/* smart upload box */
.bp-corp-drop [hidden] { display: none !important; }
.bp-corp-drop { position: relative; border: 1.5px dashed #b6c3d4; border-radius: 10px; background: #f8fafc; transition: border-color .15s, background .15s; }
.bp-corp-drop:hover, .bp-corp-drop.is-over { border-color: var(--bh-blue); background: #f0f7ff; }
.bp-corp-drop input[type="file"] { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; cursor: pointer; z-index: 1; padding: 0 !important; border: 0 !important; }
.bp-corp-drop.has-file input[type="file"] { pointer-events: none; }
.bp-corp-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; text-align: center; }
.bp-corp-drop-empty svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--bh-blue-soft, #eaf3ff); color: var(--bh-blue); box-sizing: border-box; }
.bp-corp-drop-empty p { margin: 4px 0 0; font-size: 14.5px; color: var(--bh-ink); }
.bp-corp-drop-empty strong { color: var(--bh-blue); }
.bp-corp-drop-empty small { font-size: 12.5px; color: var(--bh-muted); }
.bp-corp-drop-file { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 10px; }
.bp-corp-thumb { flex: none; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #64748b center / cover no-repeat; }
.bp-corp-thumb.is-pdf { background-color: #dc2626; } .bp-corp-thumb.is-xls { background-color: #16a34a; } .bp-corp-thumb.is-doc { background-color: #2563eb; } .bp-corp-thumb.is-img { background-color: #e2e8f0; }
.bp-corp-fmeta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bp-corp-fname { font-size: 14px; color: var(--bh-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-corp-fsize { font-size: 12.5px; color: var(--bh-muted); }
.bp-corp-fremove { flex: none; border: 1px solid #fecaca !important; background: #fff !important; color: #dc2626 !important; border-radius: 6px !important; padding: 6px 12px !important; font-size: 13px !important; font-weight: 600; cursor: pointer; min-height: 0 !important; line-height: 1.2 !important; }
.bp-corp-fremove:hover { background: #fef2f2 !important; }
.bp-corp-ferr { font-size: 13px; font-weight: 600; color: #dc2626; }
.bp-corp-ferr:empty { display: none; }
.bp-corp-file.is-invalid .bp-corp-drop { border-color: #ef4444; }

@media (max-width: 1024px) {
	.bp-corp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-corp-grid { grid-template-columns: 1fr; }
	.bp-corp-side { position: static; }
}
@media (max-width: 640px) {
	.bp-corp-why { grid-template-columns: 1fr; }
	.bp-corp-formcard { padding: 20px 16px; }
	.bp-corp-form .bp-form { grid-template-columns: 1fr; }
}
