/**
 * 4Blanc Registration — front-end (site tokens from ТЗ).
 */

.fblreg {
	--fblreg-text: #474747;
	--fblreg-heading: #171717;
	--fblreg-accent: #00be00;
	--fblreg-accent-hover: #199519;
	--fblreg-field-bg: #f2f2f2;
	--fblreg-border: #e6e6e6;
	--fblreg-white: #ffffff;
	--fblreg-error: #d32f2f;
	--fblreg-radius-card: 24px;
	--fblreg-radius-btn: 222px;
	--fblreg-max: 720px;
	--fblreg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--fblreg-dur: 0.35s;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--fblreg-max);
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 24px 16px;
	color: var(--fblreg-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

/* Keep desktop capped; .alignfull only expands on small screens. */
.fblreg.alignfull {
	max-width: var(--fblreg-max);
}

/* Avoid double title: theme H1 + form heading. */
body:has([data-fblreg-root]) .wp-block-post-title,
body:has([data-fblreg-check]) .wp-block-post-title {
	display: none !important;
}

/* Escape WP constrained layout / global padding so form matches viewport. */
.entry-content:has(.fblreg) {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.entry-content:has(.fblreg) > .fblreg {
	max-width: min(100%, var(--fblreg-max));
}

.fblreg *,
.fblreg *::before,
.fblreg *::after {
	box-sizing: border-box;
}

/* Soft reset so Elementor kit colors (#8A1149) do not paint our controls. */
.fblreg button {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
}

.fblreg__loading {
	padding: 24px;
	text-align: center;
	color: #888;
}

.fblreg__wrap--enter {
	animation: fblreg-fade-up var(--fblreg-dur) var(--fblreg-ease) both;
}

.fblreg__card {
	background: var(--fblreg-white);
	border: 1px solid var(--fblreg-border);
	border-radius: var(--fblreg-radius-card);
	padding: 32px;
	transition: border-color var(--fblreg-dur) var(--fblreg-ease), box-shadow var(--fblreg-dur) var(--fblreg-ease);
}

.fblreg__eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fblreg-accent);
}

.fblreg__h1 {
	margin: 0 0 12px;
	color: var(--fblreg-heading);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-transform: none;
}

.fblreg__card > .fblreg__h1 {
	margin: 0 0 16px;
	font-size: 28px;
}

.fblreg__title {
	margin: 0 0 12px;
	color: var(--fblreg-heading);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.fblreg__lead,
.fblreg__note {
	margin: 0 0 16px;
}

.fblreg__benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 16px;
}

.fblreg__benefit {
	background: var(--fblreg-field-bg);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform var(--fblreg-dur) var(--fblreg-ease), background 0.2s ease;
	animation: fblreg-fade-up 0.45s var(--fblreg-ease) both;
}

.fblreg__benefit:nth-child(1) {
	animation-delay: 0.05s;
}

.fblreg__benefit:nth-child(2) {
	animation-delay: 0.12s;
}

.fblreg__benefit:nth-child(3) {
	animation-delay: 0.19s;
}

.fblreg__benefit:hover {
	transform: translateY(-2px);
	background: #ebebeb;
}

.fblreg__benefit strong {
	color: var(--fblreg-heading);
	font-size: 22px;
	font-weight: 600;
}

.fblreg__benefit span {
	font-size: 14px;
}

.fblreg__label {
	display: block;
	margin: 16px 0 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fblreg-heading);
}

.fblreg__label--inline {
	margin: 0;
}

.fblreg__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 8px;
}

.fblreg__input {
	display: block;
	width: 100%;
	height: 56px;
	padding: 0 18px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background-color: var(--fblreg-field-bg);
	background-image: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--fblreg-heading);
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fblreg__input::placeholder {
	color: #9a9a9a;
}

select.fblreg__input {
	padding-right: 48px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23474747' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px 16px;
}

select.fblreg__input::-ms-expand {
	display: none;
}

.fblreg__input:hover {
	background-color: #ececec;
}

.fblreg__input:focus {
	border-color: var(--fblreg-accent);
	background-color: var(--fblreg-white);
	box-shadow: 0 0 0 3px rgba(0, 190, 0, 0.15);
}

.fblreg__input.is-invalid {
	border-color: var(--fblreg-error);
	box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
	animation: fblreg-shake 0.4s var(--fblreg-ease);
}

