/* Rencana Bijak - CFP Directory */

.rb-cfp-filter-shell {
	--rb-yellow: #ffd600;
	--rb-black: #29292a;
	--rb-grey: #eaeaea;
	--rb-soft: #f6f6f4;
	margin: 0 0 24px;
	font-size: 15px;
	color: var(--rb-black);
}

.rb-cfp-filter-shell *,
.rb-cfp-filter-shell *::before,
.rb-cfp-filter-shell *::after {
	box-sizing: border-box;
}

.rb-cfp-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--rb-black);
	border-radius: 999px;
	background: #fff;
	color: var(--rb-black);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.rb-cfp-filter-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--rb-yellow);
	color: var(--rb-black);
	font-size: 12px;
	font-weight: 700;
}

.rb-cfp-filter-panel {
	padding: 24px;
	border: 1px solid var(--rb-grey);
	border-radius: 14px;
	background: var(--rb-soft);
}

.rb-cfp-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rb-cfp-filter-head h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.rb-cfp-filter-close {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--rb-black);
	border-radius: 999px;
	background: #fff;
	color: var(--rb-black);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.rb-cfp-group {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.rb-cfp-group legend {
	margin-bottom: 10px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
}

.rb-cfp-dropdown {
	position: relative;
	margin-bottom: 14px;
}

.rb-cfp-filter-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: start;
	margin-bottom: 14px;
}

.rb-cfp-filter-row-more {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0;
}

.rb-cfp-filter-row .rb-cfp-dropdown {
	margin-bottom: 0;
}

.rb-cfp-group .rb-cfp-dropdown-legend {
	display: block;
	margin-bottom: 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.rb-cfp-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	background: #fff;
	color: var(--rb-black);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rb-cfp-dropdown-toggle:hover {
	border-color: #b8b8b8;
}

.rb-cfp-dropdown-toggle[aria-expanded="true"] {
	border-color: var(--rb-black);
	box-shadow: 0 0 0 3px rgba(41, 41, 42, 0.08);
}

.rb-cfp-dropdown-toggle:disabled {
	border-color: #e5e5e5;
	background: #fafafa;
	color: #9a9a9a;
	cursor: not-allowed;
}

.rb-cfp-dropdown-toggle:focus-visible {
	outline: 2px solid var(--rb-black);
	outline-offset: 2px;
}

.rb-cfp-dropdown-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rb-cfp-dropdown-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--rb-yellow);
	color: var(--rb-black);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.rb-cfp-chevron {
	flex: 0 0 auto;
	color: #6b7280;
	transition: transform 0.18s ease;
}

.rb-cfp-dropdown-toggle[aria-expanded="true"] .rb-cfp-chevron {
	transform: rotate(180deg);
}

.rb-cfp-dropdown-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 30;
	max-height: 280px;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 40px -18px rgba(24, 36, 52, 0.35);
}

.rb-cfp-dropdown-options {
	display: grid;
	gap: 2px;
}

.rb-cfp-dropdown-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--rb-black);
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.rb-cfp-dropdown-option:hover {
	background: var(--rb-soft);
}

.rb-cfp-dropdown-option.is-selected {
	background: #fffbe6;
}

.rb-cfp-dropdown-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rb-cfp-dropdown-option-text {
	flex: 1 1 auto;
}

.rb-cfp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid #cfcfcf;
	border-radius: 5px;
	background: #fff;
	color: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rb-cfp-dropdown-option.is-selected .rb-cfp-check {
	border-color: var(--rb-yellow);
	background: var(--rb-yellow);
	color: var(--rb-black);
}

.rb-cfp-dropdown-option input:focus-visible ~ .rb-cfp-check {
	outline: 2px solid var(--rb-black);
	outline-offset: 2px;
}

.rb-cfp-dropdown-clear {
	width: 100%;
	margin-top: 4px;
	padding: 10px 10px 6px;
	border: 0;
	border-top: 1px solid #efefef;
	background: transparent;
	color: #6b7280;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.rb-cfp-dropdown-clear:hover {
	color: var(--rb-black);
}

.rb-cfp-dropdown-clear[hidden],
.rb-cfp-dropdown-count[hidden],
.rb-cfp-dropdown-panel[hidden] {
	display: none;
}

.rb-cfp-empty-note,
.rb-cfp-hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.rb-cfp-more {
	margin: 0 0 20px;
	border-top: 1px solid var(--rb-grey);
}

