/* PZ Paver Form — front-end styles. Scoped under .pz-pf to avoid theme clashes. */

.pz-pf {
	--pz-red: #BE1E2D;
	--pz-red-dark: #841724;
	--pz-grey: #A7A9AC;
	--pz-grey-dark: #6a6a6a;
	max-width: 760px;
	margin: 0 auto;
	box-sizing: border-box;
}

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

.pz-pf-intro {
	text-align: center;
	margin-bottom: 20px;
}
.pz-pf-intro-heading {
	color: var(--pz-red);
}

/* ---------- Progress bar ---------- */
.pz-pf-progress {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 30px 0;
	flex-wrap: wrap;
	gap: 10px;
}
.pz-pf-progress-step {
	display: flex;
	align-items: center;
	font-size: 24px;
	color: #5a5a5a;
}
.pz-pf-progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-right: 10px;
	font-size: 32px;
	color: #fff;
	background: #5a5a5a;
	border-radius: 100%;
	font-weight: 400;
	flex: 0 0 auto;
}
.pz-pf-progress-step.is-active .pz-pf-progress-num {
	background: var(--pz-red);
}
.pz-pf-progress-step.is-active {
	color: var(--pz-red);
	font-weight: 700;
}

/* ---------- Steps ---------- */
.pz-pf-step {
	display: none;
}
.pz-pf-step.is-active {
	display: block;
}
.pz-pf-step-heading {
	text-align: center;
	color: var(--pz-red);
	margin-bottom: 20px;
}

/* ---------- Paver options ---------- */
.pz-pf-select-label {
	text-align: center;
	font-weight: 600;
}
.pz-pf-tax-note {
	text-align: center;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	max-width: 620px;
	margin: 10px auto 0;
}
.pz-pf-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 40px 30px;
	margin: 25px 0 50px;
}
.pz-pf-option-row {
	display: flex;
	position: relative;
}
.pz-pf-radio {
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	flex: 0 0 auto;
}
.pz-pf-option-row label {
	display: inline-block;
	margin-left: -20px;
	padding-left: 62px;
	background: url('/wp-content/uploads/2020/09/TickBox_1.svg') no-repeat left center;
	background-size: 45px 45px;
	line-height: 24px;
	cursor: pointer;
	font-weight: 400;
}
.pz-pf-radio:checked + label {
	background-image: url('/wp-content/uploads/2020/09/TickBox_2.svg');
}
.pz-pf-radio:focus-visible + label {
	outline: 2px solid var(--pz-red);
	outline-offset: 4px;
}
.pz-pf-price {
	color: var(--pz-red);
}

/* ---------- Engraving grid ---------- */
.pz-pf-engrave-label {
	text-align: center;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
	margin-bottom: 4px;
}
.pz-pf-engrave-note {
	font-size: 16px;
	font-weight: 700;
}
.pz-pf-engrave {
	margin: 20px 0 10px;
}
.pz-pf-engrave-row {
	display: flex;
}
.pz-pf-box {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	height: 44px;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	padding: 0;
	margin: 0;
	border: 1px solid var(--pz-red);
	border-left-width: 0;
	background: transparent;
	border-radius: 0;
	color: #222;
	line-height: 44px;
}
.pz-pf-engrave-row .pz-pf-box:first-child {
	border-left-width: 1px;
}
.pz-pf-engrave-row + .pz-pf-engrave-row .pz-pf-box {
	border-top-width: 0;
}
.pz-pf-box:focus {
	outline: none;
	background-color: rgba(190, 30, 45, 0.08);
}
/* Boxes that contain a space: light fill + a centred dot so they're visible. */
.pz-pf-box--space {
	background-color: #eef0f2;
	background-image: radial-gradient(circle, #9aa0a6 1.6px, transparent 1.8px);
	background-repeat: no-repeat;
	background-position: center;
}
.pz-pf-box--space:focus {
	background-color: #e3e6ea;
	background-image: radial-gradient(circle, #9aa0a6 1.6px, transparent 1.8px);
	background-repeat: no-repeat;
	background-position: center;
}
.pz-pf-engrave-meta {
	text-align: right;
	font-size: 13px;
	color: var(--pz-grey-dark);
	margin-top: 6px;
}
.pz-pf-second-paver-label {
	text-align: center;
	font-weight: 700;
	margin-top: 30px;
}

/* ---------- Example ---------- */
.pz-pf-example {
	text-align: center;
	padding: 25px 0;
}
.pz-pf-example img {
	max-width: 100%;
	height: auto;
}

/* ---------- Fields ---------- */
.pz-pf-fields {
	margin-top: 10px;
}
.pz-pf-field {
	margin-bottom: 20px;
}
.pz-pf-field label,
.pz-pf-group-label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}
.pz-pf-address-group .pz-pf-field {
	margin-bottom: 12px;
}
.pz-pf-field input,
.pz-pf-field textarea,
.pz-pf .pz-pf-field-family textarea {
	width: 100%;
	margin: 0;
	padding: 16px;
	font-size: 20px;
	line-height: 1.3;
	background: transparent;
	border: 2px solid var(--pz-red);
	border-radius: 0;
	color: #222;
	display: block;
}
.pz-pf-field-family {
	margin: 20px 0;
}
.pz-pf-field-family label {
	display: block;
	text-align: center;
	font-weight: 700;
	margin-bottom: 10px;
}
.pz-pf-field-family textarea {
	width: 100%;
}
.pz-pf-req {
	color: var(--pz-red);
}
.pz-pf-field.has-error input,
.pz-pf-field.has-error textarea {
	border-color: #dc3232;
	background: rgba(220, 50, 50, 0.05);
}
.pz-pf-field-error {
	display: none;
	color: #dc3232;
	font-size: 14px;
	margin-top: 4px;
}
.pz-pf-field.has-error .pz-pf-field-error {
	display: block;
}

/* ---------- Buttons ---------- */
.pz-pf-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 40px 0 20px;
}
.pz-pf-btn {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	color: #fff;
	background: var(--pz-red);
	font-size: 22px;
	line-height: 1.3;
	padding: 14px 20px;
	cursor: pointer;
	text-align: center;
	flex: 1 1 0;
	transition: background-color 0.15s ease-out;
	border-radius: 0;
}
.pz-pf-btn:hover {
	background: var(--pz-red-dark);
	color: #fff;
}
.pz-pf-prev {
	background: var(--pz-grey);
}
.pz-pf-prev:hover {
	background: var(--pz-grey-dark);
}
.pz-pf-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Notices / inline errors ---------- */
.pz-pf-notice {
	text-align: center;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-weight: 600;
}
.pz-pf-notice-error {
	background: #e44141;
	color: #fff;
}
.pz-pf-inline-error {
	display: none;
	color: #dc3232;
	text-align: center;
	font-size: 16px;
	margin: -30px 0 30px;
	font-weight: 600;
}
.pz-pf-inline-error.is-visible {
	display: block;
}
.pz-pf-consent-error {
	margin: 6px 0 16px;
}

