/* ─── Layout-shift prevention ───────────────────────────────────────────────── */
.bodp-caf {
	display: block;
	width: 100%;
}

/* ─── Form wrapper ─────────────────────────────────────────────────────────── */
.bodp-caf {
	background: #ffffff;
	border: 1px solid #e5eaf1;
	border-radius: 10px;
	box-sizing: border-box;
	color: #111827;
	font-size: 14px;
	padding: 24px;
	width: 100%;
	max-width: 100%;
}

.bodp-caf *,
.bodp-caf *::before,
.bodp-caf *::after {
	box-sizing: border-box;
}

/* ─── Notice ────────────────────────────────────────────────────────────────── */
.bodp-caf__notice {
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	padding: 10px 14px;
}

.bodp-caf__notice.is-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.bodp-caf__notice.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ─── Grid rows ─────────────────────────────────────────────────────────────── */
.bodp-caf__row {
	display: grid;
	gap: 14px;
	margin-bottom: 14px;
	min-height: 1px;
}

.bodp-caf__row--1 { grid-template-columns: 1fr; }
.bodp-caf__row--2 { grid-template-columns: 1fr 1fr; }
.bodp-caf__row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ─── Field labels (wrapping text + input) ───────────────────────────────────
   width:100% + min-width:0 makes them fill their grid cell.
   flex-direction:column stacks the label text above the input.          ── */
.bodp-caf label:not(.bodp-caf__checkbox) {
	color: #374151;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	width: 100%;
	min-width: 0;
	align-self: stretch;
}

.bodp-caf label em {
	color: #dc2626;
	font-style: normal;
}

/* ─── Inputs, selects & textarea ────────────────────────────────────────────── */
.bodp-caf input[type="text"],
.bodp-caf input[type="email"],
.bodp-caf input[type="tel"],
.bodp-caf input[type="number"],
.bodp-caf input[type="file"],
.bodp-caf select,
.bodp-caf textarea {
	background: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	font-size: 14px;
	font-weight: 400;
	padding: 10px 12px;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	box-sizing: border-box;
	min-height: 42px;
	display: block;
}

/* Select-specific: custom arrow, override theme shrinking */
.bodp-caf select {
	-webkit-appearance: none;
	appearance: none;
	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='none' stroke='%236b7280' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

.bodp-caf textarea {
	min-height: 90px;
	resize: vertical;
}

.bodp-caf input:focus,
.bodp-caf select:focus,
.bodp-caf textarea:focus {
	border-color: #0ea5e9;
	outline: none;
	box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

/* ─── Fieldset (Company Structure) ──────────────────────────────────────────── */
.bodp-caf__fieldset {
	border: 1px solid #e5eaf1;
	border-radius: 8px;
	margin: 0 0 18px;
	padding: 12px 14px;
}

.bodp-caf__fieldset legend {
	color: #374151;
	font-size: 13px;
	font-weight: 700;
	padding: 0 4px;
}

/* Options container: horizontal row, wraps on small screens */
.bodp-caf__checkboxes {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 4px;
}

/* Each radio option: label with radio + text side by side */
.bodp-caf__checkbox {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	width: auto !important;
	min-width: 0;
	align-self: auto !important;
}

/* Radio/checkbox inputs: fixed size, no style bleed from the broad input rule */
.bodp-caf__checkbox input[type="radio"],
.bodp-caf__checkbox input[type="checkbox"] {
	width: 16px !important;
	max-width: 16px !important;
	min-width: 16px !important;
	height: 16px !important;
	min-height: 16px !important;
	max-height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
	display: inline-block !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
	background: revert !important;
	border: revert !important;
	border-radius: revert !important;
	box-shadow: none !important;
}

/* ─── Section heading ────────────────────────────────────────────────────────── */
.bodp-caf__heading {
	border-top: 1px solid #e5eaf1;
	color: #111827;
	font-size: 15px;
	letter-spacing: 0.03em;
	margin: 8px 0 18px;
	padding-top: 20px;
	text-transform: uppercase;
}

/* ─── Submit button ──────────────────────────────────────────────────────────── */
.bodp-caf__submit {
	background: #111827;
	border: 1px solid #111827;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	margin-top: 6px;
	min-height: 44px;
	padding: 0 24px;
}

.bodp-caf__submit:hover,
.bodp-caf__submit:focus {
	background: #0ea5e9;
	border-color: #0ea5e9;
}

.bodp-caf__submit[disabled] {
	cursor: not-allowed;
	opacity: 0.65;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media ( max-width: 640px ) {
	.bodp-caf__row--2,
	.bodp-caf__row--3 {
		grid-template-columns: 1fr;
	}
}
