/* Zazella Capture — front end
   Colours and sizing come from CSS variables printed inline by the plugin. */

.zc-box {
	box-sizing: border-box;
	max-width: var(--zc-maxw, 640px);
	margin: 2em auto;
	padding: 26px 24px;
	background: var(--zc-bg, #FAF1EF);
	border: 1px solid var(--zc-border, #EBD6D2);
	border-radius: var(--zc-radius, 10px);
	color: var(--zc-text, #3C3C3C);
	text-align: center;
	font-family: inherit;
}

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

.zc-box [hidden] {
	display: none !important;
}

.zc-inner {
	max-width: 460px;
	margin: 0 auto;
}

.zc-box .zc-heading {
	margin: 0 0 .35em;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--zc-heading, #C6605D);
}

.zc-box .zc-text {
	margin: 0 0 1em;
	font-size: 1em;
	line-height: 1.5;
}

.zc-box .zc-text p {
	margin: 0 0 .4em;
}

.zc-box .zc-text p:last-child {
	margin-bottom: 0;
}

.zc-box .zc-input {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 12px 14px;
	font-size: 1em;
	font-family: inherit;
	line-height: 1.3;
	color: var(--zc-text, #3C3C3C);
	background: #fff;
	border: 1px solid var(--zc-border, #EBD6D2);
	border-radius: calc(var(--zc-radius, 10px) * .55);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.zc-box .zc-input::placeholder {
	color: var(--zc-text, #3C3C3C);
	opacity: .5;
}

.zc-box .zc-input:focus {
	outline: none;
	border-color: var(--zc-btn-bg, #C6605D);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.zc-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	justify-content: center;
	margin: 10px 0 4px;
	font-size: .85em;
	line-height: 1.45;
	text-align: left;
}

.zc-consent input {
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.zc-consent a {
	color: var(--zc-btn-bg, #C6605D);
}

.zc-actions {
	margin-top: 12px;
}

.zc-box .zc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 13px 26px;
	font-size: .95em;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.3;
	color: var(--zc-btn-text, #fff);
	background: var(--zc-btn-bg, #C6605D);
	border: 0;
	border-radius: calc(var(--zc-radius, 10px) * .55);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease;
}

.zc-box .zc-btn:hover,
.zc-box .zc-btn:focus {
	background: var(--zc-btn-bg-hover, #A94E4B);
	color: var(--zc-btn-text, #fff);
}

.zc-box .zc-btn:focus-visible {
	outline: 2px solid var(--zc-text, #3C3C3C);
	outline-offset: 2px;
}

.zc-box .zc-btn[disabled] {
	opacity: .7;
	cursor: default;
}

.zc-box .zc-after {
	margin: 12px 0 0;
	font-size: .82em;
	line-height: 1.4;
	opacity: .75;
}

.zc-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: zc-spin .6s linear infinite;
}

.zc-box.is-loading .zc-spinner {
	display: inline-block;
}

@keyframes zc-spin {
	to { transform: rotate(360deg); }
}

/* Spotlight: one soft pulse when the form first scrolls into view. */
@keyframes zc-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
	35%  { box-shadow: 0 0 0 8px rgba(0, 0, 0, .07); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.zc-box.zc-spotlight {
	animation: zc-pulse 1.4s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
	.zc-box.zc-spotlight { animation: none; }
	.zc-spinner { animation-duration: 2s; }
	.zc-box .zc-btn, .zc-box .zc-input { transition: none; }
}

/* Compact layout: heading and field on tighter spacing, button beside the input. */
.zc-compact {
	padding: 18px 20px;
}

.zc-compact .zc-heading {
	font-size: 1.2em;
}

.zc-compact .zc-text {
	margin-bottom: .7em;
	font-size: .92em;
}

.zc-compact .zc-fields {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.zc-compact .zc-name-wrap {
	flex: 1 1 40%;
}

.zc-compact .zc-input {
	margin: 0;
	flex: 1 1 auto;
}

.zc-compact .zc-fields .zc-email {
	flex: 1 1 60%;
}

.zc-compact .zc-actions {
	margin-top: 8px;
}

.zc-compact .zc-btn {
	width: 100%;
	padding: 11px 20px;
}

.zc-compact .zc-after {
	margin-top: 8px;
}

.zc-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.zc-msg {
	margin-top: 12px;
	font-size: .93em;
	line-height: 1.5;
}

.zc-msg:empty {
	margin-top: 0;
}

.zc-msg.is-error {
	color: #A02B2B;
}

.zc-msg.is-success {
	font-weight: 600;
}

.zc-box.is-done .zc-form,
.zc-box.is-done .zc-text {
	display: none;
}

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

@media (max-width: 600px) {
	.zc-box {
		padding: 22px 18px;
	}

	.zc-compact .zc-fields {
		flex-direction: column;
	}
}
