.ecods-launch-btn {
	background-color: var( --ecods-color-secondary, #D87830 );
	color: #fff;
	font-family: var( --ecods-font-body, sans-serif );
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	border: none;
	border-radius: 6px;
	padding: 15px 30px;
	cursor: pointer;
	font-size: 14px;
	transition: opacity .15s ease, transform .1s ease;
}
.ecods-launch-btn:hover {
	opacity: .92;
}
.ecods-launch-btn:active {
	transform: translateY( 1px );
}

.ecods-modal-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ecods-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ecods-panel {
	background: #f2f0ec;
	max-width: 760px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 12px;
	position: relative;
	padding: 24px;
	padding-top: 48px;
	font-family: var( --ecods-font-body, sans-serif );
	color: var( --ecods-color-primary, #1B3B6F );
}

[data-ecods-inline] {
	background: #f2f0ec;
	border-radius: 12px;
	padding: 24px;
	font-family: var( --ecods-font-body, sans-serif );
	color: var( --ecods-color-primary, #1B3B6F );
}

.ecods-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var( --ecods-color-primary, #1B3B6F );
	z-index: 1;
}

.ecods-form-root {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Language switcher — pill buttons, top row */
.ecods-lang-row {
	display: flex;
	justify-content: flex-end;
}

.ecods-lang-switcher {
	display: flex;
	gap: 6px;
}

.ecods-lang-btn {
	background: #fff;
	border: 1px solid #e2ded4;
	color: var( --ecods-color-primary, #1B3B6F );
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	cursor: pointer;
}

.ecods-lang-active {
	background: var( --ecods-color-secondary, #D87830 );
	border-color: var( --ecods-color-secondary, #D87830 );
	color: #fff;
}

/* Step counter + stepper with connecting progress line */
.ecods-step-counter {
	font-size: 12px;
	font-weight: 700;
	color: var( --ecods-color-secondary, #D87830 );
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 10px;
}

.ecods-stepper-wrap {
	margin-bottom: 4px;
}

.ecods-stepper {
	position: relative;
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecods-stepper::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	height: 2px;
	background: #ddd8cc;
	z-index: 0;
}

.ecods-stepper-item {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	text-align: center;
	color: #9a9587;
}

.ecods-stepper-done {
	color: var( --ecods-color-primary, #1B3B6F );
	cursor: pointer;
}

.ecods-stepper-current {
	color: var( --ecods-color-secondary, #D87830 );
	font-weight: 700;
}

.ecods-stepper-bullet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ddd8cc;
	color: #9a9587;
	font-size: 13px;
	font-weight: 700;
}

.ecods-stepper-done .ecods-stepper-bullet {
	background: var( --ecods-color-secondary, #D87830 );
	border-color: var( --ecods-color-secondary, #D87830 );
	color: #fff;
}

.ecods-stepper-current .ecods-stepper-bullet {
	background: var( --ecods-color-secondary, #D87830 );
	border-color: var( --ecods-color-secondary, #D87830 );
	color: #fff;
	box-shadow: 0 0 0 4px rgba( 216, 120, 48, .18 );
}

.ecods-stepper-label {
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .02em;
}

/* RTL */
.ecods-rtl {
	text-align: right;
}

.ecods-rtl .ecods-nav {
	flex-direction: row-reverse;
}

.ecods-rtl .ecods-nav-next,
.ecods-rtl .ecods-submit-btn {
	margin-left: 0;
	margin-right: auto;
}

.ecods-rtl .ecods-lang-row {
	justify-content: flex-start;
}

/* Card: the question / step content */
.ecods-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .06 );
	padding: 28px 32px;
}

.ecods-step-title {
	font-family: var( --ecods-font-heading, sans-serif );
	font-size: 21px;
	margin: 0 0 18px;
	color: #2a2a2a;
}

.ecods-step-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ecods-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ecods-field-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd8cc;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.ecods-field-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ecods-field-option {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #ddd8cc;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
}

/* Footer bar: separate white bar with the nav buttons */
.ecods-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .06 );
	padding: 16px 24px;
}

.ecods-nav-next,
.ecods-nav-prev,
.ecods-submit-btn {
	font-family: var( --ecods-font-body, sans-serif );
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	border: none;
	border-radius: 6px;
	padding: 12px 26px;
	cursor: pointer;
	font-size: 13px;
}

.ecods-nav-next,
.ecods-submit-btn {
	background: var( --ecods-color-secondary, #D87830 );
	color: #fff;
	margin-left: auto;
}

.ecods-nav-prev {
	background: transparent;
	color: #6b6b6b;
	border: none;
	text-transform: none;
	font-weight: 600;
	padding: 12px 8px;
}

.ecods-product-category-title {
	font-family: var( --ecods-font-heading, sans-serif );
	color: var( --ecods-color-primary, #1B3B6F );
	margin: 0 0 8px;
}

.ecods-product-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 12px;
	margin-bottom: 20px;
}

.ecods-product-card {
	background: #fff;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
	padding: 12px;
}

.ecods-product-image {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 8px;
}

.ecods-product-name {
	font-weight: 700;
	margin-bottom: 4px;
}

.ecods-product-desc {
	font-size: 13px;
	opacity: .8;
	margin-bottom: 8px;
}

.ecods-product-select-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.ecods-product-qty {
	width: 60px;
	padding: 4px 6px;
	border: 1px solid #ddd8cc;
	border-radius: 4px;
}

.ecods-summary-row {
	padding: 4px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.ecods-contact-form {
	background: #faf9f6;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
	padding: 16px;
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ecods-contact-title {
	font-family: var( --ecods-font-heading, sans-serif );
	color: var( --ecods-color-primary, #1B3B6F );
	margin: 0;
}

.ecods-form-error {
	color: #c0392b;
	font-size: 13px;
	margin-top: 8px;
}

.ecods-thank-you {
	text-align: center;
	padding: 20px 0;
}

.ecods-thank-you .ecods-submit-btn {
	display: inline-block;
	text-decoration: none;
	margin-top: 16px;
}

@media ( max-width: 1024px ) {
	.ecods-card {
		padding: 24px;
	}
}

@media ( max-width: 767px ) {
	.ecods-product-grid {
		grid-template-columns: 1fr;
	}
	.ecods-panel,
	[data-ecods-inline] {
		padding: 16px;
	}
	.ecods-card {
		padding: 20px;
	}
	.ecods-stepper-label {
		display: none;
	}
}

@media ( max-width: 480px ) {
	.ecods-step-title {
		font-size: 18px;
	}
	.ecods-nav {
		flex-direction: column;
		align-items: stretch;
	}
	.ecods-nav-next,
	.ecods-nav-prev,
	.ecods-submit-btn {
		width: 100%;
		margin-left: 0;
		text-align: center;
	}
}
