/* ============ FORMULARZ ============ */

.dam-booking-wrap {
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
}

.dam-booking-form .dam-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}

.dam-booking-form label {
	font-weight: 600;
	margin-bottom: 6px;
}

.dam-preselected-doctor {
	background: #f6f7f7;
	padding: 10px 14px;
	border-radius: 6px;
	margin: 0 0 16px;
}

.dam-booking-form input[type="text"],
.dam-booking-form input[type="email"],
.dam-booking-form input[type="tel"],
.dam-booking-form input[type="date"],
.dam-booking-form select,
.dam-booking-form textarea {
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	font-size: 15px;
}

.dam-booking-form select:disabled,
.dam-booking-form input:disabled {
	background: #f0f0f1;
	cursor: not-allowed;
}

.dam-summary {
	flex-direction: row !important;
	align-items: center;
	justify-content: space-between;
	background: #f6f7f7;
	padding: 12px 16px;
	border-radius: 6px;
}

.dam-submit-btn,
.dam-trigger-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dam-submit-btn:hover,
.dam-trigger-btn:hover {
	background: #135e96;
}

.dam-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dam-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 15px;
}

.dam-message.dam-success {
	background: #edfaef;
	color: #1a7f37;
	border: 1px solid #1a7f37;
}

.dam-message.dam-error {
	background: #fdeded;
	color: #d63638;
	border: 1px solid #d63638;
}

/* ============ MODAL ============ */

body.dam-modal-open {
	overflow: hidden;
}

.dam-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 16px;
}

.dam-modal-box {
	background: #fff;
	border-radius: 10px;
	padding: 32px;
	max-width: 560px;
	width: 100%;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.dam-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.dam-modal-close:hover {
	color: #000;
}

/* ============ PRZYCISK (WIDGET "button") ============ */

.dam-trigger-btn {
	display: inline-block;
}

/* ============ KARTA LEKARZA ============ */

.dam-doctor-card {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #fff;
	max-width: 480px;
}

.dam-doctor-photo {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dam-doctor-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dam-doctor-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
	color: #8c8f94;
	background: #e2e4e7;
}

.dam-doctor-info {
	flex: 1;
	min-width: 0;
}

.dam-doctor-name {
	margin: 0 0 4px;
	font-size: 18px;
}

.dam-doctor-specialization {
	margin: 0 0 6px;
	color: #555;
}

.dam-doctor-services-count {
	margin: 0 0 12px;
	font-size: 13px;
	color: #777;
}

.dam-card-btn {
	padding: 10px 18px;
	font-size: 14px;
}

/* ============ SIATKA LEKARZY ============ */

.dam-doctor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.dam-doctor-grid .dam-doctor-card {
	max-width: none;
}
