/* Search form */
.thumbtack-wp-search {
	max-width: 960px;
	margin: 1.5rem auto;
	padding: 0 1rem;
	font-size: 1rem;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}

.thumbtack-wp-search *,
.thumbtack-wp-search *::before,
.thumbtack-wp-search *::after {
	box-sizing: border-box;
}

.thumbtack-wp-search__field {
	margin: 0 0 1rem;
}

.thumbtack-wp-search__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.thumbtack-wp-search__field input[type="text"] {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.thumbtack-wp-search__actions {
	margin: 1rem 0 0;
}

.thumbtack-wp-search__submit {
	padding: 0.55rem 1.25rem;
	border: none;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
}

.thumbtack-wp-search__submit:hover {
	background: #135e96;
}

.thumbtack-wp-search__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.thumbtack-wp-search__message {
	margin: 1rem 0 0;
	padding: 0.65rem 0.75rem;
	border-radius: 4px;
	background: #f0f0f1;
}

.thumbtack-wp-search__message--error {
	background: #fcf0f1;
	color: #8a2424;
}

.thumbtack-wp-search__results {
	margin-top: 1.75rem;
}

.thumbtack-wp-search__empty {
	margin: 0;
	color: #50575e;
}

/* Results list */
.tt-results {
	width: 100%;
}

.tt-results__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}

.tt-results__subtitle {
	margin: -30px 0 0.75rem;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 600;
	font-style: normal;
	color: #1a1a1a;
}

.tt-results__attr {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: #4a4a4a;
}

.tt-results__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	vertical-align: middle;
}

.tt-results__logo-svg {
	display: block;
	width: 36px;
	height: 20px;
	color: #009fd9;
}

.tt-results__attr-text {
	font-weight: 500;
}

/* Pro card */
.tt-card {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.25rem 1.5rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tt-card:last-child {
	margin-bottom: 0;
}

.tt-card__avatar,
.tt-card__avatar--static {
	display: block;
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 12px;
	overflow: hidden;
	background: #e8e8e8;
	text-decoration: none;
}

.tt-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tt-card__avatar-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #ececec, #d8d8d8);
}

.tt-card__body {
	flex: 1 1 200px;
	min-width: 0;
}

.tt-card__side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 1rem;
	min-width: 140px;
}

.tt-card__name {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

.tt-card__rating-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin-bottom: 0.5rem;
}

.tt-card__rating-num {
	font-size: 1rem;
	font-weight: 600;
	color: #00a32a;
}

.tt-card__stars {
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
}

.tt-card__star {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	font-size: 18px;
	line-height: 1;
}

.tt-card__star-bg {
	position: absolute;
	left: 0;
	top: 0;
	color: #d3d3d3;
	pointer-events: none;
}

.tt-card__star-fg {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	height: 100%;
	color: #00a32a;
	white-space: nowrap;
	pointer-events: none;
}

.tt-card__review-count {
	font-size: 0.9rem;
	color: #8c8c8c;
}

.tt-card__pill {
	display: inline-block;
	margin: 0.25rem 0 0.5rem;
	padding: 0.2rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0066a1;
	background: #e3f2fd;
	border-radius: 999px;
}

.tt-card__hires,
.tt-card__years {
	margin: 0.15rem 0;
	font-size: 0.875rem;
	color: #6b6b6b;
	line-height: 1.45;
}

.tt-card__review {
	margin: 0.65rem 0 0;
	padding: 0;
	border: none;
	font-size: 0.875rem;
	color: #4a4a4a;
	line-height: 1.5;
}

.tt-card__review-text {
	margin: 0;
	display: inline;
}

.tt-card__see-more {
	font-weight: 600;
	color: #009fd9;
	text-decoration: none;
	white-space: nowrap;
}

.tt-card__see-more:hover {
	text-decoration: underline;
}

.tt-card__quote-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: #000;
	line-height: 1.2;
}

.tt-card__quote-label {
	margin-top: 0.2rem;
	font-size: 0.8125rem;
	color: #8c8c8c;
}

.tt-card__cta {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	font-size: 0.9375rem;
	font-weight: 600 !important;
	color: #333;
	background: #ebebeb;
	border-radius: 6px;
	text-decoration: none;
	text-align: center;
	min-width: 8.5rem;
	border: 1px solid #d0d0d0;
}

.tt-card__cta:hover {
	background: #e0e0e0;
	color: #111;
}

.tt-card__cta--disabled {
	opacity: 0.55;
	cursor: default;
}

button.tt-card__cta {
	font: inherit;
	cursor: pointer;
}

.tt-card__avatar--button {
	border: 0;
	padding: 0;
	background: #e8e8e8;
	cursor: pointer;
	font: inherit;
}

.tt-card__see-more--button {
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: #009fd9;
	font-weight: 600;
	white-space: nowrap;
}

.tt-card__see-more--button:hover {
	text-decoration: underline;
}

/* Request Flow modal (matches Thumbtack docs' modal + iframe pattern) */
.tt-rfw-modal[hidden] {
	display: none !important;
}

.tt-rfw-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tt-rfw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.tt-rfw-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 632px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tt-rfw-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tt-rfw-modal__close:hover {
	background: #fff;
}

.tt-rfw-modal__iframe {
	display: block;
	width: 100%;
	height: 600px;
	border: 0;
	background: #fff;
}

html.tt-rfw-modal-open,
body.tt-rfw-modal-open {
	overflow: hidden;
}

@media (max-height: 720px) {
	.tt-rfw-modal__iframe {
		height: 80vh;
	}
}

@media (max-width: 640px) {
	.tt-rfw-modal {
		padding: 0;
	}

	.tt-rfw-modal__dialog {
		height: 100%;
		max-width: none;
		border-radius: 0;
	}

	.tt-rfw-modal__iframe {
		height: 100vh;
	}
}

@media (max-width: 640px) {
	.tt-card {
		flex-direction: column;
	}

	.tt-card__side {
		align-items: stretch;
		text-align: left;
		width: 100%;
		min-width: 0;
	}

	.tt-card__cta {
		width: 100%;
	}
}
