/* ==========================================================================
   Visit Bedford — Add Listing
   ========================================================================== */

.vb-add-listing,
.vb-add-listing *,
.vb-add-listing *::before,
.vb-add-listing *::after {
	box-sizing: border-box;
}

.vb-add-listing svg {
	display: block;
	max-width: none;
}


/* ==========================================================================
   Main component
   ========================================================================== */

.vb-add-listing {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 10px 0 50px;
	color: #172B2A;
}

.vb-add-listing-intro {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0 0 28px;
	padding: 0 8px;
}

.vb-add-listing-intro-icon {
	width: 52px !important;
	height: 52px !important;
	min-width: 52px !important;
	max-width: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;

	flex: 0 0 52px;

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 15px;
	background: #EEF5FF;
	color: #1677E8;
}

.vb-add-listing-intro-icon svg {
	width: 27px !important;
	height: 27px !important;
	min-width: 27px !important;
	max-width: 27px !important;
	min-height: 27px !important;
	max-height: 27px !important;
}

.vb-add-listing-intro h1 {
	margin: 0 0 9px;

	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.12;
	font-weight: 750;
	letter-spacing: -0.7px;

	color: #172B2A;
}

.vb-add-listing-intro p {
	max-width: 820px;
	margin: 0;

	font-size: 16px;
	line-height: 1.65;

	color: #52615F;
}


/* ==========================================================================
   Main card
   ========================================================================== */

.vb-add-listing-card {
	background: #FFFFFF;

	border: 1px solid #E3E9EE;
	border-radius: 20px;

	box-shadow:
		0 2px 6px rgba(23, 43, 42, 0.025),
		0 12px 35px rgba(23, 43, 42, 0.055);

	padding: 34px;
}


/* ==========================================================================
   Steps
   ========================================================================== */

.vb-add-step[hidden] {
	display: none !important;
}

.vb-form-step-heading {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 26px;
}

.vb-form-step-number {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;

	display: flex;
	align-items: center;
	justify-content: center;

	margin-top: 1px;

	border-radius: 10px;

	background: #1677E8;
	color: #FFFFFF;

	font-size: 15px;
	font-weight: 750;
}

.vb-form-step-heading h2 {
	margin: 0 0 5px;

	font-size: 25px;
	line-height: 1.25;
	font-weight: 750;
	letter-spacing: -0.25px;

	color: #172B2A;
}

.vb-form-step-heading p {
	margin: 0;

	font-size: 15px;
	line-height: 1.55;

	color: #697774;
}


/* ==========================================================================
   Search
   ========================================================================== */

.vb-search-wrapper {
	max-width: 820px;
}

.vb-input-label {
	display: block;

	margin: 0 0 8px;

	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;

	color: #344542;
}

.vb-search-input-wrap {
	position: relative;
}

.vb-search-input {
	display: block;

	width: 100%;
	height: 56px;

	padding: 0 52px 0 17px;

	border: 1px solid #D4DDE2;
	border-radius: 11px;

	background: #FFFFFF !important;
	color: #172B2A !important;

	font-family: inherit;
	font-size: 16px;
	line-height: 1;

	outline: none;

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.vb-search-input::placeholder {
	color: #929E9B;
}

.vb-search-input:hover {
	border-color: #BBC8CC;
}

.vb-search-input:focus {
	border-color: #1677E8;

	box-shadow:
		0 0 0 3px rgba(22, 119, 232, 0.12);
}

.vb-search-icon {
	position: absolute;

	right: 18px;
	top: 50%;

	width: 21px;
	height: 21px;

	transform: translateY(-50%);

	color: #82908D;

	pointer-events: none;
}

.vb-search-icon svg {
	width: 21px !important;
	height: 21px !important;
}

.vb-place-status {
	min-height: 20px;
	margin-top: 10px;

	font-size: 14px;
	line-height: 1.45;

	color: #667571;
}


/* ==========================================================================
   Google place card
   ========================================================================== */

.vb-place-card {
	display: block;

	margin: 0;
	padding: 20px 22px;

	border: 1px solid #E3EAF0;
	border-radius: 13px;

	background: #F6F9FD;

	color: #344542;

	font-size: 15px;
	line-height: 1.6;
}

.vb-place-card strong {
	display: block;

	margin-bottom: 5px;

	font-size: 19px;
	line-height: 1.3;
	font-weight: 750;

	color: #172B2A;
}

.vb-place-card a {
	color: #1677E8;
	text-decoration: none;
	word-break: break-word;
}

.vb-place-card a:hover {
	text-decoration: underline;
}


/* ==========================================================================
   Divider
   ========================================================================== */

.vb-form-divider {
	height: 1px;
	margin: 30px 0;

	background: #E8EDF0;
}


/* ==========================================================================
   Form sections
   ========================================================================== */

.vb-form-section {
	margin: 0;
}

.vb-section-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;

	margin-bottom: 20px;
}

