/* HomePros Finder — Spanish 3-step lead modal (scoped) */

/* Universal open triggers (any page) */
.hpf-open-lead,
.hpf-solicitar,
[data-hpf-open-lead] {
	cursor: pointer;
}

.hpf-es-modal-ov,
.hpf-es-modal-ov * {
	box-sizing: border-box;
}


.hpf-es-consent a {
	color: var(--hpf-es-blue);
	text-decoration: none;
	font-weight: 600;
}

.hpf-es-modal-box.is-submitted .hpf-es-title,
.hpf-es-modal-box.is-submitted .hpf-es-sub,
.hpf-es-modal-box.is-submitted .hpf-es-nav,
.hpf-es-modal-box.is-submitted .hpf-es-step,
.hpf-es-modal-box.is-submitted .hpf-es-foot {
	display: none !important;
}

.hpf-es-modal-box.is-submitted .hpf-es-done {
	display: block;
}

.hpf-es-modal-ov {
	--hpf-es-blue: #1291df;
	--hpf-es-navy: #0d1f3c;
	--hpf-es-g1: #f4f7fc;
	--hpf-es-g2: #e8edf6;
	--hpf-es-g4: #8899b8;
	--hpf-es-ink-60: rgba(13, 31, 60, 0.6);
	--hpf-es-fn: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-family: var(--hpf-es-fn);
}

.hpf-es-modal-ov {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(8, 18, 45, 0.78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	height:100vh;
}

.hpf-es-modal-ov[hidden]:not(.is-open) {
	display: none !important;
}

.hpf-es-modal-box {
	background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 900px;
    padding: 48px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
    animation: slideup .3s cubic-bezier(.16, 1, .3, 1);
	min-height: 680px;
    overflow-x: hidden;
    overflow-y: auto;
	/* max-height: 90vh; */
	overflow-y: auto;
	scrollbar-width: thin;
}

body.hpf-es-modal-open {
	overflow: hidden;
}

body.hpf-es-modal-open #masthead,
body.hpf-es-modal-open .elementor-location-header,
body.hpf-es-modal-open .tsc-smm-sticky-header-bar,
body.hpf-es-modal-open .she-header-yes,
body.hpf-es-modal-open .hfe-flyout-wrapper,
body.hpf-es-modal-open .tsc-smm-portaled-backdrop,
body.hpf-es-modal-open .tsc-smm-portaled-panel {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

#hpfModalEs.hpf-es-modal-ov.is-open {
	z-index: 2147483000 !important;
}

.hpf-es-close {
	position: absolute;
    top: 16px;
    right: 16px!important;
    width: 38px!important;
    height: 38px!important;
    border-radius: 50%!important;
    border: 0!important;
    background: #f4f7fc!important;
    color: #8899b8!important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px!important;
    transition: all .15s;
	padding: 0px!important;
	box-shadow: none!important;
}

.hpf-es-close:hover {
	background: var(--hpf-es-navy);
	color: #fff;
}

.hpf-es-title {
	font-size: 26px;
    font-weight: 700;
	line-height: 1.15;
	color: var(--hpf-es-navy);
	margin: 0 0 8px;
	padding-right: 40px;
}
@media(max-width:767px){
	.hpf-es-title{
		font-size: 20px;
}
}
.hpf-es-title .hpf-es-blue {
	color: var(--hpf-es-blue);
}

.hpf-es-sub {
	color: var(--hpf-es-ink-60);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 28px;
}

@media (max-width: 767px) {
    .hpf-es-sub {
        font-size: 13.5px;
        margin-bottom: 20px;
    }
}

.hpf-es-nav {
	display: flex;
	gap: 8px;
	margin: 14px 0 20px;
	flex-wrap: wrap;
}

.hpf-es-nav button {
	flex: 1;
    border: 1px solid #e8edf6!important;
    background: #f4f7fc!important;
    color: #0d1f3c99!important;;
    border-radius: 999px!important;;
    padding: 7px 10px!important;;
    text-align: center!important;;
    font-size: 12px!important;
	line-height: 1.5!important;
    font-weight: 800!important;
	box-shadow: none!important;
}
@media(max-width:767px){
	.hpf-es-nav button{
		font-size: 11px!important;
        padding: 7px 6px!important;
		line-height: 16px!important;
	}
}
.hpf-es-nav button.is-active {
	background: rgba(18, 145, 223, .1)!important;
    border-color: rgba(18, 145, 223, .35)!important;
    color:#1291df!important;
}
@media (max-width: 575px) {
    .hpf-es-nav button {
        font-size: 11px;
        padding: 7px 6px;
    }
}

.hpf-es-nav button.is-done {
	color: var(--hpf-es-navy);
}

.hpf-es-step {
	display: none;
}

.hpf-es-step.is-active {
	display: block;
}

.hpf-es-err {
	display: none;
	background: #fff5f5;
	border: 1px solid #f5c2c2;
	color: #b42318;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 14px;
}

.hpf-es-err.show {
	display: block;
}

.hpf-es-field {
	margin-bottom: 16px;
}

.hpf-es-label {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--hpf-es-navy);
	margin-bottom: 5px;
}

