/* AustClean Franchise Enquiry Form
   Fully fluid by default: the form fills 100% of whatever element it is placed
   in (a full-width section, a narrow sidebar widget, a Divi column, etc).
   To cap its width, either wrap it in a container with a max-width, or pass
   max_width="420px" to the shortcode, which sets --austclean-ff-max-width. */

.austclean-ff-wrap {
	--austclean-ff-max-width: 100%;
	width: 100%;
	max-width: var(--austclean-ff-max-width);
	margin: 0 auto;
	font-family: inherit;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 18px rgba(0,0,0,0.08);
	box-sizing: border-box;
}
.austclean-ff-wrap * {
	box-sizing: border-box;
}

/* "plain" style (shortcode style="plain"): no card, blends into the page and
   inherits the surrounding section's own background/spacing. */
.austclean-ff-wrap.austclean-ff-plain {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

/* Progress bar */
.austclean-ff-progress {
	margin-bottom: 18px;
}
.austclean-ff-progress-bar {
	background: #e9e9e9;
	height: 5px;
	border-radius: 3px;
	overflow: hidden;
}
.austclean-ff-progress-fill {
	display: block;
	height: 100%;
	background: #e2001a;
	transition: width 0.3s ease;
}
.austclean-ff-progress-steps {
	display: flex;
	justify-content: space-between;
	margin-top: 7px;
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.austclean-ff-progress-steps .step-label.active,
.austclean-ff-progress-steps .step-label.is-done {
	color: #e2001a;
	font-weight: 600;
}

/* Steps */
.austclean-ff-step {
	display: none;
	border: 0;
	margin: 0;
	padding: 0;
}
.austclean-ff-step.is-active {
	display: block;
	animation: austclean-ff-fade 0.25s ease;
}
@keyframes austclean-ff-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}
.austclean-ff-step legend {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
	padding: 0;
	line-height: 1.3;
}
.austclean-ff-step .austclean-ff-step-sub {
	font-size: 13px;
	color: #777;
	margin: 0 0 14px;
}

/* Compact fields */
.austclean-ff-field {
	margin-bottom: 14px;
}
.austclean-ff-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}
.austclean-ff-field input[type="text"],
.austclean-ff-field input[type="email"],
.austclean-ff-field input[type="tel"],
.austclean-ff-field select,
.austclean-ff-field textarea {
	display: block;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.4;
	background: #fff;
	color: #222;
	-webkit-appearance: none;
	appearance: none;
}
.austclean-ff-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 30px;
}
.austclean-ff-field textarea {
	resize: vertical;
	min-height: 70px;
}
.austclean-ff-field input::placeholder,
.austclean-ff-field textarea::placeholder {
	color: #aaa;
}
.austclean-ff-field input:focus,
.austclean-ff-field select:focus,
.austclean-ff-field textarea:focus {
	outline: none;
	border-color: #e2001a;
	box-shadow: 0 0 0 3px rgba(226,0,26,0.12);
}
.austclean-ff-field.austclean-ff-error input,
.austclean-ff-field.austclean-ff-error select,
.austclean-ff-field.austclean-ff-error .austclean-ff-chip-group {
	border-color: #d32f2f;
}
.austclean-ff-field-error-msg {
	color: #d32f2f;
	font-size: 12px;
	margin-top: 4px;
}

/* Click-to-select chips (used instead of radios/checkboxes) */
.austclean-ff-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 1px;
}
.austclean-ff-chip {
	border: 1.5px solid #d9d9d9;
	background: #fafafa;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s ease;
	color: #333;
	line-height: 1.3;
}
.austclean-ff-chip:hover {
	border-color: #e2001a;
}
.austclean-ff-chip.is-selected {
	background: #e2001a;
	border-color: #e2001a;
	color: #fff;
	font-weight: 600;
}

.austclean-ff-consent label {
	font-weight: 400;
	font-size: 12px;
	display: flex;
	gap: 7px;
	align-items: flex-start;
	line-height: 1.4;
}
.austclean-ff-consent input {
	margin-top: 2px;
	flex-shrink: 0;
}

/* Navigation buttons - full width, stacked, primary action on top */
.austclean-ff-nav {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin-top: 18px;
	gap: 8px;
}
.austclean-ff-btn-next,
.austclean-ff-btn-submit {
	width: 100%;
	background: #e2001a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.austclean-ff-btn-next:hover,
.austclean-ff-btn-submit:hover {
	background: #b8000f;
}
.austclean-ff-btn-back {
	background: none;
	border: none;
	color: #777;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 6px;
	text-decoration: underline;
	align-self: center;
}
.austclean-ff-btn-submit:disabled,
.austclean-ff-btn-next:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Honeypot - hidden from real users */
.austclean-ff-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.austclean-ff-message {
	margin-top: 14px;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 7px;
	display: none;
}
.austclean-ff-message.is-error {
	display: block;
	background: #fdecea;
	color: #611a15;
}
.austclean-ff-message.is-loading {
	display: block;
	background: #f1f1f1;
	color: #555;
}

/* Trust row (optional, e.g. "Never shared", "Delivered instantly") */
.austclean-ff-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: 12px;
	font-size: 11px;
	color: #999;
}

/* Below ~360px-wide embeds (narrow sidebar widgets), tighten padding further */
@container (max-width: 360px) {
	.austclean-ff-wrap {
		padding: 16px;
	}
}

/* Fallback for browsers without container query support: use viewport width */
@media (max-width: 380px) {
	.austclean-ff-wrap {
		padding: 18px 16px;
	}
	.austclean-ff-chip {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* Let the wrap act as a size container so the container query above works
   when supported (progressive enhancement only, safe to ignore otherwise). */
.austclean-ff-wrap {
	container-type: inline-size;
}
