/* ================================================================
   Sticky side bar (Contact Us + LinkedIn + Facebook) and the contact
   form pop-up it opens. Replaces the old rotated "ENQUIRY" tab and
   slide-in panel. Markup: template-parts/sticky-bar.php + footer.php.
   Loaded on every page, home included.
   Overrides style.css / bugfixes.css rules for .enq_form (hence the
   "body" prefix and a few !important).
   Button blue is #0a79a8 (white text contrast 4.8:1, WCAG AA).
   ================================================================ */

/* Home page: the full-page scroller's side dots are removed (the sticky bar sits there). */
body #fp-nav {
	display: none !important;
}

/* ---------- Side bar ---------- */
.pi-sticky {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 9990;
	display: flex;
	flex-direction: column;
	width: 48px;
	border-radius: 12px 0 0 12px;
	overflow: hidden;
	box-shadow: -4px 8px 24px rgba(5, 10, 46, 0.3);
}
.pi-sticky .pi-sticky-contact {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 24px 0;
	border: 0;
	border-radius: 0;
	background: #0a79a8;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}
.pi-sticky .pi-sticky-contact:hover,
.pi-sticky .pi-sticky-contact:focus-visible {
	background: #08698f;
}
.pi-sticky .pi-sticky-text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	font: 600 14px/1 Roboto, Arial, Helvetica, sans-serif;
	letter-spacing: 1.6px;
	color: #fff;
}
.pi-sticky .pi-sticky-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	color: #fff;
	text-decoration: none;
	transition: filter 0.2s ease;
}
.pi-sticky .pi-sticky-link:hover,
.pi-sticky .pi-sticky-link:focus-visible {
	filter: brightness(1.15);
	color: #fff;
}
.pi-sticky .pi-sticky-li {
	background: #0a66c2;
}
.pi-sticky .pi-sticky-fb {
	background: #3b5998;
}

/* ---------- Contact form pop-up ---------- */
body .enq_form {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(5, 10, 46, 0.72);
	transform: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 100000;
	overflow-y: auto;
}
body .enq_form.open {
	right: 0;
	transform: none;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
body .enq_form .container {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: auto;
	padding: 34px 32px 30px !important;
	box-sizing: border-box;
	background: #0b1238;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
body .enq_form .enq-title {
	margin: 0 0 24px;
	text-align: center;
	font: 500 24px/1.2 Roboto, Arial, Helvetica, sans-serif;
	letter-spacing: 0.4px;
	color: #fff;
}
body .enq_form .enq_form_close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
}
body .enq_form .enq_form_close:hover {
	color: #4cc3ee;
}
body .enq_form form {
	display: block;
}
body .enq_form ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
body .enq_form ul li {
	display: block;
	float: none;
	margin: 0 0 14px;
	padding: 0;
}
body #enq_form input[type="text"],
body #enq_form input[type="tel"],
body #enq_form input[type="email"],
body #enq_form textarea {
	display: block;
	width: 100% !important;
	height: auto;
	margin: 0 !important;
	padding: 14px 16px !important;
	box-sizing: border-box;
	background: #070c2a;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	color: #fff;
	font: 400 16px/1.4 Roboto, Arial, Helvetica, sans-serif;
	outline: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body #enq_form textarea {
	min-height: 120px;
	resize: vertical;
}
body #enq_form input::placeholder,
body #enq_form textarea::placeholder {
	color: rgba(255, 255, 255, 0.62);
}
body #enq_form input[type="text"]:focus,
body #enq_form input[type="tel"]:focus,
body #enq_form input[type="email"]:focus,
body #enq_form textarea:focus {
	border-color: #1ba3d6;
	box-shadow: 0 0 0 3px rgba(27, 163, 214, 0.25);
}
body #enq_form label.error {
	display: block;
	margin: 6px 2px 0;
	font-size: 13px;
	color: #ff8a8a !important;
}
body #enq_form .c-status {
	margin: 0 0 14px;
	text-align: center;
	font-size: 15px;
}
body #enq_form .c-status .red {
	color: #ff8a8a !important;
}
body #enq_form .c-status span.green {
	color: #5be39a;
}
body #enq_form .c-load {
	width: 36px;
	margin: 0 auto;
}
body #enq_form .c-load img {
	display: block;
	width: 100%;
	height: auto;
}
body #enq_form .send_btn {
	display: inline-block;
	margin: 6px 0 0 !important;
	padding: 13px 38px !important;
	background: #0a79a8;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font: 600 15px/1 Roboto, Arial, Helvetica, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}
body #enq_form .send_btn:hover {
	background: #08698f;
}
body #enq_form .send_btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.pi-sticky {
		width: 42px;
	}
	.pi-sticky .pi-sticky-contact {
		padding: 18px 0;
	}
	.pi-sticky .pi-sticky-text {
		font-size: 13px;
	}
	.pi-sticky .pi-sticky-link {
		height: 46px;
	}
	body .enq_form {
		padding: 12px;
	}
	body .enq_form .container {
		padding: 28px 20px 24px !important;
	}
}
