/* StructureMind Intake — multistep form */

.smi-wrap {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
	color: #1c2733;
}

/* Full-cover loading overlay shown while the submission uploads. */
.smi-loading {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 220px;
	background: rgba(255, 255, 255, 0.93);
	font-weight: 600;
	color: #0b4f6c;
	text-align: center;
	padding: 20px;
}

.smi-spinner {
	width: 34px;
	height: 34px;
	border: 4px solid #d8e4ee;
	border-top-color: #0b4f6c;
	border-radius: 50%;
	animation: smi-spin 0.8s linear infinite;
}

@keyframes smi-spin {
	to {
		transform: rotate(360deg);
	}
}

.smi-wrap [hidden] {
	display: none !important;
}

/* Progress indicator */

.smi-progress {
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	border-bottom: 1px solid #e2e8ee;
	scroll-margin-top: 110px;
}

.smi-progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 4px 12px;
	color: #8296a8;
	font-size: 14px;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.smi-progress-step.is-active {
	color: #0b4f6c;
	border-bottom-color: #0b4f6c;
	font-weight: 600;
}

.smi-progress-step.is-done {
	color: #0b4f6c;
}

.smi-progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eef2f6;
	font-size: 13px;
	font-weight: 600;
}

.smi-progress-step.is-active .smi-progress-num,
.smi-progress-step.is-done .smi-progress-num {
	background: #0b4f6c;
	color: #fff;
}

.smi-progress-step.is-done .smi-progress-num::before {
	content: "✓";
	font-size: 13px;
}

.smi-progress-step.is-done .smi-progress-num {
	font-size: 0;
}

/* Steps */

.smi-step {
	border: 0;
	margin: 0;
	padding: 0;
}

.smi-step-title {
	display: none;
}

.smi-step-intro {
	margin-top: 0;
	color: #40566b;
}

/* Fields */

.smi-field {
	margin-bottom: 20px;
}

.smi-field.smi-width-half {
	display: inline-block;
	width: calc(50% - 8px);
	vertical-align: top;
	margin-right: 12px;
}

.smi-field.smi-width-half:nth-child(even) {
	margin-right: 0;
}

.smi-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.smi-required {
	color: #c0392b;
}

.smi-optional {
	color: #8296a8;
	font-weight: 400;
	font-size: 14px;
}

.smi-help {
	margin: 6px 0 0;
	font-size: 13px;
	color: #66788a;
}

.smi-input input,
.smi-field input[type="text"],
.smi-field input[type="email"],
.smi-field input[type="tel"],
.smi-field input[type="date"],
.smi-field input[type="number"],
.smi-field select,
.smi-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #c4d0da;
	border-radius: 6px;
	font-size: 16px;
	background: #fff;
	color: #1c2733;
	box-sizing: border-box;
}

.smi-field input:focus,
.smi-field select:focus,
.smi-field textarea:focus {
	outline: 2px solid #0b4f6c;
	outline-offset: 1px;
	border-color: #0b4f6c;
}

/* The theme forces a fixed 40px height on selects, which clips the option
	text once our padding is applied. Take control of the vertical metrics. */
.smi-field select {
	height: auto !important;
	min-height: 46px;
	line-height: 1.4 !important;
	padding: 11px 36px 11px 12px !important;
}

.smi-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.smi-choices-multi .smi-choice {
	width: calc(50% - 4px);
}

.smi-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #c4d0da;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
}

.smi-choice:has(input:checked) {
	border-color: #0b4f6c;
	background: #eef6fa;
}

.smi-choice input {
	margin-top: 3px;
	accent-color: #0b4f6c;
}

.smi-consent {
	width: 100%;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.45;
}

/* Conditional blocks hidden until their parent value matches */

.smi-field[data-show-if] {
	display: none;
}

.smi-field[data-show-if].is-visible {
	display: block;
}

.smi-field.smi-width-half[data-show-if].is-visible {
	display: inline-block;
}

/* Callouts */

.smi-callout {
	background: #eef6fa;
	border-left: 4px solid #0b4f6c;
	border-radius: 0 6px 6px 0;
	padding: 14px 16px;
	margin-bottom: 22px;
	font-size: 14px;
}

.smi-callout ul {
	margin: 8px 0;
	padding-left: 20px;
}

/* Dropzone + photo rows */

.smi-dropzone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 26px 16px;
	border: 2px dashed #9fb4c6;
	border-radius: 8px;
	background: #f7fafc;
	cursor: pointer;
	text-align: center;
	color: #40566b;
}

.smi-dropzone:hover,
.smi-dropzone.is-drag {
	border-color: #0b4f6c;
	background: #eef6fa;
}

.smi-dropzone-icon {
	font-size: 26px;
	line-height: 1;
	color: #0b4f6c;
}

.smi-photo-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.smi-photo-row {
	display: flex;
	gap: 12px;
	padding: 10px;
	border: 1px solid #e2e8ee;
	border-radius: 8px;
	margin-bottom: 10px;
	background: #fff;
	align-items: flex-start;
}

.smi-photo-thumb {
	width: 74px;
	height: 74px;
	flex: 0 0 74px;
	border-radius: 6px;
	object-fit: cover;
	background: #eef2f6;
}

.smi-photo-thumb.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8296a8;
	font-size: 24px;
}

.smi-photo-fields {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.smi-photo-fields select {
	flex: 0 0 160px;
	padding: 8px 10px;
	border: 1px solid #c4d0da;
	border-radius: 6px;
	font-size: 14px;
}

.smi-photo-fields input {
	flex: 1;
	min-width: 140px;
	padding: 8px 10px;
	border: 1px solid #c4d0da;
	border-radius: 6px;
	font-size: 14px;
}

.smi-photo-remove {
	flex: 0 0 auto;
	background: none;
	border: 1px solid #d8dee5;
	border-radius: 6px;
	color: #7a2529;
	cursor: pointer;
	padding: 6px 10px;
	font-size: 13px;
}

.smi-photo-remove:hover {
	background: #fbeeee;
}

/* Buttons */

.smi-step-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 28px;
	gap: 12px;
}

.smi-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.smi-btn-next,
.smi-btn-submit {
	background: #0b4f6c;
	color: #fff;
}

.smi-btn-next:hover,
.smi-btn-submit:hover {
	background: #094058;
}

.smi-btn-submit {
	background: #b3421b;
}

.smi-btn-submit:hover {
	background: #963716;
}

.smi-btn-back {
	background: none;
	color: #40566b;
	border-color: #c4d0da;
}

.smi-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Errors + success */

.smi-error {
	background: #fbeeee;
	border-left: 4px solid #c0392b;
	color: #7a2529;
	padding: 10px 14px;
	border-radius: 0 6px 6px 0;
	margin: 16px 0;
	font-size: 14px;
}

.smi-photos-error {
	margin-top: 10px;
}

.smi-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.smi-success {
	scroll-margin-top: 110px;
	background: #effaf2;
	border: 1px solid #bfe6c9;
	border-radius: 8px;
	padding: 28px;
	text-align: center;
}

.smi-case-number {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #0b4f6c;
	margin: 8px 0 16px;
}

.smi-success-emergency {
	font-size: 14px;
	color: #7a2529;
}

/* Small screens */

@media (max-width: 640px) {
	.smi-progress-title {
		display: none;
	}

	.smi-progress {
		justify-content: center;
		gap: 18px;
	}

	.smi-field.smi-width-half {
		display: block;
		width: 100%;
		margin-right: 0;
	}

	.smi-field.smi-width-half[data-show-if].is-visible {
		display: block;
	}

	.smi-choices-multi .smi-choice {
		width: 100%;
	}
}
