/* Trigger button: inherits theme font, only accent color/radius are plugin-controlled */
.wtej-trigger {
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: 1.2;
	background-color: var(--wtej-accent, #7a5c3e);
	color: var(--wtej-accent-text, #fff);
	border: none;
	border-radius: var(--wtej-radius, 8px);
	padding: 0.85em 1.8em;
	cursor: pointer;
	display: inline-block;
	transition: opacity .2s ease, transform .15s ease;
}
.wtej-trigger:hover { opacity: .88; }
.wtej-trigger:active { transform: scale(0.98); }
.wtej-trigger:focus-visible { outline: 2px solid var(--wtej-accent, #7a5c3e); outline-offset: 2px; }

/* Overlay */
.wtej-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 18, 15, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}
.wtej-overlay.wtej-open { opacity: 1; visibility: visible; }

.wtej-modal {
	font-family: inherit;
	background: #fff;
	color: #2b2b2b;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	border-radius: calc(var(--wtej-radius, 8px) + 4px);
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(12px);
	transition: transform .2s ease;
}
.wtej-overlay.wtej-open .wtej-modal { transform: translateY(0); }

.wtej-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}
.wtej-modal-title { font-size: 1rem; font-weight: 600; margin: 0; }
.wtej-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px 8px;
}
.wtej-close:hover { color: #222; }

.wtej-progress-track {
	height: 4px;
	background: #eee;
	flex-shrink: 0;
}
.wtej-progress-bar {
	height: 100%;
	background: var(--wtej-accent, #7a5c3e);
	width: 0%;
	transition: width .25s ease;
}

.wtej-modal-body {
	padding: 24px 22px;
	overflow-y: auto;
	flex: 1;
}

.wtej-step-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.wtej-step-body { font-size: 0.98rem; line-height: 1.55; color: #444; white-space: pre-line; margin: 0 0 6px; }

.wtej-field { margin-bottom: 16px; }
.wtej-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.wtej-field input[type="text"],
.wtej-field input[type="tel"],
.wtej-field input[type="email"],
.wtej-field select,
.wtej-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
	padding: 10px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	box-sizing: border-box;
	background: #fff;
	color: #2b2b2b;
}
.wtej-field input:focus,
.wtej-field select:focus,
.wtej-field textarea:focus {
	outline: none;
	border-color: var(--wtej-accent, #7a5c3e);
}
.wtej-error-text { color: #c0392b; font-size: 0.82rem; margin-top: 4px; display: none; }
.wtej-field.wtej-invalid input,
.wtej-field.wtej-invalid select { border-color: #c0392b; }
.wtej-field.wtej-invalid .wtej-error-text { display: block; }

.wtej-options { display: flex; flex-direction: column; gap: 10px; }
.wtej-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px 14px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.wtej-option:hover { border-color: var(--wtej-accent, #7a5c3e); }
.wtej-option.wtej-selected {
	border-color: var(--wtej-accent, #7a5c3e);
	background: color-mix(in srgb, var(--wtej-accent, #7a5c3e) 8%, white);
}
.wtej-option input { accent-color: var(--wtej-accent, #7a5c3e); flex-shrink: 0; }
.wtej-option span { font-size: 0.95rem; }
.wtej-max-note { font-size: 0.8rem; color: #888; margin: -4px 0 14px; }

.wtej-thankyou-icon { font-size: 2.2rem; margin-bottom: 6px; }

.wtej-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid #eee;
	flex-shrink: 0;
}
.wtej-btn {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--wtej-radius, 8px);
	padding: 0.7em 1.4em;
	cursor: pointer;
	border: 1px solid transparent;
}
.wtej-btn-primary { background: var(--wtej-accent, #7a5c3e); color: var(--wtej-accent-text, #fff); }
.wtej-btn-primary:hover { opacity: .9; }
.wtej-btn-secondary { background: transparent; color: #555; border-color: #ccc; }
.wtej-btn-secondary:hover { border-color: #999; }
.wtej-btn[disabled] { opacity: .5; cursor: not-allowed; }

.wtej-whatsapp-btn {
	background: #25D366;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	padding: 0.85em 1em;
	margin-top: 10px;
}
.wtej-whatsapp-btn:hover { opacity: .9; }

.wtej-submit-error { color: #c0392b; font-size: 0.88rem; margin-top: 10px; }

@media (max-width: 480px) {
	.wtej-modal { max-height: 92vh; border-radius: 14px; }
	.wtej-modal-body { padding: 18px 16px; }
}
