/* Calendly to Tabs3 CRM — front end */
.ctc-booking {
	--ctc-btn-bg: #0069ff;
	--ctc-btn-fg: #fff;
	--ctc-radius: 10px;
	margin: 1.25em 0 1.5em;
}

.ctc-inline {
	position: relative;
	width: 100%;
	border-radius: var(--ctc-radius);
	overflow: hidden;
}

/* Popup triggers are <button>s — reset theme button styles so shortcode colours win. */
.ctc-booking .ctc-button,
.ctc-booking .ctc-button:hover,
.ctc-booking .ctc-button:focus,
.ctc-booking .ctc-button:active {
	background: var(--ctc-btn-bg);
	color: var(--ctc-btn-fg);
	border: 0;
	text-transform: none;
	letter-spacing: normal;
}

.ctc-booking .ctc-button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: .75em 1.5em;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.ctc-booking .ctc-button:hover,
.ctc-booking .ctc-button:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}

.ctc-booking .ctc-button[aria-busy="true"] { cursor: progress; opacity: .85; }

.ctc-booking .ctc-link,
.ctc-booking .ctc-link:hover,
.ctc-booking .ctc-link:focus {
	-webkit-appearance: none;
	appearance: none;
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--ctc-btn-bg);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

.ctc-booking .ctc-button:focus-visible,
.ctc-booking .ctc-link:focus-visible {
	outline: 3px solid var(--ctc-btn-bg);
	outline-offset: 3px;
}

.ctc-booking .ctc-button.ctc-upper,
.ctc-booking .ctc-link.ctc-upper { text-transform: uppercase; letter-spacing: .03em; }

/* Cards */
.ctc-cards {
	display: grid;
	gap: 20px;
	/* At most --ctc-cols columns, but never narrower than 190px — adapts to any content width. */
	grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - (var(--ctc-cols, 3) - 1) * 20px) / var(--ctc-cols, 3))), 1fr));
}
.ctc-cols-1 { --ctc-cols: 1; }
.ctc-cols-2 { --ctc-cols: 2; }
.ctc-cols-3 { --ctc-cols: 3; }
.ctc-cols-4 { --ctc-cols: 4; }

.ctc-card {
	--ctc-accent: #0069ff;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 22px 22px;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ctc-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: var(--ctc-accent);
}

.ctc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}

.ctc-card__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.3;
}

.ctc-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	color: #5c6470;
	font-size: .9rem;
}

.ctc-card__clock {
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
	flex: none;
}
.ctc-card__clock::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 3px;
	height: 5px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.ctc-card__desc {
	margin: 0;
	color: #3d4450;
	font-size: .95rem;
	line-height: 1.55;
}

.ctc-card__cta {
	align-self: flex-start;
}

.ctc-notice {
	padding: 14px 18px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
	border-radius: 6px;
	color: #3c3c3c;
}

.ctc-booking .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {
	.ctc-button, .ctc-card { transition: none; }
	.ctc-button:hover, .ctc-card:hover { transform: none; }
}
