.ecupro-form-ask {
	--ecupro-form-ask-avatar-size: clamp(50px, 8vw, 72px);
	--ecupro-form-ask-person-width: clamp(70px, 12vw, 100px);
	--ecupro-form-ask-social-size: clamp(30px, 4vw, 40px);
	--ecupro-form-ask-social-gap: 6px;
	width: var(--ecupro-popup-width, min(100vw, 560px));
	max-width: var(--ecupro-popup-max-width, 560px);
	max-height: var(--ecupro-popup-max-height, calc(100dvh - 24px));
	overflow: auto;
	border: 1px solid var(--ecupro-border);
	box-sizing: border-box;
	z-index: 100050;
}

.ecupro-form-ask[open] {
	position: fixed;
	left: 50%;
	top: 6vh;
	transform: translateX(-50%);
	margin: 0;
}

.ecupro-form-ask::backdrop {
	background: rgba(0, 0, 0, 0.35);
}

.ecupro-form-ask,
.ecupro-form-ask__form,
.ecupro-form-ask fieldset,
.ecupro-form-ask legend {
	text-align: left;
}

.ecupro-form-ask__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ecupro-form-ask__title {
	margin: 0;
	padding-right: 28px;
}

.ecupro-form-ask p {
	margin: 0;
}

.ecupro-form-ask__step {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ecupro-form-ask__section {
	margin: 0;
	padding: 2px 12px 10px;
	border: 1px solid var(--ecupro-border-soft);
	border-radius: 10px;
	min-width: 0;
}

.ecupro-form-ask__section--expert {
	padding-bottom: 6px;
}

.ecupro-form-ask__legend {
	display: inline-block;
	width: auto;
	max-width: 100%;
	float: none;
	font-size: 1em;
	padding: 0 4px;
	margin: 0 0 6px 6px;
	background: transparent;
	line-height: 1.2;
}

.ecupro-form-ask__expert-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	width: 100%;
}

.ecupro-form-ask__expert-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 0 var(--ecupro-form-ask-person-width);
	max-width: var(--ecupro-form-ask-person-width);
	min-width: var(--ecupro-form-ask-person-width);
}

.ecupro-form-ask__expert-avatar img {
	width: var(--ecupro-form-ask-avatar-size);
	height: var(--ecupro-form-ask-avatar-size);
	object-fit: cover;
	border-radius: 50%;
}

.ecupro-form-ask__expert-name {
	margin: 0;
	max-width: 100%;
	text-align: center;
	line-height: 1.15;
	font-size: clamp(10px, calc(var(--ecupro-form-ask-person-width) / 5.5), 1em);
	overflow-wrap: break-word;
	word-break: normal;
}

.ecupro-form-ask__expert-workshop {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	flex: 0 1 auto;
	max-width: 100%;
	min-width: 0;
}

.ecupro-form-ask__expert-branch {
	min-width: 0;
}

.ecupro-form-ask__workshop-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	color: #222;
	cursor: pointer;
}

.ecupro-form-ask__workshop-select-wrap::after {
	content: "";
	position: absolute;
	right: 1px;
	top: 50%;
	width: 0.36em;
	height: 0.36em;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	color: #666;
	transform: translateY(-62%) rotate(45deg);
	pointer-events: none;
}

.ecupro-form-ask__workshop-select-label {
	display: inline-block;
	max-width: 100%;
	padding-inline-end: 14px;
	font-size: 1em;
	line-height: 1.1;
	color: #666;
	text-decoration: underline dotted;
	text-underline-offset: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ecupro-form-ask__workshop-select {
	position: absolute;
	inset: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	background-image: none !important;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.ecupro-form-ask__workshop-select:focus {
	outline: none;
}

.ecupro-form-ask__workshop-address {
	margin: 0;
	min-width: 0;
	font-size: clamp(11px, 1.8vw, 12px);
	line-height: 1.12;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ecupro-form-ask__workshop-phone {
	margin: 0;
	min-width: 0;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ecupro-form-ask__expert-socials {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	align-content: flex-start;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 140px;
	gap: 0;
	--ecupro-expert-links-size: var(--ecupro-form-ask-social-size);
	--ecupro-expert-icon-bg: var(--ecupro-accent-color, #d6711f);
	--ecupro-expert-icon-fg: #fff;
	font-size: 0;
	line-height: 0;
}

.ecupro-form-ask__expert-socials .ecupro-expert-links__item {
	margin: 2px;
	flex: 0 0 var(--ecupro-expert-links-size);
	width: var(--ecupro-expert-links-size);
	height: var(--ecupro-expert-links-size);
	font-size: var(--ecupro-expert-links-size);
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ecupro-form-ask__contact-grid {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.ecupro-form-ask__contact-phone-label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1em;
	line-height: 1.2;
	white-space: normal;
}

.ecupro-form-ask__legend-contact-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	color: #222;
	cursor: pointer;
}

.ecupro-form-ask__legend-contact-wrap::after {
	content: "";
	position: absolute;
	right: 1px;
	top: 50%;
	width: 0.32em;
	height: 0.32em;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	color: #666;
	transform: translateY(-62%) rotate(45deg);
	pointer-events: none;
}

.ecupro-form-ask__legend-contact-label {
	display: inline-block;
	max-width: 100%;
	padding-inline-end: 14px;
	font-size: 1em;
	line-height: 1.1;
	color: #666;
	text-decoration: underline dotted;
	text-underline-offset: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ecupro-form-ask__legend-contact-select {
	position: absolute;
	inset: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	background-image: none !important;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.ecupro-form-ask__legend-contact-select:focus {
	outline: none;
}

.ecupro-form-ask__contact-phone {
	flex: 0 0 auto;
}

.ecupro-form-ask__contact-phone input {
	width: 15ch;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 2em;
	text-align: right;
}

.ecupro-form-ask__question-text {
	width: 100%;
	min-height: 120px;
	box-sizing: border-box;
}

.ecupro-form-ask__legend--toggle {
	padding: 0 4px;
	margin: 0 0 6px 6px;
}

.ecupro-form-ask__legend-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.2;
	cursor: pointer;
}

.ecupro-form-ask__legend-label input[type="checkbox"] {
	margin: 0;
}

.ecupro-form-ask__section--collapsed {
	border: 1px solid transparent;
	padding: 2px 12px 0;
	background: transparent;
}

.ecupro-form-ask__booking-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
}

.ecupro-form-ask__booking-note {
	margin-top: 6px;
	font-size: 0.8em;
	line-height: 1.3;
	color: #666;
}

.ecupro-form-ask__consent {
	margin: 0;
}

.ecupro-form-ask__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ecupro-form-ask__actions .button {
	margin: 0;
}

@media (max-width: 560px) {
	.ecupro-form-ask {
		width: var(--ecupro-popup-width, 100vw);
		max-width: var(--ecupro-popup-max-width, 100vw);
		max-height: var(--ecupro-popup-max-height, calc(100vh - 24px));
	}

	.ecupro-form-ask[open] {
		top: 12px;
	}
}