/* ---------- Consent ---------- */
.pz-pf-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 24px 0 6px;
	font-weight: 600;
	cursor: pointer;
}
.pz-pf-consent input {
	margin-top: 4px;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	accent-color: var(--pz-red);
}

/* ---------- Review (step 3) ---------- */
.pz-pf-review-intro {
	text-align: center;
}
.pz-pf-review-block {
	margin-bottom: 18px;
}
.pz-pf-review-label {
	font-weight: 700;
	margin: 0 0 2px;
}
.pz-pf-review-value {
	margin: 0;
	font-weight: 400;
}
.pz-pf-review-option {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 24px 0;
}
.pz-pf-review-tick {
	width: 45px;
	height: 45px;
	flex: 0 0 auto;
	background: url('/wp-content/uploads/2020/09/TickBox_2.svg') no-repeat center center;
	background-size: 45px 45px;
}
.pz-pf-review-option-label {
	font-weight: 400;
}
.pz-pf-review .pz-pf-engrave {
	pointer-events: none;
}
.pz-pf-review .pz-pf-box {
	background: transparent;
}

/* ---------- Success ---------- */
.pz-pf-success {
	text-align: center;
	padding: 40px 20px;
}
.pz-pf-success-message {
	font-size: 20px;
	font-weight: 600;
	color: #006838;
	margin: 0 auto;
	max-width: 620px;
}
.pz-pf-success-summary {
	max-width: 620px;
	margin: 30px auto 0;
	text-align: left;
	border-top: 1px solid #ddd;
	padding-top: 24px;
}
.pz-pf-summary-heading {
	font-weight: 700;
	color: var(--pz-red);
	font-size: 18px;
	margin: 0 0 14px;
}
.pz-pf-success-summary .pz-pf-review-block {
	margin-bottom: 16px;
}
.pz-pf-success-summary .pz-pf-engrave {
	pointer-events: none;
	margin-top: 6px;
}
.pz-pf-success-actions {
	margin: 28px auto 0;
	max-width: 420px;
}
.pz-pf-send-copy {
	width: 100%;
}
.pz-pf-copy-status {
	margin-top: 14px;
	font-weight: 600;
	color: #006838;
}
.pz-pf-copy-status.is-error {
	color: #dc3232;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.pz-pf-options {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 768px) {
	.pz-pf-field input,
	.pz-pf-field textarea {
		font-size: 18px;
		padding: 12px;
	}
	.pz-pf-box {
		height: 34px;
		line-height: 34px;
		font-size: 15px;
	}
	.pz-pf-progress-num {
		width: 48px;
		height: 48px;
		font-size: 24px;
	}
	.pz-pf-progress-step {
		font-size: 18px;
	}
}
@media (max-width: 480px) {
	.pz-pf-buttons {
		flex-direction: column-reverse;
	}
	.pz-pf-btn {
		width: 100%;
		flex: none;
	}
	.pz-pf-box {
		height: 26px;
		line-height: 26px;
		font-size: 12px;
	}
}