.hpf-es-label .req {
	color: #e53935;
}

.hpf-es-hint {
	font-weight: 400;
	color: var(--hpf-es-g4);
	font-size: 12px;
}

.hpf-es-field input[type="text"],
.hpf-es-field input[type="tel"],
.hpf-es-field input[type="email"],
.hpf-es-field input[type="date"],
.hpf-es-field select,
.hpf-es-field textarea, .hpf-es-field input[type="file"] {
	width: 100%;
	border: 1.5px solid #c8d2e4!important;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color:#0d1f3c;
	background: #fff;
}

.hpf-es-field input[type="date"] {
	cursor: pointer;
	position: relative;
}

.hpf-es-field input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	cursor: pointer;
	opacity: 0;
}

.hpf-es-field textarea {
	min-height: 100px;
	resize: vertical;
}

.hpf-es-field input:focus,
.hpf-es-field select:focus,
.hpf-es-field textarea:focus {
	outline: none;
	border-color: var(--hpf-es-blue);
	box-shadow: 0 0 0 3px rgba(18, 145, 223, 0.15);
}

.hpf-es-field input.is-invalid,
.hpf-es-field select.is-invalid,
.hpf-es-field textarea.is-invalid {
	border-color: #e53935;
}

.hpf-es-note {
	font-size: 12px;
	color: var(--hpf-es-g4);
	margin-top: 6px;
}

.hpf-es-char {
	text-align: right;
	font-size: 12px;
	color: var(--hpf-es-g4);
	margin-top: 4px;
}

/* Paso 3 — screenshot layout: 3-col name row | half-width email | full date | full time */
.hpf-es-modal-ov .hpf-es-step[data-hpf-es-step="3"] .hpf-es-contact-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px 16px !important;
	width: 100% !important;
	align-items: start !important;
}

.hpf-es-modal-ov .hpf-es-contact-grid > .hpf-es-field {
	margin-bottom: 0 !important;
	min-width: 0 !important;
}

.hpf-es-modal-ov .hpf-es-email-field {
	grid-column: 1 / -1 !important;
	max-width: min(100%, calc(33% - 8px)) !important;
	width: 100% !important;
}

.hpf-es-modal-ov .hpf-es-contact-date,
.hpf-es-modal-ov .hpf-es-contact-time,
.hpf-es-modal-ov .hpf-es-contact-consent {
	grid-column: 1 / -1 !important;
}

.hpf-es-modal-ov .hpf-es-contact-date {
	margin-top: 2px !important;
}

.hpf-es-modal-ov .hpf-es-contact-grid > .hpf-es-consent {
	margin-bottom: 0 !important;
	margin-top: 2px !important;
}

.hpf-es-modal-ov .hpf-es-contact-grid .hpf-es-field input[type="text"],
.hpf-es-modal-ov .hpf-es-contact-grid .hpf-es-field input[type="tel"],
.hpf-es-modal-ov .hpf-es-contact-grid .hpf-es-field input[type="email"],
.hpf-es-modal-ov .hpf-es-contact-grid .hpf-es-field input[type="date"],
.hpf-es-modal-ov .hpf-es-contact-grid .hpf-es-field select {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-height: 44px !important;
}

.hpf-es-date-wrap {
	position: relative;
	width: 100%;
}

.hpf-es-date-wrap input[type="date"] {
	padding-left: 42px !important;
}

