.efp-estimator {
	max-width: 940px;
	margin: 32px auto;
	padding: 0 16px;
	scroll-margin-top: 24px;
}

.efp-estimator__card {
	background: #fff;
	border: 1px solid #dfe5e1;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	padding: 30px;
}

.efp-estimator__header {
	margin-bottom: 24px;
	text-align: center;
}

.efp-estimator__header h2 {
	margin: 0 0 10px;
}

.efp-estimator__progress {
	display: flex;
	gap: 14px;
	justify-content: center;
	margin-bottom: 28px;
}

.efp-estimator__progress span {
	background: #e8ece9;
	border-radius: 50%;
	display: grid;
	font-weight: 800;
	height: 36px;
	place-items: center;
	width: 36px;
}

.efp-estimator__progress span.is-active {
	background: #1f7a3f;
	color: #fff;
}

.efp-estimator__step {
	display: none;
}

.efp-estimator__step.is-active {
	display: block;
}

.efp-estimator__question {
	border: 1px solid #d9e1db;
	border-radius: 10px;
	margin-bottom: 16px;
	padding: 16px;
}

.efp-estimator__question legend {
	font-weight: 800;
	padding: 0 6px;
}

.efp-estimator__choices label {
	display: block;
	margin: 10px 0;
}

.efp-estimator__choices input {
	margin-right: 8px;
	width: auto;
}

.efp-estimator input,
.efp-estimator select,
.efp-estimator textarea {
	background: #fff;
	border: 1px solid #bcc7c0;
	border-radius: 8px;
	box-sizing: border-box;
	font: inherit;
	padding: 12px;
	width: 100%;
}

