/**
 * Red Wing Zoho Forms: public skins.
 *
 * Demo / pricing follow the red-section white card (2-column fields).
 * Contact follows the gray "Send us a message" card.
 */

.rwzf-form {
	--rwzf-brick: #ba0f00;
	--rwzf-brick-dark: #8c0a00;
	--rwzf-ink: #1c1c1c;
	--rwzf-muted: #6b7280;
	--rwzf-soft: #f3f4f6;
	--rwzf-line: #e5e7eb;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	color: var(--rwzf-ink);
}

.rwzf-form *,
.rwzf-form *::before,
.rwzf-form *::after {
	box-sizing: border-box;
}

.rwzf-form span[id^="dt_"],
.rwzf-form #imgBlock,
.rwzf-form img#refImage,
.rwzf-form #SIGNUP_HEADING:empty,
.rwzf-form #SIGNUP_DESCRIPTION:empty,
.rwzf-form #selectMailingLists > div[name="SIGNUP_FORM_LIST"],
.rwzf-form #REQUIRED_FIELD_TEXT {
	display: none !important;
}

/* Zoho hidden fields (prefilled, still submitted): the importer keeps ishidden, not Zoho's inline display:none. */
.rwzf-form [ishidden="true"] {
	display: none !important;
}

.rwzf-form .rwzf-sr-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hidden by an inline display:none (renderer); optin.min.js clears it to show the message. */
.rwzf-form #Zc_SignupSuccess {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #c2e19a;
	background: #f3faea;
	color: #2f6b4f;
}

/*
 * Zoho sizes the icon cell width="10%", which pushes the message away from the
 * icon on wide cards. Browsers ignore max-width on table cells, so set width:
 * 40px border-box is the 30px icon plus 10px of padding.
 */
.rwzf-form #Zc_SignupSuccess td:has(> img.successicon) {
	width: 40px;
	padding-right: 10px;
}

.rwzf-form form,
.rwzf-form #SIGNUP_PAGE,
.rwzf-form #signupMainDiv,
.rwzf-form #SIGNUP_BODY_ALL,
.rwzf-form #SIGNUP_BODY,
.rwzf-form .zcsffieldsdiv,
.rwzf-form .zcinputbox {
	width: 100%;
}

.rwzf-form [name="SIGNUP_FORM_LABEL"] {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--rwzf-ink);
}

.rwzf-form [name="SIGNUP_REQUIRED"] {
	color: var(--rwzf-brick);
}

.rwzf-form input[type="text"],
.rwzf-form input[type="email"],
.rwzf-form input[type="tel"],
.rwzf-form input[type="number"],
.rwzf-form select,
.rwzf-form textarea {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--rwzf-line);
	border-radius: 10px;
	background: var(--rwzf-soft);
	color: var(--rwzf-ink);
	font: inherit;
	font-size: 15px;
}

.rwzf-form textarea {
	min-height: 110px;
	resize: vertical;
}

.rwzf-form input::placeholder,
.rwzf-form textarea::placeholder {
	color: #9ca3af;
}

.rwzf-form input:focus,
.rwzf-form select:focus,
.rwzf-form textarea:focus {
	outline: 2px solid rgba(186, 15, 0, 0.28);
	outline-offset: 1px;
	border-color: var(--rwzf-brick);
	background: #fff;
}

.rwzf-form #selectMailingLists {
	margin: 4px 0 0;
	grid-column: 1 / -1;
}

.rwzf-form #listRelTable,
.rwzf-form #listRelTable td {
	width: 100%;
	border: 0;
	padding: 0;
}

/* Hanging indent: wrapped label text lines up with the first line, not under the box. */
.rwzf-form div:has(> input[type="checkbox"]) {
	--rwzf-check-indent: 26px; /* checkbox width + its right margin */
	width: auto;
	margin-left: var(--rwzf-check-indent);
}

.rwzf-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0 10px 0 calc(-1 * var(--rwzf-check-indent, 0px));
	accent-color: var(--rwzf-brick);
	vertical-align: middle;
}

.rwzf-form #listRelTable label,
.rwzf-form #listRelTable td {
	font-size: 13px;
	line-height: 1.45;
	color: var(--rwzf-muted);
}

.rwzf-form #zcWebOptin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 8px;
	padding: 14px 26px;
	border: 0;
	border-radius: 10px;
	background: var(--rwzf-brick);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(186, 15, 0, 0.32);
}

.rwzf-form #zcWebOptin:hover {
	background: var(--rwzf-brick-dark);
}

.rwzf-form .rwzf-trust {
	margin: 14px 0 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.45;
	color: var(--rwzf-muted);
}

