/**
 * ============================================================
 * Clean Form UI — Shared across GPT / account / job / admin forms
 * Location : assets/css/pages/forms-ui.css
 * Scope    : .dcs-content, .bid4biz-inner-page, .login-page,
 *            .b4b-settings-wrap (Bid4Biz Settings admin)
 * ============================================================
 */

.dcs-content,
.bid4biz-inner-page,
.login-page,
.b4b-settings-wrap {
	--b4b-form-radius: 6px;
	--b4b-form-radius-lg: 12px;
	--b4b-form-radius-pill: 999px;
	--b4b-form-input-h: 42px;
	--b4b-form-pad-x: 12px;
	--b4b-form-pad-y: 10px;
	--b4b-form-label: #4b5563;
	--b4b-form-heading: var(--b4b-heading, #1a1a2e);
	--b4b-form-text: #111827;
	--b4b-form-muted: #6b7280;
	--b4b-form-pill-border: #a0a5ac;
	--b4b-form-border: #d1d5db;
	--b4b-form-bg: var(--b4b-bg, #ffffff);
	--b4b-form-surface: #f3f4f6;
	--b4b-form-surface-soft: #f8fafc;
	--b4b-form-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	--b4b-form-focus: var(--b4b-primary, #0056b3);
	--b4b-form-required: #dc2626;
	--b4b-form-label-size: 1rem;
	--b4b-form-heading-size: 1.25rem;
	--b4b-form-input-size: 0.875rem;
	--b4b-form-gap: 1.5rem;
}

/* Admin settings: compact 30px fields, 6px radius (front-end unchanged) */
.b4b-settings-wrap {
	--b4b-form-input-h: 30px;
	--b4b-form-pad-x: 10px;
	--b4b-form-pad-y: 4px;
	--b4b-form-radius: 6px;
}

/* ------------------------------------------------------------
   Page / card chrome
   ------------------------------------------------------------ */
.dcs-content .dashboard-content-container,
.bid4biz-inner-page .dashboard-content-container {
	width: 100%;
}

.dcs-content .bg-white.rounded-4,
.dcs-content .bg-white.rounded-6,
.dcs-content .card,
.dcs-content .profile-tabs > .card,
.bid4biz-inner-page .bg-white.rounded-4,
.bid4biz-inner-page .bg-white.rounded-6,
.bid4biz-inner-page .card {
	background: var(--b4b-form-bg);
	border: 1px solid var(--b4b-form-border);
	border-radius: var(--b4b-form-radius-lg) !important;
	box-shadow: var(--b4b-form-shadow);
	/* Keep visible so bootstrap-select / dropdown menus are not clipped. */
	overflow: visible;
}

.dcs-content .bg-polar.rounded-4,
.bid4biz-inner-page .bg-polar.rounded-4 {
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0 !important;
}

.dcs-content .shadow-9,
.bid4biz-inner-page .shadow-9 {
	box-shadow: var(--b4b-form-shadow) !important;
}

.dcs-content .border-mercury,
.bid4biz-inner-page .border-mercury,
.dcs-content .border-default-color,
.bid4biz-inner-page .border-default-color {
	border-color: var(--b4b-form-border) !important;
}

/* Soften dense utility padding on form cards */
.dcs-content .profileform .p-6,
.dcs-content form.validateTheform .p-6,
.dcs-content .bg-white.rounded-6 > .p-6,
.bid4biz-inner-page .profileform .p-6 {
	padding: 28px 28px 24px !important;
}

.dcs-content .bg-white.rounded-4.p-10,
.bid4biz-inner-page .bg-white.rounded-4.p-10 {
	padding: 32px !important;
}

/* ------------------------------------------------------------
   Headings — consistent size / weight / color
   ------------------------------------------------------------ */
.dcs-content .page-title,
.dcs-content .card-header .page-title,
.dcs-content .profile-tabs .page-title,
.dcs-content h3.page-title,
.bid4biz-inner-page .page-title {
	font-size: var(--b4b-form-heading-size) !important;
	font-weight: 700 !important;
	line-height: 1.3;
	color: var(--b4b-form-heading) !important;
	letter-spacing: -0.01em;
	margin: 0;
}

.dcs-content .card-header,
.bid4biz-inner-page .card-header {
	background: transparent;
	border-bottom: 1px solid var(--b4b-form-border);
	padding: 22px 28px !important;
}

.dcs-content .field-title,
.bid4biz-inner-page .field-title,
.dcs-content .cd-section-title h5,
.bid4biz-inner-page .cd-section-title h5 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--b4b-form-heading);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.dcs-content h3:not(.page-title),
.dcs-content h4,
.dcs-content h5,
.bid4biz-inner-page h3:not(.page-title),
.bid4biz-inner-page h4,
.bid4biz-inner-page h5 {
	color: var(--b4b-form-heading);
}

/* ------------------------------------------------------------
   Labels
   ------------------------------------------------------------ */
.dcs-content .form-group > label,
.dcs-content label.text-gray,
.dcs-content .form-group .text-gray,
.dcs-content .form-group > .field-title,
.dcs-content .form-group .field-title,
.dcs-content .dcs-form-label,
.bid4biz-inner-page .form-group > label,
.bid4biz-inner-page label.text-gray,
.bid4biz-inner-page .form-group > .field-title,
.bid4biz-inner-page .form-group .field-title,
.login-page .form-group > label {
	display: block;
	font-size: var(--b4b-form-label-size);
	font-weight: 600;
	color: var(--b4b-form-label) !important;
	margin-bottom: 6px;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.dcs-content .form-group > .field-title,
.dcs-content .form-group .field-title,
.bid4biz-inner-page .form-group > .field-title,
.bid4biz-inner-page .form-group .field-title {
	font-size: var(--b4b-form-label-size) !important;
	font-weight: 600 !important;
	margin-bottom: 6px !important;
	color: var(--b4b-form-label) !important;
}

/* Required asterisk */
.dcs-content .form-group > label .required,
.dcs-content .form-group > label .text-danger,
.dcs-content label .required,
.dcs-content label .text-danger,
.dcs-content .field-title .required,
.dcs-content .field-title .text-danger,
.bid4biz-inner-page label .required,
.bid4biz-inner-page label .text-danger,
.dcs-content .dcs-form-label .required {
	color: var(--b4b-form-required);
	font-weight: 700;
}

/* ------------------------------------------------------------
   Inputs / selects / textareas
   ------------------------------------------------------------ */
.form-group button > i{ position: unset;  }

.dcs-content .form-control,
.dcs-content select.form-control,
.dcs-content textarea.form-control,
.dcs-content .form-control.with-border,
.dcs-content .dcs-form-input,
.dcs-content .dcs-form-select,
.dcs-content .p1-budget-input,
.dcs-content .p1-model-input,
.bid4biz-inner-page .form-control,
.bid4biz-inner-page select.form-control,
.bid4biz-inner-page textarea.form-control,
.bid4biz-inner-page .form-control.with-border,
.login-page .form-control,
.b4b-settings-wrap input[type="text"],
.b4b-settings-wrap input[type="number"],
.b4b-settings-wrap input[type="email"],
.b4b-settings-wrap input[type="url"],
.b4b-settings-wrap input[type="password"],
.b4b-settings-wrap input[type="search"],
.b4b-settings-wrap input[type="tel"],
.b4b-settings-wrap select,
.b4b-settings-wrap textarea,
.b4b-settings-wrap .settings-tabbox input[type="text"],
.b4b-settings-wrap .settings-tabbox textarea,
.b4b-settings-wrap .settings-tabbox select,
.b4b-settings-wrap .emailsettings-tabboxes input[type="text"],
.b4b-settings-wrap .emailsettings-tabboxes textarea,
.b4b-settings-wrap .emailsettings-tabboxes select {

	display: block;
	width: 100%;
	max-width: 100%;
	min-height: var(--b4b-form-input-h);
	height: auto;
	padding: var(--b4b-form-pad-y) var(--b4b-form-pad-x) !important;
	font-size: var(--b4b-form-input-size) !important;
	font-weight: 400;
	line-height: 1.45;
	color: var(--b4b-form-text) !important;
	background-color: var(--b4b-form-bg) !important;
	border: 1px solid var(--b4b-form-border) !important;
	border-radius: var(--b4b-form-radius) !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	appearance: none;
	box-sizing: border-box;
}

.dcs-content select.form-control,
.dcs-content select.dcs-form-select,
.dcs-content select.with-border,
.bid4biz-inner-page select.form-control,
.bid4biz-inner-page select.with-border,
.b4b-acc-shell select.form-control,
.b4b-settings-wrap select,
.login-page select.form-control {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--b4b-form-bg, #fff) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234b5563' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 12px 8px;
	padding-right: 2.35rem !important;
}

.dcs-content select.form-control::-ms-expand,
.bid4biz-inner-page select.form-control::-ms-expand,
.b4b-acc-shell select.form-control::-ms-expand,
.b4b-settings-wrap select::-ms-expand {
	display: none;
}

form .form-group .bootstrap-select, form .form-horizontal .bootstrap-select,
form .form-inline .bootstrap-select, form .form-control.bootstrap-select.with-border,
.bid4biz-inner-page .form-control.bootstrap-select.with-border {
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	transition: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
}

.dcs-content textarea.form-control,
.bid4biz-inner-page textarea.form-control {
	min-height: 120px;
	resize: vertical;
}

.dcs-content .form-control::placeholder,
.dcs-content .dcs-form-input::placeholder,
.bid4biz-inner-page .form-control::placeholder {
	color: var(--b4b-form-muted);
	opacity: 1;
}

.dcs-content .form-control:hover,
.dcs-content .dcs-form-input:hover,
.dcs-content .dcs-form-select:hover,
.bid4biz-inner-page .form-control:hover {
	border-color: #d1d5db !important;
}

.dcs-content .form-control:focus,
.dcs-content .dcs-form-input:focus,
.dcs-content .dcs-form-select:focus,
.bid4biz-inner-page .form-control:focus {
	border-color: var(--b4b-form-focus) !important;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12) !important;
	outline: none;
	background-color: var(--b4b-form-bg) !important;
}

.dcs-content .form-control:disabled,
.dcs-content .form-control[readonly],
.bid4biz-inner-page .form-control:disabled,
.bid4biz-inner-page .form-control[readonly] {
	background-color: var(--b4b-form-surface) !important;
	color: var(--b4b-form-label) !important;
	cursor: not-allowed;
	opacity: 1;
}

.dcs-content .form-control.is-invalid,
.dcs-content .form-control.invalid,
.bid4biz-inner-page .form-control.is-invalid,
.bid4biz-inner-page .form-control.invalid,
.b4b-amount-field.is-invalid,
.b4b-amount-field.has-error {
	border-color: var(--b4b-form-required) !important;
}

.dcs-content .invalid-feedback,
.dcs-content .dcs-inline-error,
.dcs-content .cb-field-error,
.bid4biz-inner-page .invalid-feedback,
.bid4biz-inner-page .cb-field-error,
.login-page .invalid-feedback {
	display: block;
	margin-top: 6px;
	font-size: 0.90rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--b4b-form-required) !important;
}

.dcs-content .invalid-feedback:not(:empty),
.dcs-content .dcs-inline-error:not(:empty),
.bid4biz-inner-page .invalid-feedback:not(:empty) {
	display: block;
}

/* Bootstrap-select mirrors inputs */
.dcs-content .bootstrap-select > .dropdown-toggle,
.bid4biz-inner-page .bootstrap-select > .dropdown-toggle,
.b4b-settings-wrap .bootstrap-select > .dropdown-toggle {
	min-height: var(--b4b-form-input-h) !important;
	padding: var(--b4b-form-pad-y) var(--b4b-form-pad-x) !important;
	font-size: var(--b4b-form-input-size) !important;
	font-weight: 500;
	color: var(--b4b-form-text) !important;
	background-color: var(--b4b-form-bg) !important;
	border: 1px solid var(--b4b-form-border) !important;
	border-radius: var(--b4b-form-radius) !important;
	box-shadow: none !important;
}

.dcs-content .bootstrap-select > .dropdown-toggle:focus,
.dcs-content .bootstrap-select.show > .dropdown-toggle,
.bid4biz-inner-page .bootstrap-select > .dropdown-toggle:focus,
.b4b-settings-wrap .bootstrap-select > .dropdown-toggle:focus {
	border-color: var(--b4b-form-focus) !important;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12) !important;
	outline: none !important;
}