.fblreg__error {
	margin: 6px 0 0;
	color: var(--fblreg-error);
	font-size: 13px;
	animation: fblreg-fade-up 0.25s var(--fblreg-ease) both;
}

.fblreg .fblreg__btn,
.fblreg button.fblreg__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 14px 32px !important;
	border: 0 !important;
	border-radius: var(--fblreg-radius-btn) !important;
	background: var(--fblreg-accent) !important;
	background-color: var(--fblreg-accent) !important;
	color: var(--fblreg-white) !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, transform 0.2s var(--fblreg-ease), box-shadow 0.2s ease;
}

.fblreg .fblreg__btn:hover,
.fblreg .fblreg__btn:focus,
.fblreg button.fblreg__btn:hover,
.fblreg button.fblreg__btn:focus {
	background: var(--fblreg-accent-hover) !important;
	background-color: var(--fblreg-accent-hover) !important;
	color: var(--fblreg-white) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 190, 0, 0.25);
}

.fblreg .fblreg__btn:active,
.fblreg button.fblreg__btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.fblreg .fblreg__btn:disabled,
.fblreg button.fblreg__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.fblreg__nav {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	margin-top: 28px;
	padding-top: 8px;
}

.fblreg .fblreg__btn-back,
.fblreg button.fblreg__btn-back {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 120px;
	height: 56px;
	padding: 0 22px !important;
	border: 1.5px solid var(--fblreg-border) !important;
	border-radius: var(--fblreg-radius-btn) !important;
	background: var(--fblreg-white) !important;
	background-color: var(--fblreg-white) !important;
	color: var(--fblreg-text) !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--fblreg-ease);
}

.fblreg__btn-back-icon {
	display: inline-block;
	transition: transform 0.2s var(--fblreg-ease);
}

.fblreg .fblreg__btn-back:hover,
.fblreg .fblreg__btn-back:focus,
.fblreg button.fblreg__btn-back:hover,
.fblreg button.fblreg__btn-back:focus {
	color: var(--fblreg-heading) !important;
	border-color: #cfcfcf !important;
	background: #fafafa !important;
	background-color: #fafafa !important;
}

.fblreg__btn-back:hover .fblreg__btn-back-icon {
	transform: translateX(-2px);
}

.fblreg__btn--next {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 56px;
	margin-top: 0;
	padding: 0 28px;
}

.fblreg__progress {
	margin-bottom: 20px;
}

.fblreg__progress-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	margin-bottom: 8px;
	color: #666;
}

.fblreg__bar {
	height: 6px;
	background: var(--fblreg-field-bg);
	border-radius: 99px;
	overflow: hidden;
}

.fblreg__bar i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--fblreg-accent);
	border-radius: 99px;
	transition: width 0.45s var(--fblreg-ease);
}

.fblreg__link {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--fblreg-accent);
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.fblreg__link:hover {
	color: var(--fblreg-accent-hover);
}

.fblreg .fblreg__hint-toggle,
.fblreg button.fblreg__hint-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 4px 2px 4px 4px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #8a8a8a !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}

.fblreg .fblreg__hint-toggle:hover,
.fblreg .fblreg__hint-toggle:focus,
.fblreg .fblreg__hint-toggle.is-open,
.fblreg button.fblreg__hint-toggle:hover,
.fblreg button.fblreg__hint-toggle:focus,
.fblreg button.fblreg__hint-toggle.is-open {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-accent-hover) !important;
	box-shadow: none !important;
}

.fblreg .fblreg__hint-toggle:focus-visible,
.fblreg button.fblreg__hint-toggle:focus-visible {
	outline: 2px solid var(--fblreg-accent);
	outline-offset: 2px;
}

.fblreg .fblreg__hint-toggle-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50% !important;
	border: 1.5px solid currentColor !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fblreg .fblreg__hint-toggle.is-open .fblreg__hint-toggle-icon,
.fblreg button.fblreg__hint-toggle.is-open .fblreg__hint-toggle-icon {
	background: var(--fblreg-accent) !important;
	border-color: var(--fblreg-accent) !important;
	color: #fff !important;
}

.fblreg .fblreg__hint-toggle-text {
	text-decoration: none !important;
	color: inherit !important;
}

.fblreg__hint {
	margin-top: 10px;
	animation: fblreg-fade-up 0.25s var(--fblreg-ease) both;
}

