/*
 * SEO Audit page template styles.
 * Forked from contact-figma.css so the two templates can diverge without
 * overwriting each other; every rule is scoped to body.gs-seo-audit.
 * Shares the image assets in ../contact-figma/.
 */

:root {
	--gs-bg: #131419;
	--gs-fg: #1a1c22;
	--gs-card: #20222b;
	--gs-surface-0: #121212;
	--gs-orange: #b2582e;
	--gs-orange-hi: #dba96e;
	--gs-text-hi: #f8f8f8;
	--gs-text-med: #d0d0d0;
	--gs-text-low: #b5b5b5;
	--gs-placeholder: #767676;
	--gs-outline: #333333;
	--gs-outline-hi: #595959;
	--gs-star: #fc9e0b;
	--gs-info: #3c93f7;
	--gs-font-heading: 'Russo One', sans-serif;
	--gs-font-body: 'DM Sans', sans-serif;
	--gs-font-ui: 'Inter', sans-serif;
}

body.gs-seo-audit {
	margin: 0;
	background: var(--gs-bg);
	color: var(--gs-text-hi);
	font-family: var(--gs-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.gs-seo-audit .gs-page {
	overflow-x: clip;
}

.gs-seo-audit .gs-page *,
.gs-seo-audit .gs-page *::before,
.gs-seo-audit .gs-page *::after {
	box-sizing: border-box;
}

.gs-seo-audit .gs-page img {
	max-width: 100%;
	height: auto;
	display: block;
}

.gs-seo-audit .gs-page a {
	color: inherit;
	text-decoration: none;
}

.gs-seo-audit .gs-page h1,
.gs-seo-audit .gs-page h2,
.gs-seo-audit .gs-page h3 {
	margin: 0;
	font-weight: 400;
}

.gs-seo-audit .gs-page p {
	margin: 0;
}

.gs-seo-audit .gs-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Shared pieces ---------- */

.gs-seo-audit .gs-h1 {
	font-family: var(--gs-font-heading);
	font-size: clamp(36px, 4.45vw, 64px);
	line-height: 1.15;
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-h2 {
	font-family: var(--gs-font-heading);
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.15;
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-audit .gs-h2 {
	font-size: clamp(30px, 2.8vw, 40px);
	line-height: 1.15;
}

.gs-seo-audit .gs-offices .gs-h2 {
	font-size: clamp(30px, 2.8vw, 40px);
	line-height: 1;
}

.gs-seo-audit .gs-cta .gs-h2 {
	font-size: clamp(30px, 2.8vw, 40px);
	line-height: 1.3;
}

.gs-seo-audit .gs-accent {
	color: var(--gs-orange);
}

.gs-seo-audit .gs-lead {
	font-size: 18px;
	line-height: 28px;
	color: var(--gs-text-low);
}

.gs-seo-audit .gs-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid var(--gs-outline);
	border-radius: 40px;
	background: var(--gs-bg);
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: var(--gs-text-med);
	white-space: nowrap;
}

.gs-seo-audit .gs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	border: 0;
	border-radius: 32px;
	font-family: var(--gs-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.gs-seo-audit .gs-btn--primary {
	background: var(--gs-orange);
	color: #fff;
}

.gs-seo-audit .gs-btn--primary:hover {
	background: #c96a3b;
}

.gs-seo-audit .gs-btn--small {
	height: 40px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
}

.gs-seo-audit .gs-btn--block {
	width: 100%;
}

.gs-seo-audit .gs-btn img,
.gs-seo-audit .gs-btn svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* Decorative blurred glows */
.gs-seo-audit .gs-glow {
	position: absolute;
	pointer-events: none;
	filter: blur(150px);
	z-index: 0;
}

.gs-seo-audit .gs-glow--hero-left {
	left: -420px;
	top: 480px;
	width: 132px;
	height: 808px;
	transform: rotate(-42deg);
	background: linear-gradient(174deg, rgba(248, 248, 248, 0.8) 12%, rgba(178, 88, 46, 0.8) 104%);
}

.gs-seo-audit .gs-glow--hero-right {
	right: -260px;
	top: -120px;
	width: 259px;
	height: 1120px;
	transform: rotate(33deg);
	background: linear-gradient(176deg, rgba(178, 88, 46, 0.2) 12%, rgba(248, 248, 248, 0.2) 104%);
}

.gs-seo-audit .gs-glow--audit-left {
	left: -225px;
	top: -277px;
	width: 449px;
	height: 449px;
	border-radius: 50%;
	background: rgba(178, 88, 46, 0.35);
}

.gs-seo-audit .gs-glow--audit-right {
	right: -240px;
	top: 0;
	width: 165px;
	height: 639px;
	transform: rotate(33deg);
	background: linear-gradient(176deg, rgba(178, 88, 46, 0.3) 12%, rgba(248, 248, 248, 0.3) 104%);
}

.gs-seo-audit .gs-glow--cta {
	right: -120px;
	top: -160px;
	width: 449px;
	height: 449px;
	border-radius: 50%;
	background: rgba(178, 88, 46, 0.4);
}

/* Form notices */
.gs-seo-audit .gs-form-notice {
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 20px;
}

.gs-seo-audit .gs-form-notice--success {
	background: rgba(76, 175, 80, 0.12);
	border: 1px solid rgba(76, 175, 80, 0.5);
	color: #9ae6a2;
}

.gs-seo-audit .gs-form-notice--error {
	background: rgba(211, 47, 47, 0.12);
	border: 1px solid rgba(211, 47, 47, 0.5);
	color: #f2a0a0;
}

/* Honeypot */
.gs-seo-audit .gs-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* ---------- Header ---------- */

.gs-seo-audit .gs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 24px 0;
	background: rgba(19, 20, 25, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.gs-seo-audit .gs-header__inner {
	max-width: 1328px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.gs-seo-audit .gs-header__logo img {
	width: 80px;
	height: 80px;
}

.gs-seo-audit .gs-header__nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gs-seo-audit .gs-nav-pill {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px;
	border: 1px solid var(--gs-outline);
	border-radius: 32px;
	backdrop-filter: blur(21.5px);
	-webkit-backdrop-filter: blur(21.5px);
}

.gs-seo-audit .gs-nav-pill a {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 8px 12px;
	border-radius: 32px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: var(--gs-text-med);
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gs-seo-audit .gs-nav-pill a:hover,
.gs-seo-audit .gs-nav-pill a[aria-current="page"] {
	color: var(--gs-text-hi);
	background: var(--gs-card);
}

/* ---------- Hero ---------- */

.gs-seo-audit .gs-hero {
	position: relative;
	overflow: clip;
	padding-bottom: 64px;
}

.gs-seo-audit .gs-hero__content {
	position: relative;
	z-index: 1;
	max-width: 1328px;
	margin: 80px auto 0;
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	gap: clamp(40px, 6vw, 96px);
}

.gs-seo-audit .gs-hero__intro {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 64px;
	padding: 16px 0;
}

.gs-seo-audit .gs-hero__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gs-seo-audit .gs-trusted {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gs-seo-audit .gs-trusted__label {
	font-size: 14px;
	line-height: 22px;
	color: var(--gs-text-low);
}

.gs-seo-audit .gs-trusted__logos {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

/* The exported SVGs use width="100%", so each logo needs explicit sizes
   (design: Clutch 61x18, Google 70x24, Expertise 184x23). */
.gs-seo-audit .gs-trusted__logos img {
	flex-shrink: 0;
}

.gs-seo-audit .gs-trusted__logos img:nth-child(1) {
	width: 61px;
	height: 18px;
}

.gs-seo-audit .gs-trusted__logos img:nth-child(2) {
	width: 70px;
	height: 24px;
}

.gs-seo-audit .gs-trusted__logos img:nth-child(3) {
	width: 184px;
	height: 23px;
}

/* Contact form card */
.gs-seo-audit .gs-form-card {
	width: 636px;
	max-width: 100%;
	flex-shrink: 0;
	padding: 32px;
	background: var(--gs-bg);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 32px;
	scroll-margin-top: 140px;
}

.gs-seo-audit .gs-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gs-seo-audit .gs-form__row {
	display: flex;
	gap: 24px;
}

.gs-seo-audit .gs-form__row .gs-field {
	flex: 1;
	min-width: 0;
}

.gs-seo-audit .gs-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gs-seo-audit .gs-field label {
	padding-left: 2px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: var(--gs-text-low);
}

.gs-seo-audit .gs-field input,
.gs-seo-audit .gs-field select,
.gs-seo-audit .gs-field textarea {
	width: 100%;
	padding: 10px 12px;
	background: var(--gs-card);
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: var(--gs-font-body);
	font-size: 13px;
	line-height: 20px;
	color: var(--gs-text-hi);
	outline: none;
	transition: border-color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.gs-seo-audit .gs-field input:focus,
.gs-seo-audit .gs-field select:focus,
.gs-seo-audit .gs-field textarea:focus {
	border-color: var(--gs-orange);
}

.gs-seo-audit .gs-field input::placeholder,
.gs-seo-audit .gs-field textarea::placeholder {
	color: var(--gs-placeholder);
}

.gs-seo-audit .gs-field select:invalid {
	color: var(--gs-placeholder);
}

.gs-seo-audit .gs-field textarea {
	resize: vertical;
	min-height: 96px;
}

.gs-seo-audit .gs-select-wrap {
	position: relative;
	display: block;
}

.gs-seo-audit .gs-select-wrap img,
.gs-seo-audit .gs-select-wrap svg {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.gs-seo-audit .gs-form__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.gs-seo-audit .gs-form__divider span {
	font-size: 16px;
	line-height: 24px;
	color: var(--gs-text-low);
	text-transform: uppercase;
	white-space: nowrap;
}

.gs-seo-audit .gs-form__divider hr {
	flex: 1;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--gs-outline);
}

/* ---------- Testimonials ---------- */

.gs-seo-audit .gs-testimonials {
	position: relative;
	overflow: clip;
	padding: 128px 0;
	background: var(--gs-fg);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.gs-seo-audit .gs-section-head {
	position: relative;
	z-index: 1;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.gs-seo-audit .gs-section-head .gs-h2 {
	max-width: 560px;
}

.gs-seo-audit .gs-carousel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
}

.gs-seo-audit .gs-carousel__track {
	display: flex;
	align-items: center;
	transition: transform 0.5s ease;
	will-change: transform;
}

/* Slide wrappers keep a constant footprint so the track geometry never
   changes while the inner card animates between its two sizes. Negative
   margins create the overlapped, full-bleed layout from the design. */
.gs-seo-audit .gs-tslide {
	position: relative;
	z-index: 1;
	width: 664px;
	max-width: 94vw;
	height: 450px;
	margin: 0 -93px;
	flex-shrink: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	cursor: pointer;
}

.gs-seo-audit .gs-tslide.is-active {
	z-index: 2;
	cursor: default;
}

.gs-seo-audit .gs-tcard {
	/* Same width in both states (was 525px inactive / 664px active).
	   A constant width means the activation transition never reflows
	   the quote text; only height/padding/opacity still animate. */
	width: 100%;
	max-width: 88vw;
	height: 90%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 48px 48px 48px 48px;
	background: var(--gs-card);
	border: 1px solid transparent;
	border-radius: 32px;
	opacity: 0.5;
	transition: opacity 0.5s ease, border-color 0.5s ease, height 0.5s ease, padding 0.5s ease;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard {
	width: 100%;
	height: 100%;
	padding: 48px 48px 48px 48px;
	justify-content: center;
	opacity: 1;
	border-color: rgba(255, 255, 255, 0.5);
	height: 100%;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote {
	flex: 0 1 auto;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote p {
	color: var(--gs-text-med);
}

.gs-seo-audit .gs-stars {
	display: flex;
	gap: 4px;
}

.gs-seo-audit .gs-stars img,
.gs-seo-audit .gs-stars svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.gs-seo-audit .gs-tcard__quote {
	flex: 1;
	min-height: 0;
	/* Inactive cards clip; only the active card scrolls (see below). */
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex-grow: 1 !important;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote {
	overflow-y: auto;
	/* Subtle scrollbar when a long testimonial exceeds the card. */
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote::-webkit-scrollbar {
	width: 6px;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote::-webkit-scrollbar-track {
	background: transparent;
}

.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.gs-seo-audit .gs-tcard__quote p {
	font-size: 0.875rem;
	line-height: 1.5em;
	color: var(--gs-text-low);
}

/* Quote wrapper: carries the desktop flex sizing the quote used to get
   directly from the card; hosts the mobile clamp fade. */
.gs-seo-audit .gs-tcard__quote-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* Fade + Read more only exist in the mobile clamp experience. */
.gs-seo-audit .gs-tcard__fade,
.gs-seo-audit .gs-tcard__more {
	display: none;
}

.gs-seo-audit .gs-tcard__user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gs-seo-audit .gs-tcard__user > img {
	width: 61px;
	height: 61px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.gs-seo-audit .gs-tcard__user div {
	display: flex;
	flex-direction: column;
}

.gs-seo-audit .gs-tcard__user strong {
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-tcard__user span {
	font-size: 12px;
	line-height: 18px;
	color: var(--gs-text-low);
}

.gs-seo-audit .gs-carousel__nav {
	display: flex;
	gap: 16px;
}

.gs-seo-audit .gs-carousel__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

.gs-seo-audit .gs-carousel__arrow:hover {
	background: rgba(255, 255, 255, 0.16);
}

.gs-seo-audit .gs-carousel__arrow:focus-visible {
	outline: 2px solid var(--gs-orange);
	outline-offset: 2px;
}

.gs-seo-audit .gs-carousel__arrow img,
.gs-seo-audit .gs-carousel__arrow svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.gs-seo-audit .gs-carousel__arrow--prev img,
.gs-seo-audit .gs-carousel__arrow--prev svg {
	transform: rotate(180deg);
}

/* ---------- SEO audit / SERP mockup ---------- */

.gs-seo-audit .gs-audit {
	position: relative;
	overflow: clip;
	/* Full-bleed section: the decorative glows anchor to the screen edges
	   while the horizontal padding keeps the content on the 1280px grid. */
	padding: 128px max(24px, calc((100% - 1280px) / 2));
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(40px, 5.5vw, 80px);
}

.gs-seo-audit .gs-audit__content {
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
	max-width: 607px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.gs-seo-audit .gs-audit__content .gs-lead {
	margin: 4px 0 0;
}

.gs-seo-audit .gs-audit__content .gs-lead.gs-lead-2 {
	margin: 0 0 20px;
}

.gs-seo-audit .gs-url-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 6px 6px 16px;
	background: var(--gs-card);
	border-radius: 32px;
}

.gs-seo-audit .gs-url-form__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transform: rotate(45deg);
}

.gs-seo-audit .gs-url-form input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--gs-font-body);
	font-size: 16px;
	line-height: 24px;
	color: var(--gs-text-hi);
	outline: none;
}

.gs-seo-audit .gs-url-form input::placeholder {
	color: #9e9e9e;
}

/* Bordered/self-contained URL field used by the CTA and footer forms */
.gs-seo-audit .gs-url-field {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--gs-card);
	border-radius: 32px;
}

.gs-seo-audit .gs-url-field input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--gs-font-body);
	font-size: 16px;
	line-height: 24px;
	color: var(--gs-text-hi);
	outline: none;
}

.gs-seo-audit .gs-url-field input::placeholder {
	color: #9e9e9e;
}

.gs-seo-audit .gs-url-form__go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 100px;
	background: var(--gs-orange);
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

.gs-seo-audit .gs-url-form__go:hover {
	background: #c96a3b;
}

.gs-seo-audit .gs-url-form__go img,
.gs-seo-audit .gs-url-form__go svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transform: rotate(-45deg);
}

/* Website Growth chart card (exported from Figma as a single image) */
.gs-seo-audit .gs-growth-card {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	width: min(621px, 100%);
}

.gs-seo-audit .gs-growth-card img {
	width: 100%;
	height: auto;
}

/* ---------- Offices / map ---------- */

.gs-seo-audit .gs-offices {
	position: relative;
	max-width: 1328px;
	margin: 0 auto;
	padding: 96px 24px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.gs-seo-audit .gs-offices__grid {
	display: flex;
	align-items: stretch;
	gap: 24px;
}

.gs-seo-audit .gs-offices__cards {
	width: 503px;
	max-width: 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gs-seo-audit .gs-ocard {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	background: var(--gs-card);
	border-radius: 15px;
}

.gs-seo-audit .gs-ocard__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gs-seo-audit .gs-ocard__head img,
.gs-seo-audit .gs-ocard__head svg {
	width: auto;
	height: 24px;
	flex-shrink: 0;
}


.gs-seo-audit div.gs-ocard.gs-ocard--phone > div.gs-ocard__head > svg{
	width: auto;
	height: 20px;
}

.gs-seo-audit .gs-ocard__head h3 {
	font-family: var(--gs-font-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: var(--gs-text-hi);
	text-transform: capitalize;
}

.gs-seo-audit .gs-ocard__block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gs-seo-audit .gs-ocard__block strong {
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-ocard__block span {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--gs-text-low);
}

.gs-seo-audit .gs-ocard__block a:hover {
	color: var(--gs-orange-hi);
}

.gs-seo-audit .gs-map {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: 480px;
	border-radius: 15px;
	overflow: hidden;
	background: var(--gs-bg);
}

.gs-seo-audit .gs-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- CTA banner ---------- */

.gs-seo-audit .gs-cta {
	max-width: 1328px;
	margin: 0 auto;
	padding: 128px 24px;
}

.gs-seo-audit .gs-cta__panel {
	position: relative;
	overflow: clip;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 80px 40px;
	background: var(--gs-surface-0);
	border: 1px solid var(--gs-orange-hi);
	border-radius: 48px;
}

.gs-seo-audit .gs-cta__panel > * {
	position: relative;
	z-index: 1;
}

.gs-seo-audit .gs-cta__deco {
	position: absolute !important;
	inset: 0;
	z-index: 0 !important;
	pointer-events: none;
}

.gs-seo-audit .gs-cta__deco img {
	position: absolute;
	right: -40px;
	top: -27px;
	width: 356px;
	height: 356px;
	transform: rotate(180deg);
}

.gs-seo-audit .gs-cta__panel .gs-h2 {
	max-width: 541px;
}

.gs-seo-audit .gs-cta__panel .gs-lead {
	max-width: 586px;
	margin: 12px 0 20px;
}

.gs-seo-audit .gs-url-form--cta {
	max-width: 586px;
	padding: 0;
	background: transparent;
	gap: 12px;
}

/* ---------- Footer ---------- */

.gs-seo-audit .gs-footer {
	padding: 21px 45px 40px;
	max-width: 1440px;
	margin: 0 auto;
}

.gs-seo-audit .gs-footer__inner {
	display: flex;
	gap: clamp(48px, 10vw, 192px);
	padding: 32px 40px;
	background: url('../contact-figma/footer-bg-v2.svg') 0 0 / 100% 100% no-repeat;
	min-height: 402px;
}

.gs-seo-audit .gs-footer__left {
	width: 379px;
	max-width: 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.gs-seo-audit .gs-footer__logo img {
	width: 142px;
	height: 76px;
}

.gs-seo-audit .gs-footer__pitch {
	margin-top: 12px;
	padding: 0 12px;
	font-family: var(--gs-font-heading);
	font-size: 20px;
	line-height: 28px;
	color: #fff;
}

.gs-seo-audit .gs-footer__form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 8px;
}

.gs-seo-audit .gs-footer__form .gs-url-field {
	background: transparent;
	border: 1px solid var(--gs-outline-hi);
	padding: 11px 16px;
}

.gs-seo-audit .gs-footer__form .gs-url-field input:focus {
	outline: none;
}

.gs-seo-audit .gs-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 28px;
}

.gs-seo-audit .gs-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--gs-outline-hi);
	border-radius: 40px;
	transition: border-color 0.2s ease;
}

.gs-seo-audit .gs-footer__social a:hover {
	border-color: var(--gs-orange-hi);
}

.gs-seo-audit .gs-footer__social img,
.gs-seo-audit .gs-footer__social svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.gs-seo-audit .gs-footer__copyright {
	width: 100%;
	margin-top: auto;
}

.gs-seo-audit .gs-footer__copyright hr,
.gs-seo-audit .gs-footer__legal hr {
	margin: 0 0 8px;
	border: 0;
	border-top: 1.5px solid var(--gs-outline);
}

.gs-seo-audit .gs-footer__copyright p {
	padding: 10px 0;
	font-size: 16px;
	line-height: 24px;
	color: #fff;
}

.gs-seo-audit .gs-footer__right {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 16px;
}

.gs-seo-audit .gs-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.gs-seo-audit .gs-footer__nav a {
	font-size: 18px;
	line-height: 28px;
	color: var(--gs-text-low);
	transition: color 0.2s ease;
}

.gs-seo-audit .gs-footer__nav a:hover {
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-footer__offices {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-top: 28px;
}

.gs-seo-audit .gs-footer__office h3 {
	font-family: var(--gs-font-heading);
	font-size: 20px;
	line-height: 28px;
	color: var(--gs-text-hi);
	margin-bottom: 16px;
}

.gs-seo-audit .gs-footer__office p {
	font-size: 16px;
	line-height: 22px;
	color: var(--gs-text-low);
	margin-bottom: 8px;
}

.gs-seo-audit .gs-footer__office a:hover {
	color: var(--gs-orange-hi);
}

.gs-seo-audit .gs-footer__legal {
	max-width: 422px;
	margin-top: 34px;
}

.gs-seo-audit .gs-footer__legal div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
}

.gs-seo-audit .gs-footer__legal a {
	position: relative;
	font-size: 15px;
	line-height: 18px;
	color: var(--gs-text-low);
	transition: color 0.2s ease;
}

.gs-seo-audit .gs-footer__legal a:hover {
	color: var(--gs-text-hi);
}

.gs-seo-audit .gs-footer__legal a + a::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 0;
	bottom: 0;
	border-left: 1px solid var(--gs-outline-hi);
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
	.gs-seo-audit .gs-hero__content {
		flex-direction: column;
	}

	.gs-seo-audit .gs-form-card {
		width: 100%;
	}

	.gs-seo-audit .gs-audit {
		flex-direction: row;
		align-items: flex-start;
	}
	
	.gs-seo-audit .gs-growth-card{
		width: min(450px, 100%);
	}

	.gs-seo-audit .gs-offices__grid {
		flex-direction: column;
	}

	.gs-seo-audit .gs-offices__cards {
		width: 100%;
	}

	.gs-seo-audit .gs-map {
		min-height: 400px;
	}

	.gs-seo-audit .gs-footer__inner {
		flex-direction: column;
		background: var(--gs-card);
		border-radius: 24px;
		min-height: 0;
	}
}

@media (max-width: 900px) {
	.gs-seo-audit .gs-nav-pill a:not([aria-current="page"]) {
		display: none;
	}

	/* Testimonials (mobile): edge-peek carousel with natural-height cards
	   and a line-clamped quote + Read more instead of fixed heights. */
	.gs-seo-audit .gs-carousel {
		gap: 24px;
	}

	.gs-seo-audit .gs-carousel__track {
		align-items: flex-start;
	}

	.gs-seo-audit .gs-tslide {
		width: 86vw;
		max-width: 420px;
		height: auto;
		min-height: 0;
		margin: 0 6px;
		align-items: stretch;
	}

	.gs-seo-audit .gs-tcard {
		width: 100%;
		max-width: none;
		height: auto;
		min-height: 0;
		padding: 28px 24px;
	}

	.gs-seo-audit .gs-tslide.is-active .gs-tcard {
		height: auto;
		padding: 28px 24px;
	}

	.gs-seo-audit .gs-tcard__quote-wrap {
		flex: none;
	}

	/* 8-line clamp in both states; overrides the desktop active-card
	   inner scroll, which has no place on mobile. */
	.gs-seo-audit .gs-tcard__quote,
	.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote {
		display: -webkit-box;
		-webkit-line-clamp: 8;
		-webkit-box-orient: vertical;
		overflow: hidden;
		flex: none;
	}

	.gs-seo-audit .gs-tslide .gs-tcard__quote.is-open,
	.gs-seo-audit .gs-tslide.is-active .gs-tcard__quote.is-open {
		display: block;
		-webkit-line-clamp: unset;
		overflow: visible;
	}

	/* -webkit-box ignores flex gap, so paragraph rhythm moves to margins. */
	.gs-seo-audit .gs-tcard__quote p {
		font-size: 13px;
		line-height: 1.4;
		margin: 0 0 12px;
	}

	.gs-seo-audit .gs-tcard__quote p:last-child {
		margin-bottom: 0;
	}

	.gs-seo-audit .gs-tcard__quote-wrap.is-clamped .gs-tcard__fade {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 44px;
		background: linear-gradient(to bottom, rgba(32, 34, 43, 0), var(--gs-card));
	}

	.gs-seo-audit .gs-tcard__more:not([hidden]) {
		display: inline-block;
		align-self: flex-start;
		background: none;
		border: 0;
		padding: 0;
		font-family: var(--gs-font-ui);
		font-size: 13px;
		font-weight: 600;
		color: var(--gs-orange-hi);
		cursor: pointer;
	}

	.gs-seo-audit .gs-carousel__arrow {
		width: 44px;
		height: 44px;
	}

	.gs-seo-audit .gs-testimonials,
	.gs-seo-audit .gs-audit,
	.gs-seo-audit .gs-cta {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.gs-seo-audit .gs-cta__panel {
		padding: 48px 24px;
	}

	.gs-seo-audit .gs-cta__deco img {
		opacity: 0.4;
	}
	
	.gs-seo-audit .gs-audit {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.gs-seo-audit .gs-header__logo img {
		width: 56px;
		height: 56px;
	}

	.gs-seo-audit .gs-header {
		padding: 12px 0;
	}
	
	.gs-seo-audit .gs-hero__text{
		gap: 16px;
	}
	
	.gs-seo-audit .gs-trusted__logos {
		flex-wrap: nowrap;
	}

	.gs-seo-audit .gs-hero__content {
		margin-top: 40px;
	}

	.gs-seo-audit .gs-form-card {
		padding: 20px;
	}

	.gs-seo-audit .gs-form__row {
		flex-direction: column;
		gap: 16px;
	}

	.gs-seo-audit .gs-url-form--cta {
		flex-direction: column;
		align-items: stretch;
	}
	
	.gs-seo-audit .gs-audit{
		padding: 8em 0;
		gap: 4em;
	}
	
	.gs-seo-audit .gs-audit__content {
		padding: 0 1em;
	}
	
	.gs-seo-audit .gs-audit__content .gs-lead{
		margin:4px 0 0;
	}
	
	.gs-seo-audit .gs-offices{
		gap: 1.5em;
	}

	.gs-seo-audit .gs-url-form--cta .gs-btn {
		width: 100%;
	}

	.gs-seo-audit .gs-map {
		min-height: 360px;
	}

	.gs-seo-audit .gs-footer {
		padding: 0 16px 24px;
	}

	.gs-seo-audit .gs-tcard__user > img{
		width:50px;
		height: 50px;
	}
	
	.gs-seo-audit .gs-footer__inner {
		padding: 24px 20px;
	}

	.gs-seo-audit .gs-footer__nav {
		gap: 16px 24px;
	}
	
	.gs-seo-audit .gs-cta{
		display:none;
	}
}

/* ---------- Mobile: phone lives inside the Address card ---------- */

.gs-seo-audit .gs-ocard__phone-mobile {
	display: none;
}

@media (max-width: 640px) {
	.gs-seo-audit .gs-ocard__phone-mobile {
		display: flex;
		flex-direction: column;
		gap: 20px;
		margin-top: 4px;
	}

	.gs-seo-audit .gs-ocard--phone {
		display: none;
	}
}

/* ---------- Hero form: Elementor template embed ---------- */

.gs-seo-audit .gs-hero__form-embed {
	width: 636px;
	max-width: 100%;
	flex-shrink: 0;
	scroll-margin-top: 140px;
}

@media (max-width: 1240px) {
	.gs-seo-audit .gs-hero__form-embed {
		width: 100%;
	}
}

/* ---------- Typography refinements: leads, quotes, CTA heading ---------- */

.gs-seo-audit .gs-lead,
.gs-seo-audit .gs-tcard__quote p {
	line-height: 1.4em;
}

.gs-seo-audit .gs-cta .gs-h2 {
	line-height: 1.15em;
}

.gs-seo-audit .gs-audit__content .gs-lead,
.gs-seo-audit .gs-cta__panel .gs-lead {
	font-size: 1rem;
}

@media (max-width: 640px) {
	.gs-seo-audit .gs-lead {
		font-size: 1rem;
	}

	.gs-seo-audit .gs-audit__content .gs-lead {
		font-size: 0.875rem;
	}

	.gs-seo-audit .gs-stars img,
	.gs-seo-audit .gs-stars svg {
		width: 20px;
		height: 20px;
	}

	.gs-seo-audit .gs-ocard__block strong {
		font-size: 1rem;
		line-height: 1;
	}

	.gs-seo-audit .gs-ocard__block span {
		font-size: 0.875rem;
		line-height: 1.4em;
	}

	.gs-seo-audit .gs-ocard__head img,
	.gs-seo-audit .gs-ocard__head svg {
		width: auto;
		height: 20px;
	}

	.gs-seo-audit div.gs-ocard__phone-mobile > div.gs-ocard__head > svg {
		width: 16px;
		height: auto;
	}
}

/* ==========================================================================
   Hero form: Gravity Forms "Free SEO Audit" (form 1)

   Restyles the Gravity Forms Orbital theme to match the Elementor form on
   template-contact-figma.php (Elementor library template 10915). Values are
   taken 1:1 from that widget's generated CSS:
   uploads/elementor/css/post-10915.css.

   Orbital exposes its design tokens as --gf-* custom properties, so most of
   this is a token override rather than a fight with GF's own selectors. GF
   prints its default token block inline inside the wrapper at
   `#gform_wrapper_1[data-form-index="0"].gform-theme` (1 id + 2 simple
   selectors), so every override below needs to beat that specificity —
   hence the `#gs-contact-form` + `.gform_wrapper.gform-theme` prefix.
   ========================================================================== */

/* ---------- Card (mirrors Elementor container .elementor-element-c92fb0a) ---------- */

.gs-seo-audit .gs-hero__form-embed {
	min-height: 425px;
	padding: 2em;
	background: var(--gs-bg);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 32px;
}

@media (max-width: 767px) {
	.gs-seo-audit .gs-hero__form-embed {
		padding: 2em 1em;
	}
}

/* ---------- Orbital design tokens ---------- */

.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme {
	/* Accents: GF uses --gf-color-primary for focus rings and controls. */
	--gf-color-primary: var(--gs-orange);
	--gf-color-primary-rgb: 178, 88, 46;
	--gf-color-primary-contrast: #ffffff;
	--gf-color-primary-darker: #934825;
	--gf-color-primary-lighter: #c46534;

	/* Field grid: Elementor column gap 24px / row gap 14px. --gf-form-gap-*
	   spaces the fields themselves; --gf-field-gap-* spaces sub-grids such as
	   the name field's first/last columns. */
	--gf-form-gap-x: 24px;
	--gf-form-gap-y: 14px;
	--gf-field-gap-x: 24px;
	--gf-field-gap-y: 14px;

	/* Labels: DM Sans 0.875rem/500, #B5B5B5, 8px below. */
	--gf-ctrl-label-color-primary: var(--gs-text-low);
	--gf-ctrl-label-color-secondary: var(--gs-text-low);
	--gf-ctrl-label-color-tertiary: var(--gs-text-low);
	--gf-ctrl-label-color-quaternary: var(--gs-text-low);
	--gf-ctrl-label-color-req: var(--gs-orange);
	/* GF hard-codes the asterisk at 12px and puts a 6px gap before it
	   (--gf-label-req-gap). Elementor instead renders it as a ::after on the
	   label, so it inherits the label's 0.875rem/500 and is offset by only
	   `padding-inline-start: .2em` — 2.8px at that size. Match both, so the
	   glyph sits on the same baseline at the same scale. */
	--gf-ctrl-label-font-size-req: 0.875rem;
	--gf-label-req-gap: 0.2em;
	--gf-ctrl-label-font-family-primary: var(--gs-font-body);
	--gf-ctrl-label-font-family-secondary: var(--gs-font-body);
	--gf-ctrl-label-font-size-primary: 0.875rem;
	--gf-ctrl-label-font-size-secondary: 0.875rem;
	--gf-ctrl-label-font-weight-primary: 500;
	--gf-ctrl-label-font-weight-secondary: 500;
	--gf-ctrl-label-line-height-primary: 1.5em;
	--gf-ctrl-label-line-height-secondary: 1.5em;
	--gf-label-space-primary: 8px;
	--gf-label-space-secondary: 8px;

	/* Controls: #20222B, no border, 8px radius, white DM Sans 0.75rem.
	   Height/padding come from Elementor's input size, which the widget leaves
	   unset — so it is "sm", the control's default. Elementor ships no
	   .elementor-field-textual.elementor-size-sm rule (the only size-sm rule is
	   a button min-height), so sm falls through to the base .elementor-field-textual:
	   min-height 40px, padding 5px 14px. */
	--gf-ctrl-bg-color: var(--gs-card);
	--gf-ctrl-bg-color-hover: var(--gs-card);
	--gf-ctrl-bg-color-focus: var(--gs-card);
	--gf-ctrl-bg-color-error: var(--gs-card);
	--gf-ctrl-border-color: transparent;
	--gf-ctrl-border-color-hover: transparent;
	--gf-ctrl-border-color-focus: transparent;
	--gf-ctrl-border-width: 0;
	--gf-ctrl-radius: 8px;
	--gf-ctrl-color: #ffffff;
	--gf-ctrl-color-hover: #ffffff;
	--gf-ctrl-color-focus: #ffffff;
	--gf-ctrl-font-family: var(--gs-font-body);
	--gf-ctrl-font-size: 0.75rem;
	--gf-ctrl-font-weight: 400;
	--gf-ctrl-size: 40px;
	--gf-ctrl-padding-x: 14px;
	/* Deliberately 0, not Elementor's 5px. The two frameworks size controls
	   differently: Elementor uses min-height + vertical padding, GF uses a
	   fixed block-size with `line-height: var(--gf-ctrl-size)` and no padding,
	   which is what centres the text. Adding padding here shrinks the content
	   box while the line box stays 40px, pushing the value off-centre — most
	   visible on the Industry select. The 40px height already reproduces
	   Elementor's min-height, so its padding has nothing left to do. */
	--gf-ctrl-padding-y: 0;
	--gf-ctrl-placeholder-color: #9e9e9e;
	--gf-ctrl-placeholder-font-family: var(--gs-font-body);
	--gf-ctrl-placeholder-font-size: 0.75rem;
	--gf-ctrl-placeholder-opacity: 1;

	/* No focus ring: GF draws one from --gf-ctrl-outline-* on :focus, and the
	   border colours above already keep the resting state borderless. */
	--gf-ctrl-outline-style: none;
	--gf-ctrl-outline-width: 0;
	--gf-ctrl-outline-width-focus: 0;
	--gf-ctrl-outline-color: transparent;
	--gf-ctrl-outline-color-focus: transparent;

	/* Descriptions / validation copy. */
	--gf-ctrl-desc-color: var(--gs-text-low);
	--gf-ctrl-desc-font-family: var(--gs-font-body);
	--gf-ctrl-desc-font-size: 0.75rem;

	/* Submit button: pill, #B2582E, DM Sans 1rem/500, 0.875em 1.5em. */
	--gf-ctrl-btn-bg-color-primary: var(--gs-orange);
	--gf-ctrl-btn-bg-color-hover-primary: #c46534;
	--gf-ctrl-btn-bg-color-focus-primary: var(--gs-orange);
	--gf-ctrl-btn-border-color-primary: var(--gs-orange);
	--gf-ctrl-btn-border-color-hover-primary: #c46534;
	--gf-ctrl-btn-border-color-focus-primary: var(--gs-orange);
	--gf-ctrl-btn-border-width-primary: 1px;
	--gf-ctrl-btn-color-primary: #ffffff;
	--gf-ctrl-btn-color-hover-primary: #ffffff;
	--gf-ctrl-btn-font-family: var(--gs-font-body);
	--gf-ctrl-btn-font-size: 1rem;
	--gf-ctrl-btn-font-weight: 500;
	--gf-ctrl-btn-line-height: 1;
	--gf-ctrl-btn-radius: 100px;
	--gf-ctrl-btn-size: auto;
	--gf-ctrl-btn-padding-x: 1.5em;
	--gf-ctrl-btn-padding-y: 0.875em;
}

@media (max-width: 767px) {
	/* Elementor bumps the field font to 1rem on mobile to stop iOS zooming. */
	.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme {
		--gf-ctrl-font-size: 1rem;
		--gf-ctrl-placeholder-font-size: 1rem;
	}
}

/* ---------- Pieces the tokens do not reach ---------- */

/* Orbital's own reset gives the wrapper a top margin the Elementor card has not. */
.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme {
	margin: 0;
}

/* '"*" indicates required fields' — the Elementor form has no equivalent. */
.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_required_legend {
	display: none;
}

/* Form title, styled as the Elementor form's step indicator strip
   (#contact_form > .e-form__indicators.e-form__indicators--type-text).

   Over there the strip is a nowrap flex row holding the active step's label
   followed by the separators between steps; the widget's custom CSS hides the
   inactive and completed steps and pulls the active one to the front with
   `order: -1`, so what actually renders is an uppercase label, a 10px gap
   (--e-form-steps-divider-gap) and a 1px rule filling the rest of the row,
   with 20px beneath (--e-form-steps-indicators-spacing). Only one line of
   text is ever shown, so the same result comes from an ::after rule here
   rather than a row of separator elements. */
.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	color: var(--gs-text-low);
	font-family: var(--gs-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	word-spacing: 0;
	text-transform: uppercase;
}

.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_title::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background-color: var(--gs-text-low);
}

.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_heading {
	margin: 0;
}

/* Select: GF paints its own chevron via --gf-icon-ctrl-select, which is a
   hard-coded dark SVG data URI. Swap it for a light one. */
.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme {
	--gf-icon-ctrl-select: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.097631 1.31658 -0.097631 1.70711 0.292893L5 3.58579L8.29289 0.292893C8.68342 -0.0976311 9.31658 -0.0976311 9.70711 0.292893C10.0976 0.683417 10.0976 1.31658 9.70711 1.70711L5.70711 5.70711C5.31658 6.09763 4.68342 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Placeholder option stays muted until a real choice is made, like Elementor's
   `select:has(option:first-child:checked)` rule. */
.gs-seo-audit #gs-contact-form .gform_wrapper select:has(option.gf_placeholder:checked) {
	color: #9e9e9e;
}

.gs-seo-audit #gs-contact-form .gform_wrapper select option {
	color: #9e9e9e;
	background-color: var(--gs-card);
}

/* Conditional logic leaves a hole in the 12-column grid: "What industry,
   specifically?" (1_5) only shows when Industry (1_4) is "Other", so the rest
   of the time its half of the row sits empty. GF flags the hidden field with
   data-conditional-logic="hidden", so let the half-width field before it span
   the full row instead. Written against the width class rather than the field
   ids so it keeps working for any future half/half pair. */
.gs-seo-audit #gs-contact-form #gform_fields_1 .gfield--width-half:has(
		+ .gfield--width-half[data-conditional-logic='hidden']
	) {
	grid-column: 1 / -1;
}

/* Submit: full-width pill with the Figma arrow, matching the Elementor
   button's ::after mask. */
.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_footer {
	margin: 1em 0 0;
	padding: 0;
}

.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_footer button.gform_button {
	/* GF's framework zeroes margin-block on every control, so this has to be
	   set here rather than left to the button's own defaults. */
	margin-top: 1em;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.gs-seo-audit #gs-contact-form .gform_wrapper.gform-theme .gform_footer button.gform_button::after {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background-color: #fff;
	-webkit-mask: url(/wp-content/uploads/2026/05/right-arrow-cropped.svg) no-repeat center / contain;
	mask: url(/wp-content/uploads/2026/05/right-arrow-cropped.svg) no-repeat center / contain;
}

/* Validation: GF's error banner is white-on-white against this card. */
.gs-seo-audit #gs-contact-form .gform_wrapper .gform_validation_errors {
	background: var(--gs-card);
	border-color: var(--gs-orange);
	box-shadow: none;
}

.gs-seo-audit #gs-contact-form .gform_wrapper .gform_validation_errors h2,
.gs-seo-audit #gs-contact-form .gform_wrapper .gform_validation_errors a {
	color: var(--gs-text-hi);
}

.gs-seo-audit #gs-contact-form .gform_wrapper .gfield_validation_message,
.gs-seo-audit #gs-contact-form .gform_wrapper .validation_message {
	background: transparent;
	border: 0;
	padding: 4px 0 0;
	color: var(--gs-orange-hi);
	font-family: var(--gs-font-body);
	font-size: 0.75rem;
}

/* Confirmation message after a successful submit. */
.gs-seo-audit #gs-contact-form .gform_confirmation_message {
	color: var(--gs-text-hi);
	font-family: var(--gs-font-body);
}

/* ==========================================================================
   Competitor URL repeater (field 1_3, a GF List field)

   Mimics the JetFormBuilder "+ Competitor URL" repeater from the old
   /free-tools/seo-audit/ page: the field loads collapsed to a single
   text link, each click adds a placeholder'd row with an "x" to remove it,
   and removing the last row collapses back to the link. Paired with the
   initCompetitorRepeater() block in seo-audit.js.
   ========================================================================== */

/* The legend still exists for screen readers; it just is not drawn. */
.gs-seo-audit .competitor-repeater > .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* GF's round "+" is replaced by the .cu-add-link trigger below. The id is
   needed to outweigh GF's own framework button rule, which sets `display`
   at (0,3,1) via `.gform-theme.gform-theme--framework.gform_wrapper *>button`. */
.gs-seo-audit #gs-contact-form .competitor-repeater button.add_list_item {
	display: none;
}

/* Collapsed until the trigger is used; .cu-open reveals the rows. */
.gs-seo-audit .competitor-repeater .gfield_list_groups {
	display: none;
}

.gs-seo-audit .competitor-repeater.cu-open .gfield_list_groups {
	display: block;
}

/* GF lays each row out on its 12-column grid: `.gform-grid-row` carries a
   -12px inline margin and `.gform-grid-col` a matching 12px inline padding,
   which makes the row 24px wider than every other field in the form. Cancel
   both and lay the single column out with plain flex instead. */
.gs-seo-audit .competitor-repeater .gfield_list_group.gform-grid-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin-inline: 0;
	margin-bottom: 8px;
}

.gs-seo-audit .competitor-repeater .gfield_list_group_item.gform-grid-col {
	flex: 1 1 auto;
	inline-size: auto;
	min-width: 0;
	padding-inline: 0;
}

.gs-seo-audit .competitor-repeater .gfield_list_icons.gform-grid-col {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	inline-size: auto;
	padding-inline: 0;
}

/* GF hides the delete button while a single row is left; we allow the last
   row to be removed, so force it visible and restyle it as a bare "x". */
.gs-seo-audit .competitor-repeater .gfield_list_icons button.delete_list_item {
	visibility: visible !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	color: var(--gs-text-low);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease;
}

.gs-seo-audit .competitor-repeater .gfield_list_icons button.delete_list_item:hover,
.gs-seo-audit .competitor-repeater .gfield_list_icons button.delete_list_item:focus {
	background: none;
	color: var(--gs-text-hi);
}

.gs-seo-audit .competitor-repeater .gfield_list_icons button.delete_list_item::before {
	content: '\00d7';
	font-family: var(--gs-font-body);
	font-size: 20px;
	line-height: 1;
}

/* The JetForm-style text trigger, appended by seo-audit.js.

   It is a <button> living inside .gform_wrapper, so GF's framework would
   otherwise paint it as a full-width primary pill. seo-audit.js gives it
   GF's own `gform-theme-no-framework` opt-out class, which every framework
   button selector excludes via `:where(:not(.gform-theme-no-framework))`;
   the id below then covers the theme/Elementor global button rules. */
.gs-seo-audit #gs-contact-form button.cu-add-link {
	display: inline-block;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--gs-text-low);
	font-family: var(--gs-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5em;
	letter-spacing: 0;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.gs-seo-audit #gs-contact-form button.cu-add-link:hover,
.gs-seo-audit #gs-contact-form button.cu-add-link:focus {
	background: none;
	color: var(--gs-orange);
	text-decoration: none;
}