.dcs-content .bootstrap-select .dropdown-menu,
.bid4biz-inner-page .bootstrap-select .dropdown-menu,
.b4b-settings-wrap .bootstrap-select .dropdown-menu {
	border: 1px solid var(--b4b-form-border);
	border-radius: var(--b4b-form-radius);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
	padding: 6px;
	z-index: 1060;
	overflow: visible;
}

.dcs-content .bootstrap-select .dropdown-menu .inner,
.bid4biz-inner-page .bootstrap-select .dropdown-menu .inner {
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 220px;
}

.dcs-content .bootstrap-select,
.bid4biz-inner-page .bootstrap-select,
.dcs-content .form-group:has(.bootstrap-select),
.bid4biz-inner-page .form-group:has(.bootstrap-select),
.dcs-content .row:has(.bootstrap-select),
.bid4biz-inner-page .row:has(.bootstrap-select),
.dcs-content [class*="col-"]:has(.bootstrap-select),
.bid4biz-inner-page [class*="col-"]:has(.bootstrap-select) {
	overflow: visible;
}

.dcs-content .bootstrap-select.show,
.bid4biz-inner-page .bootstrap-select.show {
	position: relative;
	z-index: 1060;
}

/* ------------------------------------------------------------
   Form layout spacing
   ------------------------------------------------------------ */
