/* Visa Consultation Booking – booking widget.
   Layout adapts to the width of the theme's content area (container queries). */

.fvb-wrap.fvb-wrap--booking {
	display: block;
}

.fvb-content--below {
	margin-top: 2.5rem;
}

.fvb-booking {
	--bk-text: #111827;
	--bk-muted: #6b7280;
	--bk-line: #e5e7eb;
	--bk-tint: #eaf1fe;
	container-type: inline-size;
	container-name: fvbbk;
	color: var(--bk-text);
	margin: 0 0 1rem;
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.fvb-booking { --bk-tint: color-mix(in srgb, var(--fvb-accent) 10%, #fff); }
}

.fvb-booking [hidden],
.fvb-booking .fvb-bk-meta:is(#fvb-x, *) li[hidden] { display: none !important; }

.fvb-booking button { font: inherit; }

.fvb-ico { flex: 0 0 auto; display: block; }

/* ---------- Card ---------- */
.fvb-bk-card,
.fvb-bk-done {
	background: #fff;
	border: 1px solid var(--bk-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.fvb-bk-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
}

/* ---------- Left panel ---------- */
.fvb-bk-side {
	padding: 1.5rem 1.25rem 1.25rem;
	border-bottom: 1px solid var(--bk-line);
}

.fvb-bk-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 1px solid var(--bk-line);
	border-radius: 50%;
	background: #fff;
	color: var(--fvb-accent);
	cursor: pointer;
	transition: background-color .15s ease;
}
.fvb-bk-back:hover { background: var(--bk-tint); }
.fvb-bk-back .fvb-ico { width: 22px; height: 22px; }

.fvb-bk-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--bk-muted);
	margin: 0 0 .5rem;
}

.fvb-booking .fvb-bk-title {
	margin: 0 0 1rem;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 500;
	color: var(--bk-text);
	border: 0;
}

.fvb-booking .fvb-bk-meta {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fvb-booking .fvb-bk-meta:is(#fvb-x, *) li {
	display: flex !important;
	align-items: center !important;
	gap: .65rem !important;
	margin: 0 0 .85rem !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #4b5563 !important;
	line-height: 1.4 !important;
}
.fvb-booking .fvb-bk-meta:is(#fvb-x, *) li::before { content: none !important; }
.fvb-bk-meta .fvb-ico { color: #6b7280; }

.fvb-bk-desc {
	margin: 1.25rem 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--bk-muted);
}

/* ---------- Main panel ---------- */
.fvb-bk-main {
	padding: 1.25rem;
	min-width: 0;
}

.fvb-booking .fvb-bk-heading {
	margin: 0 0 1.25rem;
	padding: 0;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--bk-text);
	border: 0;
}

.fvb-bk-picker {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

/* Calendar */
.fvb-bk-cal-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin: 0 0 1rem;
}

.fvb-bk-month {
	min-width: 9.5em;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
}

.fvb-booking .fvb-bk-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bk-tint);
	color: var(--fvb-accent);
	cursor: pointer;
	box-shadow: none;
}
.fvb-booking .fvb-bk-nav:disabled {
	background: transparent;
	color: #6b7280;
	cursor: default;
	opacity: .6;
}
.fvb-booking .fvb-bk-nav:not(:disabled):hover { filter: brightness(.96); }

.fvb-bk-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: .5rem .25rem;
	justify-items: center;
}

.fvb-bk-dow span {
	font-size: 13px;
	font-weight: 500;
	color: var(--bk-text);
	padding-bottom: .5rem;
}

.fvb-bk-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	max-width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	font-size: 15px;
	line-height: 1;
}

.fvb-booking button.fvb-bk-day {
	padding: 0;
	border: 0;
	background: var(--bk-tint);
	color: var(--fvb-accent);
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .12s ease, color .12s ease;
}
.fvb-booking button.fvb-bk-day:hover { box-shadow: inset 0 0 0 1.5px var(--fvb-accent); }
.fvb-booking button.fvb-bk-day.is-selected {
	background: var(--fvb-accent);
	color: #fff;
}
.fvb-bk-day.is-disabled { color: #b8bec8; }
.fvb-bk-day.is-empty { visibility: hidden; }

.fvb-bk-tz { margin-top: 1.5rem; }
.fvb-bk-tz-label { font-size: 14px; font-weight: 500; margin-bottom: .6rem; }
.fvb-bk-tz-value {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-size: 14px;
	color: #374151;
}
.fvb-bk-tz-value .fvb-ico { width: 18px; height: 18px; }
.fvb-booking .fvb-bk-tz-note {
	margin: .45rem 0 0;
	padding-left: calc(18px + .55rem);
	font-size: 13px;
	line-height: 1.5;
	color: var(--bk-muted);
}

/* Slots */
.fvb-bk-slots-date {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 .75rem;
}

.fvb-bk-slot-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.fvb-bk-slot-row {
	display: flex;
	gap: .75rem;
	min-width: 0;
}
.fvb-bk-slot-row:has(.is-picked) { grid-column: 1 / -1; }

.fvb-booking .fvb-bk-slot,
.fvb-booking .fvb-bk-select {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0 .5rem;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.fvb-booking button.fvb-bk-slot {
	border: 1px solid var(--fvb-accent);
	background: #fff;
	color: var(--fvb-accent);
	cursor: pointer;
	transition: background-color .12s ease;
}
.fvb-booking button.fvb-bk-slot:hover { background: var(--bk-tint); }

.fvb-booking .fvb-bk-slot.is-picked {
	background: #6b7280;
	color: #fff;
	border: 1px solid #6b7280;
	font-weight: 600;
}

.fvb-booking .fvb-bk-select {
	border: 1px solid var(--fvb-accent);
	background: var(--fvb-accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.fvb-booking .fvb-bk-select:hover { filter: brightness(1.08); }

.fvb-bk-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1rem;
	font-size: 14px;
	color: var(--bk-muted);
	background: #f9fafb;
	border-radius: 6px;
}

.fvb-booking :focus-visible {
	outline: 2px solid var(--fvb-accent);
	outline-offset: 2px;
}

/* ---------- Step 2 form ---------- */
.fvb-booking .fvb-form .fvb-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 1.5rem;
}

.fvb-consent-field { margin-top: .25rem; }

.fvb-booking .fvb-consent {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bk-text);
	cursor: pointer;
}

.fvb-booking .fvb-consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: .15rem 0 0;
	accent-color: var(--fvb-accent);
}

