/* Inquiry form: functional minimum, uses theme tokens when present. */
.agency-form {
	display: grid;
	gap: var(--wp--preset--spacing--md, 1rem);
}

.agency-form__fields {
	display: grid;
	gap: var(--wp--preset--spacing--md, 1rem);
}

.agency-form__field {
	display: grid;
	gap: 0.375rem;
}

.agency-form__field label,
.agency-form__travellers legend {
	font-weight: 600;
}

.agency-form__optional {
	font-weight: 400;
	color: var(--wp--preset--color--muted, #555);
}

.agency-form__help {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	color: var(--wp--preset--color--muted, #555);
}

.agency-form :where(input:not([type="checkbox"]), select, textarea) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 3rem;
	padding: 0.625rem 0.875rem;
	font: inherit;
	font-size: max(1rem, 16px);
	color: inherit;
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--border, #ccc);
	border-radius: var(--wp--custom--radius--md, 8px);
}

.agency-form [aria-invalid="true"] {
	border-color: var(--wp--preset--color--error, #b3261e);
}

.agency-form__error {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 600;
	color: var(--wp--preset--color--error, #b3261e);
}

.agency-form__travellers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--sm, 0.75rem);
	margin: 0;
	padding: 0;
	border: 0;
}

.agency-form__travellers legend {
	margin-block-end: 0.375rem;
	padding: 0;
}

.agency-stepper {
	display: flex;
	align-items: stretch;
}

.agency-stepper input {
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.agency-stepper:has(.agency-stepper__btn:not([hidden])) input {
	border-radius: 0;
}

.agency-stepper input::-webkit-inner-spin-button,
.agency-stepper input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.agency-stepper__btn {
	flex: 0 0 2.75rem;
	min-block-size: 3rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: inherit;
	background: var(--wp--preset--color--surface, #f3f3f3);
	border: 1px solid var(--wp--preset--color--border, #ccc);
	cursor: pointer;
}

.agency-stepper__btn:first-child {
	border-inline-end: 0;
	border-radius: var(--wp--custom--radius--md, 8px) 0 0 var(--wp--custom--radius--md, 8px);
}

.agency-stepper__btn:last-child {
	border-inline-start: 0;
	border-radius: 0 var(--wp--custom--radius--md, 8px) var(--wp--custom--radius--md, 8px) 0;
}

.agency-form__estimate {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: var(--wp--preset--spacing--sm, 0.75rem);
	background: var(--wp--preset--color--surface, #f6f6f6);
	border-radius: var(--wp--custom--radius--md, 8px);
}

.agency-form__estimate:not(:has(output:not(:empty))) {
	display: none;
}

.agency-form__estimate-value {
	font-weight: 700;
}

.agency-form__estimate-note {
	font-size: var(--wp--preset--font-size--xs, 0.8125rem);
	color: var(--wp--preset--color--muted, #555);
}

.agency-form__field--consent {
	grid-template-columns: auto 1fr;
	align-items: start;
	column-gap: 0.625rem;
}

.agency-form__field--consent input {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0.125rem 0 0;
}

.agency-form__field--consent label {
	font-weight: 400;
}

.agency-form__field--consent .agency-form__error {
	grid-column: 1 / -1;
}

.agency-form__submit {
	inline-size: 100%;
	min-block-size: 3rem;
	cursor: pointer;
}

.agency-form__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.agency-form__status:empty {
	display: none;
}

.agency-form__status {
	padding: var(--wp--preset--spacing--sm, 0.75rem);
	border-radius: var(--wp--custom--radius--md, 8px);
	font-weight: 600;
}

.agency-form__status.is-sent {
	color: var(--wp--preset--color--success, #256b45);
	background: color-mix(in srgb, var(--wp--preset--color--success, #256b45) 10%, transparent);
}

.agency-form__status.is-error {
	color: var(--wp--preset--color--error, #b3261e);
	background: color-mix(in srgb, var(--wp--preset--color--error, #b3261e) 10%, transparent);
}

.agency-form__hp {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Two-step tour form (data-agency-steps) ---------- */
.agency-form__step {
	display: grid;
	gap: var(--wp--preset--spacing--md, 1rem);
}

.agency-form__step[hidden],
.agency-form [data-intent][hidden] {
	display: none;
}

.agency-form__step-count {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #555);
}

.agency-form__choices {
	display: grid;
	gap: 0.625rem;
}

.agency-form__choices[hidden] {
	display: none;
}

.agency-form__choice {
	inline-size: 100%;
	min-block-size: 3rem;
	cursor: pointer;
}

/* Inquiry is the quieter path: outlined. */
.agency-form .agency-form__choice--inquiry {
	color: var(--wp--preset--color--contrast, #111);
	background: transparent;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.agency-form .agency-form__choice--inquiry:hover {
	background: var(--wp--preset--color--surface, #f3f3f3);
}

.agency-form__choices-note {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs, 0.8125rem);
	text-align: center;
	color: var(--wp--preset--color--muted, #555);
}

/* Back to step 1: the trip at a glance. */
.agency-form__back {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	inline-size: 100%;
	min-block-size: 2.75rem;
	padding: 0.5rem 0.875rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 600;
	text-align: start;
	color: inherit;
	background: var(--wp--preset--color--surface, #f3f3f3);
	border: 0;
	border-radius: var(--wp--custom--radius--full, 999px);
	cursor: pointer;
}

.agency-form__back[hidden] {
	display: none;
}

.agency-form__back:hover {
	background: var(--wp--preset--color--surface-strong, #e9e9e9);
}

.agency-form__step-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: var(--wp--preset--font-size--lg, 1.25rem);
	font-weight: 600;
}

.agency-form__step-title:focus {
	outline: none;
}

/* Booking total, recomputed by the server before payment. */
.agency-form__total {
	display: grid;
	gap: 0.375rem;
	padding: var(--wp--preset--spacing--sm, 0.75rem) var(--wp--preset--spacing--md, 1rem);
	background: var(--wp--preset--color--surface, #f6f6f6);
	border-radius: var(--wp--custom--radius--md, 8px);
}

.agency-form__total-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
}

.agency-form__total-row--sum {
	align-items: baseline;
	padding-block-start: 0.5rem;
	border-block-start: 1px solid var(--wp--preset--color--border, #ddd);
	font-weight: 700;
}

.agency-form__total-value {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: var(--wp--preset--font-size--xl, 1.75rem);
	line-height: 1;
}

.agency-form__total-note {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs, 0.8125rem);
	color: var(--wp--preset--color--muted, #555);
}