.fblreg__hint-inner {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(0, 190, 0, 0.22);
	background: rgba(0, 190, 0, 0.06);
}

.fblreg__hint-inner:has(.fblreg__hint-img) {
	align-items: flex-start;
}

.fblreg__hint-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fblreg-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	text-transform: lowercase;
}

.fblreg__hint-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fblreg__hint-content p {
	margin: 0;
	color: var(--fblreg-text);
	font-size: 13px;
	line-height: 1.4;
}

.fblreg__hint-img {
	display: block;
	max-width: 100%;
	margin-top: 10px;
	border-radius: 10px;
}

.fblreg__check {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 16px 0;
	padding: 2px 0;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.fblreg__check-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.fblreg__check-box {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1.5px solid #c8c8c8;
	border-radius: 6px;
	background: var(--fblreg-white);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--fblreg-ease);
}

.fblreg__check-box::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 7px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg) scale(0.6);
	transition: opacity 0.15s ease, transform 0.2s var(--fblreg-ease);
}

.fblreg__check:hover .fblreg__check-box {
	border-color: var(--fblreg-accent);
}

.fblreg__check-input:checked + .fblreg__check-box {
	background: var(--fblreg-accent);
	border-color: var(--fblreg-accent);
}

.fblreg__check-input:checked + .fblreg__check-box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.fblreg__check-input:focus-visible + .fblreg__check-box {
	box-shadow: 0 0 0 3px rgba(0, 190, 0, 0.2);
	border-color: var(--fblreg-accent);
}

.fblreg__check-text {
	flex: 1;
	color: var(--fblreg-text);
}

.fblreg__check a {
	color: var(--fblreg-accent);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.fblreg__check a:hover {
	color: var(--fblreg-accent-hover);
}

.fblreg__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.fblreg__ok {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--fblreg-accent);
	color: #fff;
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fblreg-pop 0.5s var(--fblreg-ease) both;
}

.fblreg__card--final {
	text-align: center;
}

.fblreg__cert {
	text-align: left;
	background: var(--fblreg-field-bg);
	border: 1px solid var(--fblreg-border);
	border-radius: 16px;
	padding: 4px 18px;
	margin: 16px 0;
	display: grid;
	overflow: hidden;
}

.fblreg__cert-row {
	display: grid;
	grid-template-columns: minmax(120px, 38%) 1fr;
	gap: 12px 16px;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 14px;
}

.fblreg__cert-row:last-child {
	border-bottom: 0;
}

.fblreg__cert-label {
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.fblreg__cert-value {
	color: var(--fblreg-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.fblreg__cert-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.fblreg__check-result {
	margin-top: 24px;
}

.fblreg__check-panel {
	animation: fblreg-fade-up 0.35s var(--fblreg-ease) both;
}

.fblreg__status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.fblreg__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.fblreg__status-pill.is-ok {
	color: #0f7a0f;
	background: rgba(0, 190, 0, 0.12);
}

.fblreg__status-pill.is-expired {
	color: #666;
	background: #ececec;
}

.fblreg__status-pill.is-cancel {
	color: #b42318;
	background: rgba(211, 47, 47, 0.1);
}

.fblreg__cert--check {
	margin: 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fblreg__tg {
	--fblreg-tg: #2aabee;
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 20px 0 0;
	padding: 16px;
	border: 0;
	border-radius: 18px;
	background: #1e293b;
	color: #fff;
	text-align: left;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	animation: fblreg-fade-up 0.4s var(--fblreg-ease) 0.15s both;
	transition: transform 0.2s var(--fblreg-ease), box-shadow 0.2s ease, background 0.2s ease;
}

.fblreg__tg:hover {
	background: #0f172a;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

.fblreg__tg-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	overflow: hidden;
}

.fblreg__tg-icon svg {
	display: block;
	width: 40px;
	height: 40px;
}

.fblreg__tg-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fblreg__tg-title {
	display: block;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.fblreg__tg-text {
	display: block;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.4;
}

.fblreg__tg-go {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	transition: background 0.2s ease, transform 0.2s var(--fblreg-ease);
}

.fblreg__tg:hover .fblreg__tg-go {
	background: var(--fblreg-tg);
	transform: translateX(2px);
}

.fblreg__again {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--fblreg-border);
	text-align: center;
}

.fblreg__again-note {
	margin: 0 0 12px;
	color: #888;
	font-size: 14px;
}

.fblreg__btn--ghost {
	margin-top: 0;
	background: transparent;
	border: 1.5px solid var(--fblreg-border);
	color: var(--fblreg-heading);
	box-shadow: none;
}

.fblreg__btn--ghost:hover {
	background: var(--fblreg-field-bg);
	border-color: #cfcfcf;
	color: var(--fblreg-heading);
	box-shadow: none;
	transform: translateY(-1px);
}

/* —— FAQ —— */
.fblreg__faq {
	margin-top: 48px;
	padding: 28px 24px;
	background: var(--fblreg-field-bg);
	border-radius: 24px;
	animation: fblreg-fade-up 0.5s var(--fblreg-ease) 0.2s both;
}

.fblreg__faq-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	color: var(--fblreg-heading);
}

.fblreg__faq-list {
	display: flex;
	flex-direction: column;
}

.fblreg__faq-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fblreg__faq-item:last-child {
	border-bottom: 0;
}

.fblreg .fblreg__faq-q,
.fblreg button.fblreg__faq-q {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 18px 4px !important;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-heading) !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-align: left;
	cursor: pointer;
	outline: none;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}

.fblreg .fblreg__faq-q:hover,
.fblreg .fblreg__faq-q:focus,
.fblreg button.fblreg__faq-q:hover,
.fblreg button.fblreg__faq-q:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-accent-hover) !important;
	box-shadow: none !important;
}

