/* tc-funnel conversational quote wizard — mobile first (390px), §19. */
.tcf-wizard {
	--wz-ink: #0f2a3d;
	--wz-muted: #5b6b7a;
	--wz-line: #d9e1e8;
	--wz-accent: #e8a24a;
	--wz-accent-ink: #1f1300;
	--wz-pick: #0f4c75;
	--wz-pick-bg: #eef6fb;
	--wz-error: #b42318;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 18px 16px 16px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(15, 42, 61, .08);
	color: var(--wz-ink);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}
.tcf-wizard *, .tcf-wizard *::before, .tcf-wizard *::after { box-sizing: border-box; }
.tcf-wz-loading { min-height: 320px; }

/*
 * In a hero with a cover background, the hero's height must not follow the
 * current step, or the background re-crops on every step. The stage reserves
 * room for the tallest usual step (contact); the card sits at its top and only
 * the card changes height. A large party's dates-of-birth list scrolls inside
 * the card rather than growing the hero (fitStage in tcf-wizard.js).
 */
.tcf-wz-stage { --tcf-wz-stage: 0px; width: 100%; }
.kt-row-has-bg .tcf-wz-stage, .wp-block-cover .tcf-wz-stage { --tcf-wz-stage: 680px; min-height: var(--tcf-wz-stage); }

