:root {
	--bdp-red: #c62828;
	--bdp-red-dark: #a31f1f;
}
.bdp-wrap {
	max-width: 560px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.bdp-card {
	background: #fff;
	border-radius: 14px;
	padding: 28px 24px 32px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.bdp-title {
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 6px;
	color: #1a1a1a;
}
.bdp-subtitle {
	text-align: center;
	color: #666;
	margin-top: 0;
	margin-bottom: 22px;
	font-size: 14.5px;
}
.bdp-form {
	margin-top: 20px;
}
.bdp-form-stacked .bdp-field {
	margin-bottom: 18px;
}
.bdp-row {
	display: flex;
	gap: 24px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.bdp-field {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
}
.bdp-field label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #222;
}
.bdp-req {
	color: var(--bdp-red);
}
.bdp-hint {
	margin: 6px 2px 0;
	font-size: 12.5px;
	color: #888;
}
.bdp-field input[type="text"],
.bdp-field input[type="email"],
.bdp-field input[type="date"],
.bdp-field select,
.bdp-field textarea {
	padding: 11px 12px;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 8px;
	font-size: 14.5px;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}
.bdp-field textarea {
	resize: vertical;
}
.bdp-field input:focus,
.bdp-field select:focus,
.bdp-field textarea:focus {
	outline: none;
	border-color: var(--bdp-red);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.bdp-city-wrap {
	position: relative;
}
.bdp-city-wrap::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #999;
	transform: translateY(-50%);
	pointer-events: none;
}
.bdp-city-wrap .bdp-city-input {
	padding-right: 34px;
}
.bdp-city-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 50;
}
.bdp-city-option {
	padding: 10px 14px;
	font-size: 14.5px;
	cursor: pointer;
}
.bdp-city-option:hover,
.bdp-city-option:active {
	background: #fbeaea;
	color: var(--bdp-red);
}
.bdp-field-invalid {
	border-color: var(--bdp-red) !important;
	background: #fff5f5 !important;
}
.bdp-radio-group {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 38px;
}
.bdp-radio-group label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.bdp-agree {
	margin-bottom: 20px;
	font-size: 13.5px;
	color: #444;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.bdp-agree input {
	margin-top: 4px;
	accent-color: var(--bdp-red);
}
.bdp-btn {
	background: var(--bdp-red);
	color: #fff;
	border: none;
	padding: 13px 26px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.bdp-btn:hover {
	background: var(--bdp-red-dark);
}
.bdp-form-stacked .bdp-btn {
	width: 100%;
}
.bdp-msg {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}
.bdp-msg.success {
	background: #e6f6ea;
	color: #1c7a37;
	border: 1px solid #b7e3c4;
}
.bdp-msg.error {
	background: #fdeaea;
	color: #a3222f;
	border: 1px solid #f3bcbf;
}

/* Public detail / share page */
.bdp-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 22px;
}
.bdp-detail-table th,
.bdp-detail-table td {
	text-align: left;
	padding: 10px 4px;
	font-size: 14.5px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}
.bdp-detail-table th {
	width: 42%;
	color: #666;
	font-weight: 600;
}
.bdp-detail-table td {
	color: #1a1a1a;
	font-weight: 500;
}
.bdp-whatsapp-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	background: #25d366;
}
.bdp-whatsapp-btn:hover {
	background: #1ebd58;
	color: #fff;
}
.bdp-search-wrap {
	max-width: 1000px;
}
.bdp-hero-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	background: linear-gradient(135deg, var(--bdp-red), var(--bdp-red-dark));
	color: #fff;
	border-radius: 14px;
	padding: 18px 24px;
	margin-bottom: 26px;
	box-shadow: 0 8px 24px rgba(198, 40, 40, 0.25);
}
.bdp-hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 100px;
}
.bdp-hero-num {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}
.bdp-hero-label {
	font-size: 12.5px;
	opacity: 0.9;
	margin-top: 4px;
	text-align: center;
}
.bdp-hero-divider {
	width: 1px;
	align-self: stretch;
	background: rgba(255, 255, 255, 0.35);
}

