/**
 * Fluent Forms, restyled to the Jaffsons design.
 *
 * The plugin ships its own stylesheet, so these rules map its class names onto
 * the design's chamfered inputs, mono labels and gold focus ring rather than
 * dequeuing it and rebuilding the form's layout from scratch.
 */

.jaffsons-form .fluentform .ff-el-group { margin-bottom: 1.25rem; }

/* Labels: the design's mono eyebrow treatment. */
.jaffsons-form .fluentform .ff-el-input--label label {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	color: #566779;
	margin-bottom: 0.625rem;
}

.jaffsons-form .fluentform .ff-el-is-required.asterisk-right label:after { color: #B98426; }

/* Inputs: square, hairline ring, gold focus. */
.jaffsons-form .fluentform .ff-el-form-control {
	width: 100%;
	border: 0;
	border-radius: 0;
	background: #fff;
	padding: 0.875rem 1rem;
	font-family: Inter, system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #050E1B;
	box-shadow: inset 0 0 0 1px #DFE6EF;
	transition: box-shadow 0.2s;
}

.jaffsons-form .fluentform .ff-el-form-control::placeholder { color: #A1AFC2; }

.jaffsons-form .fluentform .ff-el-form-control:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px #D4A13C;
}

.jaffsons-form .fluentform select.ff-el-form-control {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566779' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.1rem;
	padding-right: 2.6rem;
}

.jaffsons-form .fluentform textarea.ff-el-form-control { min-height: 9rem; resize: vertical; }

/* Two-up layout above the small breakpoint, matching the original grid. */
@media (min-width: 640px) {
	.jaffsons-form .fluentform .ff-t-cell { padding: 0; }
	.jaffsons-form .fluentform .ff-t-container { gap: 1.25rem; }
}

/* Submit button: the design's navy chamfered .btn, arrow and sheen included. */
.jaffsons-form .fluentform .ff-btn-submit,
.jaffsons-form .fluentform .ff_btn_style {
	--chamfer: 12px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	overflow: hidden;
	background: #0A1A30 !important;
	color: #fff !important;
	border: 0;
	border-radius: 0;
	padding: 0.9375rem 1.625rem;
	font-family: Inter, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
	transition: transform 0.25s cubic-bezier(0.2,0.7,0.3,1), background-color 0.25s, box-shadow 0.3s;
}

@media (min-width: 640px) {
	.jaffsons-form .fluentform .ff-btn-submit { width: auto; }
}

/* Trailing arrow, matching the button icon in the rest of the design. */
.jaffsons-form .fluentform .ff-btn-submit:after {
	content: '';
	flex: none;
	width: 1rem;
	height: 1rem;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Hover sheen. */
.jaffsons-form .fluentform .ff-btn-submit:before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 38%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
	transform: translateX(-140%) skewX(-18deg);
	pointer-events: none;
}

.jaffsons-form .fluentform .ff-btn-submit:hover:before { animation: jaffsons-btn-sheen 0.85s ease-out; }

@keyframes jaffsons-btn-sheen { to { transform: translateX(320%) skewX(-18deg); } }

.jaffsons-form .fluentform .ff-btn-submit:hover {
	background: #153356 !important;
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -18px rgba(10,26,48,0.7);
}

.jaffsons-form .fluentform .ff-btn-submit:active { transform: translateY(0); }

/* Validation and confirmation messages. */
.jaffsons-form .fluentform .error.text-danger,
.jaffsons-form .fluentform .ff-el-is-error .error {
	color: #C7362B;
	font-size: 12.5px;
	margin-top: 0.375rem;
}

.jaffsons-form .fluentform .ff-el-is-error .ff-el-form-control {
	box-shadow: inset 0 0 0 2px #E39A94;
}

.jaffsons-form .ff-message-success {
	border: 0;
	border-left: 2px solid #D4A13C;
	border-radius: 0;
	background: rgba(248,237,210,0.4);
	color: #0A1A30;
	padding: 1rem 1.25rem;
	font-size: 15px;
}