.dcs-content .form-group,
.bid4biz-inner-page .form-group,
.dcs-content .dcs-form-group {
	margin-bottom: var(--b4b-form-gap);
}

.dcs-content .dcs-form-group {
	gap: 8px;
}

.dcs-content .profileform .row,
.dcs-content form.validateTheform .row,
.bid4biz-inner-page .profileform .row {
	margin-left: -10px;
	margin-right: -10px;
}

.dcs-content .profileform .row > [class*="col-"],
.dcs-content form.validateTheform .row > [class*="col-"],
.bid4biz-inner-page .profileform .row > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
}

/* Nested info / summary boxes (Rental Info style) */
.dcs-content .bg-gray-2,
.dcs-content .bg-light,
.dcs-content .alert-light,
.dcs-content .p1-summary,
.dcs-content .rental-info-box,
.bid4biz-inner-page .bg-gray-2 {
	background: var(--b4b-form-surface-soft) !important;
	border: 1px solid var(--b4b-form-border);
	border-radius: var(--b4b-form-radius);
}

/* ------------------------------------------------------------
   Buttons — pill, consistent height
   ------------------------------------------------------------ */
.dcs-content .btn,
.dcs-content .dcs-form-btn-primary,
.dcs-content .dcs-form-btn-secondary,
.bid4biz-inner-page .btn,
.login-page .btn {

	min-height: 42px;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--b4b-form-radius-pill) !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.dcs-content .btn-primary,
