/* Universal Basement Waterproofing — shared conversion/service design system */
:root {
	--ubw-navy: #072434;
	--ubw-navy-deep: #051822;
	--ubw-ink: #0f131f;
	--ubw-muted: #35415b;
	--ubw-faded: #727f9f;
	--ubw-line: #e3e7f0;
	--ubw-paper: #f5f3ec;
	--ubw-tint: #f2f4f7;
	--ubw-white: #ffffff;
	--ubw-danger: #b42318;
	--ubw-radius: 14px;
	--ubw-shadow: 0 18px 40px rgba(7, 36, 52, 0.12);
	--ubw-shadow-soft: 0 8px 24px rgba(7, 36, 52, 0.08);
}

.ubw-refurbishment,
.ubw-refurbishment * {
	box-sizing: border-box;
}

.ubw-refurbishment {
	color: var(--ubw-ink);
	max-width: 100%;
}

.ubw-refurbishment img,
.ubw-refurbishment svg {
	max-width: 100%;
	height: auto;
}

.ubw-kicker {
	display: block;
	margin: 0 0 14px;
	max-width: 100%;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ubw-refurbishment h1,
.ubw-refurbishment h2,
.ubw-refurbishment h3 {
	color: inherit;
	letter-spacing: -0.02em;
}

.ubw-lead {
	margin: 0 0 22px;
	max-width: 42rem;
	font-size: 18px;
	line-height: 1.6;
}

.ubw-copy,
.ubw-copy p {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ubw-muted);
}

.ubw-copy p + p {
	margin-top: 14px;
}

.ubw-copy a {
	color: var(--ubw-navy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ubw-copy a:hover,
.ubw-copy a:focus-visible {
	color: var(--ubw-ink);
}

.ubw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.ubw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--ubw-navy);
	color: var(--ubw-white) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ubw-button:hover,
.ubw-button:focus-visible {
	background: var(--ubw-navy-deep);
	color: var(--ubw-white) !important;
	transform: translateY(-1px);
}

.ubw-button:focus-visible {
	outline: 2px solid var(--ubw-white);
	outline-offset: 3px;
}

.ubw-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
	color: var(--ubw-white) !important;
}

.ubw-button--ghost:hover,
.ubw-button--ghost:focus-visible {
	background: var(--ubw-white);
	border-color: var(--ubw-white);
	color: var(--ubw-navy) !important;
}

.ubw-button--light {
	background: var(--ubw-white);
	border-color: var(--ubw-white);
	color: var(--ubw-navy) !important;
}

.ubw-button--light:hover,
.ubw-button--light:focus-visible {
	background: var(--ubw-paper);
	color: var(--ubw-navy) !important;
}

.ubw-button--secondary {
	background: transparent;
	border-color: var(--ubw-navy);
	color: var(--ubw-navy) !important;
}

.ubw-button--secondary:hover,
.ubw-button--secondary:focus-visible {
	background: var(--ubw-navy);
	color: var(--ubw-white) !important;
	outline-color: var(--ubw-navy);
}

.ubw-button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.ubw-room-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.ubw-room-types li,
.ubw-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--ubw-white);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.ubw-package {
	background: var(--ubw-white);
	border: 1px solid var(--ubw-line);
	border-radius: var(--ubw-radius);
	box-shadow: var(--ubw-shadow-soft);
	padding: 28px 28px 24px;
}

.ubw-package h2,
.ubw-package h3 {
	margin: 0 0 12px;
	color: var(--ubw-navy);
}

.ubw-package__price {
	margin: 0 0 18px;
	color: var(--ubw-muted);
	font-size: 17px;
	line-height: 1.55;
}

.ubw-package__price strong {
	color: var(--ubw-navy);
	font-size: 1.15em;
}

.ubw-package ul,
.ubw-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ubw-package li,
.ubw-checklist li {
	position: relative;
	padding: 2px 0 2px 28px;
	color: var(--ubw-muted);
	font-size: 15px;
	line-height: 1.45;
}

.ubw-package li::before,
.ubw-checklist li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ubw-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.3 6.2 11l6.3-6.4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ubw-benefit-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ubw-benefit-grid article {
	height: 100%;
	padding: 22px 20px 20px;
	border: 1px solid var(--ubw-line);
	border-radius: var(--ubw-radius);
	background: var(--ubw-white);
	box-shadow: var(--ubw-shadow-soft);
}

.ubw-benefit-grid h3 {
	margin: 0 0 8px;
	color: var(--ubw-navy);
	font-size: 18px;
	line-height: 1.3;
}

