/* Trusted Homebuyers USA - survey overlay */

.thb-survey {
	position: fixed; inset: 0; z-index: 999; display: none;
	background: rgba(7, 20, 42, .86); backdrop-filter: blur(3px);
	padding: 20px; overflow-y: auto;
}
.thb-survey.is-open { display: flex; align-items: flex-start; justify-content: center; }

.thb-survey__shell {
	position: relative; background: #fff; border-radius: 18px;
	width: min(620px, 100%); margin: auto; padding: 0 0 30px;
	box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden;
}

.thb-survey__close {
	position: absolute; top: 10px; right: 12px; z-index: 3;
	background: none; border: 0; font-size: 30px; line-height: 1; color: #8A94A4;
	cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.thb-survey__close:hover { color: var(--red, #BD4E4C); background: #F4F6F9; }

.thb-survey__bar { height: 6px; background: #EAEEF4; }
.thb-survey__barfill { height: 100%; width: 0; background: var(--red, #BD4E4C); transition: width .3s ease; }

.thb-survey__addr {
	padding: 14px 28px; background: #F4F6F9; border-bottom: 1px solid #E2E7EE;
	font-size: .875rem; color: #16202E; word-break: break-word;
}
.thb-survey__addr:empty { display: none; }
.thb-survey__addr span { font-weight: 700; color: #0B1F3F; }

.thb-survey__body { padding: 26px 28px 0; }
@media (max-width: 520px) { .thb-survey__body, .thb-survey__addr { padding-inline: 20px; } }

.thb-survey__count {
	font-family: Archivo, sans-serif; font-weight: 700; font-size: .75rem;
	letter-spacing: .12em; text-transform: uppercase; color: var(--red, #BD4E4C); margin-bottom: .5rem;
}
.thb-survey__q {
	font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.5rem;
	color: #0B1F3F; margin: 0 0 1.3rem; line-height: 1.25;
}

.thb-survey__sub {
	font-size: .9375rem; color: #5A6472; margin: -0.7rem 0 1.3rem; line-height: 1.55;
}

/* ---- icon option cards (same shape as the Fast Buyer survey) ---- */
.thb-survey__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.thb-survey__opts--wide { grid-template-columns: repeat(3, 1fr); }
.thb-survey__opts--two { grid-template-columns: repeat(2, 1fr); max-width: 420px; margin-inline: auto; }
@media (max-width: 560px) {
	.thb-survey__opts, .thb-survey__opts--wide { grid-template-columns: repeat(2, 1fr); }
}

.thb-survey__opt {
	font: inherit; font-weight: 600; font-size: .875rem; line-height: 1.3;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	gap: 10px; text-align: center; padding: 18px 10px 16px;
	border: 2px solid #E2E7EE; border-radius: 12px; background: #fff; color: #16202E;
	cursor: pointer; min-height: 104px;
	transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.thb-survey__opt svg {
	width: 30px; height: 30px; flex: 0 0 auto;
	fill: none; stroke: #BD4E4C; stroke-width: 1.6;
	stroke-linecap: round; stroke-linejoin: round;
	transition: stroke .15s, transform .15s;
}
.thb-survey__opt:hover {
	border-color: #BD4E4C; background: #FBF0EF;
	box-shadow: 0 4px 14px rgba(189,78,76,.14);
}
.thb-survey__opt:hover svg { transform: scale(1.06); }
.thb-survey__opt:active { transform: scale(.985); }
.thb-survey__opt.is-on {
	border-color: #BD4E4C; background: #BD4E4C; color: #fff;
	box-shadow: 0 6px 18px rgba(189,78,76,.30);
}
.thb-survey__opt.is-on svg { stroke: #fff; }

/* the two-option yes/no step reads better a little larger */
.thb-survey__opts--two .thb-survey__opt { min-height: 120px; font-size: 1rem; }
.thb-survey__opts--two .thb-survey__opt svg { width: 36px; height: 36px; }

.thb-survey__back {
	margin-top: 18px; background: none; border: 0; color: #5A6472; font: inherit;
	font-size: .9375rem; cursor: pointer; padding: 6px 0;
}
.thb-survey__back:hover { color: var(--red, #BD4E4C); }

.thb-survey__contact .thb-field { margin-bottom: 11px; }
.thb-survey__consent {
	display: flex; gap: 10px; align-items: flex-start;
	font-size: .75rem; line-height: 1.55; color: #5A6472; margin: 6px 0 16px;
}
.thb-survey__consent input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #BD4E4C; }

.thb-survey__err {
	margin: 12px 0 0; color: #A03E3C; font-size: .875rem; font-weight: 600;
}

.thb-survey__done { text-align: center; padding: 12px 0 8px; }
.thb-survey__tick {
	width: 66px; height: 66px; border-radius: 50%; background: #1E9E4A; color: #fff;
	display: grid; place-items: center; font-size: 2.1rem; margin: 0 auto 1rem;
}
.thb-survey__done h2 { font-family: Archivo, sans-serif; color: #0B1F3F; margin-bottom: .5rem; }
.thb-survey__done p { color: #5A6472; font-size: .9375rem; }
.thb-survey__donephone { font-weight: 600; color: #0B1F3F !important; }

/* Google Places dropdown sits above the overlay */
.pac-container { z-index: 100000 !important; border-radius: 10px; box-shadow: 0 12px 32px rgba(11,31,63,.2); }
