/* Shulick Law — fillable & signable documents. */

.lawdts-doc-hp {
	display: none;
}

/* The document renders like a paper sheet. */
.lawdts-doc-sheet {
	background: #ffffff;
	border: 1px solid #d3ccbd;
	border-radius: 4px;
	box-shadow: 0 18px 44px rgba(38, 36, 42, 0.16);
	margin: 1.5rem auto 0;
	max-width: 900px;
	padding: clamp(1.4rem, 4vw, 3rem);
}

.lawdts-doc-logo {
	display: block;
	height: auto;
	margin: 0 auto 1.2rem;
	max-width: min(260px, 60vw);
}

.lawdts-doc-body {
	font-size: 1.02rem;
	line-height: 1.7;
}

/* Inline fill-ins: underlined blanks, like a paper form. */
.lawdts-doc-input {
	background: rgba(30, 70, 52, 0.05);
	border: 0;
	border-bottom: 2px solid #26242a;
	border-radius: 0;
	font: inherit;
	min-width: min(260px, 100%);
	padding: 0.15rem 0.4rem;
}

.lawdts-doc-input--area {
	border: 1px solid #26242a;
	border-radius: 3px;
	display: block;
	margin-top: 0.4rem;
	width: 100%;
}

.lawdts-doc-input--date {
	min-width: 12ch;
}

.lawdts-doc-input:focus,
.lawdts-sig__typed:focus {
	background: rgba(30, 70, 52, 0.1);
	outline: 2px solid #1e4634;
	outline-offset: 1px;
}

.lawdts-doc-unplaced {
	margin-top: 1.1rem;
}

/* Signature pad */
.lawdts-sig {
	display: block;
	margin-top: 0.5rem;
	max-width: 620px;
}

.lawdts-sig__tabs {
	display: inline-flex;
	gap: 0.4rem;
	margin-bottom: 0.35rem;
}

.lawdts-sig__tab {
	background: transparent;
	border: 1px solid #d3ccbd;
	border-radius: 3px;
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	padding: 0.15rem 0.7rem;
}

.lawdts-sig__tab.is-active {
	background: #1e4634;
	border-color: #1e4634;
	color: #ffffff;
}

.lawdts-sig__pad {
	background: #fbfaf6;
	border: 1px dashed #6b6570;
	border-radius: 4px;
	display: block;
	height: auto;
	touch-action: none;
	width: 100%;
}

.lawdts-sig.is-missing .lawdts-sig__pad {
	border-color: #a33a2c;
	box-shadow: 0 0 0 3px rgba(163, 58, 44, 0.25);
}

.lawdts-sig__typed {
	border: 1px solid #d3ccbd;
	border-radius: 3px;
	font: inherit;
	margin-top: 0.4rem;
	padding: 0.35rem 0.5rem;
	width: 100%;
}

.lawdts-sig__actions {
	display: block;
	margin-top: 0.3rem;
}

.lawdts-sig__clear {
	background: transparent;
	border: 0;
	color: #6b6570;
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	padding: 0;
	text-decoration: underline;
}

/* Signer block under the sheet */
.lawdts-doc-signer {
	background: rgba(241, 237, 226, 0.92);
	border: 1px solid #d3ccbd;
	border-radius: 4px;
	display: grid;
	gap: 0.9rem;
	margin: 1.4rem auto 0;
	max-width: 900px;
	padding: clamp(1.2rem, 3vw, 1.8rem);
}

.lawdts-doc-signer > label {
	display: grid;
	gap: 0.3rem;
}

.lawdts-doc-signer input[type="text"],
.lawdts-doc-signer input[type="email"] {
	border: 1px solid #6b6570;
	border-radius: 3px;
	font: inherit;
	padding: 0.5rem 0.6rem;
}

.lawdts-doc-cc,
.lawdts-doc-consent {
	align-items: baseline;
	display: flex !important;
	flex-direction: row;
	gap: 0.55rem !important;
}

.lawdts-doc-send {
	background: #1e4634;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	padding: 0.85rem 1.4rem;
	text-transform: uppercase;
}

.lawdts-doc-send:hover,
.lawdts-doc-send:focus {
	background: #143122;
}

.lawdts-doc-send:disabled {
	cursor: wait;
	opacity: 0.7;
}

/* Confirmation */
.lawdts-doc-confirm {
	background: rgba(241, 237, 226, 0.94);
	border: 1px solid #d3ccbd;
	border-radius: 4px;
	margin: 2rem auto;
	max-width: 720px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

.lawdts-doc-download {
	background: #1e4634;
	border-radius: 4px;
	color: #ffffff !important;
	display: inline-block;
	padding: 0.8rem 1.3rem;
	text-decoration: none;
}

.lawdts-form-message.is-error {
	background: rgba(163, 58, 44, 0.12);
	border: 1px solid #a33a2c;
	border-radius: 4px;
	margin: 0 auto 1rem;
	max-width: 900px;
	padding: 0.7rem 1rem;
}

@media (max-width: 720px) {
	.lawdts-doc-sheet {
		padding: 1.1rem 0.9rem;
	}

	.lawdts-doc-input {
		min-width: 100%;
	}
}