.bdp-search-form {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.bdp-search-form select {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}
.bdp-lists {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.bdp-list-col {
	flex: 1 1 380px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 18px 18px 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}
.bdp-list-col h3 {
	color: #1a1a1a;
	margin: 0 0 14px;
	font-size: 16.5px;
}
.bdp-feed {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bdp-view-all {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	margin-top: 10px;
	padding: 10px;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 8px;
	color: #555;
	font-size: 13px;
	font-weight: 600;
}
.bdp-view-all:hover {
	background: #f2f2f2;
	color: var(--bdp-red);
	border-color: var(--bdp-red);
}

/* Standalone "View All" browse page */
.bdp-back-link {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--bdp-red);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.bdp-back-link:hover {
	text-decoration: underline;
}
.bdp-browse-col {
	max-width: 640px;
	margin: 0 auto;
}
.bdp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
}
.bdp-page-link {
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fafafa;
	border: 1px solid #eee;
	color: #444;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}
.bdp-page-link:hover {
	background: #f2f2f2;
	border-color: var(--bdp-red);
	color: var(--bdp-red);
}
.bdp-page-current {
	background: var(--bdp-red);
	border-color: var(--bdp-red);
	color: #fff;
}
/* Modern feed cards */
.bdp-feed-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	padding: 12px 4px;
	border-bottom: 1px solid #f1f1f1;
	border-left: 4px solid #ccc;
	transition: background 0.15s ease;
}
.bdp-feed-item:last-child {
	border-bottom: none;
}
.bdp-feed-item:hover {
	background: #fafafa;
}
.bdp-feed-badge {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bdp-red);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bdp-feed-badge-donor {
	background: #1c9a4b;
}
.bdp-feed-body {
	flex: 1 1 180px;
	min-width: 0;
}
.bdp-feed-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
	gap: 8px;
	margin-bottom: 2px;
}
.bdp-feed-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 2px 8px;
	border-radius: 20px;
	background: #eee;
	color: #666;
	white-space: nowrap;
}
.bdp-feed-tag-eligible {
	background: #e6f6ea;
	color: #1c7a37;
}
.bdp-feed-time {
	font-size: 11.5px;
	color: #999;
	white-space: nowrap;
}
.bdp-feed-title {
	font-weight: 700;
	font-size: 14.5px;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bdp-feed-sub {
	font-size: 12.5px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bdp-feed-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 6px;
	margin-left: auto;
}

/* Urgency accent colors on the request cards */
.bdp-urgency-urgent {
	border-left-color: #e08a1e;
}
.bdp-urgency-urgent .bdp-feed-tag {
	background: #fdeee0;
	color: #b5651d;
}
.bdp-urgency-emergency {
	border-left-color: var(--bdp-red);
	background: #fff7f7;
}
.bdp-urgency-emergency .bdp-feed-tag {
	background: #fbe4e4;
	color: var(--bdp-red);
}
.bdp-feed-donor {
	border-left-color: #1c9a4b;
}

/* On narrow phones, the badge + title/subtitle no longer leave enough
   room for the button on the same line — so below ~480px, drop the
   button to its own full-width line instead of letting it clip off
   the edge of the card. */
@media (max-width: 480px) {
	.bdp-feed-body {
		flex-basis: calc(100% - 56px);
	}
	.bdp-feed-actions {
		flex: 1 1 100%;
		margin-left: 56px;
		width: calc(100% - 56px);
	}
	.bdp-feed-request-btn {
		display: block;
		width: 100%;
		text-align: center;
	}
}



/* Request Details button (replaces direct phone/WhatsApp exposure) */
.bdp-feed-request-btn {
	background: #fff;
	border: 1.5px solid var(--bdp-red);
	color: var(--bdp-red);
	font-size: 12.5px;
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 20px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.bdp-feed-request-btn:hover {
	background: var(--bdp-red);
	color: #fff;
}

/* Request Details modal */
.bdp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.bdp-modal {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: 26px 22px 22px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.bdp-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}
.bdp-modal-close:hover {
	color: #333;
}
.bdp-modal-title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: #1a1a1a;
	padding-right: 20px;
}
.bdp-modal-sub {
	font-size: 13px;
	color: #777;
	margin: 0 0 18px;
	line-height: 1.5;
}
.bdp-modal .bdp-field {
	margin-bottom: 14px;
}