.hpf-es-date-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hpf-es-g4);
	pointer-events: none;
	font-size: 15px;
	line-height: 1;
}

.hpf-es-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hpf-es-ink-60);
}

.hpf-es-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.hpf-es-consent a {
	color: var(--hpf-es-blue);
	text-decoration: none;
	font-weight: 600;
}

.hpf-es-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	padding-top: 8px;
}
@media(max-width:767px){
	.hpf-es-foot{
		flex-wrap: wrap;
	}
}

.hpf-es-btn-out {
	border: 1.5px solid #c8d2e4 !important;
	background: #fff !important;
	color: var(--hpf-es-navy) !important;
	border-radius: 10px !important;
	padding: 11px 18px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	font-family: inherit;
	box-shadow: none !important;
}

.hpf-es-btn-out:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hpf-es-btn-hp {
	border: none !important;
	background: var(--hpf-es-blue) !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 12px 22px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	font-family: inherit;
	margin-left: auto;
	box-shadow: 0 4px 18px rgba(18, 145, 223, 0.35) !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	white-space: nowrap !important;
}

.hpf-es-btn-hp:hover {
	background: #0e7bc2;
}

.hpf-es-btn-hp:disabled {
	opacity: 0.65;
	cursor: wait;
}

.hpf-es-done {
	display: none;
	text-align: center;
	padding: 20px 10px 10px;
}
@media(max-width:767px){
	.hpf-es-btn-hp, .hpf-es-btn-out{
		width:100%!important;
		margin: 0px!important;;
		text-align: center!important;
		justify-content: center;
	}
}


.hpf-es-modal-box.is-submitted .hpf-es-title,
.hpf-es-modal-box.is-submitted .hpf-es-sub,
.hpf-es-modal-box.is-submitted .hpf-es-nav,
.hpf-es-modal-box.is-submitted .hpf-es-step,
.hpf-es-modal-box.is-submitted .hpf-es-foot {
	display: none !important;
}

.hpf-es-modal-box.is-submitted .hpf-es-done {
	display: block;
}

.hpf-es-done-ic {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #22c55e;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin-bottom: 16px;
}

.hpf-es-done h3 {
	font-size: 22px;
	color: var(--hpf-es-navy);
	margin: 0 0 10px;
}

.hpf-es-done p {
	color: var(--hpf-es-ink-60);
	font-size: 14px;
	margin: 0 0 22px;
}


.hpf-es-done p strong,
.hpf-es-done p .hpf-success-ref {
	font-weight: 700;
	color: var(--hpf-es-navy);
}

.hpf-es-photo-list span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--hpf-es-g1);
	border: 1px solid var(--hpf-es-g2);
	border-radius: 8px;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 600;
	margin: 4px 4px 0 0;
}
.hpf-es-photo-list  button{
	padding: 0px;
    background-color: transparent!important;
    color: #0d1f3c!important;
    border: none!important;
	font-size: 12px;
	box-shadow: none!important;
}
@media (max-width: 600px) {
	.hpf-es-modal-box {
		padding: 24px 14px 14px;
	}
	.hpf-es-row2 {
		grid-template-columns: 1fr;
	}
	.hpf-es-modal-ov .hpf-es-step[data-hpf-es-step="3"] .hpf-es-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.hpf-es-modal-ov .hpf-es-phone-field,
	.hpf-es-modal-ov .hpf-es-email-field,
	.hpf-es-modal-ov .hpf-es-contact-date,
	.hpf-es-modal-ov .hpf-es-contact-time,
	.hpf-es-modal-ov .hpf-es-contact-consent {
		grid-column: 1 / -1 !important;
	}
	.hpf-es-modal-ov .hpf-es-email-field {
		max-width: 100% !important;
	}
}

