.pb-wrap {
	--pb-primary: #2c6478;
	--pb-primary-dark: #1f4a58;
	--pb-accent: #c9a15f;
	--pb-bg: #f8fafc;
	--pb-card: #ffffff;
	--pb-border: #e5e7eb;
	--pb-text: #1e293b;
	--pb-text-light: #64748b;
	--pb-radius: 16px;
	--pb-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
	--pb-shadow-lg: 0 12px 28px rgba(15,23,42,.10);

	max-width: 880px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--pb-text);
	box-sizing: border-box;
}
.pb-wrap *, .pb-wrap *::before, .pb-wrap *::after { box-sizing: border-box; }

.pb-step-title {
	font-family: 'Poppins', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 22px;
	margin: 0 0 20px;
	color: var(--pb-text);
}

/* Progress bar */
.pb-progress { display: flex; align-items: center; justify-content: center; margin: 8px 0 36px; }
.pb-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.pb-progress-num {
	width: 34px; height: 34px; border-radius: 50%;
	background: #eef2f7; color: var(--pb-text-light);
	display: flex; align-items: center; justify-content: center;
	font-weight: 600; font-size: 14px; transition: all .25s ease;
	border: 2px solid transparent;
}
.pb-progress-label { font-size: 12px; color: var(--pb-text-light); font-weight: 500; }
.pb-progress-step.is-active .pb-progress-num { background: var(--pb-primary); color: #fff; box-shadow: 0 0 0 4px rgba(44,100,120,.18); }
.pb-progress-step.is-active .pb-progress-label { color: var(--pb-primary); font-weight: 600; }
.pb-progress-step.is-completed .pb-progress-num { background: var(--pb-primary-dark); color: #fff; }
.pb-progress-line { width: 48px; height: 2px; background: var(--pb-border); margin: 0 8px 20px; }

/* Steps */
.pb-step { display: none; animation: pbFadeIn .35s ease; }
.pb-step.is-active { display: block; }
@keyframes pbFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pb-search-wrap { margin-bottom: 18px; }
#pb-doctor-search {
	width: 100%; max-width: 360px; padding: 11px 16px; border-radius: 999px;
	border: 1px solid var(--pb-border); font-size: 14px; font-family: inherit;
	background: var(--pb-card);
}
#pb-doctor-search:focus { outline: none; border-color: var(--pb-primary); box-shadow: 0 0 0 3px rgba(44,100,120,.14); }

/* Doctor grid */
.pb-doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pb-doctor-card {
	border: 1px solid var(--pb-border); border-radius: var(--pb-radius);
	background: var(--pb-card); overflow: hidden; box-shadow: var(--pb-shadow);
	transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.pb-doctor-card:hover { transform: translateY(-4px); box-shadow: var(--pb-shadow-lg); }
.pb-doctor-photo { width: 100%; height: 190px; overflow: hidden; background: linear-gradient(135deg, #dde9ec, #f2e6d0); }
.pb-doctor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-doctor-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-size: 48px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, var(--pb-primary), var(--pb-accent));
}
.pb-doctor-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.pb-doctor-body h4 { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; }
.pb-spec-badge {
	display: inline-block; font-size: 12px; font-weight: 600; color: var(--pb-primary-dark);
	background: #f2e6d0; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; width: fit-content;
}
.pb-doctor-excerpt { font-size: 13.5px; color: var(--pb-text-light); line-height: 1.5; margin: 0 0 16px; flex: 1; }
.pb-select-doctor {
	margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(135deg, var(--pb-primary), var(--pb-primary-dark)); color: #fff; border: none;
	padding: 11px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
	font-family: inherit; transition: filter .15s ease, transform .15s ease;
}
.pb-select-doctor:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pb-select-doctor svg { flex-shrink: 0; }

.pb-empty { color: var(--pb-text-light); font-size: 14px; padding: 30px 0; text-align: center; }

/* Back button */
.pb-back {
	background: none; border: none; color: var(--pb-primary-dark); cursor: pointer;
	margin-bottom: 20px; font-size: 14px; font-weight: 600; padding: 0;
	display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
}
.pb-back:hover { text-decoration: underline; }

/* Doctor summary panel (step 2) */
.pb-doctor-summary {
	display: flex; gap: 16px; align-items: flex-start; background: var(--pb-bg);
	border: 1px solid var(--pb-border); border-radius: var(--pb-radius); padding: 18px; margin-bottom: 26px;
}
.pb-doctor-summary-photo { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eef2f7; }
.pb-doctor-summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.pb-doctor-summary-photo .pb-doctor-placeholder { border-radius: 50%; font-size: 24px; }
.pb-doctor-summary-text h4 { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: 16px; }
.pb-doctor-summary-text p { margin: 8px 0 0; font-size: 13.5px; color: var(--pb-text-light); line-height: 1.55; }

.pb-loading { color: var(--pb-text-light); font-size: 14px; padding: 20px 0; }

/* Slots */
.pb-slot-date { margin-bottom: 22px; }
.pb-slot-date h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--pb-text); }
.pb-slot-times { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-slot-btn {
	border: 1.5px solid var(--pb-border); background: var(--pb-card); color: var(--pb-text);
	padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600;
	font-family: inherit; transition: all .15s ease;
}
.pb-slot-btn:hover { border-color: var(--pb-primary); color: var(--pb-primary-dark); }
.pb-slot-btn.is-selected { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }

/* Form */
.pb-slot-summary-card { background: var(--pb-bg); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); padding: 18px; margin-bottom: 24px; }
.pb-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.pb-summary-row .pb-summary-label { color: var(--pb-text-light); font-weight: 500; }
.pb-summary-row span:last-child { font-weight: 600; }