.tcf-wz-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.tcf-wz-back { background: none; border: 0; padding: 6px 8px 6px 0; margin: 0; color: var(--wz-pick); font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.tcf-wz-count { font-size: 13px; color: var(--wz-muted); }
.tcf-wz-progress { height: 4px; background: #edf1f4; border-radius: 4px; margin: 6px 0 18px; overflow: hidden; }
.tcf-wz-progress span { display: block; height: 100%; background: var(--wz-accent); border-radius: 4px; transition: width .25s ease; }

.tcf-wz-q { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; color: var(--wz-ink); outline: none; }
.tcf-wz-help { margin: 0 0 14px; color: var(--wz-muted); font-size: 15px; }
.tcf-wz-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: var(--wz-error); font-size: 15px; }
.tcf-wz-note { margin: 4px 0 12px; font-weight: 600; color: var(--wz-pick); min-height: 1.4em; }
.tcf-wz-hint { display: block; margin: 6px 0 10px; color: var(--wz-muted); font-size: 14px; }

.tcf-wz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tcf-wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcf-wz-opt {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	width: 100%; min-height: 56px; padding: 12px 16px; margin: 0;
	background: #fff; border: 1.5px solid var(--wz-line); border-radius: 12px;
	color: var(--wz-ink); font: inherit; text-align: left; cursor: pointer;
	transition: border-color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
}
.tcf-wz-opt:hover { border-color: #9fb4c4; }
.tcf-wz-opt:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.tcf-wz-opt.is-selected { border-color: var(--wz-pick); background: var(--wz-pick-bg); box-shadow: inset 0 0 0 1px var(--wz-pick); }
/*
 * The theme styles button:hover/:focus (white text on its button colour). Its
 * selector outranks the classes above, so a hovered or tapped option turned
 * white on our light background. Keep the wizard's own colours in every state.
 */
.tcf-wizard .tcf-wz-opt:hover, .tcf-wizard .tcf-wz-opt:focus, .tcf-wizard .tcf-wz-opt:active { color: var(--wz-ink); background: #fff; }
.tcf-wizard .tcf-wz-opt.is-selected:hover, .tcf-wizard .tcf-wz-opt.is-selected:focus, .tcf-wizard .tcf-wz-opt.is-selected:active { background: var(--wz-pick-bg); }
.tcf-wizard .tcf-wz-primary:hover, .tcf-wizard .tcf-wz-primary:focus, .tcf-wizard .tcf-wz-primary:active { color: var(--wz-accent-ink); background: var(--wz-accent); }
.tcf-wizard .tcf-wz-back:hover, .tcf-wizard .tcf-wz-back:focus, .tcf-wizard .tcf-wz-change:hover, .tcf-wizard .tcf-wz-change:focus { color: var(--wz-pick); background: none; }
.tcf-wz-opt-label { font-weight: 600; font-size: 16px; }
.tcf-wz-opt-sub { font-size: 13px; color: var(--wz-muted); margin-top: 2px; }

.tcf-wz-field { display: block; margin: 0 0 14px; }
.tcf-wz-field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.tcf-wz-input {
	display: block; width: 100%; min-height: 52px; padding: 12px 14px; margin: 0;
	border: 1.5px solid var(--wz-line); border-radius: 12px; background: #fff;
	color: var(--wz-ink); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
	-webkit-appearance: none; appearance: none;
}
.tcf-wz-input:focus { border-color: var(--wz-pick); outline: none; box-shadow: 0 0 0 3px rgba(15, 76, 117, .15); }
.tcf-wz-input[type="date"] { min-height: 52px; }
.tcf-wz-input[type="search"] { margin-bottom: 4px; }

.tcf-wz-dob { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tcf-wz-dob .tcf-wz-dd, .tcf-wz-dob .tcf-wz-mm { width: 64px; text-align: center; }
.tcf-wz-dob .tcf-wz-yy { width: 92px; text-align: center; }
.tcf-wz-dob .tcf-wz-age-input { width: 92px; text-align: center; }
/* Number of days: a small box with its unit, the same size as the age boxes (Ali 2026-11-13: was too big); no spinner arrows. */
.tcf-wz-days-row { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tcf-wz-days-row .tcf-wz-days { width: 100px; min-height: 48px; font-size: 18px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.tcf-wz-days::-webkit-outer-spin-button, .tcf-wz-days::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tcf-wz-days-unit { font-size: 16px; font-weight: 600; color: var(--wz-muted); }
.tcf-wz-dobs .tcf-wz-field { margin-bottom: 10px; }
.tcf-wz-dobs .tcf-wz-field-label { margin-bottom: 4px; }
/* Scrolling list: edge shadows show there is more above/below (they scroll away at each end). */
.tcf-wz-dobs.is-scroll {
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	margin: 0 -6px 4px; padding: 8px 6px 0;
	border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4;
	background:
		linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) top / 100% 24px no-repeat local,
		linear-gradient(rgba(255, 255, 255, 0), #fff 70%) bottom / 100% 24px no-repeat local,
		radial-gradient(farthest-side at 50% 0, rgba(15, 42, 61, .18), transparent) top / 100% 10px no-repeat scroll,
		radial-gradient(farthest-side at 50% 100%, rgba(15, 42, 61, .18), transparent) bottom / 100% 10px no-repeat scroll;
}
.tcf-wz-age { font-size: 14px; color: var(--wz-pick); font-weight: 600; }

.tcf-wz-primary {
	display: block; width: 100%; min-height: 56px; margin: 8px 0 0; padding: 14px 18px;
	background: var(--wz-accent); border: 0; border-radius: 12px;
	color: var(--wz-accent-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.tcf-wz-primary:disabled { opacity: .7; cursor: wait; }
.tcf-wz-primary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.tcf-wz-review { margin: 8px 0 6px; padding: 0; }
.tcf-wz-review-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.tcf-wz-review-row dt { grid-column: 1; font-size: 13px; color: var(--wz-muted); margin: 0; }
.tcf-wz-review-row dd { grid-column: 1; margin: 0; font-weight: 600; }
.tcf-wz-change { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 0; color: var(--wz-pick); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 4px; }

.tcf-wz-help-line { margin: 16px 0 0; font-size: 13px; color: var(--wz-muted); text-align: center; }
.tcf-wz-help-line a { color: var(--wz-pick); font-weight: 600; }

@media (min-width: 768px) {
	.tcf-wizard { padding: 24px 28px 20px; }
	.tcf-wz-q { font-size: 24px; }
}

/* Phones: 44px tap targets (QA 2026-11-18; desktop unchanged). */
@media (max-width: 767px) {
	.tcf-wz-back { min-height: 44px; }
}
