.obtr-wrap {
	--obtr-btn-bg: #c8935f;
	--obtr-btn-color: #fff;
	--obtr-text: #fff;
	--obtr-border: rgba(255, 255, 255, 0.35);
	color: var(--obtr-text);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

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

.obtr-heading {
	text-align: center;
	margin-bottom: 20px;
}

.obtr-subtitle {
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c8935f;
	margin-bottom: 10px;
}

.obtr-title {
	margin: 0;
	font-size: 42px;
	line-height: 1.2;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--obtr-text);
}

.obtr-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}

.obtr-step-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--obtr-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	opacity: 0.55;
}

.obtr-step-dot.is-active,
.obtr-step-dot.is-done {
	opacity: 1;
	background: var(--obtr-btn-bg);
	border-color: var(--obtr-btn-bg);
	color: var(--obtr-btn-color);
}

.obtr-step-line {
	width: 42px;
	height: 1px;
	background: var(--obtr-border);
}

.obtr-panel[hidden] {
	display: none !important;
}

.obtr-field-row {
	width: 100%;
	margin-bottom: 18px;
}

.obtr-field-row:last-child {
	margin-bottom: 0;
}

.obtr-control {
	position: relative;
	width: 100%;
}

.obtr-control > * {
	width: 100%;
}

.obtr-wrap input[type="text"],
.obtr-wrap input[type="tel"],
.obtr-wrap input[type="email"],
.obtr-wrap select,
.obtr-wrap textarea {
	width: 100%;
	height: 42px;
	padding: 5px 0;
	background: none;
	border: none;
	border-bottom: 1px solid var(--obtr-border);
	border-radius: 0;
	color: var(--obtr-text);
	font-size: 16px;
	line-height: 2;
	-webkit-appearance: none;
	appearance: none;
}

.obtr-wrap textarea {
	height: auto;
	min-height: 90px;
	resize: vertical;
}

.obtr-wrap input:focus,
.obtr-wrap select:focus,
.obtr-wrap textarea:focus {
	outline: 0;
	border-bottom-color: rgba(255, 255, 255, 0.85);
}

.obtr-wrap input::placeholder,
.obtr-wrap textarea::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.obtr-wrap select option {
	background: #111;
	color: #fff;
}

.obtr-field-row.has-caret .obtr-control::after {
	content: "▾";
	font-size: 14px;
	position: absolute;
	right: 5px;
	top: 0;
	line-height: 42px;
	pointer-events: none;
	opacity: 0.85;
}

.obtr-actions-wrap {
	display: flex;
	gap: 12px;
}

.obtr-actions-wrap .button {
	flex: 1;
}

.obtr-wrap .button.obtr-next,
.obtr-wrap .button.obtr-submit,
.obtr-wrap .button.obtr-back,
.obtr-wrap button.obtr-next,
.obtr-wrap button.obtr-submit,
.obtr-wrap button.obtr-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.3;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.obtr-wrap .button.obtr-next,
.obtr-wrap .button.obtr-submit,
.obtr-wrap button.obtr-next,
.obtr-wrap button.obtr-submit {
	border: 0;
	background: var(--obtr-btn-bg) !important;
	color: var(--obtr-btn-color) !important;
}

.obtr-wrap .button.obtr-back,
.obtr-wrap button.obtr-back {
	background: transparent !important;
	color: var(--obtr-text) !important;
	border: 1px solid var(--obtr-border) !important;
}

.obtr-wrap .button.obtr-next:hover,
.obtr-wrap .button.obtr-submit:hover {
	opacity: 0.9;
}

.obtr-wrap .button.obtr-submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.obtr-wrap input.is-invalid,
.obtr-wrap select.is-invalid,
.obtr-wrap textarea.is-invalid {
	border-bottom-color: #e07a7a;
}

.obtr-message {
	margin-top: 18px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid var(--obtr-border);
}

.obtr-message.is-success {
	border-color: #6bbf7a;
	color: #c8f0d0;
}

.obtr-message.is-error {
	border-color: #e07a7a;
	color: #ffd0d0;
}

/* Built-in datepicker skin (no external CDN) */
body #ui-datepicker-div {
	z-index: 100005 !important;
}

body .ui-datepicker {
	background-color: #f1f2f4;
	border: 1px solid #d8d9db;
	border-radius: 0;
	padding: 16px;
	width: auto;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body .ui-datepicker .ui-datepicker-header {
	padding: 0 0 8px;
	border: none;
	background: none;
	position: relative;
}

body .ui-datepicker .ui-datepicker-title {
	line-height: 32px;
	color: #333;
	text-align: center;
	font-weight: 600;
}

body .ui-datepicker .ui-datepicker-prev,
body .ui-datepicker .ui-datepicker-next {
	position: absolute;
	top: 0;
	width: 32px;
	height: 32px;
	cursor: pointer;
	border: 1px solid #d8d9db;
	border-radius: 50%;
	background: #fff;
	text-indent: -9999px;
	overflow: hidden;
}

body .ui-datepicker .ui-datepicker-prev {
	left: 0;
}

body .ui-datepicker .ui-datepicker-next {
	right: 0;
}

body .ui-datepicker .ui-datepicker-prev span,
body .ui-datepicker .ui-datepicker-next span {
	display: block;
	width: 100%;
	height: 100%;
}

body .ui-datepicker th {
	color: #666;
	font-weight: 500;
	padding: 0.4em;
}

body .ui-datepicker td {
	border: 1px solid #d8d9db;
	padding: 0;
}

body .ui-datepicker td span,
body .ui-datepicker td a {
	text-align: center;
	padding: 0.5em;
	display: block;
	text-decoration: none;
}

body .ui-datepicker .ui-state-default {
	background: transparent;
	border: none;
	color: #222;
}

body .ui-datepicker .ui-state-disabled span {
	color: #bbb;
}

body .ui-datepicker .ui-state-active,
body .ui-datepicker .ui-state-highlight {
	background: #da3743;
	color: #fff;
}

/* Success popup */
body.obtr-popup-open {
	overflow: hidden;
}

.obtr-popup[hidden] {
	display: none !important;
}

.obtr-popup {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.obtr-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.obtr-popup-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #111;
	border: 1px solid var(--obtr-border, rgba(255, 255, 255, 0.35));
	color: #fff;
	padding: 32px 28px 28px;
	text-align: center;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	animation: obtrPopupIn 0.22s ease;
}

@keyframes obtrPopupIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.obtr-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.obtr-popup-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--obtr-btn-bg, #c8935f);
	color: var(--obtr-btn-color, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
}

.obtr-popup-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
}

.obtr-popup-text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.obtr-popup-ok.button,
.obtr-popup .button.obtr-popup-ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 3px;
	background: var(--obtr-btn-bg, #c8935f) !important;
	color: var(--obtr-btn-color, #fff) !important;
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

@media (max-width: 600px) {
	.obtr-title {
		font-size: 28px;
	}

	.obtr-actions-wrap {
		flex-direction: column;
	}
}