.vb-section-heading-row h3 {
	margin: 0 0 6px;

	font-size: 21px;
	line-height: 1.3;
	font-weight: 750;
	letter-spacing: -0.15px;

	color: #172B2A;
}

.vb-section-heading-row p {
	margin: 0;

	font-size: 15px;
	line-height: 1.5;

	color: #697774;
}

.vb-selection-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	flex: 0 0 auto;

	padding: 7px 11px;

	border-radius: 999px;

	background: #EEF5FF;
	color: #1677E8;

	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.vb-selection-badge-icon {
	font-size: 13px;
	line-height: 1;
}


/* ==========================================================================
   Parent category selector
   ========================================================================== */

.vb-parent-category-grid {
	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 14px;

	margin-top: 22px;
}


/*
 * IMPORTANT:
 * These are buttons, so we explicitly reset the site's
 * global button styles here.
 */

.vb-add-listing .vb-parent-category {
	position: relative;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;

	width: 100%;
	min-width: 0;
	min-height: 190px;

	margin: 0;
	padding: 22px;

	border: 1px solid #DDE6EC !important;
	border-radius: 16px !important;

	background: #FFFFFF !important;
	color: #172B2A !important;

	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;
	text-align: left;

	box-shadow:
		0 2px 5px rgba(23, 43, 42, 0.025);

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.vb-add-listing .vb-parent-category:hover {
	border-color: #B9CCE0 !important;

	background: #FBFDFF !important;

	box-shadow:
		0 8px 22px rgba(23, 43, 42, 0.08);

	transform: translateY(-2px);
}

.vb-add-listing .vb-parent-category:focus-visible {
	outline: none;

	border-color: #1677E8 !important;

	box-shadow:
		0 0 0 3px rgba(22, 119, 232, 0.14),
		0 8px 22px rgba(23, 43, 42, 0.06);
}

.vb-add-listing .vb-parent-category.is-active {
	border-color: #1677E8 !important;

	background: #F4F8FF !important;

	box-shadow:
		0 0 0 1px rgba(22, 119, 232, 0.08),
		0 8px 22px rgba(23, 43, 42, 0.07);
}


/* Parent icon */

.vb-parent-category-icon {
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	max-width: 54px !important;
	min-height: 54px !important;
	max-height: 54px !important;

	display: flex;
	align-items: center;
	justify-content: center;

	margin: 0 0 24px;

	border-radius: 13px;

	background: #EEF5FF;
	color: #1677E8;

	flex: 0 0 54px;
}

.vb-parent-category-icon svg {
	width: 27px !important;
	height: 27px !important;
	min-width: 27px !important;
	max-width: 27px !important;
	min-height: 27px !important;
	max-height: 27px !important;
}


/* Parent text */

.vb-parent-category-content {
	display: flex;
	flex-direction: column;

	min-width: 0;

	padding-right: 30px;
}

.vb-parent-category-content strong {
	display: block;

	margin: 0 0 5px;

	font-size: 17px;
	line-height: 1.3;
	font-weight: 750;

	color: #172B2A;
}

.vb-parent-category-content span {
	display: block;

	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;

	color: #7A8885;
}


/* Arrow */

.vb-parent-category-arrow {
	position: absolute;

	right: 19px;
	bottom: 20px;

	width: 28px !important;
	height: 28px !important;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #7B8B88;
}

.vb-parent-category-arrow svg {
	width: 19px !important;
	height: 19px !important;
	min-width: 19px !important;
	max-width: 19px !important;
	min-height: 19px !important;
	max-height: 19px !important;
}

.vb-parent-category:hover .vb-parent-category-arrow,
.vb-parent-category.is-active .vb-parent-category-arrow {
	color: #1677E8;
}


/* ==========================================================================
   Subcategory panels
   ========================================================================== */

.vb-subcategory-panels {
	margin-top: 16px;
}

.vb-subcategory-panel[hidden] {
	display: none !important;
}

.vb-subcategory-panel {
	padding: 22px;

	border: 1px solid #DDE6EC;
	border-radius: 16px;

	background: #F8FAFC;
}

.vb-subcategory-heading {
	display: flex;
	align-items: flex-start;
	gap: 18px;

	margin-bottom: 20px;
}

.vb-subcategory-heading > div:last-child {
	flex: 1;
}

.vb-subcategory-back {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;

	flex: 0 0 auto;

	min-height: 36px !important;

	padding: 7px 11px !important;
	margin: 0 !important;

	border: 1px solid #D8E1E6 !important;
	border-radius: 9px !important;

	background: #FFFFFF !important;
	color: #53635F !important;

	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 650 !important;
	line-height: 1.2 !important;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
}

.vb-subcategory-back:hover {
	border-color: #B8C7CE !important;
	color: #1677E8 !important;
}

.vb-subcategory-back svg {
	width: 16px !important;
	height: 16px !important;
}

.vb-subcategory-eyebrow {
	display: block;

	margin-bottom: 3px;

	font-size: 11px;
	line-height: 1.3;
	font-weight: 750;

	letter-spacing: 0.5px;
	text-transform: uppercase;

	color: #1677E8;
}

.vb-subcategory-heading h4 {
	margin: 0 0 4px;

	font-size: 20px;
	line-height: 1.3;
	font-weight: 750;

	color: #172B2A;
}

.vb-subcategory-heading p {
	margin: 0;

	font-size: 14px;
	line-height: 1.45;

	color: #697774;
}


/* ==========================================================================
   Subcategory grid
   ========================================================================== */

.vb-subcategory-grid {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 10px;
}


/* ==========================================================================
   Category options
   ========================================================================== */

.vb-category-option {
	position: relative;

	display: flex;
	align-items: center;

	min-height: 62px;

	width: 100%;

	padding: 11px 15px;

	border: 1px solid #DCE4E8;
	border-radius: 11px;

	background: #FFFFFF;

	cursor: pointer;

	transition:
		border-color 0.16s ease,
		background 0.16s ease,
		box-shadow 0.16s ease,
		transform 0.16s ease;
}

.vb-category-option:hover {
	border-color: #B9C7CD;
	background: #FBFCFD;

	box-shadow:
		0 2px 8px rgba(23, 43, 42, 0.035);
}

.vb-category-option:has(input:checked) {
	border-color: #1677E8;
	background: #F4F8FF;

	box-shadow:
		0 0 0 1px rgba(22, 119, 232, 0.08);
}


/* ==========================================================================
   Checkbox
   ========================================================================== */

.vb-category-option input[type="checkbox"] {
	width: 19px !important;
	height: 19px !important;

	flex: 0 0 19px;

	margin: 0 13px 0 0 !important;

	appearance: none;
	-webkit-appearance: none;

	border: 1.5px solid #B8C4C9 !important;
	border-radius: 5px !important;

	background: #FFFFFF !important;

	cursor: pointer;

	position: relative;

	box-shadow: none !important;
}

.vb-category-option input[type="checkbox"]:checked {
	border-color: #1677E8 !important;
	background: #1677E8 !important;
}

.vb-category-option input[type="checkbox"]:checked::after {
	content: "";

	position: absolute;

	left: 5px;
	top: 2px;

	width: 5px;
	height: 9px;

	border: solid #FFFFFF;
	border-width: 0 2px 2px 0;

	transform: rotate(45deg);
}

.vb-category-option input[type="checkbox"]:focus-visible {
	outline: none;

	box-shadow:
		0 0 0 3px rgba(22, 119, 232, 0.16) !important;
}


/* ==========================================================================
   Category icon
   ========================================================================== */

.vb-category-icon {
	width: 37px !important;
	height: 37px !important;
	min-width: 37px !important;
	max-width: 37px !important;
	min-height: 37px !important;
	max-height: 37px !important;

	flex: 0 0 37px;

	display: flex;
	align-items: center;
	justify-content: center;

	margin-right: 12px;

	border-radius: 9px;

	background: #F0F5FB;
	color: #1677E8;

	transition:
		background 0.16s ease,
		color 0.16s ease;
}

.vb-category-option:has(input:checked) .vb-category-icon {
	background: #E4F0FF;
	color: #1677E8;
}

.vb-category-icon svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
}

