/* ==========================================================================
   Zoho Form – AHC homepage news alerts
   Matches the existing "Sign up for AHC news alerts" form (#hpContactBox)
   on austcohealthcare.com. Replaces Zoho's stock stylesheet, which reset
   html/body/headings globally and fought Salient.
   Original Zoho CSS kept in zoho-form.original.css for reference.
   ========================================================================== */

#hpContactBox {
	--ahc-accent: #0094ff;          /* Salient accent colour */
	--ahc-field-bg: rgba(255, 255, 255, 0.1);
	--ahc-field-border: #fff;
	--ahc-text: #fff;
	--ahc-error: #ff8a8a;           /* readable on the dark navy overlay */
	--ahc-radius: 6px;
	--ahc-height: 58px;
}

/* ---------- Layout reset (scoped – no global resets) ---------- */
#hpContactBox .zf-templateWidth,
#hpContactBox .zf-templateWrapper {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}

#hpContactBox .zf-templateWrapper ul,
#hpContactBox .zf-templateWrapper li {
	list-style: none;
	margin: 0;
	padding: 0;
}

#hpContactBox .zf-subContWrap {
	padding: 0;
}

#hpContactBox .zf-clearBoth,
#hpContactBox .zf-eclearBoth {
	clear: both;
}

/* Salient's heading already titles this section */
#hpContactBox .zf-tempHeadBdr,
#hpContactBox .zf-tempHeadContBdr {
	display: none;
}

/* ---------- Rows ---------- */
#hpContactBox .zf-tempFrmWrapper {
	text-align: left;
	margin: 0 0 1em;
	padding: 0;
	float: none;
	width: 100%;
}

/* Labels hidden – placeholders are used, same as the current form.
   Kept available to screen readers. */
#hpContactBox .zf-labelName,
#hpContactBox .zf-nameWrapper label,
#hpContactBox .zf-tempContDiv > span > label,
#hpContactBox .zf-phwrapper label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#hpContactBox .zf-tempContDiv {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

#hpContactBox .zf-tempContDiv > span {
	display: block;
	width: 100%;
}

/* First / Last name side by side, stacked on phones */
#hpContactBox .zf-nameWrapper {
	display: flex;
	gap: 1em;
}

#hpContactBox .zf-nameWrapper span {
	display: block;
	flex: 1 1 0;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Zoho's clearfix div would add an extra flex gap */
#hpContactBox .zf-nameWrapper .zf-clearBoth {
	display: none;
}

@media (max-width: 690px) {
	#hpContactBox .zf-nameWrapper {
		flex-direction: column;
	}
}

/* ---------- Fields ---------- */
#hpContactBox .zf-tempContDiv input[type="text"],
#hpContactBox .zf-tempContDiv input[type="email"],
#hpContactBox .zf-tempContDiv input[type="tel"],
#hpContactBox .zf-tempContDiv textarea,
#hpContactBox .zf-tempContDiv select {
	width: 100% !important;
	height: var(--ahc-height);
	margin: 0;
	padding: 16px;
	box-sizing: border-box;
	border: 1px solid var(--ahc-field-border);
	border-radius: var(--ahc-radius);
	background: var(--ahc-field-bg);
	color: var(--ahc-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.3s, background-color 0.3s;
}

#hpContactBox .zf-tempContDiv textarea {
	height: auto;
	min-height: 120px;
}

#hpContactBox .zf-tempContDiv input::placeholder,
#hpContactBox .zf-tempContDiv textarea::placeholder {
	color: var(--ahc-text);
	opacity: 1;
}

#hpContactBox .zf-tempContDiv input:focus,
#hpContactBox .zf-tempContDiv textarea:focus,
#hpContactBox .zf-tempContDiv select:focus {
	border-color: var(--ahc-accent);
	background: rgba(255, 255, 255, 0.15);
	box-shadow: none;
}

/* Zoho's small/medium/large width classes – always full width here */
#hpContactBox .zf-small .zf-tempContDiv input,
#hpContactBox .zf-medium .zf-tempContDiv input,
#hpContactBox .zf-large .zf-tempContDiv input,
#hpContactBox .zf-namesmall .zf-tempContDiv input,
#hpContactBox .zf-namemedium .zf-tempContDiv input,
#hpContactBox .zf-namelarge .zf-tempContDiv input {
	width: 100% !important;
}

/* ---------- Messages ---------- */
#hpContactBox .zf-errorMessage {
	margin: 0;
	padding: 6px 0 0;
	color: var(--ahc-error);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

#hpContactBox .zf-important {
	color: var(--ahc-text) !important;
	font-size: inherit !important;
	margin-left: 2px;
}

#hpContactBox .zf-instruction {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	padding: 6px 0 0;
	word-break: normal;
}

/* ---------- Submit ---------- */
#hpContactBox .zf-fmFooter {
	margin: 0;
	padding: 0;
	text-align: center;
}

#hpContactBox .zf-fmFooter .zf-submitColor,
#hpContactBox .zf-submitColor {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: var(--ahc-height);
	margin: 0;
	padding: 15px 22px;
	border: 0;
	border-radius: var(--ahc-radius);
	background: var(--ahc-accent);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-transform: capitalize;
	cursor: pointer;
	transform: none;
	transition: opacity 0.45s cubic-bezier(0.25, 1, 0.33, 1);
}

#hpContactBox .zf-submitColor:hover,
#hpContactBox .zf-submitColor:focus {
	opacity: 0.85;
	transform: none;
}

#hpContactBox .zf-submitColor:disabled {
	opacity: 0.6;
	cursor: default;
}