.fblreg .fblreg__faq-q:focus-visible,
.fblreg button.fblreg__faq-q:focus-visible {
	outline: 2px solid var(--fblreg-accent);
	outline-offset: 2px;
}

.fblreg__faq-q-text {
	flex: 1;
	line-height: 1.35;
}

.fblreg__faq-icon {
	position: relative;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fblreg-white);
	box-shadow: 0 0 0 1px var(--fblreg-border);
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--fblreg-ease);
}

.fblreg__faq-icon::before,
.fblreg__faq-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: var(--fblreg-heading);
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s var(--fblreg-ease), background 0.2s ease, opacity 0.2s ease;
}

.fblreg__faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.fblreg__faq-item.is-open .fblreg__faq-icon {
	background: var(--fblreg-accent);
	box-shadow: none;
	transform: rotate(180deg);
}

.fblreg__faq-item.is-open .fblreg__faq-icon::before,
.fblreg__faq-item.is-open .fblreg__faq-icon::after {
	background: #fff;
}

.fblreg__faq-item.is-open .fblreg__faq-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.fblreg .fblreg__faq-item.is-open .fblreg__faq-q {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-accent-hover) !important;
}

.fblreg__faq-panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s var(--fblreg-ease);
}

.fblreg__faq-a {
	padding: 0 4px 18px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--fblreg-text);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.3s ease 0.05s, transform 0.3s var(--fblreg-ease) 0.05s;
}

.fblreg__faq-item.is-open .fblreg__faq-a {
	opacity: 1;
	transform: translateY(0);
}

.fblreg__status-big {
	font-size: 22px;
	font-weight: 600;
	margin: 20px 0 12px;
}

.fblreg__status-big.is-ok {
	color: var(--fblreg-accent);
}

.fblreg__status-big.is-expired {
	color: #888;
}

.fblreg__status-big.is-cancel {
	color: var(--fblreg-error);
}

@keyframes fblreg-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fblreg-pop {
	0% {
		opacity: 0;
		transform: scale(0.6);
	}
	70% {
		transform: scale(1.08);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fblreg-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-4px);
	}
	75% {
		transform: translateX(4px);
	}
}

@media (max-width: 1024px) {
	.fblreg {
		max-width: 100%;
		padding: 16px 0 24px;
	}

	.fblreg__card {
		padding: 28px 24px;
	}
}

