/*
 * Blue Bee shared UI: buttons, form fields, chips, steppers and FAQs.
 * Colours come from the active theme's palette when it has the Blue Bee
 * colour names, so changing a colour in Appearance > Editor > Styles
 * changes these too. The values after the commas are fallbacks.
 */

.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.bb-btn:hover { transform: translateY(-2px); text-decoration: none; }
.bb-btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #FFB81C); outline-offset: 3px; }
.bb-btn svg { flex: none; }
.bb-btn--sm { min-height: 44px; padding: 0 15px; font-size: 15px; }
.bb-btn--block { width: 100%; }
.bb-btn--honey { background: var(--wp--preset--color--accent, #FFB81C); color: var(--wp--preset--color--contrast, #0A2B47); }
.bb-btn--honey:hover { background: var(--wp--preset--color--accent-light, #FFC845); color: var(--wp--preset--color--contrast, #0A2B47); }
.bb-btn--blue { background: var(--wp--preset--color--primary, #0071B8); color: var(--wp--preset--color--base, #FFFFFF); }
.bb-btn--blue:hover { background: var(--wp--preset--color--primary-dark, #005A93); color: var(--wp--preset--color--base, #FFFFFF); }
.bb-btn--navy { background: var(--wp--preset--color--contrast, #0A2B47); color: var(--wp--preset--color--base, #FFFFFF); }
.bb-btn--navy:hover { background: var(--wp--preset--color--night, #123B60); color: var(--wp--preset--color--base, #FFFFFF); }
.bb-btn--line { background: var(--wp--preset--color--base, #FFFFFF); color: var(--wp--preset--color--contrast, #0A2B47); box-shadow: inset 0 0 0 1.5px #C6DAEA; }
.bb-btn--line:hover { color: var(--wp--preset--color--primary, #0071B8); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary, #0071B8); }
.bb-btn--ghost { background: transparent; color: var(--wp--preset--color--base, #FFFFFF); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.bb-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--wp--preset--color--base, #FFFFFF); }

.bb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--slate, #4A6177);
}
.bb-field__label { display: block; }
.bb-field__label small { font-weight: 500; font-size: inherit; }
.bb-input {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid #C6DAEA;
	border-radius: 14px;
	background: var(--wp--preset--color--base, #FFFFFF);
	color: var(--wp--preset--color--contrast, #0A2B47);
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	box-shadow: none;
}
textarea.bb-input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.bb-input:focus { outline: none; border-color: var(--wp--preset--color--primary, #0071B8); box-shadow: 0 0 0 4px rgba(0, 113, 184, 0.16); }

.bb-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 16px;
	font-weight: 500;
	color: var(--wp--preset--color--contrast, #0A2B47);
	cursor: pointer;
}
.bb-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--wp--preset--color--primary, #0071B8); }

.bb-range { width: 100%; accent-color: var(--wp--preset--color--primary, #0071B8); }

.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid #C6DAEA;
	background: var(--wp--preset--color--base, #FFFFFF);
	color: var(--wp--preset--color--contrast, #0A2B47);
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.bb-chip-btn:hover { border-color: var(--wp--preset--color--primary, #0071B8); }
.bb-chip-btn[aria-pressed="true"],
.bb-chip-btn[aria-checked="true"],
.bb-chip-btn[aria-selected="true"] {
	background: var(--wp--preset--color--contrast, #0A2B47);
	border-color: var(--wp--preset--color--contrast, #0A2B47);
	color: var(--wp--preset--color--base, #FFFFFF);
}

.bb-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px;
	border-radius: 16px;
	border: 1.5px solid #C6DAEA;
	background: var(--wp--preset--color--base, #FFFFFF);
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast, #0A2B47);
}
.bb-stepper button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--mist, #F2F8FD);
	color: var(--wp--preset--color--contrast, #0A2B47);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.bb-stepper button:hover { background: var(--wp--preset--color--sky, #E6F2FB); }
.bb-stepper input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	color: inherit;
	-moz-appearance: textfield;
}
.bb-stepper input::-webkit-outer-spin-button,
.bb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bb-progress {
	display: block;
	width: 100%;
	height: 8px;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
	background: var(--wp--preset--color--sky, #E6F2FB);
	-webkit-appearance: none;
	appearance: none;
}
.bb-progress::-webkit-progress-bar { background: var(--wp--preset--color--sky, #E6F2FB); border-radius: 999px; }
.bb-progress::-webkit-progress-value { background: var(--wp--preset--color--accent, #FFB81C); border-radius: 999px; transition: width 0.4s ease; }
.bb-progress::-moz-progress-bar { background: var(--wp--preset--color--accent, #FFB81C); border-radius: 999px; }

.bb-faqs { display: flex; flex-direction: column; gap: 10px; }
.bb-faq {
	border: 1.5px solid var(--wp--preset--color--line, #DCE9F4);
	border-radius: 20px;
	background: var(--wp--preset--color--base, #FFFFFF);
	overflow: hidden;
}
.bb-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast, #0A2B47);
	transition: background-color 0.2s;
}
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary:hover { background: var(--wp--preset--color--mist, #F2F8FD); }
.bb-faq__icon { flex: none; color: var(--wp--preset--color--primary, #0071B8); transition: transform 0.35s ease; }
.bb-faq[open] .bb-faq__icon { transform: rotate(45deg); }
.bb-faq p { margin: 0; padding: 0 20px 20px; font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif); font-size: 16.5px; line-height: 1.65; color: var(--wp--preset--color--ink, #23415E); }

.bb-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-img--empty { background: linear-gradient(135deg, var(--wp--preset--color--sky, #E6F2FB), #CFE6F7); }
.bb-zoom { overflow: hidden; }
.bb-zoom img { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bb-zoom:hover img { transform: scale(1.06); }

.bb-note-cream {
	margin: 0;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--wp--preset--color--cream, #FFF4D6);
	font-family: var(--wp--preset--font-family--bangla, 'Anek Bangla', sans-serif);
	font-size: 14.5px;
	line-height: 1.5;
	color: #5A4300;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.bb-btn, .bb-zoom img, .bb-chip-btn, .bb-faq__icon { transition: none; }
	.bb-btn:hover, .bb-zoom:hover img { transform: none; }
}
