.nfm-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483647;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.nfm-modal[hidden] {
	display: none;
}

.nfm-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(10, 13, 26, 0.65);
	z-index: 1;
	cursor: pointer;
}

.nfm-modal-inner {
	position: relative;
	z-index: 2;
	background: #fff;
	overflow: hidden;
	max-width: 100%;
	max-height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-shadow: 0 20px 60px rgba(10, 13, 26, 0.35);
	box-shadow: 0 20px 60px rgba(10, 13, 26, 0.35);
	border-radius: 16px;
}

.nfm-body-scope {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.nfm-modal-content {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 56px 32px 32px;
}

.nfm-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 3;
	background: rgba(10, 13, 26, 0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0;
	-webkit-transition: background 0.15s;
	transition: background 0.15s;
}

.nfm-close:hover,
.nfm-close:focus {
	background: var(--uip-indigo, #282a71);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.nfm-modal.nfm-fullscreen-mobile {
		padding: 0;
	}

	.nfm-modal.nfm-fullscreen-mobile .nfm-modal-inner {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

	.nfm-modal.nfm-fullscreen-mobile .nfm-modal-content {
		padding: 56px 20px 20px;
	}
}

/* ====================
   Unidos In Power — modal content styling
==================== */

.nfm-modal-title {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--font-display, inherit);
	font-weight: 800;
	font-size: 1.6em;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--uip-indigo, #282a71);
}

.nfm-modal-content .nf-field-label label,
.nfm-modal-content .nf-field-label .nf-label-span {
	color: var(--uip-indigo, #282a71) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}

.nfm-modal-content .nf-field-container:not(.submit-container) .ninja-forms-field {
	background-color: #fff !important;
	color: var(--uip-indigo, #282a71) !important;
	font-size: 16px !important;
	border: 1px solid rgba(40, 42, 113, 0.2) !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	width: 100% !important;
	-webkit-box-sizing: border-box !important;
	box-sizing: border-box !important;
	-webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.nfm-modal-content .nf-field-container:not(.submit-container) .ninja-forms-field:focus {
	outline: none !important;
	border-color: var(--uip-indigo, #282a71) !important;
	box-shadow: 0 0 0 3px rgba(40, 42, 113, 0.12) !important;
}

/* The native <select> ignores the shared padding above (its OS chrome ring-fences
   space for the built-in arrow), so it renders thinner than the text inputs
   unless its own appearance is reset and the padding/arrow are redrawn by hand. */
.nfm-modal-content .nf-field-container:not(.submit-container) select.ninja-forms-field {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 12px 40px 12px 16px !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 d='M1 1l5 5 5-5' fill='none' stroke='%23282A71' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 12px 8px !important;
}

.nfm-modal-content .ninja-forms-req-symbol {
	color: var(--uip-coral, #e8563f) !important;
}

.nfm-modal-content .nf-error-msg,
.nfm-modal-content .nf-error .nf-field-element::after {
	color: var(--uip-coral, #e8563f) !important;
	font-size: 13px !important;
}

.nfm-modal-content .nf-error .ninja-forms-field {
	border-color: var(--uip-coral, #e8563f) !important;
}

.nfm-modal-content .submit-container .ninja-forms-field,
.nfm-modal-content input[type="button"].ninja-forms-field,
.nfm-modal-content input[type="submit"].ninja-forms-field {
	background-color: var(--uip-indigo, #282a71) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	padding: 14px 32px !important;
	letter-spacing: 0.02em !important;
	cursor: pointer !important;
}

.nfm-modal-content .submit-container .ninja-forms-field:hover,
.nfm-modal-content input[type="button"].ninja-forms-field:hover,
.nfm-modal-content input[type="submit"].ninja-forms-field:hover {
	opacity: 0.9;
}