.efp-estimator__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.efp-estimator label span {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.efp-estimator__result {
	background: #f1f8f3;
	border: 1px solid #cfe0d4;
	border-radius: 12px;
	margin: 20px 0;
	padding: 22px;
	text-align: center;
}

.efp-estimator__result p {
	margin: 0 0 8px;
}

.efp-estimator__price {
	display: block;
	font-size: 2rem;
	margin: 6px 0 12px;
}

.efp-estimator__navigation {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.efp-button {
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 800;
	padding: 13px 22px;
}

.efp-button--primary {
	background: #1f7a3f;
	color: #fff;
}

.efp-button--secondary {
	background: #e8ece9;
	color: #222;
}

.efp-estimator__message {
	font-weight: 800;
}

@media (max-width: 680px) {
	.efp-estimator__card {
		padding: 20px;
	}

	.efp-estimator__grid {
		grid-template-columns: 1fr;
	}

	.efp-button {
		min-height: 48px;
	}

	.efp-estimator__navigation {
		background: #fff;
		bottom: 10px;
		padding: 10px 0;
		position: sticky;
	}
}


.efp-estimator__upload {
	border: 2px dashed #bdc9c0;
	border-radius: 10px;
	display: block;
	margin-bottom: 20px;
	padding: 20px;
}

.efp-estimator__upload small {
	display: block;
	margin-top: 8px;
}


.efp-estimator__question[hidden] {
	display: none !important;
}


.efp-question-counter {
	color: #50575e;
	font-weight: 700;
	margin: 0 0 14px;
	text-align: center;
}

.efp-question-navigation {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 20px;
}

.efp-estimator[data-question-layout="one_at_a_time"] .efp-estimator__question.is-question-hidden-by-layout {
	display: none;
}

.efp-estimator[data-question-layout="one_at_a_time"] .efp-estimator__question.is-current-question {
	display: block;
}

@media (max-width: 680px) {
	.efp-question-navigation {
		flex-direction: column-reverse;
	}

	.efp-question-navigation .efp-button {
		width: 100%;
	}
}


.efp-estimator__question--error {
	background: #ffffff !important;
	border: 2px solid #d63638 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	padding: 16px !important;
}

.efp-estimator__question--error legend {
	color: #1d2327 !important;
	font-weight: 700 !important;
}

.efp-estimator__question--error label {
	color: #1d2327 !important;
	font-weight: 500 !important;
}

.efp-question-error-message {
	align-items: flex-start;
	background: #fff2f2;
	border-left: 5px solid #d63638;
	border-radius: 6px;
	color: #8a2424;
	display: flex;
	font-size: 16px;
	font-weight: 700;
	gap: 8px;
	line-height: 1.45;
	margin: 14px 0 0;
	padding: 12px 14px;
}

.efp-question-error-message__icon {
	color: #d63638;
	font-size: 20px;
	line-height: 1.2;
}

.efp-question-error-message__text {
	flex: 1;
}

/* Keep native radio buttons and checkboxes easy to see. */
.efp-estimator__question input[type="radio"],
.efp-estimator__question input[type="checkbox"] {
	accent-color: #2271b1;
	opacity: 1 !important;
	filter: none !important;
	outline: none !important;
}

.efp-estimator__question--error .efp-estimator__choices {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

.efp-estimator__question--error .efp-estimator__choices label {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	display: block;
	margin: 7px 0;
	padding: 4px 0;
}







/* Rebuilt one-question-at-a-time engine. */
.efp-estimator__question.is-question-hidden-by-layout {
	display: none !important;
}

.efp-estimator__question.is-current-question {
	display: block !important;
}


/* Final contact page: only the submit button should be visible. */
.efp-estimator__step:last-of-type.is-active ~ .efp-estimator__navigation [data-next] {
	display: none !important;
}


.efp-estimator button[type="submit"].is-processing {
	align-items: center;
	cursor: wait !important;
	display: inline-flex;
	gap: 10px;
	justify-content: center;
	opacity: 0.9;
}

.efp-submit-spinner {
	animation: efp-submit-spin 0.8s linear infinite;
	border: 3px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	border-top-color: #ffffff;
	display: inline-block;
	height: 18px;
	width: 18px;
}

.efp-estimator__message--processing {
	background: #eef6ff;
	border: 2px solid #2271b1;
	border-radius: 8px;
	color: #0a3d66;
	font-weight: 700;
	margin-top: 12px;
	padding: 12px 14px;
}

.efp-estimator__message--success {
	background: #edfaef;
	border: 2px solid #218739;
	border-radius: 8px;
	color: #155724;
	font-weight: 700;
	margin-top: 12px;
	padding: 12px 14px;
}

.efp-estimator__message--error {
	background: #fff2f2;
	border: 2px solid #d63638;
	border-radius: 8px;
	color: #8a2424;
	font-weight: 700;
	margin-top: 12px;
	padding: 12px 14px;
}

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

@media (prefers-reduced-motion: reduce) {
	.efp-submit-spinner {
		animation: none;
	}
}

.efp-success-card{text-align:center;background:#f4fff6;border:2px solid #2e9b45;border-radius:12px;padding:24px}
.efp-success-icon{font-size:48px;color:#2e9b45;font-weight:bold}
.efp-close-popup-button{margin-top:18px;padding:14px 28px;font-size:18px;font-weight:700;border:none;border-radius:8px;background:#2271b1;color:#fff;cursor:pointer}
.efp-close-popup-button:hover{filter:brightness(.95)}

/* Hide generic Continue only when JavaScript marks it hidden. */
.efp-estimator__navigation [data-next][aria-hidden="true"] {
	display: none !important;
}


.efp-contact-field--error {
	background: #fffafa !important;
	border: 2px solid #d63638 !important;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12) !important;
}

.efp-contact-field-error {
	background: #fff2f2;
	border-left: 5px solid #d63638;
	border-radius: 6px;
	color: #8a2424;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 8px;
	padding: 10px 12px;
}


.efp-photo-selection {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-top: 10px;
	padding: 10px;
}

.efp-photo-selection__count {
	display: block;
	margin-bottom: 8px;
}

.efp-photo-selection__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.efp-photo-selection__item {
	align-items: center;
	border-top: 1px solid #dcdcde;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 8px 0;
}

.efp-photo-selection__item:first-child {
	border-top: 0;
}

.efp-photo-selection__name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.efp-photo-selection__remove {
	background: #ffffff;
	border: 1px solid #b32d2e;
	border-radius: 6px;
	color: #b32d2e;
	cursor: pointer;
	flex: 0 0 auto;
	font-weight: 700;
	padding: 6px 10px;
}

@media (max-width: 680px) {
	.efp-photo-selection__item {
		align-items: stretch;
		flex-direction: column;
	}

	.efp-photo-selection__remove {
		width: 100%;
	}
}


/* 3.7.6.3 — Highlight photo instructions so customers understand photos are expected. */
.efp-photo-upload,
.efp-estimator__photos,
.efp-photo-field,
.efp-estimator__field:has(input[name="job_photos[]"]) {
	border: 2px solid #1f7a3f;
	border-radius: 14px;
	padding: 16px;
	background: #f7fff9;
}

.efp-photo-upload__help {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 500;
}

input[name="job_photos[]"] {
	margin-top: 12px;
}


/* 3.7.6.4 - Explicit photo request callout */
.efp-estimator .efp-photo-upload-highlight {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 22px;
    padding: 18px;
    border: 3px solid #237a3b;
    border-radius: 12px;
    background: #f0fff4;
}

.efp-estimator .efp-photo-upload-highlight .efp-photo-upload-title {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.efp-estimator .efp-photo-upload-highlight .efp-photo-upload-instructions {
    display: block;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.efp-estimator .efp-photo-upload-highlight input[type="file"] {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 2px dashed #237a3b;
    border-radius: 8px;
    background: #ffffff;
}


/* 3.7.6.5 - camera + existing-photo actions */
.efp-photo-upload-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0 10px;
}

.efp-photo-upload-actions .efp-photo-action {
	width: 100%;
}

.efp-photo-file-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 680px) {
	.efp-photo-upload-actions {
		grid-template-columns: 1fr;
	}
}


/* 3.7.6.6 - never show mobile camera action when JS marks it hidden */
.efp-photo-upload-actions .efp-photo-action[hidden] {
	display: none !important;
}



/* 3.7.6.7 - hide native browser file picker chrome completely */
.efp-photo-file-input,
.efp-photo-file-input[hidden] {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	position: absolute !important;
}

.efp-photo-file-input::file-selector-button,
.efp-photo-file-input::-webkit-file-upload-button {
	display: none !important;
	visibility: hidden !important;
}


/* 3.7.6.8 - hard suppress native file input chrome */
.efp-photo-upload-highlight input[type="file"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    pointer-events: none !important;
}
.efp-photo-upload-highlight input[type="file"]::file-selector-button,
.efp-photo-upload-highlight input[type="file"]::-webkit-file-upload-button {
    display: none !important;
}

/* 3.7.6.9 - processing UI must disappear before success confirmation */
.efp-estimator button[type="submit"][hidden],
.efp-estimator button[type="submit"][hidden] *,
.efp-estimator button[type="submit"][hidden]::before,
.efp-estimator button[type="submit"][hidden]::after {
    display: none !important;
}
.efp-estimator__message--success .efp-submit-spinner {
    display: none !important;
}