.ubw-benefit-grid p {
	margin: 0;
	color: var(--ubw-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ubw-survey-quote.l-section,
.l-section.ubw-survey-quote {
	background: var(--ubw-navy) !important;
}

.ubw-quote {
	color: var(--ubw-white);
	text-align: center;
}

.ubw-quote h2 {
	margin: 0 0 12px;
	color: var(--ubw-white) !important;
}

.ubw-survey-quote .l-section-h {
	padding-top: 64px;
	padding-bottom: 56px;
}

.ubw-quote p {
	margin: 0 auto 22px;
	max-width: 38rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 17px;
	line-height: 1.55;
}

.ubw-quote .ubw-actions {
	justify-content: center;
}

.ubw-section-heading {
	margin: 0 0 18px;
	color: var(--ubw-navy);
}

/* Survey conversion layout */
.page-id-921 .l-titlebar,
.ubw-survey-page .l-titlebar {
	display: none;
}

.ubw-survey-page .l-main {
	overflow-x: hidden;
}

.ubw-survey-page .l-section-h {
	max-width: var(--site-content-width, 1360px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.ubw-survey-page .g-cols.via_flex > .wpb_column,
.ubw-survey-page .vc_column-inner,
.ubw-survey-page .wpb_wrapper,
.ubw-survey-page .w-html,
.ubw-survey-page .ubw-refurbishment {
	min-width: 0;
	max-width: 100%;
}

.ubw-survey-page .l-header {
	z-index: 200;
}

.ubw-survey-hero.l-section {
	z-index: 0;
}

.ubw-survey-convert .l-section-h,
.ubw-survey-extras .l-section-h,
.ubw-survey-quote .l-section-h {
	padding-top: 40px;
	padding-bottom: 40px;
}

.ubw-survey-hero .l-section-h {
	padding-top: 32px;
	padding-bottom: 36px;
}

.ubw-survey-hero {
	color: var(--ubw-white);
}

.ubw-survey-hero h1 {
	margin: 0 0 16px;
	color: var(--ubw-white);
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.12;
}

.ubw-survey-hero .w-html,
.ubw-survey-hero .ubw-refurbishment {
	max-width: 100%;
}

.ubw-survey-hero .ubw-lead {
	color: rgba(255, 255, 255, 0.92);
	overflow-wrap: break-word;
}

.ubw-survey-form-card {
	position: relative;
	z-index: 1;
	scroll-margin-top: 110px;
	padding: 28px 26px 22px;
	border: 1px solid var(--ubw-line);
	border-radius: 18px;
	background: var(--ubw-white);
	box-shadow: var(--ubw-shadow);
}

.ubw-survey-form-card h2 {
	margin: 0 0 8px;
	color: var(--ubw-navy);
	font-size: 24px;
}

.ubw-survey-form-card > p {
	margin: 0 0 18px;
	color: var(--ubw-muted);
	font-size: 15px;
	line-height: 1.5;
}

.ubw-survey-mobile-ctas {
	display: none;
}

.ubw-survey-info .ubw-package {
	margin-top: 22px;
	padding: 22px;
	background: rgba(255, 255, 255, 0.92);
}

.ubw-survey-info .ubw-checklist {
	grid-template-columns: 1fr;
}

.ubw-survey-contact {
	margin: 18px 0 0;
	padding: 16px 18px;
	border-left: 3px solid var(--ubw-navy);
	background: rgba(255, 255, 255, 0.9);
	color: var(--ubw-ink);
	font-size: 16px;
	line-height: 1.55;
}

/* Gravity Forms inside the elevated card */
.ubw-survey-form-card .gform_wrapper,
.ubw-survey-form-card .gform_wrapper.gform-theme,
.ubw-survey-form-card .gform-theme--framework {
	margin: 0;
	width: 100%;
	max-width: 100%;
}

.ubw-survey-form-card .gform_heading,
.ubw-survey-form-card .gform_required_legend {
	display: none;
}

.ubw-survey-form-card .gform-body,
.ubw-survey-form-card .gform_body {
	width: 100%;
}

.ubw-survey-form-card .gform_fields {
	width: 100%;
	max-width: 100%;
}

.ubw-survey-form-card .gfield,
.ubw-survey-form-card .gform_wrapper .gfield {
	margin-bottom: 14px;
	max-width: 100%;
}

.ubw-survey-form-card .gfield_label,
.ubw-survey-form-card .gform_wrapper .gfield_label {
	display: block;
	margin: 0 0 6px;
	color: var(--ubw-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ubw-survey-form-card input[type="text"],
.ubw-survey-form-card input[type="email"],
.ubw-survey-form-card input[type="tel"],
.ubw-survey-form-card input[type="phone"],
.ubw-survey-form-card input[type="number"],
.ubw-survey-form-card input[type="url"],
.ubw-survey-form-card select,
.ubw-survey-form-card textarea,
.ubw-survey-form-card .ginput_container_text input,
.ubw-survey-form-card .ginput_container_email input,
.ubw-survey-form-card .ginput_container_phone input,
.ubw-survey-form-card .ginput_container_select select,
.ubw-survey-form-card .ginput_container_textarea textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #cfd6e0;
	border-radius: 10px;
	background: var(--ubw-white);
	color: var(--ubw-ink);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	appearance: none;
}

.ubw-survey-form-card textarea,
.ubw-survey-form-card .ginput_container textarea {
	min-height: 110px;
	resize: vertical;
}

.ubw-survey-form-card select,
.ubw-survey-form-card .ginput_container select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 5.8 8 10.6l4.8-4.8' stroke='%23072434' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}

.ubw-survey-form-card input[type="text"]:focus,
.ubw-survey-form-card input[type="email"]:focus,
.ubw-survey-form-card input[type="tel"]:focus,
.ubw-survey-form-card select:focus,
.ubw-survey-form-card textarea:focus {
	border-color: var(--ubw-navy);
	box-shadow: 0 0 0 3px rgba(7, 36, 52, 0.16);
	outline: none;
}

.ubw-survey-form-card .gfield_validation_message,
.ubw-survey-form-card .validation_message,
.ubw-survey-form-card .gform_submission_error {
	color: var(--ubw-danger);
	font-size: 13px;
}

.ubw-survey-form-card .gfield_error input,
.ubw-survey-form-card .gfield_error select,
.ubw-survey-form-card .gfield_error textarea,
.ubw-survey-form-card .gfield--error input,
.ubw-survey-form-card .gfield--error select,
.ubw-survey-form-card .gfield--error textarea {
	border-color: var(--ubw-danger);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.ubw-survey-form-card .gfield--type-consent .ginput_container_consent,
.ubw-survey-form-card .ginput_container_consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
}

.ubw-survey-form-card .ginput_container_consent input[type="checkbox"] {
	width: 18px;
	min-width: 18px;
	min-height: 18px;
	margin-top: 3px;
	padding: 0;
	border-radius: 4px;
}

.ubw-survey-form-card .gfield--type-consent label,
.ubw-survey-form-card .ginput_container_consent label {
	color: var(--ubw-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.ubw-survey-form-card .gform_footer,
.ubw-survey-form-card .gform_wrapper .gform_footer,
.ubw-survey-form-card .gform-footer {
	margin: 8px 0 0;
	padding: 0 0 6px;
	width: 100%;
}

.ubw-survey-form-card .gform_button,
.ubw-survey-form-card input[type="submit"],
.ubw-survey-form-card button[type="submit"] {
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ubw-navy) !important;
	color: var(--ubw-white) !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ubw-survey-form-card .gform_button:hover,
.ubw-survey-form-card input[type="submit"]:hover,
.ubw-survey-form-card button[type="submit"]:hover,
.ubw-survey-form-card .gform_button:focus-visible,
.ubw-survey-form-card input[type="submit"]:focus-visible,
.ubw-survey-form-card button[type="submit"]:focus-visible {
	background: var(--ubw-navy-deep) !important;
	transform: translateY(-1px);
}

.ubw-survey-sticky-bar {
	display: none;
}

body.ubw-survey-page.admin-bar .ubw-survey-form-card {
	scroll-margin-top: 142px;
}

@media (max-width: 1024px) {
	.ubw-benefit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ubw-package ul,
	.ubw-checklist {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 899px) {
	.ubw-survey-hero .l-section-h,
	.ubw-survey-convert .l-section-h,
	.ubw-survey-extras .l-section-h {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.ubw-survey-hero .ubw-lead,
	.ubw-lead {
		max-width: 100%;
	}

	.ubw-survey-hero .ubw-actions,
	.ubw-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ubw-survey-hero .ubw-button,
	.ubw-survey-mobile-ctas .ubw-button {
		width: 100%;
	}

	.ubw-room-types {
		max-width: 100%;
	}

	.ubw-survey-mobile-ctas {
		display: flex;
		flex-direction: column;
		margin-top: 18px;
	}

	.ubw-survey-form-card {
		margin-top: 8px;
	}

	.ubw-quote .ubw-actions {
		flex-direction: column;
	}

	.ubw-quote .ubw-button {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.ubw-benefit-grid {
		grid-template-columns: 1fr;
	}

	.ubw-survey-page {
		padding-bottom: 76px;
	}

	.ubw-survey-page .w-toplink {
		display: none;
	}

	.ubw-survey-sticky-bar {
		display: flex;
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(7, 36, 52, 0.12);
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -8px 24px rgba(7, 36, 52, 0.12);
	}

	.ubw-survey-sticky-bar.is-hidden {
		display: none;
	}

	.ubw-survey-sticky-bar .ubw-button {
		flex: 1 1 0;
		min-width: 0;
		min-height: 46px;
		padding: 10px 8px;
		font-size: 13px;
	}

	.ubw-survey-form-card .gform_footer,
	.ubw-survey-form-card .gform-footer {
		padding-bottom: 12px;
	}
}

@media (max-width: 480px) {
	.ubw-survey-hero h1 {
		font-size: 30px;
	}

	.ubw-lead,
	.ubw-survey-hero .ubw-lead {
		font-size: 16px;
	}

	.ubw-survey-form-card {
		padding: 22px 16px 16px;
	}

	.ubw-package,
	.ubw-survey-info .ubw-package {
		padding: 18px 16px;
	}
}