.fvb-booking .fvb-submit {
	width: auto;
	min-height: 46px;
	margin: 1rem 0 0 auto;
	padding: .7rem 1.4rem;
	border-radius: 8px;
	font-size: 15px;
}

.fvb-booking .fvb-privacy { text-align: right; }

/* ---------- Step 3 confirmation ---------- */
.fvb-bk-done {
	padding: 2.5rem 1.25rem;
	text-align: center;
	outline: none;
}

.fvb-bk-done-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background: var(--bk-tint);
	color: var(--fvb-accent);
}
.fvb-bk-done-icon::before,
.fvb-bk-done-icon::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: var(--bk-tint);
}
.fvb-bk-done-icon::before { width: 12px; height: 12px; left: -10px; top: 18px; }
.fvb-bk-done-icon::after { width: 8px; height: 8px; right: -8px; top: 0; }
.fvb-bk-done-icon .fvb-ico { width: 34px; height: 34px; }

.fvb-booking .fvb-bk-done-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--bk-text);
}

.fvb-bk-done-msg {
	max-width: 760px;
	margin: 0 auto 1.75rem;
	font-size: 15px;
	line-height: 1.7;
	color: var(--bk-muted);
}
.fvb-bk-done-msg a { color: inherit; font-weight: 600; }

.fvb-booking .fvb-bk-done-box {
	display: inline-block;
	min-width: min(100%, 420px);
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.25rem .5rem;
	border: 1px solid var(--bk-line);
	border-radius: 8px;
	text-align: left;
}

.fvb-bk-cal-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.25rem;
	max-width: 460px;
	margin: 0 auto;
}

.fvb-booking .fvb-bk-calbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	min-width: 200px;
	height: 48px;
	padding: 0 1.25rem;
	border: 1px solid #4b5563;
	border-radius: 6px;
	background: #fff;
	color: var(--bk-text);
	font-size: 15px;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .12s ease;
}
.fvb-booking .fvb-bk-calbtn:hover { background: #f9fafb; color: var(--bk-text); }

/* ---------- Wider containers ---------- */
@container fvbbk (min-width: 560px) {
	.fvb-bk-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container fvbbk (min-width: 700px) {
	.fvb-bk-picker {
		grid-template-columns: minmax(0, 1fr) 220px;
		gap: 2rem;
		align-items: start;
	}
	.fvb-bk-slot-list {
		grid-template-columns: minmax(0, 1fr);
		max-height: 520px;
		overflow-y: auto;
		padding-right: .5rem;
		scrollbar-width: thin;
	}
	.fvb-bk-slot-row:has(.is-picked) { grid-column: auto; }
	.fvb-bk-slots { padding-top: 3.5rem; }
	.fvb-bk-main { padding: 1.75rem; }
	.fvb-bk-done { padding: 3rem 2rem; }
}

@container fvbbk (min-width: 940px) {
	.fvb-bk-card {
		grid-template-columns: 330px minmax(0, 1fr);
		min-height: 640px;
	}
	.fvb-bk-side {
		padding: 2rem 1.5rem;
		border-bottom: 0;
		border-right: 1px solid var(--bk-line);
	}
	.fvb-bk-desc { margin-top: 2.5rem; }
	.fvb-bk-picker { grid-template-columns: minmax(0, 1fr) 240px; }
	.fvb-booking .fvb-bk-title { font-size: 1.6rem; }
}

/* Older browsers without container queries: use viewport width instead. */
@supports not (container-type: inline-size) {
	@media (min-width: 760px) {
		.fvb-bk-picker { grid-template-columns: minmax(0, 1fr) 220px; gap: 2rem; }
		.fvb-bk-slot-list { grid-template-columns: 1fr; max-height: 520px; overflow-y: auto; }
	}
	@media (min-width: 1100px) {
		.fvb-bk-card { grid-template-columns: 330px minmax(0, 1fr); }
		.fvb-bk-side { border-bottom: 0; border-right: 1px solid var(--bk-line); }
	}
}

@media (max-width: 400px) {
	.fvb-bk-main { padding: 1rem .85rem; }
	.fvb-bk-grid { gap: .35rem .1rem; }
	.fvb-bk-day { width: 38px; height: 38px; font-size: 14px; }
	.fvb-booking .fvb-bk-calbtn { min-width: 100%; }
}

/* Content below the widget is full width: keep feature cards in even rows. */
:where(.fvb-content--below) .fvb-features {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

@container fvbbk (max-width: 559px) {
	.fvb-booking .fvb-submit { width: 100%; }
	.fvb-booking .fvb-privacy { text-align: center; }
}