@media (max-width: 767px) {
	/*
	 * .alignfull escapes is-layout-constrained; keep one shared gutter.
	 */
	.fblreg,
	.entry-content:has(.fblreg) > .fblreg {
		width: 100%;
		max-width: none !important;
		padding: 12px 16px 32px;
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}

	.fblreg__wrap,
	.fblreg__start,
	.fblreg__card,
	.fblreg__faq {
		width: 100%;
	}

	.fblreg__card {
		border-radius: 16px;
		padding: 20px 16px;
	}

	.fblreg__card--final {
		padding: 24px 16px;
	}

	.fblreg__h1 {
		font-size: 26px;
		margin: 0 0 10px;
		padding: 0;
	}

	.fblreg__card > .fblreg__h1 {
		font-size: 24px;
		margin: 0 0 14px;
	}

	.fblreg__title {
		font-size: 22px;
		margin: 0 0 8px;
		padding: 0;
	}

	.fblreg__lead,
	.fblreg__note {
		margin: 0 0 14px;
		padding: 0;
	}

	.fblreg__label {
		margin: 14px 0 6px;
	}

	.fblreg__label-row {
		margin: 14px 0 6px;
		align-items: center;
	}

	.fblreg__benefits {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fblreg__benefit {
		padding: 14px;
	}

	.fblreg__input {
		height: 52px;
		padding: 0 14px;
	}

	select.fblreg__input {
		padding-right: 44px;
		background-position: right 14px center;
	}

	.fblreg__progress {
		margin-bottom: 16px;
	}

	.fblreg__cert {
		padding: 2px 14px;
	}

	.fblreg__cert-row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 12px 0;
	}

	.fblreg__nav {
		flex-direction: column-reverse;
		gap: 10px;
		margin-top: 20px;
		padding-top: 0;
	}

	.fblreg__btn-back,
	.fblreg__btn--next {
		width: 100%;
		min-width: 0;
		flex: none;
	}

	.fblreg__faq {
		margin-top: 24px;
		padding: 18px 16px;
		border-radius: 16px;
	}

	.fblreg__faq-q {
		padding: 14px 0;
		font-size: 15px;
	}

	.fblreg__tg {
		padding: 14px;
		gap: 12px;
	}

	.fblreg__hint-toggle-text {
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.fblreg,
	.entry-content:has(.fblreg) > .fblreg {
		padding-left: max(12px, env(safe-area-inset-left, 0px));
		padding-right: max(12px, env(safe-area-inset-right, 0px));
	}

	.fblreg__card {
		padding: 18px 14px;
		border-radius: 14px;
	}
}

/*
 * Theme / Elementor shield.
 * Hello Elementor reset.css paints ALL buttons: border/color #c36, hover bg #c36.
 * Keep this block last; CSS is also enqueued late in PHP.
 */
body.elementor-kit-7 .fblreg button,
body.elementor-page .fblreg button,
body .fblreg button,
body .fblreg [type='button'],
body .fblreg [type='submit'],
body .fblreg button:hover,
body .fblreg button:focus,
body .fblreg button:active,
body .fblreg [type='button']:hover,
body .fblreg [type='button']:focus,
body .fblreg [type='submit']:hover,
body .fblreg [type='submit']:focus {
	background-image: none !important;
	border-style: solid !important;
	text-decoration: none !important;
	white-space: normal !important;
	user-select: auto !important;
}

/* Default transparent chrome for non-primary buttons (hint, FAQ, back). */
body .fblreg button.fblreg__hint-toggle,
body .fblreg button.fblreg__hint-toggle:hover,
body .fblreg button.fblreg__hint-toggle:focus,
body .fblreg button.fblreg__hint-toggle:active,
body .fblreg button.fblreg__faq-q,
body .fblreg button.fblreg__faq-q:hover,
body .fblreg button.fblreg__faq-q:focus,
body .fblreg button.fblreg__faq-q:active,
body .fblreg button.fblreg__btn-back,
body .fblreg button.fblreg__btn-back:hover,
body .fblreg button.fblreg__btn-back:focus {
	background: transparent !important;
	background-color: transparent !important;
	border-color: transparent !important;
	color: inherit !important;
}

body .fblreg button.fblreg__btn-back,
body .fblreg button.fblreg__btn-back:hover,
body .fblreg button.fblreg__btn-back:focus {
	background: var(--fblreg-white) !important;
	background-color: var(--fblreg-white) !important;
	border: 1.5px solid var(--fblreg-border) !important;
	border-color: var(--fblreg-border) !important;
	color: var(--fblreg-text) !important;
}

body .fblreg button.fblreg__btn-back:hover,
body .fblreg button.fblreg__btn-back:focus {
	background: #fafafa !important;
	background-color: #fafafa !important;
	border-color: #cfcfcf !important;
	color: var(--fblreg-heading) !important;
}

body .fblreg button.fblreg__hint-toggle,
body .fblreg button.fblreg__hint-toggle:hover,
body .fblreg button.fblreg__hint-toggle:focus {
	color: #8a8a8a !important;
}

body .fblreg button.fblreg__hint-toggle:hover,
body .fblreg button.fblreg__hint-toggle:focus,
body .fblreg button.fblreg__hint-toggle.is-open {
	color: var(--fblreg-accent-hover) !important;
}

body .fblreg button.fblreg__faq-q,
body .fblreg button.fblreg__faq-q:hover,
body .fblreg button.fblreg__faq-q:focus {
	color: var(--fblreg-heading) !important;
}

body .fblreg button.fblreg__faq-q:hover,
body .fblreg button.fblreg__faq-q:focus {
	color: var(--fblreg-accent-hover) !important;
}

body .fblreg button.fblreg__btn,
body .fblreg button.fblreg__btn:hover,
body .fblreg button.fblreg__btn:focus,
body .fblreg button.fblreg__btn:active {
	background: var(--fblreg-accent) !important;
	background-color: var(--fblreg-accent) !important;
	border: 0 !important;
	border-color: transparent !important;
	color: #fff !important;
}

body .fblreg button.fblreg__btn:hover,
body .fblreg button.fblreg__btn:focus {
	background: var(--fblreg-accent-hover) !important;
	background-color: var(--fblreg-accent-hover) !important;
	color: #fff !important;
}

body .fblreg a.fblreg__link,
body .fblreg .fblreg__link,
body .fblreg .fblreg__check a,
body .fblreg a.fblreg__tg,
body .fblreg .fblreg__again a {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-accent) !important;
	box-shadow: none !important;
}