.rwzf-form .rwzf-card-title {
	margin: 0 0 22px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111;
}

.rwzf-form .rwzf-unavailable {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdf0ef;
	color: var(--rwzf-brick);
	font-size: 14px;
}

.rwzf-form noscript p {
	margin: 0 0 12px;
	font-size: 14px;
}

/* Demo + pricing: white card on the red / photo sections. */
.rwzf-form--demo,
.rwzf-form--pricing {
	padding: 36px 36px 28px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.rwzf-form--demo .zcsffieldsdiv,
.rwzf-form--pricing .zcsffieldsdiv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"first last"
		"email phone"
		"company company";
	gap: 14px 16px;
}

.rwzf-form--demo .zcsffieldsdiv > div:not(:has(input)):not(:has(select)):not(:has(textarea)),
.rwzf-form--pricing .zcsffieldsdiv > div:not(:has(input)):not(:has(select)):not(:has(textarea)) {
	display: none;
}

.rwzf-form--demo .zcsffieldsdiv > div:has([name="FIRSTNAME"]),
.rwzf-form--pricing .zcsffieldsdiv > div:has([name="FIRSTNAME"]) {
	grid-area: first;
}

.rwzf-form--demo .zcsffieldsdiv > div:has([name="LASTNAME"]),
.rwzf-form--pricing .zcsffieldsdiv > div:has([name="LASTNAME"]) {
	grid-area: last;
}

.rwzf-form--demo .zcsffieldsdiv > div:has([name="CONTACT_EMAIL"]),
.rwzf-form--pricing .zcsffieldsdiv > div:has([name="CONTACT_EMAIL"]) {
	grid-area: email;
}

.rwzf-form--demo .zcsffieldsdiv > div:has([name="PHONE"]),
.rwzf-form--pricing .zcsffieldsdiv > div:has([name="PHONE"]) {
	grid-area: phone;
}

.rwzf-form--demo .zcsffieldsdiv > div:has([name="COMPANYNAME"]),
.rwzf-form--pricing .zcsffieldsdiv > div:has([name="COMPANYNAME"]) {
	grid-area: company;
}

.rwzf-form--demo .zcsffieldsdiv > div:has(select),
.rwzf-form--demo .zcsffieldsdiv > div:has(textarea),
.rwzf-form--pricing .zcsffieldsdiv > div:has(select),
.rwzf-form--pricing .zcsffieldsdiv > div:has(textarea) {
	grid-column: 1 / -1;
}

/* Contact: gray rounded card, white fields, stacked. */
.rwzf-form--contact {
	padding: 32px 28px 28px;
	background: var(--rwzf-soft);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.rwzf-form--contact .zcsffieldsdiv {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rwzf-form--contact input[type="text"],
.rwzf-form--contact input[type="email"],
.rwzf-form--contact input[type="tel"],
.rwzf-form--contact input[type="number"],
.rwzf-form--contact select,
.rwzf-form--contact textarea {
	background: #fff;
	border: 1px solid #e8eaee;
	border-radius: 8px;
}

/*
 * Success overlay + popup (printed once in the footer). optin.min.js shows
 * them by clearing their inline display:none, so never hide them here.
 */
.rwzf-success #zcOptinOverLay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: #000;
}

.rwzf-success #zcOptinSuccessPopup {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	box-sizing: border-box;
	width: min(700px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 36px;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	color: #1c1c1c;
}

.rwzf-success #closeSuccess {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7280;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.rwzf-success #closeSuccess:hover,
.rwzf-success #closeSuccess:focus-visible {
	background: #f3f4f6;
	color: #ba0f00;
}

/* Zoho's thank-you response carries fixed widths; the embed's head CSS overrode them. */
.rwzf-success #THANKS_PAGE_BODY_PARENT {
	width: 100% !important;
}

.rwzf-success #THANKS_PAGE_CONTAINER {
	padding: 0 !important;
}

.rwzf-success #THANKSPAGE {
	padding: 10px !important;
}

.rwzf-success #THANKS_PAGE_BODY {
	padding: 20px !important;
}

@media (max-width: 640px) {
	.rwzf-form--demo,
	.rwzf-form--pricing {
		padding: 24px 20px 20px;
		border-radius: 16px;
	}

	.rwzf-form--demo .zcsffieldsdiv,
	.rwzf-form--pricing .zcsffieldsdiv {
		grid-template-columns: 1fr;
		grid-template-areas:
			"first"
			"last"
			"email"
			"phone"
			"company";
	}

	.rwzf-form--contact {
		padding: 24px 18px 20px;
	}

	.rwzf-success #zcOptinSuccessPopup {
		padding: 28px 20px;
		border-radius: 16px;
	}
}
