/**
 * Shared Fluent Form skin for Gutenberg Card + Minimal templates.
 * Scoped to body.legalion-gutenberg-card / body.legalion-gutenberg-order.
 * Do not target form IDs (.fluentform_wrapper_N).
 */

body.legalion-gutenberg-card .fluentform,
body.legalion-gutenberg-card .ff-el-group,
body.legalion-gutenberg-order .fluentform,
body.legalion-gutenberg-order .ff-el-group {
	font-family: "Objektiv Mk1 Trial", sans-serif;
}

body.legalion-gutenberg-card .fluentform,
body.legalion-gutenberg-card .frm-fluent-form,
body.legalion-gutenberg-order .fluentform,
body.legalion-gutenberg-order .frm-fluent-form {
	max-width: 800px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

body.legalion-gutenberg-card .ff-el-input--label label,
body.legalion-gutenberg-card .ff-el-input--label,
body.legalion-gutenberg-order .ff-el-input--label label,
body.legalion-gutenberg-order .ff-el-input--label {
	color: #404040;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.25rem;
	margin-bottom: 0.375rem;
}

body.legalion-gutenberg-card .ff-el-input--label .ff-el-is-required::after,
body.legalion-gutenberg-card .ff-el-is-required.asterisk-right label::after,
body.legalion-gutenberg-card .asterisk-right label::after,
body.legalion-gutenberg-order .ff-el-input--label .ff-el-is-required::after,
body.legalion-gutenberg-order .ff-el-is-required.asterisk-right label::after,
body.legalion-gutenberg-order .asterisk-right label::after {
	color: #8a5ac3;
}

body.legalion-gutenberg-card .ff-el-form-control,
body.legalion-gutenberg-card select.ff-el-form-control,
body.legalion-gutenberg-card textarea.ff-el-form-control,
body.legalion-gutenberg-order .ff-el-form-control,
body.legalion-gutenberg-order select.ff-el-form-control,
body.legalion-gutenberg-order textarea.ff-el-form-control {
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	background: #fff;
	color: #171717;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	padding: 10px 14px;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
}

body.legalion-gutenberg-card textarea.ff-el-form-control {
	min-height: 120px;
	padding: 12px;
	resize: vertical;
}

body.legalion-gutenberg-card .ff-el-form-control::placeholder,
body.legalion-gutenberg-order .ff-el-form-control::placeholder {
	color: #737373;
}

body.legalion-gutenberg-card .ff-el-form-control:focus,
body.legalion-gutenberg-card select.ff-el-form-control:focus,
body.legalion-gutenberg-card textarea.ff-el-form-control:focus,
body.legalion-gutenberg-order .ff-el-form-control:focus,
body.legalion-gutenberg-order select.ff-el-form-control:focus,
body.legalion-gutenberg-order textarea.ff-el-form-control:focus {
	border-color: #633e8b; /* brand-800 */
	outline: none;
	box-shadow: 0 0 0 2px rgba(99, 62, 139, 0.22);
}

body.legalion-gutenberg-card .ff-t-container,
body.legalion-gutenberg-order .ff-t-container {
	gap: 20px 32px;
	width: 100%;
}

body.legalion-gutenberg-card .ff-t-cell,
body.legalion-gutenberg-order .ff-t-cell {
	gap: 0;
}

body.legalion-gutenberg-card .ff-btn-submit,
body.legalion-gutenberg-card button.ff-btn-submit,
body.legalion-gutenberg-order .ff-btn-submit,
body.legalion-gutenberg-order button.ff-btn-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #633e8b !important;
	border: none !important;
	border-radius: 9999px !important;
	color: #fff !important;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
	padding: 12px 18px !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

body.legalion-gutenberg-card .ff-btn-submit:hover,
body.legalion-gutenberg-card button.ff-btn-submit:hover,
body.legalion-gutenberg-order .ff-btn-submit:hover,
body.legalion-gutenberg-order button.ff-btn-submit:hover {
	background: #513370 !important;
}

body.legalion-gutenberg-card .ff_submit_btn_wrapper {
	text-align: center;
	margin-top: 0.25rem;
}

body.legalion-gutenberg-order .ff_submit_btn_wrapper {
	margin-top: 0.5rem;
}

body.legalion-gutenberg-card .ff-el-form-check,
body.legalion-gutenberg-order .ff-el-form-check {
	align-items: flex-start;
}

body.legalion-gutenberg-card .ff-el-form-check-label,
body.legalion-gutenberg-card .ff_t_c {
	color: #404040;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

body.legalion-gutenberg-order .ff-el-form-check-label,
body.legalion-gutenberg-order .ff_t_c {
	color: #525252;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

body.legalion-gutenberg-card .ff_t_c a,
body.legalion-gutenberg-order .ff_t_c a {
	color: #513370;
	font-family: "Objektiv Mk1 Trial", sans-serif;
	text-decoration: none;
}

body.legalion-gutenberg-card .ff_t_c a:hover,
body.legalion-gutenberg-order .ff_t_c a:hover {
	text-decoration: underline;
}

body.legalion-gutenberg-card .ff-el-form-check-input,
body.legalion-gutenberg-order .ff-el-form-check-input {
	width: 16px;
	height: 16px;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	margin-top: 2px;
}
