/*
 * Fluent Forms, styled to match the original site forms.
 * Values measured from the live site (field height 40px, 10px row gap,
 * DM Sans, red submit button).
 */

.aa-widget-form .fluentform { font-family: "DM Sans", sans-serif; }
.aa-widget-form .fluentform fieldset { display: flex !important; flex-wrap: wrap; column-gap: 10px; row-gap: 10px; }
.aa-widget-form .fluentform fieldset > p { display: none; margin: 0; }
.aa-widget-form .fluentform .ff-el-group { margin: 0; width: 100%; }
.aa-widget-form .fluentform .ff-el-input--label { display: none; }
.aa-widget-form .fluentform .ff-t-container { display: flex; gap: 10px; margin: 0; width: 100%; }
.aa-widget-form .fluentform .ff-t-container .ff-t-cell { padding: 0; flex: 1 1 0; width: auto; }
.aa-widget-form .fluentform .ff-t-container .ff-t-cell .ff-el-group { margin: 0; }

.aa-widget-form .fluentform .ff-el-form-control {
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 21px;
	font-weight: 400;
	color: #1f2124;
	background-color: #fff;
	border: 1px solid #69727d;
	border-radius: 3px;
	min-height: 40px;
	height: 40px;
	padding: 8px 16px;
	box-shadow: none;
	width: 100%;
}
.aa-widget-form .fluentform textarea.ff-el-form-control { height: 108px; padding: 5px 14px; resize: vertical; }
.aa-widget-form .fluentform .ff-el-form-control::placeholder { color: inherit; opacity: .6; }
.aa-widget-form .fluentform .ff-el-form-control:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: 0; border-color: inherit; }

.aa-widget-form .fluentform .ff_submit_btn_wrapper { width: 100%; margin: 0; text-align: left; }
.aa-widget-form .fluentform .ff-btn-submit,
.aa-widget-form .fluentform .ff-btn-submit:hover,
.aa-widget-form .fluentform .ff-btn-submit:focus {
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	line-height: 16px;
	font-weight: 700;
	color: #fff;
	background-color: #d0021b;
	border: 0;
	border-radius: 4px;
	padding: 16px 32px;
	min-height: 40px;
	width: 100%;
	opacity: 1;
	box-shadow: none;
	transition: background-color .2s;
	white-space: normal;
	word-break: normal;
}
.aa-widget-form .fluentform .ff-btn-submit:hover { background-color: #9c0114; }
.aa-widget-form .ff-message-success { border: 0; box-shadow: none; padding: 10px 0; margin-top: 10px; font-family: "DM Sans", sans-serif; color: #5cb85c; }
.aa-widget-form .ff-el-is-error .ff-el-form-control { border-color: #d9534f; }
.aa-widget-form .error.text-danger { font-size: 12px; margin-top: 2px; }

/* Contact Us (16px text, light border, auto-width button). */
.aa-element-9108337 .fluentform .ff-el-form-control { font-size: 16px; line-height: 24px; height: 42px; color: #353640; border-color: rgba(138, 148, 166, .4); }
.aa-element-9108337 .fluentform textarea.ff-el-form-control { height: 108px; }
.aa-element-9108337 .fluentform .ff-btn-submit { width: auto; }

/* Blog post subscribe. */
.aa-element-d2ef679 .fluentform .ff-el-form-control { color: #353640; border-color: rgba(138, 148, 166, .4); }

/* GenAI Survival Kit (pink button, navy text). */
.aa-element-4f5172f .fluentform .ff-btn-submit,
.aa-element-4f5172f .fluentform .ff-btn-submit:hover { background-color: #cca1a6; color: #0c2437; }
@media (max-width: 767px) {
	.aa-element-4f5172f .fluentform .ff-t-container { flex-direction: column; }
}

/* Footer newsletter: email + button on one row (70/30). */
.aa-element-54f950e .fluentform fieldset { flex-wrap: nowrap; column-gap: 16px; }
.aa-element-54f950e .fluentform .ff-el-group:not(.ff_submit_btn_wrapper) { flex: 0 0 calc(70% - 8px); }
.aa-element-54f950e .fluentform .ff_submit_btn_wrapper { flex: 0 0 calc(30% - 8px); }
.aa-element-54f950e .fluentform .ff-el-form-control { font-size: 16px; line-height: 24px; background-color: #f8f8f8; border: 0; }
.aa-element-54f950e .fluentform .ff-btn-submit { font-weight: 400; line-height: 24px; padding: 8px 16px; }
@media (max-width: 767px) {
	.aa-element-54f950e .fluentform fieldset { flex-wrap: wrap; row-gap: 10px; }
	.aa-element-54f950e .fluentform .ff-el-group:not(.ff_submit_btn_wrapper),
	.aa-element-54f950e .fluentform .ff_submit_btn_wrapper { flex: 0 0 100%; }
}

/* wpautop wraps the form's inline script in a <p>; keep it from adding space. */
.aa-widget-form > p,
.aa-widget-form .fluentform > p { margin: 0; padding: 0; line-height: 0; }
