/* Book a Call page, as on the reference: the header on the plain page colour, then a white column (about 914 px)
   holding the Cal ID booking card and its "Powered by Cal ID" line. */
.toposel-page--book-call {
	background: #f5f6fd;
}
.toposel-page--book-call .toposel-top--plain {
	background: #f5f6fd;
}
.toposel-page--book-call .toposel-book-call {
	min-height: 60vh;
	padding: 0 20px 60px;
	background: #f5f6fd;
}
.toposel-page--book-call .toposel-book-call__empty {
	max-width: 640px;
	margin: 40px auto;
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #3c434a;
	font-size: 14px;
}

.toposel-page--book-call .toposel-book-call__inner {
	box-sizing: border-box;
	max-width: 914px;
	margin: 0 auto;
	padding: 25px 60px 30px;
	background: #fff;
}
/* Desktop only (1025 px and wider): the booking card is wider, as on the reference (column about 1190 px,
   card about 1030 px). Tablet and phones keep the sizes above. */
@media (min-width: 1025px) {
	.toposel-page--book-call .toposel-book-call__inner {
		max-width: 1190px;
		padding: 25px 80px 30px;
	}
}

@media (max-width: 767px) {
	.toposel-page--book-call .toposel-book-call {
		min-height: 0; /* The 60vh minimum only mattered on desktop; on a phone it can only add blank space. */
		padding: 0 0 24px;
	}
	/* Some room under the booking card, so its last (right-aligned) buttons can be scrolled clear of floating
	   chat / WhatsApp buttons that sit in the bottom-right corner of the screen (was 96 px). */
	.toposel-page--book-call .toposel-book-call__inner {
		padding: 8px 12px 56px;
	}
	/* The embedded booking page sets its own height (it grows with each step); the box around it must never clip it. */
	.toposel-page--book-call .toposel-cal .toposel-cal__mount {
		overflow: visible;
	}
}

/* ---------- Cal ID inline booking ---------- */
.toposel-cal {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}
.toposel-cal .toposel-cal__mount {
	width: 100%;
	min-height: 520px;
	overflow: auto;
}
.toposel-cal .toposel-cal__fallback {
	display: none;
	margin: 16px 0 0;
	text-align: center;
	font-size: 14px;
	color: #4b5563;
}
.toposel-cal.is-failed .toposel-cal__fallback {
	display: block;
}
.toposel-cal .toposel-cal__fallback a {
	color: #4e2fda;
	font-weight: 600;
}

/* ---------- Request form (no Cal ID link set / [toposel_book_a_call mode="request"]) ---------- */
.toposel-bac-container {
	box-sizing: border-box;
	max-width: 500px;
	margin: 20px auto;
	padding: 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(78, 47, 218, 0.1);
}
.toposel-bac-container h3 {
	margin: 0 0 20px;
	font-size: 22px;
	text-align: center;
	color: #111827;
}
.toposel-bac-field {
	margin-bottom: 16px;
}
.toposel-bac-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}
.toposel-bac-field input,
.toposel-bac-field select,
.toposel-bac-field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.toposel-bac-field input:focus,
.toposel-bac-field select:focus,
.toposel-bac-field textarea:focus {
	border-color: #4e2fda;
	box-shadow: 0 0 0 3px rgba(78, 47, 218, 0.15);
	outline: none;
}
.toposel-bac-btn {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 999px;
	background: #4e2fda;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.toposel-bac-btn:hover {
	background: #3d22b8;
}
.toposel-bac-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}
.toposel-bac-response {
	display: none;
	margin-top: 15px;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}
.toposel-bac-response.success {
	background: #d1fae5;
	color: #065f46;
}
.toposel-bac-response.error {
	background: #fee2e2;
	color: #991b1b;
}
@media (max-width: 480px) {
	.toposel-bac-container {
		padding: 20px 16px;
	}
}
