/* DBD Business Consult Booking — Frontend styles */

.dbd-booking-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	color: #1f2933;
	line-height: 1.6;
}

.dbd-booking-wrap * { box-sizing: border-box; }

/* Step indicator */
.dbd-booking-wrap .dbd-steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: none;
}

.dbd-booking-wrap .dbd-steps li {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #9aa5b1;
	text-align: center;
	position: relative;
}

.dbd-booking-wrap .dbd-steps li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e4e7eb;
	color: #616e7c;
	font-weight: 700;
	transition: background 0.2s, color 0.2s;
}

.dbd-booking-wrap .dbd-steps li.is-active span {
	background: #2563eb;
	color: #fff;
}

.dbd-booking-wrap .dbd-steps li.is-done span {
	background: #10b981;
	color: #fff;
}

.dbd-booking-wrap .dbd-steps li.is-active,
.dbd-booking-wrap .dbd-steps li.is-done {
	color: #1f2933;
	font-weight: 600;
}

/* Panels */
.dbd-booking-wrap .dbd-panel { display: none; }
.dbd-booking-wrap .dbd-panel.is-active { display: block; }

.dbd-booking-wrap .dbd-panel-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
}

/* Fields */
.dbd-booking-wrap .dbd-field { margin-bottom: 16px; }

.dbd-booking-wrap .dbd-row {
	display: flex;
	gap: 14px;
}

.dbd-booking-wrap .dbd-row .dbd-field { flex: 1; }

.dbd-booking-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.dbd-booking-wrap .dbd-req { color: #dc2626; }

.dbd-booking-wrap select,
.dbd-booking-wrap input[type="text"],
.dbd-booking-wrap input[type="tel"],
.dbd-booking-wrap input[type="email"],
.dbd-booking-wrap textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cbd2d9;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.dbd-booking-wrap select:focus,
.dbd-booking-wrap input:focus,
.dbd-booking-wrap textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dbd-booking-wrap select:disabled {
	background: #f0f2f5;
	color: #9aa5b1;
	cursor: not-allowed;
}

.dbd-booking-wrap .dbd-field.has-error select,
.dbd-booking-wrap .dbd-field.has-error input,
.dbd-booking-wrap .dbd-field.has-error textarea {
	border-color: #dc2626;
}

.dbd-booking-wrap .dbd-hint {
	font-size: 13px;
	color: #7b8794;
	margin: 6px 0 0;
}

.dbd-booking-wrap .dbd-empty {
	padding: 16px;
	background: #f5f7fa;
	border-radius: 8px;
	color: #616e7c;
	text-align: center;
}

.dbd-booking-wrap .dbd-error {
	display: block;
	color: #dc2626;
	font-size: 13px;
	margin-top: 5px;
	min-height: 1em;
}

.dbd-booking-wrap .dbd-speaker-bio {
	font-size: 14px;
	color: #52606d;
	margin-top: 4px;
}

.dbd-booking-wrap .dbd-speaker-bio:not(:empty) {
	padding: 12px 14px;
	background: #f5f7fa;
	border-radius: 8px;
}

/* Slot grid */
.dbd-booking-wrap .dbd-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 4px;
}

.dbd-booking-wrap .dbd-slot {
	padding: 12px 8px;
	border: 1px solid #cbd2d9;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.15s;
}

.dbd-booking-wrap .dbd-slot:hover {
	border-color: #2563eb;
	background: #eff4ff;
}

.dbd-booking-wrap .dbd-slot.is-selected {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
}

/* Summary box (step 5) */
.dbd-booking-wrap .dbd-summary {
	background: #f5f7fa;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
}

.dbd-booking-wrap .dbd-summary dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 14px;
}

.dbd-booking-wrap .dbd-summary dt { color: #7b8794; }
.dbd-booking-wrap .dbd-summary dd { margin: 0; font-weight: 600; }

/* Actions / buttons */
.dbd-booking-wrap .dbd-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
}

.dbd-booking-wrap .dbd-actions .dbd-next,
.dbd-booking-wrap .dbd-actions .dbd-submit {
	margin-left: auto;
}

.dbd-booking-wrap .dbd-btn {
	display: inline-block;
	padding: 11px 24px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.dbd-booking-wrap .dbd-btn:hover { background: #1d4ed8; }

.dbd-booking-wrap .dbd-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dbd-booking-wrap .dbd-ghost {
	background: #fff;
	color: #3e4c59;
	border: 1px solid #cbd2d9;
}

.dbd-booking-wrap .dbd-ghost:hover { background: #f5f7fa; }

/* Alert */
.dbd-booking-wrap .dbd-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 14px;
}

/* Success */
.dbd-booking-wrap .dbd-success {
	text-align: center;
	padding: 30px 20px;
}

.dbd-booking-wrap .dbd-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 36px;
	line-height: 64px;
}

.dbd-booking-wrap .dbd-success h3 {
	font-size: 22px;
	margin: 0 0 8px;
}

.dbd-booking-wrap .dbd-success-detail {
	display: inline-block;
	text-align: left;
	background: #f5f7fa;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 16px 0;
	font-size: 14px;
}

@media (max-width: 480px) {
	.dbd-booking-wrap .dbd-row { flex-direction: column; gap: 0; }
	.dbd-booking-wrap .dbd-steps li { font-size: 12px; }
	.dbd-booking-wrap .dbd-steps li span { font-size: 14px; }
	.dbd-booking-wrap .dbd-slots-grid { grid-template-columns: repeat(2, 1fr); }
	.dbd-booking-wrap .dbd-actions { flex-wrap: wrap; }
	.dbd-booking-wrap .dbd-btn { padding: 12px 20px; }
}

/* Resend confirmation button shown in duplicate alert */
.dbd-resend-front {
	margin-top: 8px;
	background: #2563eb;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
}
.dbd-resend-front:hover { background: #1d4ed8; }
.dbd-resend-front:disabled { opacity: .6; cursor: default; }

/* v1.4.0 — red email note (Step 2) */
.dbd-booking-wrap .dbd-email-note {
	margin: 6px 0 0;
	color: #dc2626;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
}

/* v1.4.0 — red warning box for the post-submit "check your email" message */
.dbd-booking-wrap #dbd-success-message.dbd-warning-box {
	background: #fef2f2;
	border: 1px solid #f4b4b4;
	border-left: 4px solid #dc2626;
	color: #b91c1c;
	font-weight: 600;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 14px auto;
	max-width: 460px;
	line-height: 1.6;
	text-align: left;
}

/* v1.4.0 — small agency credit under the form */
.dbd-booking-wrap .dbd-credit {
	margin-top: 18px;
	text-align: center;
	color: #9aa5b1;
	font-size: 12px;
}
