/* Callback Form */

.akpp77-cb-block {
	max-width: 360px;
	width: 100%;
}

.akpp77-cb-block--button {
	max-width: none;
	display: inline-block;
}

.akpp77-cb-form--card {
	background: rgba(10, 12, 16, 0.88);
	border-radius: 12px;
	padding: 22px 20px 18px;
	box-sizing: border-box;
}

.akpp77-cb-form__title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 14px;
	line-height: 1.3;
}

.akpp77-cb-field {
	display: block;
	margin: 0 0 12px;
}

.akpp77-cb-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 0 12px;
	min-height: 48px;
}

.akpp77-cb-phone--light {
	background: #f3f4f6;
	border-color: #e5e7eb;
}

.akpp77-cb-phone__prefix {
	flex: 0 0 auto;
	color: #9ca3af;
	font-weight: 600;
	font-size: 15px;
}

.akpp77-cb-phone--light .akpp77-cb-phone__prefix {
	color: #6b7280;
}

.akpp77-cb-phone__flag {
	width: 18px;
	height: 12px;
	border-radius: 2px;
	background: linear-gradient(
		to bottom,
		#fff 0 33%,
		#0039a6 33% 66%,
		#d52b1e 66% 100%
	);
	flex: 0 0 auto;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.akpp77-cb-input {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
	background: transparent;
	color: #f3f4f6;
	font-size: 15px;
	line-height: 1.3;
	outline: none;
	padding: 12px 0;
	box-sizing: border-box;
}

.akpp77-cb-form--card .akpp77-cb-field > .akpp77-cb-input {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 12px 14px;
	min-height: 48px;
}

.akpp77-cb-phone--light .akpp77-cb-input {
	color: #111827;
}

.akpp77-cb-input::placeholder {
	color: #9ca3af;
}

.akpp77-cb-submit,
.akpp77-cb-open-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: var(--akpp77-cb-accent, #B21900);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
	box-sizing: border-box;
	padding: 0 16px;
}

.akpp77-cb-open-btn {
	width: auto;
	padding: 0 22px;
}

.akpp77-cb-submit:hover:not(:disabled),
.akpp77-cb-open-btn:hover:not(:disabled) {
	filter: brightness(0.95);
}

.akpp77-cb-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: none;
}

.akpp77-cb-submit:disabled[data-sending='1'] {
	opacity: 0.7;
	cursor: wait !important;
}

.akpp77-cb-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	color: #9ca3af;
	font-size: 12px;
	line-height: 1.35;
	cursor: pointer;
}

.akpp77-cb-consent input {
	margin-top: 2px;
	flex: 0 0 auto;
}