.rb-cfp-more summary {
	padding: 14px 0;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.rb-cfp-more-body {
	padding: 0 0 4px;
}

.rb-cfp-filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.rb-cfp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.rb-cfp-button-primary {
	border-color: var(--rb-yellow);
	background: var(--rb-yellow);
	color: var(--rb-black);
}

.rb-cfp-button-primary:hover,
.rb-cfp-button-primary:focus {
	border-color: var(--rb-black);
	background: var(--rb-black);
	color: #fff;
}

.rb-cfp-button-secondary {
	border-color: var(--rb-black);
	background: transparent;
	color: var(--rb-black);
}

.rb-cfp-button-secondary:hover,
.rb-cfp-button-secondary:focus {
	background: var(--rb-black);
	color: #fff;
}

.rb-cfp-button:focus-visible {
	outline: 2px solid var(--rb-black);
	outline-offset: 2px;
}

.rb-cfp-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 16px;
}

.rb-cfp-count {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.rb-cfp-search {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rb-cfp-search label {
	font-size: 14px;
	font-weight: 600;
}

.rb-cfp-search input {
	min-height: 44px;
	min-width: 220px;
	padding: 0 16px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: var(--rb-black);
}

.rb-cfp-search input:focus-visible {
	outline: 2px solid var(--rb-black);
	outline-offset: 2px;
}

.rb-cfp-clear-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--rb-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rb-cfp-empty {
	margin-top: 18px;
	padding: 24px;
	border: 1px dashed #c9c9c9;
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.rb-cfp-empty p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
}

.rb-cfp-empty .rb-cfp-button {
	margin-top: 6px;
}

.rb-cfp-filter-backdrop {
	display: none;
}

/* Card shortcodes */

.rb-cfp-license {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rb-yellow, #ffd600);
	color: var(--rb-black, #29292a);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.rb-cfp-license svg {
	flex: 0 0 auto;
}

.rb-cfp-experience {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
}

.rb-cfp-card-terms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 8px;
}

.rb-cfp-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #eaeaea;
	color: #29292a;
	font-size: 12px;
	line-height: 1.3;
}

/* Single profile shortcodes */

.rb-cfp-role {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

.rb-cfp-bio p:last-child {
	margin-bottom: 0;
}

.rb-cfp-profile-term-groups {
	display: grid;
	gap: 14px;
}

.rb-cfp-term-group h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
}

.rb-cfp-profile-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rb-cfp-section {
	margin: 0 0 24px;
}

.rb-cfp-section h2 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.rb-cfp-section ul {
	margin: 0;
	padding-left: 20px;
}

.rb-cfp-section li {
	margin-bottom: 6px;
	line-height: 1.65;
}

.rb-cfp-booking-cta {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

@media (max-width: 767px) {
	.rb-cfp-filter-toggle {
		display: inline-flex;
	}

	.rb-cfp-filter-close {
		display: inline-flex;
	}

	.rb-cfp-filter-panel {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10000;
		max-height: 85vh;
		overflow-y: auto;
		padding: 20px 18px 96px;
		border-radius: 18px 18px 0 0;
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 0.25s ease, visibility 0.25s ease;
	}

	.rb-cfp-filter-shell.is-open .rb-cfp-filter-panel {
		visibility: visible;
		transform: translateY(0);
	}

	.rb-cfp-filter-shell.is-open .rb-cfp-filter-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: rgba(0, 0, 0, 0.45);
	}

	body.rb-cfp-lock {
		overflow: hidden;
	}

	.rb-cfp-results-bar {
		align-items: stretch;
	}

	.rb-cfp-search {
		flex: 1 1 100%;
	}

	.rb-cfp-search input {
		flex: 1;
		min-width: 0;
	}

	.rb-cfp-filter-actions .rb-cfp-button {
		flex: 1 1 auto;
	}
}

@media (min-width: 768px) {
	.rb-cfp-filter-backdrop {
		display: none !important;
	}
}

.rb-cfp-filter-toggle,
.rb-cfp-filter-close,
.rb-cfp-button,
.rb-cfp-option span {
	text-transform: none;
}

@media (max-width: 767px) {
	.rb-cfp-dropdown-panel {
		position: static;
		margin-top: 8px;
		max-height: 260px;
		box-shadow: none;
	}

	.rb-cfp-dropdown-toggle {
		border-radius: 10px;
	}
}

.rb-cfp-dropdown-toggle,
.rb-cfp-dropdown-legend,
.rb-cfp-dropdown-value,
.rb-cfp-dropdown-option,
.rb-cfp-dropdown-option-text,
.rb-cfp-dropdown-clear {
	text-transform: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.rb-cfp-filter-row-main,
	.rb-cfp-filter-row-more {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rb-cfp-filter-row,
	.rb-cfp-filter-row-more {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.rb-cfp-certificate-block {
	display: grid;
	gap: 14px;
}

.rb-cfp-certificate-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rb-cfp-certificate-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.rb-cfp-certificate-image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	margin: 0;
	padding: 12px;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	background: #fff;
}

.rb-cfp-certificate-image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 80px;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	.rb-cfp-certificate-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rb-cfp-certificate-image {
		min-height: 84px;
		padding: 10px;
	}

	.rb-cfp-certificate-image img {
		max-height: 64px;
	}
}
