/* Elementor Forms Signature — frontend styles (v2.0.0) */

.efs-sig-wrap {
	display: block;
	max-width: 100%;
}

.efs-sig-modes {
	display: inline-flex;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 4px;
	margin: 0 0 12px;
	gap: 2px;
}

.efs-sig-mode-btn {
	background: transparent;
	border: 0;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 500;
	color: #4B5563;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

/* LVHA order */
.efs-sig-mode-btn:link    { color: #4B5563; }
.efs-sig-mode-btn:visited { color: #4B5563; }
.efs-sig-mode-btn:hover   { background: #e5ebf2; color: #1a2330; }
.efs-sig-mode-btn:active  { background: #d8e0e8; }
.efs-sig-mode-btn:focus-visible { outline: 2px solid #0F9B4C; outline-offset: 2px; }

.efs-sig-mode-btn.is-active {
	background: #fff;
	color: #0F9B4C;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.efs-sig-pane {
	display: block;
}

.efs-sig-pane[hidden] {
	display: none;
}

.efs-sig-box {
	position: relative;
	border: 2px dashed #d0d7de;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s;
}

.efs-sig-box:focus-within,
.efs-sig-box:hover {
	border-color: #0F9B4C;
}

.efs-sig-canvas {
	display: block;
	width: 100%;
	cursor: crosshair;
	touch-action: none;
}

.efs-sig-canvas:focus-visible {
	outline: 3px solid #0F9B4C;
	outline-offset: -3px;
}

.efs-sig-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #9ca3af;
	font-size: 14px;
	pointer-events: none;
	user-select: none;
}

.efs-sig-clear {
	background: #fff;
	color: #4B5563;
	border: 1px solid #d0d7de;
	padding: 8px 16px;
	font-size: 13px;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 8px;
	font-weight: 500;
}

.efs-sig-clear:link    { color: #4B5563; }
.efs-sig-clear:visited { color: #4B5563; }
.efs-sig-clear:hover   { background: #f8fafc; border-color: #9ca3af; color: #1a2330; }
.efs-sig-clear:active  { background: #f1f5f9; }
.efs-sig-clear:focus-visible { outline: 2px solid #0F9B4C; outline-offset: 1px; }

.efs-sig-typed-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1a2330;
	font-size: 14px;
}

.efs-sig-typed-input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #d0d7de;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
	background: #fff;
	color: #1a2330;
	transition: border-color 0.15s;
}

.efs-sig-typed-input:focus {
	outline: none;
	border-color: #0F9B4C;
	box-shadow: 0 0 0 3px rgba(15, 155, 76, 0.15);
}

.efs-sig-typed-preview {
	font-family: "Brush Script MT", "Lucida Handwriting", "Snell Roundhand", cursive;
	font-size: 32px;
	color: #1a2330;
	min-height: 50px;
	margin-top: 12px;
	padding: 8px 14px;
	background: #f8fafc;
	border-radius: 6px;
	border-left: 3px solid #0F9B4C;
}

.efs-sig-typed-preview:empty {
	display: none;
}

.efs-sig-consent {
	margin-top: 14px;
	padding: 12px 14px;
	background: #f0f7f3;
	border: 1px solid #b8d8c4;
	border-radius: 6px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.efs-sig-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #0F9B4C;
}

.efs-sig-consent label {
	font-size: 13px;
	line-height: 1.5;
	color: #1a2330;
	cursor: pointer;
}

/* High-contrast preference */
@media (prefers-contrast: more) {
	.efs-sig-box { border-color: #000; border-style: solid; }
	.efs-sig-mode-btn.is-active { border: 2px solid #000; }
	.efs-sig-consent { border-color: #000; }
	.efs-sig-typed-input { border-color: #000; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.efs-sig-mode-btn,
	.efs-sig-box,
	.efs-sig-typed-input {
		transition: none;
	}
}

/* ========== FORM DISPLAY / PAGE STYLES ========== */
/* These styles format the signed document page/template */

.efs-form-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 36px 24px;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	color: #1a2330;
	line-height: 1.6;
}

.efs-form-header {
	background: linear-gradient(135deg, #0F9B4C 0%, #0A6F36 100%);
	color: #fff;
	padding: 28px 24px;
	text-align: center;
	border-radius: 8px;
	margin-bottom: 32px;
}

.efs-form-header h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.efs-form-header .meta {
	font-size: 12px;
	opacity: 0.9;
	margin-top: 6px;
	letter-spacing: 0.3px;
}

.efs-form-field {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee;
}

.efs-form-field:last-child {
	border-bottom: 0;
}

.efs-form-field-label {
	font-weight: 700;
	color: #0A6F36;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	display: block;
}

.efs-form-field-value {
	font-size: 14px;
	color: #1a2330;
	padding: 10px 14px;
	background: #f7faf8;
	border-left: 3px solid #0F9B4C;
	border-radius: 4px;
	word-break: break-word;
}

.efs-form-field-value.sig {
	background: #fff;
	text-align: center;
	padding: 14px;
	border-left: 0;
}

.efs-form-field-value.sig img {
	max-width: 280px;
	max-height: 120px;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: inline-block;
}

.efs-form-field-value.typed {
	font-family: "Brush Script MT", "Lucida Handwriting", cursive;
	font-size: 28px;
	text-align: center;
	color: #1a2330;
	border-left: 0;
	background: #fff;
	padding: 14px;
}

.efs-form-cert {
	margin-top: 30px;
	padding: 18px;
	background: #f0f7f3;
	border: 1px solid #b8d8c4;
	border-radius: 6px;
	font-size: 11px;
	color: #4B5563;
}

.efs-form-cert h2 {
	font-size: 13px;
	color: #0A6F36;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
}

.efs-form-cert table {
	width: 100%;
	border-collapse: collapse;
}

.efs-form-cert td {
	padding: 4px 8px;
	vertical-align: top;
}

.efs-form-cert td:first-child {
	font-weight: 700;
	width: 130px;
	color: #0A6F36;
}

.efs-form-cert .hash {
	font-family: Courier, monospace;
	font-size: 10px;
	word-break: break-all;
	background: #fff;
	padding: 4px 8px;
	border-radius: 3px;
	display: block;
}

.efs-form-footer {
	margin-top: 30px;
	padding-top: 14px;
	border-top: 2px solid #0F9B4C;
	text-align: center;
	font-size: 11px;
	color: #6B7280;
}