body .fblreg a.fblreg__tg,
body .fblreg a.fblreg__tg:hover,
body .fblreg a.fblreg__tg:focus {
	background: #1e293b !important;
	background-color: #1e293b !important;
	color: #fff !important;
}

body .fblreg a.fblreg__tg:hover,
body .fblreg a.fblreg__tg:focus {
	background: #0f172a !important;
	background-color: #0f172a !important;
}

body .fblreg .fblreg__btn--ghost,
body .fblreg button.fblreg__btn--ghost,
body .fblreg .fblreg__btn--ghost:hover,
body .fblreg .fblreg__btn--ghost:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--fblreg-heading) !important;
	border: 1.5px solid var(--fblreg-border) !important;
	box-shadow: none !important;
}

/* Same 12px radius for text + select; Elementor kit uses 200px pills on focus. */
body .fblreg .fblreg__input,
body .fblreg input.fblreg__input,
body .fblreg select.fblreg__input,
body .fblreg textarea.fblreg__input,
body.elementor-kit-7 .fblreg input.fblreg__input,
body.elementor-kit-7 .fblreg select.fblreg__input,
body.elementor-kit-7 .fblreg input.fblreg__input:focus,
body.elementor-kit-7 .fblreg select.fblreg__input:focus,
body.elementor-kit-7 .fblreg input.fblreg__input:hover,
body.elementor-kit-7 .fblreg select.fblreg__input:hover {
	background-color: var(--fblreg-field-bg) !important;
	color: var(--fblreg-heading) !important;
	border-style: solid !important;
	border-width: 1.5px !important;
	border-color: transparent !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	padding: 0 18px !important;
	height: 56px !important;
}

body .fblreg select.fblreg__input,
body.elementor-kit-7 .fblreg select.fblreg__input {
	padding-right: 48px !important;
}

body .fblreg .fblreg__input:focus,
body .fblreg input.fblreg__input:focus,
body .fblreg select.fblreg__input:focus,
body.elementor-kit-7 .fblreg input.fblreg__input:focus,
body.elementor-kit-7 .fblreg select.fblreg__input:focus {
	border-color: var(--fblreg-accent) !important;
	border-radius: 12px !important;
	background-color: var(--fblreg-white) !important;
	box-shadow: 0 0 0 3px rgba(0, 190, 0, 0.15) !important;
	outline: none !important;
}

body .fblreg .fblreg__btn--next,
body .fblreg button.fblreg__btn--next {
	margin-top: 0 !important;
	height: 56px !important;
	padding: 0 28px !important;
}

@media (prefers-reduced-motion: reduce) {
	.fblreg *,
	.fblreg *::before,
	.fblreg *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
