/* Front-end styles for the premium field types (Signature, Date/Time, Number
   Slider -- Stage 5, Days 69-72). Loaded alongside the free plugin's
   public.css (declared as a dependency, see Lavender_Form_Pro_Fields::register())
   so it inherits the same light-touch, theme-friendly baseline rather than
   redefining .lavender-form-field from scratch. */

.lavender-form-signature__hint {
	margin: 0;
	font-size: 0.85em;
	color: #646970;
	font-weight: 400;
}

.lavender-form-signature__pad {
	display: block;
	width: 100%;
	max-width: 400px;
	height: 140px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
	/* A signature pad is inherently a pointer/touch surface -- touch-action: none stops the
	   browser from also interpreting a finger stroke as a page-scroll gesture on mobile. */
	touch-action: none;
	cursor: crosshair;
}

.lavender-form-signature__pad:focus-visible {
	outline: none;
	border-color: #8c5fbc;
	box-shadow: 0 0 0 2px rgba(140, 95, 188, 0.2);
}

.lavender-form-signature__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.lavender-form-signature__clear {
	background: none;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 5px 12px;
	font-size: 0.85em;
	cursor: pointer;
	color: #1d2327;
}

.lavender-form-signature__clear:hover {
	border-color: #8c5fbc;
	color: #8c5fbc;
}

.lavender-form-signature__status {
	font-size: 0.85em;
	color: #646970;
}

.lavender-form-field-datetime input[type="date"],
.lavender-form-field-datetime input[type="time"],
.lavender-form-field-datetime input[type="datetime-local"] {
	width: 100%;
	max-width: 260px;
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
	font-family: inherit;
	background: #fff;
	color: #1d2327;
}

.lavender-form-field-datetime input:focus {
	outline: none;
	border-color: #8c5fbc;
	box-shadow: 0 0 0 2px rgba(140, 95, 188, 0.2);
}

.lavender-form-slider {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lavender-form-slider input[type="range"] {
	flex: 1;
	accent-color: #8c5fbc;
}

.lavender-form-slider__value {
	min-width: 2.5em;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Address autocomplete (Stage 5, Days 73-76). The <fieldset>/<legend> pair
   itself inherits the free plugin's own field spacing from public.css --
   only the internal subfield layout is defined here. */

.lavender-form-field-address {
	border: none;
	padding: 0;
	margin: 0 0 1.2em;
}

.lavender-form-address__hint {
	margin: 0 0 8px;
	font-size: 0.85em;
	color: #646970;
	font-weight: 400;
}

.lavender-form-address__row {
	display: flex;
	gap: 12px;
	margin: 0 0 10px;
}

.lavender-form-address__row--split .lavender-form-address__field {
	flex: 1;
}

.lavender-form-address__field {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 4px;
}

.lavender-form-address__field label {
	font-size: 0.85em;
	color: #646970;
}

.lavender-form-address__field input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
	font-family: inherit;
	background: #fff;
	color: #1d2327;
}

.lavender-form-address__field input:focus {
	outline: none;
	border-color: #8c5fbc;
	box-shadow: 0 0 0 2px rgba(140, 95, 188, 0.2);
}

/* Payment field (Stage 5, Days 77-82). */

.lavender-form-field-payment {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 14px 16px;
	margin: 0 0 1.2em;
}

.lavender-form-payment__label {
	margin: 0 0 10px;
	font-weight: 600;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.lavender-form-payment__amount {
	font-weight: 700;
	color: #8c5fbc;
}

.lavender-form-payment__method {
	margin: 0 0 12px;
	padding: 10px 0;
}

.lavender-form-payment__method--card + .lavender-form-payment__method--upi {
	border-top: 1px dashed #ddd;
}

.lavender-form-payment__pay-button {
	background: #8c5fbc;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px 18px;
	font-size: 0.95em;
	cursor: pointer;
}

.lavender-form-payment__pay-button:hover {
	background: #7a4fab;
}

.lavender-form-payment__pay-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.lavender-form-payment__status {
	margin-left: 10px;
	font-size: 0.85em;
	color: #646970;
}

.lavender-form-payment__upi-hint {
	margin: 0 0 8px;
	font-size: 0.9em;
	color: #444;
}

.lavender-form-payment__qr {
	display: block;
	border: 1px solid #eee;
	border-radius: 4px;
}

.lavender-form-payment__upi-ref-row {
	margin: 10px 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 320px;
}

.lavender-form-payment__upi-ref-row label {
	font-size: 0.85em;
	color: #646970;
}

.lavender-form-payment__upi-ref-row input {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}
