:root {
	--efc-primary: #17629B;
	--efc-primary-dark: #114c77;
	--efc-primary-soft: rgba(23, 98, 155, 0.12);
	--efc-surface: #ffffff;
	--efc-text: #17324d;
	--efc-muted: #6b7f93;
	--efc-border: #d9e4ee;
	--efc-shadow: 0 22px 65px rgba(16, 39, 61, 0.18);
	--efc-radius: 20px;
}

.efc-chatbot {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--efc-text);
}

.efc-chatbot.is-embedded {
	position: relative;
	right: auto;
	bottom: auto;
	z-index: 1;
	max-width: 100%;
}

.efc-launcher-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.efc-launcher__prompt {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 999px 999px 8px 999px;
	background: rgba(255, 255, 255, 0.96);
	color: var(--efc-primary-dark);
	border: 1px solid rgba(23, 98, 155, 0.16);
	box-shadow: 0 12px 30px rgba(16, 39, 61, 0.12);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.01em;
	transform-origin: bottom right;
	animation: efcFloatIn 540ms ease both;
	pointer-events: none;
	user-select: none;
}

.efc-launcher {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 0;
	cursor: pointer;
	padding: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--efc-primary), #2b7bb8);
	color: #fff;
	box-shadow: var(--efc-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
	position: relative;
}

.efc-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 26px 70px rgba(16, 39, 61, 0.24);
	filter: saturate(1.05);
}

.efc-launcher__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #fff;
}

.efc-launcher__icon svg {
	display: block;
	width: 30px;
	height: 30px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.efc-panel {
	width: min(460px, calc(100vw - 32px));
	margin-top: 14px;
	background: var(--efc-surface);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: var(--efc-radius);
	box-shadow: var(--efc-shadow);
	overflow: hidden;
	backdrop-filter: blur(18px);
}

.efc-chatbot.is-embedded .efc-launcher {
	display: none;
}

@keyframes efcFloatIn {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.efc-chatbot.is-embedded .efc-panel {
	width: 100%;
	margin-top: 0;
}

.efc-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 22px 16px;
	background: linear-gradient(135deg, rgba(23, 98, 155, 0.06), rgba(23, 98, 155, 0.02));
	border-bottom: 1px solid var(--efc-border);
}

.efc-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--efc-primary);
}

.efc-panel__header h3 {
	margin: 4px 0 6px;
	font-size: 20px;
	line-height: 1.15;
}

.efc-panel__header p,
.efc-intro p,
.efc-step__header p {
	margin: 0;
	color: var(--efc-muted);
	font-size: 14px;
	line-height: 1.55;
}

.efc-close {
	border: 0;
	background: transparent;
	font-size: 24px;
	color: var(--efc-muted);
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.efc-panel__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 22px 0;
}

.efc-panel__meta span {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(23, 98, 155, 0.08);
	color: var(--efc-primary-dark);
	font-size: 12px;
	font-weight: 600;
}

.efc-progress {
	height: 4px;
	background: rgba(23, 98, 155, 0.08);
	margin: 16px 22px 0;
	border-radius: 999px;
	overflow: hidden;
}

.efc-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--efc-primary), #2b7bb8);
	border-radius: inherit;
	transition: width 220ms ease;
}

.efc-panel__body {
	padding: 18px 22px 10px;
	max-height: min(68vh, 760px);
	overflow: auto;
}

.efc-intro {
	padding: 16px;
	border: 1px solid rgba(23, 98, 155, 0.12);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(23, 98, 155, 0.05), rgba(23, 98, 155, 0.01));
	margin-bottom: 18px;
}

.efc-intro strong {
	color: var(--efc-text);
}

.efc-intro ul {
	margin: 12px 0 0;
	padding-left: 20px;
	color: var(--efc-muted);
}

.efc-step__header {
	margin-bottom: 16px;
}

.efc-step__header h4,
.efc-review__files h4 {
	margin: 0 0 6px;
	font-size: 17px;
}

.efc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.efc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.efc-field--full {
	grid-column: 1 / -1;
}

.efc-field > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--efc-text);
}

.efc-hint {
	font-size: 12px;
	color: var(--efc-muted);
	line-height: 1.45;
}