@media (max-width: 575.98px) {
	.hpf-es-modal-ov .hpf-es-step[data-hpf-es-step="3"] .hpf-es-contact-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Service picker — mobile only (matches espanol.html) */
.hpf-es-es-service-field {
	position: relative;
}

.hpf-es-service-mobile-open {
	display: none;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%!important;
	margin: 0;
	border: 1.5px solid #c8d2e4 !important;
	background: #fff !important;
	color: var(--hpf-es-navy) !important;
	border-radius: 8px;
	padding: 10px 12px !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none !important;
	text-align: left;
	line-height: 1.35;
}

.hpf-es-service-mobile-open .bi {
	color: var(--hpf-es-blue) !important;
	font-size: 16px;
	flex-shrink: 0;
}

.hpf-es-service-mobile-open span {
	/* flex: 1 1 auto; */
	min-width: 0;
}

.hpf-es-service-mobile-open.is-invalid {
	border-color: #e53935 !important;
}

[data-hpf-es-service-panel].hpf-es-service-mobile-panel {
	display: none !important;
}

[data-hpf-es-service-panel].hpf-es-service-mobile-panel.is-open {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100dvh !important;
	z-index: 100050 !important;
	display: flex !important;
	align-items: flex-end !important;
	justify-content: center !important;
	padding: max(8px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px)) !important;
	background: rgba(8, 18, 45, 0.48) !important;
	overflow: hidden !important;
	overscroll-behavior: contain !important;
	touch-action: none !important;
	box-sizing: border-box;
	font-family: var(--hpf-es-fn);
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-sheet {
	position: relative !important;
	inset: auto !important;
	width: min(100%, 520px) !important;
	max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
	min-height: 0 !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
	border-radius: 20px 20px 12px 12px !important;
	background: #fff !important;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35) !important;
	touch-action: auto !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-head {
	flex: 0 0 auto !important;
	display: flex !important;
	justify-content: space-between !important;
	gap: 12px !important;
	align-items: flex-start !important;
	padding: 16px 16px 12px !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--hpf-es-g2) !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-head h3 {
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--hpf-es-navy) !important;
	line-height: 1.2 !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-sub {
	margin: 4px 0 16px 0px !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	color: #0d1f3c !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-close {
	width: 36px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--hpf-es-g1) !important;
	color: var(--hpf-es-g4) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	cursor: pointer !important;
	flex-shrink: 0;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-close .bi,
[data-hpf-es-service-panel] .hpf-es-service-mobile-close i {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	color: var(--hpf-es-g4) !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-close:hover,
[data-hpf-es-service-panel] .hpf-es-service-mobile-close:focus {
	background: var(--hpf-es-navy) !important;
	color: #fff !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-close:hover .bi,
[data-hpf-es-service-panel] .hpf-es-service-mobile-close:focus .bi,
[data-hpf-es-service-panel] .hpf-es-service-mobile-close:hover i,
[data-hpf-es-service-panel] .hpf-es-service-mobile-close:focus i {
	color: #fff !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-list {
	flex: 1 1 auto !important;
	min-height: 0 !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch !important;
	overscroll-behavior-y: contain !important;
	touch-action: pan-y !important;
	padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-group {
	margin-top: 0 !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-title {
	font-weight: 800 !important;
	text-transform: uppercase !important;
	color: var(--hpf-es-navy) !important;
	margin: 0 0 8px !important;
	font-size: 14px !important;
	letter-spacing: 0.02em !important;
}

[data-hpf-es-service-panel] .hpf-es-service-mobile-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 7px !important;
}

[data-hpf-es-service-panel] button.hpf-es-service-mobile-choice {
	display: block !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100% !important;
	min-height: 44px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid #e8edf6 !important;
	border-radius: 10px !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--hpf-es-navy) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	cursor: pointer !important;
	box-shadow: none !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
	outline: none !important;
}

[data-hpf-es-service-panel] button.hpf-es-service-mobile-choice:hover,
[data-hpf-es-service-panel] button.hpf-es-service-mobile-choice:focus,
[data-hpf-es-service-panel] button.hpf-es-service-mobile-choice:active {
	border-color: var(--hpf-es-blue) !important;
	color: var(--hpf-es-blue) !important;
	background: rgba(18, 145, 223, 0.06) !important;
	transform: none !important;
}

@media (max-width: 575.98px) {
	.hpf-es-es-service-field select[data-hpf-es-service-select] {
		display: none !important;
	}

	.hpf-es-service-mobile-open {
		display: flex !important;
	}
}

@media (min-width: 576px) {
	.hpf-es-service-mobile-open,
	[data-hpf-es-service-panel].hpf-es-service-mobile-panel.is-open {
		display: none !important;
	}
}
.hpf-es-service-mobile-open{
width:100%;

}