/* Legacy built-in form (shortcode hero_call_booking) */
.hcb-booking:not(.hcb-booking--wpforms) {
	max-width: 520px;
	margin: 0 auto;
	font-family: inherit;
}

.hcb-booking__form {
	display: grid;
	gap: 1rem;
}

.hcb-booking:not(.hcb-booking--wpforms) .hcb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.hcb-booking:not(.hcb-booking--wpforms) .hcb-field input,
.hcb-booking:not(.hcb-booking--wpforms) .hcb-field select,
.hcb-booking:not(.hcb-booking--wpforms) .hcb-field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font: inherit;
	box-sizing: border-box;
}

.hcb-button {
	background: #2271b1;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	font: inherit;
	cursor: pointer;
}

.hcb-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hcb-booking:not(.hcb-booking--wpforms) .hcb-help,
.hcb-booking:not(.hcb-booking--wpforms) .hcb-privacy {
	font-size: 0.9rem;
	color: #50575e;
}

.hcb-message {
	min-height: 1.25rem;
}

.hcb-message.is-error {
	color: #b32d2e;
}

.hcb-message.is-success {
	color: #007017;
}

.hcb-booking--slots:not(.hcb-booking--wpforms) {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* WPForms hybrid mode — inherit theme/WPForms field styles inside the form */
.hcb-booking--wpforms {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.wpforms-container .hcb-booking--wpforms .wpforms-field-html {
	padding-bottom: 0;
}

.hcb-booking--wpforms .hcb-message.is-error {
	color: #cc0000;
	font-size: 0.9em;
}

.hcb-booking--wpforms .hcb-message.is-success {
	color: #007017;
	font-size: 0.9em;
}

.hcb-booking--wpforms .hcb-wpforms-field-privacy .hcb-privacy {
	margin: 0;
}

/* Fallback shortcode outside the WPForms container */
.hcb-booking--wpforms.hcb-booking--outside-form {
	margin-bottom: 1.25rem;
}

.hcb-booking--wpforms.hcb-booking--outside-form .wpforms-field input,
.hcb-booking--wpforms.hcb-booking--outside-form .wpforms-field select {
	width: 100%;
	box-sizing: border-box;
}
