: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);
}

/* CTA buttons on the full "Search For Blood" page */
.bdp-cta-row {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.bdp-cta-btn {
	flex: 1 1 200px;
	text-align: center;
	text-decoration: none;
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14.5px;
	color: #fff;
}
.bdp-cta-request {
	background: var(--bdp-red);
}
.bdp-cta-request:hover {
	background: var(--bdp-red-dark);
	color: #fff;
}
.bdp-cta-donor {
	background: #1c9a4b;
}
.bdp-cta-donor:hover {
	background: #16793b;
	color: #fff;
}

.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-tag-resting {
	background: #fff3e0;
	color: #b25e00;
}
.bdp-feed-donor-resting .bdp-feed-badge-donor {
	background: #f0a23b;
}
.bdp-feed-next {
	color: #b25e00;
	font-weight: 600;
}
.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;
}

/* ==========================================================================
   v2.1 — Match the Medlabs website theme + fix cut-off fields on all devices
   ========================================================================== */
:root {
	--bdp-primary: #268ed0;       /* same blue as the Medlabs site header */
	--bdp-primary-dark: #1b73ad;
	--bdp-primary-deep: #145b8a;
}

/* ---- Buttons: use the site blue everywhere (beats theme purple) ---- */
.bdp-wrap .bdp-btn,
.bdp-modal .bdp-btn,
.bdp-btn {
	background: var(--bdp-primary) !important;
	color: #fff !important;
	border: 1px solid var(--bdp-primary) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
	min-height: 48px;
	-webkit-appearance: none;
	appearance: none;
}
.bdp-wrap .bdp-btn:hover,
.bdp-wrap .bdp-btn:focus,
.bdp-modal .bdp-btn:hover,
.bdp-btn:hover,
.bdp-btn:focus {
	background: var(--bdp-primary-dark) !important;
	border-color: var(--bdp-primary-dark) !important;
	color: #fff !important;
}
.bdp-btn[disabled] { opacity: .7; cursor: not-allowed; }

.bdp-cta-request { background: var(--bdp-primary) !important; }
.bdp-cta-request:hover { background: var(--bdp-primary-dark) !important; }
.bdp-cta-donor { background: var(--bdp-primary-deep) !important; }
.bdp-cta-donor:hover { background: #0f4a72 !important; }

.bdp-feed-request-btn {
	background: #fff !important;
	color: var(--bdp-primary) !important;
	border: 1.5px solid var(--bdp-primary) !important;
}
.bdp-feed-request-btn:hover,
.bdp-feed-request-btn:focus {
	background: var(--bdp-primary) !important;
	color: #fff !important;
}
.bdp-wrap .bdp-feed-request-btn.bdp-btn { /* "Request Details" on the view page */
	background: var(--bdp-primary) !important;
	color: #fff !important;
}
.bdp-page-current { background: var(--bdp-primary) !important; border-color: var(--bdp-primary) !important; color:#fff !important; }
.bdp-page-link:hover { border-color: var(--bdp-primary); color: var(--bdp-primary); }
.bdp-view-all:hover { color: var(--bdp-primary); border-color: var(--bdp-primary); }
.bdp-city-option:hover, .bdp-city-option:active { background: #e8f3fb; color: var(--bdp-primary-dark); }

/* ---- Focus ring matches the buttons ---- */
.bdp-field input:focus,
.bdp-field select:focus,
.bdp-field textarea:focus {
	border-color: var(--bdp-primary) !important;
	box-shadow: 0 0 0 3px rgba(38, 142, 208, .18) !important;
}
.bdp-agree input { accent-color: var(--bdp-primary); }

/* ---- Inputs / selects: never clip text (Gender, Blood Type, Urgency…) ---- */
.bdp-wrap .bdp-field input[type="text"],
.bdp-wrap .bdp-field input[type="email"],
.bdp-wrap .bdp-field input[type="tel"],
.bdp-wrap .bdp-field input[type="date"],
.bdp-wrap .bdp-field select,
.bdp-wrap .bdp-field textarea {
	height: auto !important;
	min-height: 48px;
	line-height: 1.4 !important;
	padding: 12px 14px !important;
	font-size: 16px !important;      /* 16px also stops iOS zoom-on-focus */
	color: #222 !important;
	overflow: visible !important;
	margin: 0 !important;
	max-width: 100%;
	box-sizing: border-box !important;
}
.bdp-wrap .bdp-field textarea { min-height: 96px; line-height: 1.5 !important; }

.bdp-wrap .bdp-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 40px !important;
	text-overflow: ellipsis;
	white-space: nowrap;
	background-color: #fafafa;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}
.bdp-wrap .bdp-field select option { color: #222; padding: 8px; }

/* Date pickers collapse/clip on iOS Safari without this */
.bdp-wrap .bdp-field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	text-align: left;
	background-color: #fafafa;
}
.bdp-wrap .bdp-field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }

/* City search keeps its own arrow (select-style) */
.bdp-city-wrap::after { border-top-color: #777; }
.bdp-city-wrap .bdp-city-input { padding-right: 38px !important; }

/* ---- Responsive layout ---- */
.bdp-wrap { width: 100%; box-sizing: border-box; padding: 0 12px; }
.bdp-card { box-sizing: border-box; }
@media (max-width: 600px) {
	.bdp-wrap { margin: 12px auto; padding: 0 10px; }
	.bdp-card { padding: 22px 16px 26px; border-radius: 12px; }
	.bdp-title { font-size: 22px; }
	.bdp-row { gap: 14px; }
	.bdp-hero-bar { flex-wrap: wrap; gap: 14px; padding: 14px; }
	.bdp-hero-stat { min-width: 80px; }
	.bdp-list-col { flex-basis: 100%; }
	.bdp-modal { padding: 22px 16px 18px; }
}
@media (min-width: 1024px) {
	.bdp-wrap { max-width: 600px; }
	.bdp-wrap.bdp-search-wrap { max-width: 1000px; }
}

/* ---- "Share on Status" card shown after a blood request is created ---- */
.bdp-share-box {
	margin-top: 22px;
	padding: 18px 16px 20px;
	border: 1px solid #d6e8f5;
	background: #f4f9fd;
	border-radius: 12px;
	text-align: center;
}
.bdp-share-box h3 {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: #14405f;
}
.bdp-share-box p {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: #4b6a80;
	line-height: 1.5;
}
.bdp-share-canvas {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto 16px;
	border-radius: 10px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
	background: #fff;
}
.bdp-share-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.bdp-share-actions .bdp-btn {
	flex: 1 1 160px;
	width: auto;
	padding: 12px 16px;
	font-size: 15px;
}
.bdp-share-actions .bdp-btn-share-wa {
	background: #25d366 !important;
	border-color: #25d366 !important;
}
.bdp-share-actions .bdp-btn-share-wa:hover { background: #1ebd58 !important; border-color: #1ebd58 !important; }

/* Request link + private "fulfilled" link inside the status-image box */
.bdp-share-links { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #b9d6ea; text-align: center; }
.bdp-share-note { margin: 6px 0; font-size: 13.5px; color: #4b6a80; line-height: 1.5; }
.bdp-share-linkline { margin: 4px 0 10px; font-size: 13.5px; word-break: break-all; }
.bdp-share-linkline a, .bdp-share-note a { color: #268ed0; font-weight: 700; }
