/*
 * Dwell Survey — tenant preference form.
 * Style-isolated like .dwell-plf: all:revert scoped to .dwell-survey.
 */

html:has(.dwell-survey) {
	scrollbar-gutter: stable;
}

.dwell-survey.dwell-survey {
	all: revert;

	--ds-ink: #221811;
	--ds-muted: #6c6158;
	--ds-border: #e1ddd7;
	--ds-bg: #fcfaf6;
	--ds-brand: #8d7563;
	--ds-brand-btn: #8d7563;
	--ds-progress: #8d7563;
	--ds-req: #b84b00;
	--ds-placeholder: #6c6158;
	--ds-form-width: 672px;

	display: block;
	box-sizing: border-box;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: var(--ds-ink);
	background: transparent;
	width: var(--ds-form-width);
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 22px 16px;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.dwell-survey.dwell-survey :where(div, section, header, nav, form, h1, h2, h3, h4, h5, h6, p, span, em, strong, small, label, legend, fieldset, button, input, select, textarea, img) {
	all: revert;
	box-sizing: border-box;
	font-family: inherit;
	margin: 0;
	text-shadow: none;
}

.dwell-survey [hidden] {
	display: none !important;
}

.dwell-survey.dwell-survey input[type="checkbox"]::before,
.dwell-survey.dwell-survey input[type="checkbox"]::after,
.dwell-survey.dwell-survey input[type="radio"]::before,
.dwell-survey.dwell-survey input[type="radio"]::after {
	content: none;
}

.dwell-survey *,
.dwell-survey *::before,
.dwell-survey *::after {
	box-sizing: border-box;
}

.dwell-survey .dwell-survey-form,
.dwell-survey .dwell-survey-card {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

/* Honeypot */
.dwell-survey .dwell-survey-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Card */
.dwell-survey.dwell-survey .dwell-survey-card,
.dwell-survey.dwell-survey .dwell-survey-form .dwell-survey-card {
	background: #fcfaf6 !important;
	background-color: #fcfaf6 !important;
	border: 1px solid var(--ds-border) !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
	padding: 25px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

.dwell-survey.dwell-survey .dwell-survey-panel {
	background: transparent !important;
}

/* Panels — !important so Elementor / theme section rules cannot keep every
   step visible (or hide the active one) inside popups. */
.dwell-survey.dwell-survey .dwell-survey-panel,
.dwell-survey .dwell-survey-panel {
	display: none !important;
	width: 100%;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
}

.dwell-survey.dwell-survey .dwell-survey-panel.is-active,
.dwell-survey .dwell-survey-panel.is-active {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
	pointer-events: auto !important;
	padding: 0 !important;
}

/* Head */
.dwell-survey .dwell-survey-head {
	margin-bottom: 16px;
}

.dwell-survey .dwell-survey-brand {
	font-size: 26px;
	font-weight: 600;
	line-height: 32px;
	color: var(--ds-ink);
	margin: 0 0 19px;
}

.dwell-survey .dwell-survey-head h2 {
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.6px;
	line-height: 32px;
	color: var(--ds-ink);
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	background: none;
}

.dwell-survey .dwell-survey-step-label {
	font-size: 13.2px;
	line-height: 20px;
	color: var(--ds-muted);
	margin: 0 0 6px;
}

.dwell-survey .dwell-survey-progress {
	display: block;
	width: 100%;
	height: 8px;
	margin-top: 8px;
	background: rgba(141, 117, 99, 0.2);
	border-radius: 999px;
	overflow: hidden;
}

.dwell-survey .dwell-survey-progress-bar {
	display: block;
	height: 100%;
	background: var(--ds-progress);
	border-radius: 999px;
	transition: width 0.25s ease;
}

/* Fields */
.dwell-survey .dwell-survey-field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
}

.dwell-survey .dwell-survey-field > label {
	display: block;
	margin: 0;
	padding: 0;
}

.dwell-survey .dwell-survey-label {
	display: block;
	font-size: 12.8px;
	font-weight: 600;
	line-height: 14px;
	color: var(--ds-ink);
	margin-bottom: 4.5px;
}

.dwell-survey .dwell-survey-req {
	color: var(--ds-req);
}

.dwell-survey .dwell-survey-hint {
	display: block;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: var(--ds-muted);
	margin: -2px 0 6px;
}

.dwell-survey .dwell-survey-input {
	display: block !important;
	width: 100% !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 8px 13px !important;
	border: 1px solid var(--ds-border) !important;
	border-radius: 6px !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--ds-ink) !important;
	font-family: inherit !important;
	font-size: 13.3px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	outline: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
	margin: 0 !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
	pointer-events: auto !important;
	user-select: text !important;
	-webkit-user-select: text !important;
	opacity: 1 !important;
	caret-color: var(--ds-ink) !important;
	position: relative !important;
	z-index: 5 !important;
}

.dwell-survey .dwell-survey-input::placeholder {
	color: var(--ds-placeholder);
	opacity: 1;
}

.dwell-survey .dwell-survey-input:focus {
	border-color: var(--ds-brand);
	box-shadow: 0 0 0 3px rgba(141, 117, 99, 0.18);
	outline: none;
}

.dwell-survey .dwell-survey-select-wrap {
	position: relative;
	display: block;
}

.dwell-survey select.dwell-survey-input.dwell-survey-select,
.dwell-survey select.dwell-survey-select {
	padding-right: 36px !important;
	cursor: pointer !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231a1612' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 13px 8px !important;
	color: var(--ds-muted) !important;
	caret-color: transparent !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}

.dwell-survey select.dwell-survey-input.dwell-survey-select:valid,
.dwell-survey select.dwell-survey-input.dwell-survey-select.has-value,
.dwell-survey select.dwell-survey-select:valid,
.dwell-survey select.dwell-survey-select.has-value {
	color: var(--ds-ink) !important;
}

.dwell-survey .dwell-survey-input[type="date"],
.dwell-survey .dwell-survey-input--date {
	min-height: 36px;
}

.dwell-survey .dwell-survey-date-wrap {
	position: relative;
	display: block;
	width: 100%;
	height: 36px;
	min-height: 36px;
	border: 1px solid var(--ds-border);
	border-radius: 6px;
	background: #fff;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.1),
		0 1px 2px -1px rgba(0, 0, 0, 0.1);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.dwell-survey .dwell-survey-date-wrap:focus-within {
	border-color: var(--ds-brand);
	box-shadow: 0 0 0 3px rgba(141, 117, 99, 0.18);
}

.dwell-survey .dwell-survey-date-wrap .dwell-survey-input[type="date"],
.dwell-survey .dwell-survey-date-wrap .dwell-survey-input--date {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	padding: 8px 40px 8px 13px !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--ds-ink) !important;
	-webkit-text-fill-color: var(--ds-ink) !important;
	z-index: 2 !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
}

.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"],
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit-fields-wrapper,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit-text,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit-text,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit-month-field,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit-month-field,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit-day-field,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit-day-field,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input[type="date"]::-webkit-datetime-edit-year-field,
.dwell-survey .dwell-survey-date-wrap:not(.has-value) .dwell-survey-input--date::-webkit-datetime-edit-year-field {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

.dwell-survey .dwell-survey-date-wrap.is-empty::before {
	content: attr(data-placeholder) !important;
	position: absolute !important;
	left: 13px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #6c6158 !important;
	font-family: inherit !important;
	font-size: 13.3px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	pointer-events: none !important;
	z-index: 10 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	white-space: nowrap !important;
}

.dwell-survey .dwell-survey-date-wrap.has-value::before {
	content: none !important;
	display: none !important;
}

.dwell-survey .dwell-survey-date-wrap .dwell-survey-input[type="date"]::-webkit-calendar-picker-indicator,
.dwell-survey .dwell-survey-date-wrap .dwell-survey-input--date::-webkit-calendar-picker-indicator {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 5;
}

.dwell-survey .dwell-survey-date-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #1a1612;
	pointer-events: none;
	z-index: 3;
}

/* Choice cards (radio / checkbox) */
.dwell-survey .dwell-survey-card-grid {
	display: grid;
	gap: 12px;
	width: 100%;
}

.dwell-survey .dwell-survey-card-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dwell-survey .dwell-survey-card-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dwell-survey .dwell-survey-choice-card {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 42px;
	padding: 12px;
	margin: 0;
	border: 1px solid var(--ds-border);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-weight: 400;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dwell-survey .dwell-survey-choice-card:hover {
	border-color: var(--ds-brand);
}

.dwell-survey .dwell-survey-choice-card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.dwell-survey .dwell-survey-choice-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	border: 1.5px solid var(--ds-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.dwell-survey .dwell-survey-choice-card--check .dwell-survey-choice-mark {
	border-radius: 50%;
}

.dwell-survey .dwell-survey-choice-card input:checked + .dwell-survey-choice-mark {
	border-color: var(--ds-brand);
	background: var(--ds-brand);
	box-shadow: inset 0 0 0 3px #fff;
}

.dwell-survey .dwell-survey-choice-card:has(input:checked) {
	border-color: var(--ds-brand);
	background: rgba(141, 117, 99, 0.06);
}

.dwell-survey .dwell-survey-choice-text {
	font-size: 13px;
	line-height: 14px;
	color: var(--ds-ink);
	font-weight: 400;
}

/* Grid */
.dwell-survey .dwell-survey-grid {
	display: grid;
	column-gap: 16px;
	row-gap: 0;
}

.dwell-survey .dwell-survey-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Footer nav */
.dwell-survey .dwell-survey-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	margin-top: 4px;
}

.dwell-survey .dwell-survey-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 36px;
	padding: 7.5px 16px 8.5px;
	font-family: inherit;
	position: relative;
	z-index: 2;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.dwell-survey .dwell-survey-btn--back {
	background: transparent;
	color: var(--ds-ink);
}

.dwell-survey .dwell-survey-btn--back:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dwell-survey .dwell-survey-btn--back:not(:disabled):hover {
	background: rgba(34, 24, 17, 0.04);
}

.dwell-survey .dwell-survey-btn--next {
	background: var(--ds-brand-btn);
	color: #fefbf8;
	font-size: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dwell-survey .dwell-survey-btn--next:hover {
	background: #7d6754;
	color: #fefbf8;
}

.dwell-survey .dwell-survey-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.dwell-survey .dwell-survey-btn-icon {
	font-size: 14px;
	line-height: 1;
}

/* Validation */
.dwell-survey .dwell-survey-field-error {
	display: none;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: var(--ds-req);
	margin: 4px 0 0;
}

.dwell-survey .dwell-survey-field.has-error .dwell-survey-field-error {
	display: block;
}

.dwell-survey .dwell-survey-field.has-error .dwell-survey-input {
	border-color: var(--ds-req);
}

.dwell-survey .dwell-survey-field.has-error .dwell-survey-choice-card {
	border-color: var(--ds-req);
}

.dwell-survey .dwell-survey-form-message {
	margin-top: 12px;
	border-radius: 8px;
	border: 1px solid #f5c5a3;
	background: #fff8f5;
	color: #7a3010;
	padding: 12px 15px;
	font-size: 13px;
	line-height: 1.6;
}

.dwell-survey .dwell-survey-form-message[hidden] {
	display: none;
}

/* Thank you */
.dwell-survey.dwell-survey .dwell-survey-form[hidden],
.dwell-survey.dwell-survey .dwell-survey-form.is-submitted {
	display: none !important;
}

.dwell-survey.dwell-survey .dwell-survey-success[hidden] {
	display: none !important;
}

.dwell-survey.dwell-survey .dwell-survey-success {
	display: none !important;
	justify-content: center !important;
	align-items: center !important;
	padding: 48px 16px !important;
	width: 100% !important;
}

.dwell-survey.dwell-survey .dwell-survey-success.is-open {
	display: flex !important;
}

.dwell-survey.dwell-survey .dwell-survey-success-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 18px !important;
	background: var(--ds-bg) !important;
	border: 1px solid var(--ds-border) !important;
	border-radius: 8px !important;
	padding: 56px 40px !important;
	max-width: 420px !important;
	width: 100% !important;
	text-align: center !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
	color: var(--ds-ink) !important;
}

.dwell-survey.dwell-survey .dwell-survey-success-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 72px !important;
	height: 72px !important;
	border-radius: 50% !important;
	background: rgba(141, 117, 99, 0.12) !important;
	flex-shrink: 0 !important;
}

.dwell-survey.dwell-survey .dwell-survey-success-icon img,
.dwell-survey.dwell-survey .dwell-survey-success-icon svg {
	display: block !important;
	width: 40px !important;
	height: 40px !important;
}

.dwell-survey.dwell-survey .dwell-survey-success-card h2 {
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: var(--ds-ink) !important;
	margin: 0 !important;
}

.dwell-survey.dwell-survey .dwell-survey-success-desc {
	font-size: 14px !important;
	color: var(--ds-muted) !important;
	margin: 0 !important;
	line-height: 1.6 !important;
}

@media (max-width: 640px) {
	.dwell-survey.dwell-survey {
		padding: 14px 10px;
	}

	.dwell-survey .dwell-survey-brand {
		font-size: 22px;
		line-height: 28px;
	}

	.dwell-survey .dwell-survey-grid-2,
	.dwell-survey .dwell-survey-card-grid--2,
	.dwell-survey .dwell-survey-card-grid--3 {
		grid-template-columns: 1fr;
	}

	.dwell-survey .dwell-survey-card {
		padding: 20px 16px;
	}

	.dwell-survey .dwell-survey-btn-icon {
		display: none !important;
	}

	.dwell-survey .dwell-survey-btn {
		gap: 0;
	}
}

/* Popup / modal shells (Elementor, dialogs, common lightbox wrappers) */
.elementor-popup-modal .dwell-survey.dwell-survey,
.dialog-widget .dwell-survey.dwell-survey,
.dialog-message .dwell-survey.dwell-survey,
[role="dialog"] .dwell-survey.dwell-survey,
.pum-container .dwell-survey.dwell-survey,
.mfp-content .dwell-survey.dwell-survey {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 8px 4px;
	max-height: min(85vh, 900px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.elementor-popup-modal .dwell-survey .dwell-survey-card,
.dialog-widget .dwell-survey .dwell-survey-card,
[role="dialog"] .dwell-survey .dwell-survey-card,
.pum-container .dwell-survey .dwell-survey-card {
	max-width: 100%;
}
