/**
 * Elivate Multi-Step Form Styles
 * Designed to match the DFW reference design
 */

.elivate-msf {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	background: #fff;
	font-family: inherit;
}

.elivate-msf *,
.elivate-msf *::before,
.elivate-msf *::after {
	box-sizing: border-box;
}

/* Progress bar */
.elivate-msf-progress {
	height: 6px;
	background: #e5e5e5;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 32px;
}

.elivate-msf-progress-bar {
	height: 100%;
	background: #FFC107;
	transition: width 0.4s ease;
	border-radius: 3px;
}

/* Steps */
.elivate-msf-step {
	display: none;
	animation: elivateMsfFade 0.3s ease;
}

.elivate-msf-step.active {
	display: block;
}

@keyframes elivateMsfFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Headings */
.elivate-msf-heading {
	font-size: 28px;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
	text-align: center;
	line-height: 1.2;
}

.elivate-msf-subheading {
	font-size: 14px;
	color: #666;
	margin: 0 0 24px;
	text-align: center;
}

/* Floor option grid */
.elivate-msf-options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 24px 0;
}

@media (max-width: 600px) {
	.elivate-msf-options {
		grid-template-columns: repeat(2, 1fr);
	}
}

.elivate-msf-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	padding: 0;
	border: none;
	border-radius: 0;
	transition: transform 0.2s ease;
	background: transparent;
}

.elivate-msf-option:hover {
	transform: translateY(-2px);
}

.elivate-msf-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.elivate-msf-option-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
	border: 1px solid #e5e5e5;
}

.elivate-msf-option-label {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.elivate-msf-option.selected .elivate-msf-option-label {
	background: #FFC107;
	border-color: #FFC107;
	color: #222;
}

.elivate-msf-option:focus-within {
	outline: 3px solid rgba(255, 193, 7, 0.4);
	outline-offset: 2px;
}

/* Narrow centered wrapper for fields (date/time, contact, property) */
.elivate-msf-fields-narrow {
	max-width: 380px;
	margin: 0 auto;
}

/* Form fields */
.elivate-msf-field {
	margin-bottom: 16px;
}

.elivate-msf-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #222;
	text-align: left;
	font-size: 14px;
}

.elivate-msf input[type="text"],
.elivate-msf input[type="email"],
.elivate-msf input[type="tel"],
.elivate-msf input[type="date"],
.elivate-msf input[type="time"],
.elivate-msf select.elivate-msf-select,
.elivate-msf textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	color: #222;
	background: #fff;
	border: 1.5px solid #FFC107;
	border-radius: 4px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Native date/time inputs need a bit of help to look consistent */
.elivate-msf input[type="date"],
.elivate-msf input[type="time"] {
	min-height: 46px;
	cursor: pointer;
	font-family: inherit;
}

.elivate-msf input[type="date"]::-webkit-calendar-picker-indicator,
.elivate-msf input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.elivate-msf input[type="date"]::-webkit-calendar-picker-indicator:hover,
.elivate-msf input[type="time"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

.elivate-msf select.elivate-msf-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

.elivate-msf select.elivate-msf-select + .elivate-msf-select {
	margin-top: 12px;
}

.elivate-msf textarea {
	resize: vertical;
	min-height: 100px;
}

.elivate-msf input:focus,
.elivate-msf select:focus,
.elivate-msf textarea:focus {
	outline: none;
	border-color: #ffaa00;
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.elivate-msf input.has-error,
.elivate-msf select.has-error,
.elivate-msf textarea.has-error {
	border-color: #d63638;
}

.elivate-msf input.has-error:focus,
.elivate-msf select.has-error:focus,
.elivate-msf textarea.has-error:focus {
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.2);
}

/* Errors */
.elivate-msf-error {
	color: #d63638;
	font-size: 13px;
	margin-top: 6px;
	min-height: 18px;
	text-align: center;
}

.elivate-msf-field .elivate-msf-error {
	text-align: left;
}

/* Navigation buttons */
.elivate-msf-nav {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
	flex-wrap: wrap;
}

.elivate-msf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	min-width: 120px;
}

.elivate-msf-btn-primary {
	background: #FFC107;
	color: #222;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.elivate-msf-btn-primary:hover {
	background: #ffaa00;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.elivate-msf-btn-primary:active {
	transform: translateY(1px);
}

.elivate-msf-btn-back {
	background: #f5e9c5;
	color: #555;
}

.elivate-msf-btn-back:hover {
	background: #ecdba0;
}

.elivate-msf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.elivate-msf-btn:focus-visible {
	outline: 3px solid rgba(255, 193, 7, 0.5);
	outline-offset: 2px;
}

/* Thank you screen */
.elivate-msf-thankyou {
	text-align: center;
	padding: 20px 0;
}

.elivate-msf-thankyou .elivate-msf-heading {
	margin-bottom: 16px;
}

.elivate-msf-thankyou-sub {
	font-size: 16px;
	margin: 0 0 16px;
	color: #333;
}

.elivate-msf-bullets {
	list-style: none;
	padding: 0;
	margin: 20px auto;
	max-width: 400px;
	text-align: left;
}

.elivate-msf-bullets li {
	position: relative;
	padding: 8px 0 8px 36px;
	color: #333;
	font-size: 15px;
}

.elivate-msf-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	background-color: #FFC107;
	border-radius: 50%;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

/* Loading state */
.elivate-msf.is-submitting .elivate-msf-btn {
	pointer-events: none;
	opacity: 0.7;
}

.elivate-msf-btn.is-loading {
	position: relative;
	color: transparent;
}

.elivate-msf-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(34, 34, 34, 0.3);
	border-top-color: #222;
	border-radius: 50%;
	animation: elivateMsfSpin 0.8s linear infinite;
}

@keyframes elivateMsfSpin {
	to { transform: rotate(360deg); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.elivate-msf-heading {
		font-size: 22px;
	}
	.elivate-msf-btn {
		padding: 12px 24px;
		min-width: 100px;
		font-size: 14px;
	}
	.elivate-msf-options {
		gap: 12px;
	}
	.elivate-msf-option-label {
		font-size: 12px;
		padding: 5px 10px;
	}
}