.pb-field { margin-bottom: 16px; }
.pb-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--pb-text); }
#pb-booking-form input {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--pb-border); border-radius: 10px;
	font-size: 14.5px; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
#pb-booking-form input:focus { outline: none; border-color: var(--pb-primary); box-shadow: 0 0 0 3px rgba(44,100,120,.14); }

.pb-submit-btn {
	width: 100%; background: linear-gradient(135deg, var(--pb-primary), var(--pb-primary-dark)); color: #fff;
	border: none; padding: 14px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
	font-family: inherit; margin-top: 6px; position: relative; transition: filter .15s ease;
}
.pb-submit-btn:hover { filter: brightness(1.08); }
.pb-submit-btn:disabled { opacity: .8; cursor: not-allowed; }
.pb-btn-spinner {
	width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
	border-radius: 50%; display: inline-block; animation: pbSpin .7s linear infinite;
}
@keyframes pbSpin { to { transform: rotate(360deg); } }

.pb-error {
	background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px;
	padding: 10px 14px; font-size: 13.5px; margin: 14px 0;
}

/* Success */
.pb-success { text-align: center; background: var(--pb-card); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); padding: 40px 28px; box-shadow: var(--pb-shadow); }
.pb-success-icon {
	width: 68px; height: 68px; border-radius: 50%; background: #dcfce7; color: #16a34a;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.pb-success h3 { font-family: 'Poppins', sans-serif; font-size: 22px; margin: 0 0 18px; }
.pb-confirm-message { color: var(--pb-text-light); font-size: 14px; margin-bottom: 18px; }
#pb-confirmation-details { text-align: left; max-width: 340px; margin: 0 auto; }
.pb-meet-link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	background: linear-gradient(135deg, var(--pb-accent), var(--pb-primary)); color: #fff; text-decoration: none;
	padding: 13px; border-radius: 10px; font-weight: 600; font-size: 14.5px; margin-top: 18px;
}
.pb-meet-link:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
	.pb-progress-line { width: 24px; margin: 0 4px 20px; }
	.pb-progress-label { display: none; }
	.pb-doctors-grid { grid-template-columns: 1fr 1fr; }
	.pb-doctor-summary { flex-direction: column; align-items: center; text-align: center; }
}
