
/* Lead tracking UI: appointment tab, floating WhatsApp/call buttons, WhatsApp modal.
   Self-contained — also loaded on CC landing pages where parent theme CSS is removed. */

/* ── "Make an Appointment" tab (replaces WP Contact Slider) ─────────────────── */
.cc-book-tab {
	position: fixed;
	top: 47%;
	right: 0;
	z-index: 9990;
	transform: translateX(50%) translateX(-20px) rotate(-90deg);
	transform-origin: center;
	padding: 8px 18px;
	background: #c0a479;
	border: 1px solid #c0a479;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: .02em;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background .2s ease;
}

.cc-book-tab:hover, .cc-book-tab:focus {
	background: #a98d62;
	color: #fff !important;
}

/* ── Floating WhatsApp / call buttons (main site; landing has its own) ────── */
.cc-float-btns {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cc-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .2s ease, background .2s ease;
}

.cc-float-btn:hover {
	transform: scale(1.08);
}

.cc-float-btn-wa {
	background: #25d366;
}

.cc-float-btn-wa:hover {
	background: #20ba5a;
}

.cc-float-btn-call {
	background: #666;
}

.cc-float-btn-call:hover {
	background: #555;
}

@media (max-width: 767px) {
	.cc-float-btns {
		right: 14px;
		bottom: 18px;
	}
	
	.cc-float-btn {
		width: 48px;
		height: 48px;
	}
}

/* ── WhatsApp modal ──────────────────────────────────────────────────────── */
.cc-wa-modal[hidden] {
	display: none !important;
}

.cc-wa-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cc-wa-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 28, 43, .65);
}

.cc-wa-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 28px 24px;
	background: #fff;
	border-top: 4px solid #25d366;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	color: #333;
	text-align: left;
}

.cc-wa-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: #888;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cc-wa-modal__close:hover {
	color: #333;
}

.cc-wa-modal__title {
	margin: 0 0 6px;
	color: #0d1c2b;
	font-size: 22px;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

.cc-wa-modal__intro {
	margin: 0 0 18px;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

.cc-wa-modal .form-wrap {
	padding: 0;
	margin: 0;
	background: none;
}

.cc-wa-modal .forminator-button-submit {
	width: 100%;
	background: #25d366 !important;
	border-color: #25d366 !important;
}

.cc-wa-modal .forminator-button-submit:hover {
	background: #20ba5a !important;
}

html.cc-wa-modal-open {
	overflow: hidden;
}