.vb-category-name {
	min-width: 0;

	font-size: 15px;
	line-height: 1.35;
	font-weight: 650;

	color: #273936;
}


/* ==========================================================================
   Category footer
   ========================================================================== */

.vb-category-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;

	margin-top: 13px;

	font-size: 13px;
	line-height: 1.4;
}

.vb-count-text {
	color: #65736F;
}

.vb-count-text [data-category-count] {
	font-weight: 750;
	color: #1677E8;
}

.vb-count-hint {
	color: #8A9592;
}


/* ==========================================================================
   Applicant details
   ========================================================================== */

.vb-form-fields-grid {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 18px;
}

.vb-form-field {
	min-width: 0;
}

.vb-form-field-full {
	grid-column: 1 / -1;
}

.vb-required {
	color: #1677E8;
}

.vb-text-input {
	display: block;

	width: 100%;
	height: 50px;

	padding: 0 14px;

	border: 1px solid #D4DDE2;
	border-radius: 10px;

	background: #FFFFFF !important;
	color: #172B2A !important;

	font-family: inherit;
	font-size: 15px;

	outline: none;

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.vb-text-input:hover {
	border-color: #BBC8CC;
}

.vb-text-input:focus {
	border-color: #1677E8;

	box-shadow:
		0 0 0 3px rgba(22, 119, 232, 0.12);
}


/* ==========================================================================
   Relationship
   ========================================================================== */

.vb-relationship-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.vb-relationship-option {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	font-size: 15px;
	line-height: 1.4;

	color: #273936;

	cursor: pointer;
}

.vb-relationship-option input[type="radio"] {
	margin: 0;

	accent-color: #1677E8;
}


/* ==========================================================================
   Notes
   ========================================================================== */

.vb-field-hint {
	margin: -1px 0 10px;

	font-size: 14px;
	line-height: 1.5;

	color: #77837F;
}

.vb-optional {
	margin-left: 4px;

	font-weight: 450;
	color: #8A9592;
}

.vb-textarea {
	display: block;

	width: 100%;
	min-height: 125px;

	padding: 14px 15px;

	border: 1px solid #D4DDE2;
	border-radius: 11px;

	background: #FFFFFF !important;
	color: #172B2A !important;

	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;

	resize: vertical;
	outline: none;

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.vb-textarea::placeholder {
	color: #A0AAA7;
}

.vb-textarea:hover {
	border-color: #BBC8CC;
}

.vb-textarea:focus {
	border-color: #1677E8;

	box-shadow:
		0 0 0 3px rgba(22, 119, 232, 0.12);
}


/* ==========================================================================
   Alerts
   ========================================================================== */

.vb-form-alert {
	padding: 14px 16px;

	border-radius: 10px;

	font-size: 14px;
	line-height: 1.5;
}

.vb-form-alert-error {
	border: 1px solid #F2C6C6;
	background: #FFF6F6;
	color: #A43B3B;
}

.vb-form-alert-info {
	border: 1px solid #D7E5F5;
	background: #F4F8FD;
	color: #3E6385;
}


/* ==========================================================================
   Actions
   ========================================================================== */

.vb-form-actions {
	display: flex;
	align-items: center;
	gap: 16px;

	margin-top: 4px;
}

.vb-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;

	min-height: 48px;

	padding: 0 21px !important;

	border: 1px solid transparent !important;
	border-radius: 10px !important;

	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 750 !important;

	cursor: pointer;

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.vb-btn-primary {
	background: #1677E8 !important;
	border-color: #1677E8 !important;

	color: #FFFFFF !important;
}

.vb-btn-primary:hover {
	background: #0868D5 !important;
	border-color: #0868D5 !important;

	box-shadow:
		0 5px 14px rgba(22, 119, 232, 0.18);

	transform: translateY(-1px);
}

.vb-btn-primary:active {
	transform: translateY(0);
}

.vb-btn-primary:disabled {
	background: #AFCBE9 !important;
	border-color: #AFCBE9 !important;

	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.vb-btn-icon {
	width: 19px !important;
	height: 19px !important;
	min-width: 19px !important;
	max-width: 19px !important;
	min-height: 19px !important;
	max-height: 19px !important;
}

.vb-form-status {
	flex: 1;

	min-height: 24px;

	font-size: 14px;
	line-height: 1.5;

	color: #52615F;
}


/* ==========================================================================
   Google Places autocomplete
   ========================================================================== */

.vb-add-listing gmp-place-autocomplete {
	width: 100%;
}

.vb-add-listing gmp-place-autocomplete::part(input) {
	width: 100%;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {

	.vb-parent-category-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

}


@media (max-width: 800px) {

	.vb-add-listing-card {
		padding: 26px 22px;
	}

	.vb-parent-category-grid {
		grid-template-columns: 1fr;
	}

	.vb-subcategory-grid {
		grid-template-columns: 1fr;
	}

}


@media (max-width: 600px) {

	.vb-add-listing {
		padding-top: 5px;
	}

	.vb-add-listing-intro {
		gap: 13px;
		padding: 0 3px;
	}

	.vb-add-listing-intro-icon {
		width: 44px !important;
		height: 44px !important;
		flex-basis: 44px;
	}

	.vb-add-listing-intro-icon svg {
		width: 23px !important;
		height: 23px !important;
	}

	.vb-add-listing-intro h1 {
		font-size: 29px;
		letter-spacing: -0.4px;
	}

	.vb-add-listing-intro p {
		font-size: 15px;
	}

	.vb-add-listing-card {
		padding: 23px 17px;
		border-radius: 15px;
	}

	.vb-form-step-heading {
		gap: 10px;
	}

	.vb-form-step-number {
		width: 31px;
		height: 31px;
		flex-basis: 31px;
	}

	.vb-form-step-heading h2 {
		font-size: 22px;
	}

	.vb-section-heading-row {
		flex-direction: column;
		gap: 11px;
	}

	.vb-selection-badge {
		align-self: flex-start;
	}

	.vb-subcategory-heading {
		flex-direction: column;
	}

	.vb-category-option {
		min-height: 59px;
		padding: 10px 12px;
	}

	.vb-category-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.vb-form-fields-grid {
		grid-template-columns: 1fr;
	}

	.vb-form-field-full {
		grid-column: auto;
	}

	.vb-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.vb-btn {
		width: 100%;
	}

	.vb-form-status {
		text-align: center;
	}

}