.dcs-content .dcs-form-btn-primary,
.bid4biz-inner-page .btn-primary,
.dcs-content .btn.btn-green,
.bid4biz-inner-page .btn.btn-green {
	background: var(--b4b-btn-primary-bg, var(--b4b-primary, #111827)) !important;
	border-color: var(--b4b-btn-primary-bg, var(--b4b-primary, #111827)) !important;
	color: var(--b4b-btn-primary-text, #fff) !important;
	box-shadow: none !important;
}

.dcs-content .btn-primary:hover,
.dcs-content .dcs-form-btn-primary:hover,
.bid4biz-inner-page .btn-primary:hover {
	background: var(--b4b-btn-primary-hover, var(--b4b-primary-hover, #004494)) !important;
	border-color: var(--b4b-btn-primary-hover, var(--b4b-primary-hover, #004494)) !important;
	color: #fff !important;
}

.dcs-content .btn-primary:disabled,
.dcs-content .dcs-form-btn-primary:disabled,
.bid4biz-inner-page .btn-primary:disabled {
	background: #e5e7eb !important;
	border-color: #e5e7eb !important;
	color: #9ca3af !important;
	opacity: 1;
	cursor: not-allowed;
}

.dcs-content .btn-outline-primary,
.dcs-content .dcs-form-btn-secondary,
.bid4biz-inner-page .btn-outline-primary {
	background: var(--b4b-form-surface) !important;
	border: 1px solid var(--b4b-form-border) !important;
	color: var(--b4b-form-text) !important;
}

.dcs-content .btn-block,
.dcs-content .btn-block.btn-primary,
.bid4biz-inner-page .btn-block {
	width: 100%;
	display: block;
}

/* Choice pills (job forms / filters) — RideX-style chips */
.dcs-content .cb-pill label,
.dcs-content .dcs-form-btn,
.bid4biz-inner-page .cb-pill label {
	min-height: 40px;
	padding: 8px 16px !important;
	border-radius: var(--b4b-form-radius-pill) !important;
	border: 1px solid var(--b4b-form-pill-border) !important;
	background: var(--b4b-form-bg) !important;
	color: var(--b4b-form-text) !important;
	font-size: 0.88rem;
	font-weight: 500;
}

.dcs-content .cb-pill input:checked + label,
.dcs-content .dcs-form-btn.is-selected,
.bid4biz-inner-page .cb-pill input:checked + label {
	background: #111827 !important;
	border-color: #111827 !important;
	color: #fff !important;
}

.dcs-content .cb-pill.cb-disabled label {
	opacity: 0.45;
	cursor: not-allowed;
}

.dcs-content .cb-pill.cb-disabled label:hover {
	border-color: var(--b4b-form-border) !important;
}

/* ------------------------------------------------------------
   GPT advanced search form alignment
   ------------------------------------------------------------ */
.dcs-content .dcs-form-label {
	font-size: var(--b4b-form-label-size);
	font-weight: 600;
	color: var(--b4b-form-label);
}

.dcs-content .dcs-form-sublabel {
	font-size: 0.8rem;
	color: var(--b4b-form-muted);
}

.dcs-content .dcs-form-actions {
	border-top-color: var(--b4b-form-border);
	gap: 12px;
}

.dcs-content .dcs-advanced-form {
	gap: 20px;
}

/* ------------------------------------------------------------
   Breadcrumb — soft pill current page (matches form chrome)
   ------------------------------------------------------------ */
.dcs-content .b4b-breadcrumbs {
	margin-bottom: 18px;
	padding-top: 2px;
}

.dcs-content .b4b-breadcrumbs .trail-end {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: var(--b4b-form-radius-pill);
	color: var(--b4b-primary, #0056b3);
	font-weight: 600;
}

.dcs-content .b4b-breadcrumbs--icon .trail-begin > a,
.dcs-content .b4b-breadcrumbs .b4b-crumb-icon {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ------------------------------------------------------------
   Accordion / profile tabs cleanup
   ------------------------------------------------------------ */
.dcs-content .profile-tabs .card-header .btn-link,
.bid4biz-inner-page .profile-tabs .card-header .btn-link {
	text-decoration: none !important;
	box-shadow: none !important;
	color: var(--b4b-form-heading) !important;
	padding: 0 !important;
}

.dcs-content .profile-tabs .card-body,
.bid4biz-inner-page .profile-tabs .card-body {
	padding: 8px 28px 28px !important;
}

.dcs-content .accordion .card,
.bid4biz-inner-page .accordion .card {
	margin-bottom: 12px;
}

/* ------------------------------------------------------------
   Helper / note text
   ------------------------------------------------------------ */
.dcs-content .form-text,
.dcs-content .text-hit-gray,
.dcs-content small.text-muted,
.dcs-content .form-group > small,
.dcs-content .form-group small.text-gray,
.bid4biz-inner-page .form-text,
.bid4biz-inner-page .text-hit-gray,
.bid4biz-inner-page .form-group > small,
.bid4biz-inner-page .form-group small.text-gray {
	font-size: 0.75rem;
	color: var(--b4b-form-muted) !important;
	line-height: 1.5;
	margin-top: 6px;
}

.dcs-content .form-text .text-danger,
.dcs-content small .text-danger,
.bid4biz-inner-page .form-text .text-danger {
	color: var(--b4b-form-required) !important;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 767.98px) {
	.dcs-content,
	.bid4biz-inner-page,
	.b4b-settings-wrap {
		--b4b-form-input-h: 40px;
		--b4b-form-pad-x: 11px;
		--b4b-form-pad-y: 9px;
		--b4b-form-heading-size: 1.125rem;
		--b4b-form-gap: 1.25rem;
	}

	.dcs-content .profileform .p-6,
	.dcs-content .bg-white.rounded-6 > .p-6,
	.dcs-content .bg-white.rounded-4.p-10,
	.dcs-content .card-header,
	.dcs-content .profile-tabs .card-body,
	.bid4biz-inner-page .profileform .p-6 {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	.dcs-content .bg-white.rounded-4.p-10,
	.bid4biz-inner-page .bg-white.rounded-4.p-10 {
		padding-top: 22px !important;
		padding-bottom: 22px !important;
	}
}

/* ------------------------------------------------------------
   Amount + currency group (pricing fields)
   ------------------------------------------------------------ */
.b4b-amount-field {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 420px;
	min-height: var(--b4b-form-input-h);
	background: var(--b4b-form-bg);
	border: 1px solid var(--b4b-form-border);
	border-radius: var(--b4b-form-radius);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b4b-settings-wrap .b4b-amount-field {
	max-width: 280px;
}

.b4b-amount-field:focus-within {
	border-color: var(--b4b-form-focus);
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

.b4b-amount-field__input,
.b4b-amount-field .b4b-amount-field__input.form-control {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	min-height: calc(var(--b4b-form-input-h) - 2px) !important;
	height: calc(var(--b4b-form-input-h) - 2px) !important;
	margin: 0 !important;
	padding: var(--b4b-form-pad-y) var(--b4b-form-pad-x) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.b4b-amount-field__input:focus,
.b4b-amount-field .b4b-amount-field__input.form-control:focus {
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.b4b-amount-field__currency {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 72px;
	padding: 0 12px;
	border-left: 1px solid var(--b4b-form-border);
	background: var(--b4b-form-bg);
	color: var(--b4b-form-label);
}

.b4b-amount-field__code {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	color: var(--b4b-form-text);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.b4b-amount-field__select {
	min-width: 72px;
	height: 100%;
	padding: 0 22px 0 4px;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--b4b-form-text);
	cursor: pointer;
	appearance: none;
}

.b4b-amount-field__select:focus {
	outline: none;
}

/* Password / search input groups — keep separate from amount fields */
.dcs-content .input-group:not(.b4b-amount-field),
.bid4biz-inner-page .input-group:not(.b4b-amount-field),
.login-page .input-group {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.dcs-content .input-group:not(.b4b-amount-field) .form-control,
.bid4biz-inner-page .input-group:not(.b4b-amount-field) .form-control,
.login-page .input-group .form-control {
	flex: 1 1 auto;
	width: 1%;
	min-width: 0;
}

.dcs-content .input-group:not(.b4b-amount-field) .input-group-append .btn,
.dcs-content .input-group:not(.b4b-amount-field) .input-group-prepend .input-group-text,
.bid4biz-inner-page .input-group:not(.b4b-amount-field) .input-group-append .btn,
.login-page .input-group .input-group-append .btn {
	min-height: var(--b4b-form-input-h);
	border-color: var(--b4b-form-border) !important;
	background: var(--b4b-form-bg) !important;
	color: var(--b4b-form-muted) !important;
	border-radius: var(--b4b-form-radius) !important;
}

.dcs-content .input-group:not(.b4b-amount-field) > .form-control:not(:last-child),
.login-page .input-group > .form-control:not(:last-child) {
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.dcs-content .input-group:not(.b4b-amount-field) > .input-group-append:not(:first-child) > .btn,
.login-page .input-group > .input-group-append:not(:first-child) > .btn {
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
	border-left: 0 !important;
}

/* ------------------------------------------------------------
   Bid4Biz Settings — table form labels & field width
   ------------------------------------------------------------ */
.b4b-settings-wrap .bid4biz-table tr td:nth-child(2) {
	font-size: var(--b4b-form-label-size);
	font-weight: 600;
	color: var(--b4b-form-label);
	line-height: 1.45;
	padding-top: 14px;
	vertical-align: top;
}

.b4b-settings-wrap .bid4biz-table tr td:nth-child(3) {
	padding-top: 8px;
	padding-bottom: 14px;
	vertical-align: top;
}

.b4b-settings-wrap .form-table th {
	font-size: var(--b4b-form-label-size);
	font-weight: 600;
	color: var(--b4b-form-label);
	padding-top: 14px;
	vertical-align: top;
}

.b4b-settings-wrap .form-table td {
	padding-top: 8px;
	padding-bottom: 14px;
	vertical-align: top;
}

.b4b-settings-wrap .form-table input[type="text"],
.b4b-settings-wrap .form-table input[type="number"],
.b4b-settings-wrap .form-table input[type="email"],
.b4b-settings-wrap .form-table input[type="url"],
.b4b-settings-wrap .form-table select,
.b4b-settings-wrap .form-table textarea,
.b4b-settings-wrap .settings-tabbox input[type="text"]:not(.b4b-amount-field__input),
.b4b-settings-wrap .settings-tabbox select {
	max-width: 420px;
}

.b4b-settings-wrap .b4b-option-row-form input[type="text"] {
	max-width: none;
}

/* ------------------------------------------------------------
   Business registration — Bootstrap-free layout
   ------------------------------------------------------------ */
.b4b-business-reg {
	max-width: 960px;
	margin: 0 auto;
}

.b4b-business-reg__card {
	background: var(--b4b-form-bg, #fff);
	border: 1px solid var(--b4b-form-border, #e5e7eb);
	border-radius: var(--b4b-form-radius-lg, 24px);
	box-shadow: var(--b4b-form-shadow, 0 10px 36px rgba(15, 23, 42, 0.06));
	overflow: visible;
}

.b4b-business-reg__eyebrow {
	margin: 0 0 6px;
	font-size: 0.875rem;
	color: var(--b4b-form-muted, #9ca3af);
	line-height: 1.4;
}

.b4b-business-reg__heading,
.b4b-business-reg__title {
	margin: 0 0 10px;
	font-size: var(--b4b-form-heading-size, 1.35rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--b4b-form-heading, #111827);
}

.b4b-business-reg__intro,
.b4b-business-reg__message {
	margin: 0 0 24px;
	color: var(--b4b-form-text, #1f2937);
}

.b4b-business-reg__message {
	font-size: 1.05rem;
}

.b4b-business-reg__form {
	display: grid;
	gap: 0;
}

.b4b-business-reg__grid {
	display: grid;
	gap: 16px;
	margin-bottom: 1.35rem;
}

.b4b-business-reg__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b4b-business-reg__grid--email-phone {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.b4b-business-reg__field {
	min-width: 0;
}

.b4b-business-reg__section {
	margin-bottom: 1.35rem;
}

.b4b-business-reg__section-title {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--b4b-form-heading, #111827);
}

.b4b-business-reg__section-title small {
	display: block;
	margin-top: 4px;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--b4b-form-muted, #9ca3af);
}

.b4b-business-reg__input,
.b4b-business-reg__select {
	display: block;
	width: 100%;
	min-height: var(--b4b-form-input-h, 52px);
	height: auto;
	font-size: var(--b4b-form-input-size, 0.95rem) !important;
	font-weight: 500;
	line-height: 1.4;
	color: var(--b4b-form-text, #1f2937) !important;
	background-color: var(--b4b-form-bg, #fff) !important;
	border: 1px solid var(--b4b-form-border, #e5e7eb) !important;
	border-radius: var(--b4b-form-radius) !important;
	box-shadow: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	appearance: none;
}

.b4b-business-reg__input {
	padding: var(--b4b-form-pad-y, 14px) var(--b4b-form-pad-x, 18px) !important;
}

.b4b-business-reg__select {
	padding: 0 !important;
}

.b4b-business-reg__input::placeholder {
	color: var(--b4b-form-muted, #9ca3af);
	opacity: 1;
}

.b4b-business-reg__input:hover,
.b4b-business-reg__select:hover {
	border-color: #d1d5db !important;
}

.b4b-business-reg__input:focus,
.b4b-business-reg__select:focus {
	border-color: var(--b4b-form-focus, #0056b3) !important;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12) !important;
	outline: none;
	background-color: var(--b4b-form-bg, #fff) !important;
}

.b4b-business-reg__input.invalid,
.b4b-business-reg__select.selectpicker.invalid + .dropdown-toggle {
	border-color: #f14e4e !important;
}

.b4b-business-reg__input.valid,
.b4b-business-reg__select.selectpicker.valid + .dropdown-toggle {
	border-color: #23c58f !important;
}

.bid4biz-inner-page .b4b-business-reg .bootstrap-select,
.dcs-content .b4b-business-reg .bootstrap-select {
	width: 100% !important;
}

.bid4biz-inner-page .b4b-business-reg .bootstrap-select > .dropdown-toggle,
.dcs-content .b4b-business-reg .bootstrap-select > .dropdown-toggle {
	min-height: var(--b4b-form-input-h, 52px);
	padding: var(--b4b-form-pad-y, 14px) var(--b4b-form-pad-x, 18px) !important;
	font-size: var(--b4b-form-input-size, 0.95rem) !important;
	font-weight: 500;
	color: var(--b4b-form-text, #1f2937) !important;
	background: var(--b4b-form-bg, #fff) !important;
	border: 1px solid var(--b4b-form-border, #e5e7eb) !important;
	border-radius: var(--b4b-form-radius) !important;
	box-shadow: none !important;
}

.bid4biz-inner-page .b4b-business-reg .bootstrap-select > .dropdown-toggle:focus,
.bid4biz-inner-page .b4b-business-reg .bootstrap-select.show > .dropdown-toggle,
.dcs-content .b4b-business-reg .bootstrap-select > .dropdown-toggle:focus,
.dcs-content .b4b-business-reg .bootstrap-select.show > .dropdown-toggle {
	border-color: var(--b4b-form-focus, #0056b3) !important;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12) !important;
	outline: none !important;
}

.b4b-business-reg__submit,
.b4b-business-reg__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 12px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--b4b-btn-primary-text, #fff) !important;
	background: var(--b4b-btn-primary-bg, var(--b4b-primary, #111827)) !important;
	border: 1px solid var(--b4b-btn-primary-bg, var(--b4b-primary, #111827)) !important;
	border-radius: var(--b4b-form-radius-pill, 999px) !important;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.b4b-business-reg__submit:hover,
.b4b-business-reg__cta:hover {
	color: var(--b4b-btn-primary-text, #fff) !important;
	background: var(--b4b-btn-primary-hover, var(--b4b-primary-hover, #004494)) !important;
	border-color: var(--b4b-btn-primary-hover, var(--b4b-primary-hover, #004494)) !important;
}

.b4b-business-reg__login-note {
	margin: 16px 0 0;
	font-size: 0.9rem;
	color: var(--b4b-form-muted, #9ca3af);
	text-align: right;
}

.b4b-business-reg__login-note a {
	color: var(--b4b-form-focus, #0056b3);
	text-decoration: none;
}

.b4b-business-reg__login-note a:hover {
	text-decoration: underline;
}

.b4b-business-reg--success {
	max-width: 720px;
}

.b4b-business-reg__success {
	text-align: center;
}

.b4b-business-reg__actions {
	max-width: 320px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.b4b-business-reg__body,
	.b4b-business-reg__success {
		padding: 22px 18px;
	}

	.b4b-business-reg__grid--2,
	.b4b-business-reg__grid--email-phone {
		grid-template-columns: 1fr;
	}

	.b4b-business-reg__login-note {
		text-align: left;
	}
}

/* Inline validation messages — always visible immediately (no fade delay) */
.dj-validator-msg {
	display: block !important;
	opacity: 1 !important;
	margin: 0.4rem 0 0;
	padding: 0;
	width: 100%;
	font-size: 0.90rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.35;
	color: #dc2626;
}

.bootstrap-select.invalid > .dropdown-toggle {
	border-color: #dc2626 !important;
}

/* ------------------------------------------------------------
   Equal height: put .eq-height on a parent wrapping 2+ children
   ------------------------------------------------------------ */
.eq-height {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.eq-height > * {
	display: flex;
	flex-direction: column;
}

.eq-height > * > * {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
}

@media (max-width: 767.98px) {
	.eq-height:not(.eq-height--always) {
		display: block;
	}

	.eq-height:not(.eq-height--always) > * {
		display: block;
	}

	.eq-height:not(.eq-height--always) > * > * {
		height: auto;
	}
}

/* ------------------------------------------------------------
   Compact listing FAQ editor (seller/buyer add-edit)
   ------------------------------------------------------------ */
.b4b-faq-editor--front {
	margin: 0;
}

.b4b-faq-editor--front .b4b-faq-editor__toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.b4b-faq-editor--front .b4b-faq-editor__title.field-title {
	margin: 0 0 4px;
	font-size: 1.15rem;
}

.b4b-faq-editor--front .b4b-faq-editor__help {
	margin: 0;
	font-size: 13px;
	color: var(--b4b-form-muted);
	line-height: 1.4;
}

.b4b-faq-editor--front .b4b-faq-editor__add {
	flex: 0 0 auto;
	white-space: nowrap;
	min-height: 34px;
	padding: 4px 12px;
	font-size: 12px;
}

.b4b-faq-editor--front .b4b-faq-editor__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	padding: 8px;
	background: var(--b4b-form-surface-soft);
	border: 1px solid var(--b4b-form-border);
	border-radius: var(--b4b-form-radius);
}

.b4b-faq-editor--front .b4b-faq-editor__num {
	flex: 0 0 22px;
	height: 22px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--b4b-form-heading);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.b4b-faq-editor--front .b4b-faq-editor__fields {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	gap: 6px;
}

.b4b-faq-editor--front .b4b-faq-editor__fields input,
.b4b-faq-editor--front .b4b-faq-editor__fields textarea {
	width: 100%;
	margin: 0;
}

.b4b-faq-editor--front .b4b-faq-editor__fields textarea {
	min-height: 52px;
	resize: vertical;
}

.b4b-faq-editor--front .b4b-faq-editor__remove {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #9ca3af;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.b4b-faq-editor--front .b4b-faq-editor__remove:hover {
	color: var(--b4b-form-required);
}

.b4b-form-accordion {
	margin: 0 0 1.5rem;
	border: 1px solid var(--b4b-form-border, #d1d5db);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.b4b-form-accordion__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--b4b-form-heading, #111827);
}

.b4b-form-accordion__summary::-webkit-details-marker {
	display: none;
}

.b4b-form-accordion__summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.b4b-form-accordion[open] > .b4b-form-accordion__summary::after {
	transform: rotate(-135deg);
}

.b4b-form-accordion__body {
	padding: 0 16px 16px;
}

.b4b-faq-editor__handle {
	flex: 0 0 18px;
	width: 18px;
	margin-top: 10px;
	cursor: grab;
	background: repeating-linear-gradient(
		to bottom,
		#9ca3af 0,
		#9ca3af 2px,
		transparent 2px,
		transparent 4px
	);
	height: 14px;
	opacity: 0.7;
}

.b4b-faq-editor__handle:active {
	cursor: grabbing;
}

.b4b-faq-editor__placeholder {
	min-height: 72px;
	margin: 0 0 8px;
	border: 1px dashed var(--b4b-form-border, #d1d5db);
	border-radius: var(--b4b-form-radius, 8px);
	background: #f8fafc;
}

.image-uploader .uploaded .uploaded-image,
.image-uploader .uploaded .uploaded-image {
	cursor: grab;
}

.image-uploader .uploaded .uploaded-image--placeholder,
.image-uploader .uploaded .uploaded-image--placeholder {
	border: 1px dashed #9ca3af;
	background: #e5e7eb;
}