.efc-field input,
.efc-field select,
.efc-field textarea {
	width: 100%;
	border: 1px solid var(--efc-border);
	border-radius: 14px;
	background: #fff;
	color: var(--efc-text);
	font-size: 14px;
	padding: 12px 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.efc-field textarea {
	resize: vertical;
	min-height: 120px;
}

.efc-field input:focus,
.efc-field select:focus,
.efc-field textarea:focus {
	outline: none;
	border-color: rgba(23, 98, 155, 0.6);
	box-shadow: 0 0 0 4px rgba(23, 98, 155, 0.12);
}

.efc-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.efc-option-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.efc-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px;
	border: 1px solid var(--efc-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.efc-option:hover {
	transform: translateY(-1px);
	border-color: rgba(23, 98, 155, 0.36);
	box-shadow: 0 10px 20px rgba(15, 37, 58, 0.06);
}

.efc-option input {
	accent-color: var(--efc-primary);
}

.efc-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--efc-border);
	border-radius: 14px;
	background: #fff;
}

.efc-checkbox input {
	margin-top: 3px;
	accent-color: var(--efc-primary);
}

.efc-upload-meta {
	display: grid;
	gap: 10px;
}

.efc-upload-progress {
	height: 10px;
	background: rgba(23, 98, 155, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

.efc-upload-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--efc-primary), #2b7bb8);
	border-radius: inherit;
	transition: width 180ms ease;
}

.efc-uploaded,
.efc-upload-status {
	font-size: 12px;
	color: var(--efc-muted);
}

.efc-error {
	font-size: 12px;
	color: #b42318;
}

.efc-step__actions {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
}

.efc-button,
.efc-button--secondary {
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.efc-button {
	background: linear-gradient(135deg, var(--efc-primary), #2b7bb8);
	color: #fff;
	box-shadow: 0 14px 26px rgba(23, 98, 155, 0.22);
}

.efc-button--secondary {
	background: rgba(23, 98, 155, 0.08);
	color: var(--efc-primary-dark);
}

.efc-button:hover,
.efc-button--secondary:hover {
	transform: translateY(-1px);
}

.efc-form-message {
	margin-top: 14px;
	font-size: 13px;
	color: var(--efc-muted);
	min-height: 18px;
}

.efc-form-message[data-type="success"] {
	color: #117a37;
}

.efc-form-message[data-type="error"] {
	color: #b42318;
}

.efc-review {
	display: grid;
	gap: 16px;
}

.efc-review__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.efc-review__item {
	padding: 14px;
	border: 1px solid var(--efc-border);
	border-radius: 14px;
	background: #fff;
}

.efc-review__item small {
	display: block;
	margin-bottom: 6px;
	color: var(--efc-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.efc-review__item strong {
	font-size: 14px;
	line-height: 1.45;
}

.efc-review__files {
	padding: 16px;
	border: 1px solid rgba(23, 98, 155, 0.12);
	border-radius: 16px;
	background: rgba(23, 98, 155, 0.04);
}

.efc-review__consent {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(23, 98, 155, 0.08);
	color: var(--efc-text);
	font-size: 13px;
}

.efc-success {
	text-align: center;
	padding: 28px 16px 8px;
}

.efc-success__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(23, 98, 155, 0.12);
	color: var(--efc-primary);
	font-size: 28px;
	font-weight: 800;
}

.efc-panel__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 22px;
	border-top: 1px solid var(--efc-border);
	background: linear-gradient(180deg, rgba(23, 98, 155, 0.02), rgba(23, 98, 155, 0.04));
}

.efc-company {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.efc-company strong {
	font-size: 14px;
}

.efc-company small {
	font-size: 12px;
	color: var(--efc-muted);
}

.efc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.efc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--efc-primary);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	transition: transform 160ms ease, opacity 160ms ease;
}

.efc-link:hover {
	transform: translateY(-1px);
	color: #fff;
}

.efc-link.is-secondary {
	background: rgba(23, 98, 155, 0.08);
	color: var(--efc-primary-dark);
}

@media (max-width: 680px) {
	.efc-chatbot {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	.efc-panel,
	.efc-chatbot.is-embedded .efc-panel {
		width: 100%;
	}

	.efc-grid,
	.efc-review__grid,
	.efc-option-grid {
		grid-template-columns: 1fr;
	}

	.efc-step__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.efc-button,
	.efc-button--secondary,
	.efc-link {
		width: 100%;
	}

	.efc-launcher-wrap {
		align-items: flex-end;
	}

	.efc-panel__footer {
		flex-direction: column;
		align-items: stretch;
	}
}