.akpp77-cb-consent a {
	color: var(--akpp77-cb-accent, #B21900);
	text-decoration: underline;
}

.akpp77-cb-consent.is-invalid,
.akpp77-cb-consent.is-invalid a {
	color: #dc2626;
}

.akpp77-cb-form--card .akpp77-cb-consent.is-invalid,
.akpp77-cb-form--card .akpp77-cb-consent.is-invalid a {
	color: #fca5a5;
}

.akpp77-cb-consent.is-invalid input {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.akpp77-cb-msg {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.4;
}

.akpp77-cb-msg.is-ok {
	color: #059669;
}

.akpp77-cb-msg.is-err {
	color: #dc2626;
}

.akpp77-cb-form--card .akpp77-cb-msg.is-ok {
	color: #34d399;
}

.akpp77-cb-form--card .akpp77-cb-msg.is-err {
	color: #fca5a5;
}

.akpp77-cb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* Callback panel, styled after the Mango Office widget */
.akpp77-cb-overlay {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	width: 380px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
}

.akpp77-cb-overlay--left {
	right: auto;
	left: 24px;
}

.akpp77-cb-overlay[hidden] {
	display: none !important;
}

.akpp77-cb-modal {
	position: relative;
	background: rgba(64, 64, 64, 0.96);
	border-radius: 6px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	padding: 22px 22px 18px;
	box-sizing: border-box;
	color: #fff;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.akpp77-cb-modal__close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 20px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.akpp77-cb-modal__close:hover {
	background: #000;
}

.akpp77-cb-modal__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.akpp77-cb-modal__title.is-solo {
	margin-bottom: 16px;
}

.akpp77-cb-modal__hours {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.3;
	color: #e5e5e5;
}

.akpp77-cb-modal__hl {
	color: #7cc4ff;
}

.akpp77-cb-time {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.akpp77-cb-select {
	height: 36px;
	border: 1px solid #d4d4d4;
	border-radius: 3px;
	background: #fff;
	color: #222;
	font-size: 14px;
	padding: 0 8px;
	box-sizing: border-box;
	cursor: pointer;
}

.akpp77-cb-time > .akpp77-cb-select {
	flex: 0 0 50%;
	min-width: 0;
}

.akpp77-cb-select--short {
	width: 62px;
}

.akpp77-cb-time__clock {
	flex: 1 1 auto;
	text-align: center;
	color: #e5e5e5;
	font-size: 14px;
	white-space: nowrap;
}

.akpp77-cb-time__pick {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.akpp77-cb-time__sep {
	color: #fff;
	font-weight: 700;
}

.akpp77-cb-time.is-now .akpp77-cb-time__pick,
.akpp77-cb-time:not(.is-now) .akpp77-cb-time__clock {
	display: none;
}

.akpp77-cb-form--modal .akpp77-cb-field {
	margin-bottom: 12px;
}

.akpp77-cb-form--modal .akpp77-cb-phone {
	min-height: 40px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 3px;
	padding: 0 10px;
}

.akpp77-cb-form--modal .akpp77-cb-phone__prefix {
	color: #fff;
	font-size: 17px;
	font-weight: 400;
}

.akpp77-cb-form--modal .akpp77-cb-input {
	color: #fff;
	font-size: 17px;
	padding: 8px 0;
	letter-spacing: 0.02em;
}

.akpp77-cb-form--modal .akpp77-cb-input::placeholder {
	color: #9a9a9a;
}

.akpp77-cb-form--modal .akpp77-cb-submit {
	min-height: 38px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 400;
}

.akpp77-cb-consent--modal {
	margin-top: 12px;
	color: #d4d4d4;
	font-size: 11px;
}

.akpp77-cb-consent--modal a {
	color: #d4d4d4;
	text-decoration: none;
}

.akpp77-cb-consent--modal a:hover {
	text-decoration: underline;
}

.akpp77-cb-form--modal .akpp77-cb-consent.is-invalid,
.akpp77-cb-form--modal .akpp77-cb-consent.is-invalid a,
.akpp77-cb-form--modal .akpp77-cb-msg.is-err {
	color: #ff9b9b;
}

.akpp77-cb-form--modal .akpp77-cb-msg.is-ok {
	color: #7ee2b0;
}

/*
 * Themes (Kadence on remontakpp77.ru) style select/input and their :focus state globally,
 * e.g. white text on a white field; the panel must look the same on any theme.
 */
.akpp77-cb-modal .akpp77-cb-select,
.akpp77-cb-modal .akpp77-cb-select:hover,
.akpp77-cb-modal .akpp77-cb-select:focus,
.akpp77-cb-modal .akpp77-cb-select:active {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	height: 36px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 26px 0 10px !important;
	border: 1px solid #d4d4d4 !important;
	border-radius: 3px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 9px center !important;
	background-size: 10px 6px !important;
	color: #222 !important;
	-webkit-text-fill-color: #222 !important;
	font: 400 14px/34px Arial, "Helvetica Neue", Helvetica, sans-serif !important;
	text-indent: 0 !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.akpp77-cb-modal .akpp77-cb-select:focus-visible {
	outline: 2px solid #7cc4ff !important;
	outline-offset: 1px !important;
}

.akpp77-cb-modal .akpp77-cb-select option {
	color: #222 !important;
	background: #fff !important;
}

.akpp77-cb-modal .akpp77-cb-time > .akpp77-cb-select {
	flex: 0 0 50% !important;
	width: 50% !important;
	max-width: 50% !important;
}

.akpp77-cb-modal .akpp77-cb-select--short {
	flex: 0 0 auto !important;
	width: 62px !important;
	max-width: 62px !important;
}

.akpp77-cb-modal .akpp77-cb-input,
.akpp77-cb-modal .akpp77-cb-input:hover,
.akpp77-cb-modal .akpp77-cb-input:focus,
.akpp77-cb-modal .akpp77-cb-input:active {
	flex: 1 1 auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 8px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font: 400 17px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif !important;
	box-shadow: none !important;
	outline: none !important;
}

.akpp77-cb-modal .akpp77-cb-input::placeholder {
	color: #9a9a9a !important;
	-webkit-text-fill-color: #9a9a9a !important;
	opacity: 1 !important;
}

.akpp77-cb-modal .akpp77-cb-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 40px #404040 inset !important;
	-webkit-text-fill-color: #fff !important;
}

.akpp77-cb-form--card .akpp77-cb-input:focus,
.akpp77-cb-form--card .akpp77-cb-input:hover {
	color: #f3f4f6 !important;
	-webkit-text-fill-color: #f3f4f6 !important;
	box-shadow: none !important;
}

.akpp77-cb-form--card .akpp77-cb-phone .akpp77-cb-input,
.akpp77-cb-form--card .akpp77-cb-phone .akpp77-cb-input:focus {
	background: transparent !important;
	border: 0 !important;
}

.akpp77-cb-form--modal .akpp77-cb-phone:focus-within {
	border-color: #fff;
}

.akpp77-cb-modal .akpp77-cb-consent input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	width: 14px !important;
	height: 14px !important;
	margin: 1px 0 0 !important;
	opacity: 1 !important;
	position: static !important;
}

.js-akpp77-callback,
.js-akpp77-callback *,
.akpp77-cb-open-btn,
.akpp77-cb-modal .akpp77-cb-select,
.akpp77-cb-modal .akpp77-cb-submit,
.akpp77-cb-modal .akpp77-cb-modal__close,
.akpp77-cb-consent,
.akpp77-cb-consent input,
.akpp77-cb-consent a {
	cursor: pointer !important;
}

.akpp77-cb-input {
	cursor: text !important;
}

[data-akpp77-trigger]:focus {
	outline: none;
}

[data-akpp77-trigger]:focus-visible {
	outline: 3px solid var(--akpp77-cb-accent, #B21900) !important;
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 480px) {
	.akpp77-cb-overlay,
	.akpp77-cb-overlay--left {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
	}

	.akpp77-cb-modal {
		padding: 20px 16px 16px;
	}

	.akpp77-cb-modal__close {
		right: -6px;
	}
}

/* Floating call button */
.akpp77-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--akpp77-cb-accent, #B21900);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.akpp77-fab:hover {
	transform: scale(1.06);
	filter: brightness(0.95);
}
.akpp77-fab:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.akpp77-fab::before,
.akpp77-fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--akpp77-cb-accent, #B21900);
	opacity: 0;
	animation: akpp77-fab-pulse 2.4s ease-out infinite;
	pointer-events: none;
}
.akpp77-fab::after {
	animation-delay: 1.2s;
}
.akpp77-fab svg {
	width: 28px;
	height: 28px;
	animation: akpp77-fab-ring 2.4s ease-in-out infinite;
}
.akpp77-fab__label {
	position: absolute;
	right: 72px;
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: #111827;
	color: #fff;
	font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	padding: 9px 12px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.akpp77-fab:hover .akpp77-fab__label,
.akpp77-fab:focus-visible .akpp77-fab__label {
	opacity: 1;
}
.akpp77-fab[hidden],
html.akpp77-cb-lock .akpp77-fab {
	display: none;
}
@keyframes akpp77-fab-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(1.7); opacity: 0; }
}
@keyframes akpp77-fab-ring {
	0%, 60%, 100% { transform: rotate(0); }
	65% { transform: rotate(-14deg); }
	70% { transform: rotate(12deg); }
	75% { transform: rotate(-10deg); }
	80% { transform: rotate(8deg); }
	85% { transform: rotate(0); }
}
@media (max-width: 767px) {
	.akpp77-fab {
		right: 16px;
		bottom: 16px;
		width: 56px;
		height: 56px;
	}
	.akpp77-fab__label {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.akpp77-fab::before,
	.akpp77-fab::after,
	.akpp77-fab svg {
		animation: none;
	}
}

.akpp77-fab--left {
	right: auto;
	left: 24px;
}

.akpp77-fab--left .akpp77-fab__label {
	right: auto;
	left: 72px;
}

@media (max-width: 767px) {
	.akpp77-fab--left {
		right: auto;
		left: 16px;
	}
}
