/* ==========================================================================
   GF Signature OTP — injected OTP section styles
   (!important: Gravity Forms / theme styles otherwise override these.)
   ========================================================================== */

/* Injected OTP section sits between the email field and the next field */
.gform_wrapper .gf-otp-section,
.gform_wrapper [id^='gf_sig_otp_section_'] {
	margin-top: 0.75em !important;
	grid-column: span 12 !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-sending,
body .gf-otp-sending {
	margin: 0 !important;
	font-weight: 700 !important;
	font-style: normal !important;
	color: #555 !important;
}

.gform_wrapper .gf-otp-sending-line,
body .gf-otp-sending-line {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.55em !important;
	vertical-align: middle !important;
	flex-wrap: nowrap !important;
}

.gform_wrapper .gf-otp-spinner,
body .gf-otp-spinner {
	display: block !important;
	width: 1.1em !important;
	height: 1.1em !important;
	min-width: 1.1em !important;
	min-height: 1.1em !important;
	box-sizing: border-box !important;
	border: 0.15em solid rgba(0, 0, 0, 0.12) !important;
	border-top-color: currentColor !important;
	border-radius: 50% !important;
	animation: gf-otp-spin 0.65s linear infinite !important;
	animation-name: gf-otp-spin !important;
	animation-duration: 0.65s !important;
	animation-timing-function: linear !important;
	animation-iteration-count: infinite !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	vertical-align: middle !important;
}

@keyframes gf-otp-spin {
	to {
		transform: rotate(360deg);
	}
}

.gform_wrapper .gf-otp-input-wrap {
	width: 100% !important;
	max-width: 24em !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-label {
	display: block !important;
	margin-bottom: 0.35em !important;
	font-weight: 600 !important;
}

/* Code field + Resend on one row; countdown on the next line */
.gform_wrapper .gf-otp-code-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.5em !important;
	margin: 0 0 0.25em !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-code-row .gf-otp-input {
	flex: 1 1 9em !important;
	width: auto !important;
	min-width: 7em !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0.4em 0.6em !important;
	font-size: 1em !important;
	line-height: 1.25 !important;
	border: 1px solid #8d96a0 !important;
	border-radius: 3px !important;
	box-sizing: border-box !important;
	display: block !important;
}

.gform_wrapper .gf-otp-resend-btn {
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0.45em 0.95em !important;
	font-size: 1em !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	line-height: 1.25 !important;
	color: #2c3338 !important;
	background: #f0f0f1 !important;
	border: 1px solid #8c8f94 !important;
	border-radius: 3px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.gform_wrapper .gf-otp-resend-btn:hover:not(:disabled) {
	background: #e8e8ea !important;
	border-color: #50575e !important;
	color: #1d2327 !important;
}

.gform_wrapper .gf-otp-resend-btn:disabled {
	opacity: 0.55 !important;
	cursor: default !important;
}

.gform_wrapper .gf-otp-countdown-row {
	display: block !important;
	width: 100% !important;
	margin: 0 0 0.35em !important;
	min-height: 1.3em !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-countdown {
	display: block !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
	color: #666 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ==========================================================================
   GF Signature OTP — Mode A send row (no email input)
   ========================================================================== */

.gform_wrapper .gf-otp-send-row {
	margin-bottom: 0.75em !important;
}

.gform_wrapper .gf-otp-email-hint {
	margin: 0 0 0.5em !important;
	font-size: 0.9em !important;
	color: #555 !important;
	line-height: 1.4 !important;
}

/* ==========================================================================
   GF Signature OTP — Mode B inline email row
   ========================================================================== */

.gform_wrapper .gf-otp-email-row {
	margin-bottom: 0.75em !important;
}

.gform_wrapper .gf-otp-email-input-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.5em !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-user-email {
	flex: 1 1 14em !important;
	padding: 0.4em 0.6em !important;
	font-size: 1em !important;
	border: 1px solid #8d96a0 !important;
	border-radius: 3px !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gf-otp-send-btn {
	flex: 0 0 auto !important;
	padding: 0.45em 1.1em !important;
	font-size: 1em !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	line-height: 1.25 !important;
	cursor: pointer !important;
	border-radius: 3px !important;
	border: 1px solid #0073aa !important;
	background: #0073aa !important;
	color: #fff !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.gform_wrapper .gf-otp-send-btn:disabled {
	opacity: 0.5 !important;
	cursor: default !important;
}

/* ==========================================================================
   GF Signature OTP — Verify button
   ========================================================================== */

.gform_wrapper .gf-otp-verify-btn {
	flex: 0 0 auto !important;
	padding: 0.45em 1.1em !important;
	font-size: 1em !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	line-height: 1.25 !important;
	cursor: pointer !important;
	border-radius: 3px !important;
	border: 1px solid #0073aa !important;
	background: #0073aa !important;
	color: #fff !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.gform_wrapper .gf-otp-verify-btn:disabled {
	opacity: 0.5 !important;
	cursor: default !important;
}

/* ==========================================================================
   GF Signature OTP — Inline feedback (error messages)
   ========================================================================== */

.gform_wrapper .gf-otp-feedback {
	min-height: 1.3em !important;
	margin: 0.3em 0 0 !important;
	font-size: 0.9em !important;
	line-height: 1.4 !important;
}

.gform_wrapper .gf-otp-feedback.gf-otp-feedback--error {
	color: #dc3232 !important;
}

/* ==========================================================================
   GF Signature OTP — Identity verified indicator
   ========================================================================== */

.gform_wrapper [id^='gf_sig_otp_verified_'],
.gform_wrapper .gf-otp-verified {
	display: none !important;
	align-items: center !important;
	gap: 0.4em !important;
	margin-top: 0.6em !important;
	font-weight: 600 !important;
	color: #2a7d2a !important;
	font-size: 0.95em !important;
}

.gform_wrapper [id^='gf_sig_otp_verified_'].gf-otp-verified--shown,
.gform_wrapper .gf-otp-verified.gf-otp-verified--shown {
	display: flex !important;
	grid-column: span 12 !important;
	margin-top: 0 !important;
	position: relative !important;
	top: -48px !important;
}

.gform_wrapper .gf-otp-verified-icon {
	font-size: 1.1em !important;
	line-height: 1 !important;
}
