.rbm-partnership-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.rbm-section {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.rbm-section legend {
	font-weight: 600;
	padding: 0 6px;
}

.rbm-field {
	margin-bottom: 14px;
}

.rbm-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.rbm-field input[type="text"],
.rbm-field input[type="tel"],
.rbm-field input[type="email"],
.rbm-field select,
.rbm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.rbm-required {
	color: #d63638;
}

.rbm-route-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.rbm-route-option {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 10px 12px;
	cursor: pointer;
}

.rbm-route-panel {
	border-top: 1px dashed #ddd;
	padding-top: 14px;
	margin-top: 4px;
}

.rbm-category-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rbm-category-item {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 8px 10px;
}

.rbm-category-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: normal;
	margin-bottom: 0;
}

/* Carousel */
.rbm-carousel {
	margin-top: 10px;
	overflow: hidden;
}

.rbm-carousel-track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	cursor: grab;
	padding-bottom: 2px;
}

.rbm-carousel-track::-webkit-scrollbar {
	display: none;
}

.rbm-carousel-track:active {
	cursor: grabbing;
}

.rbm-carousel-slide {
	flex: 0 0 calc(25% - 6px);
	min-width: 70px;
}

.rbm-carousel-slide img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	pointer-events: none;
	user-select: none;
}

.rbm-submit-row {
	text-align: right;
}

.rbm-submit-row button {
	background: #dbf8fa;
	color: #0a333f;
	border: none;
	border-radius: 6px;
	padding: 12px 24px;
	font-size: 15px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.rbm-submit-row button:hover:not(:disabled) {
	background: #0a333f;
	color: #fff;
}

.rbm-submit-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rbm-form-error {
	background: #fdecea;
	color: #d63638;
	border: 1px solid #f5c2c0;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 12px;
}

.rbm-partnership-success {
	background: #eafaf1;
	color: #1e7e34;
	border: 1px solid #b6e3c6;
	border-radius: 6px;
	padding: 16px;
	text-align: center;
}

.rbm-route-panel input[type="radio"],
.rbm-route-panel input[type="checkbox"],
.rbm-route-selector input[type="radio"] {
	accent-color: #0a333f;
}

.rbm-product-popup {
	width: 220px;
	max-width: calc(100vw - 16px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	box-sizing: border-box;
}
.rbm-product-popup-img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: contain;
	background: #f5f5f5;
}
.rbm-product-popup-body {
	padding: 10px 12px;
}
.rbm-product-popup-title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
}
.rbm-product-popup-desc {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
}
.rbm-product-popup-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: #0a333f;
}

.rbm-carousel-slide {
	position: relative;
}
.rbm-carousel-slide.is-selected {
	outline: 3px solid #0a333f;
	outline-offset: -3px;
	border-radius: 6px;
}
.rbm-carousel-slide.is-selected::after {
	content: "✓";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #0a333f;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	pointer-events: none;
}

/* Cegah form melebar melebihi layar HP */
.rbm-section,
.rbm-route-panel,
.rbm-field,
.rbm-category-checklist,
.rbm-category-item,
.rbm-carousel {
	box-sizing: border-box;
	min-width: 0;
}
fieldset.rbm-section {
	min-width: 0;
}
.rbm-field input,
.rbm-field select,
.rbm-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.rbm-carousel-track {
	max-width: 100%;
}
