/* US Web Professionals Forms – main stylesheet
   Colour variables (--usw-*) are injected from the Customizer. */

:root {
	--usw-blue: #234cc9;
	--usw-blue-dark: #1c3da3;
	--usw-blue-soft: #eef2fc;
	--usw-blue-rgb: 35, 76, 201;
	--usw-red: #d2272a;
	--usw-red-dark: #b01f22;
	--usw-red-rgb: 210, 39, 42;
	--usw-navy: #0a1633;
	--usw-navy-2: #243158;
	--usw-bg: #f3f6fc;
	--usw-ink: #0f1b3d;
	--usw-muted: #5b6785;
	--usw-line: #d9e1f1;
	--usw-white: #fff;
	--usw-radius: 14px;
	--usw-shadow: 0 1px 2px rgba(10, 22, 51, .06), 0 12px 32px rgba(10, 22, 51, .08);
	--usw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--usw-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--usw-ink);
	background: var(--usw-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--usw-blue); }
a:hover { color: var(--usw-blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.usw-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.usw-container--narrow { max-width: 820px; }

.usw-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: #fff; color: var(--usw-navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.usw-skip:focus { left: 8px; }

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.usw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	padding: 15px 28px; border-radius: 12px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.usw-btn:hover { transform: translateY(-1px); }
.usw-btn:focus-visible { outline: 3px solid rgba(var(--usw-blue-rgb), .45); outline-offset: 2px; }
.usw-btn--red { background: var(--usw-red); color: #fff; box-shadow: 0 8px 20px rgba(var(--usw-red-rgb), .28); }
.usw-btn--red:hover { background: var(--usw-red-dark); color: #fff; }
.usw-btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.usw-btn--outline:hover { background: #fff; color: var(--usw-navy); border-color: #fff; }
.usw-btn--ghost { border-color: var(--usw-line); color: var(--usw-blue); background: #fff; }
.usw-btn--ghost:hover { border-color: var(--usw-blue); color: var(--usw-blue-dark); }
.usw-btn--sm { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.usw-btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ------------------------------------------------------------------ *
 * Banner (logo + review badges + title + 3 steps)
 * ------------------------------------------------------------------ */
.usw-flagline { height: 5px; background: linear-gradient(90deg, var(--usw-blue) 0 38%, #fff 38% 50%, var(--usw-red) 50% 100%); }
.usw-logo { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.usw-logo__img { height: 54px; width: auto; max-width: 100%; display: block; }

.usw-banner {
	position: relative; color: #fff; overflow: hidden;
	background:
		radial-gradient(800px 320px at 90% -20%, rgba(var(--usw-blue-rgb), .55), transparent 60%),
		radial-gradient(600px 280px at -5% 120%, rgba(var(--usw-red-rgb), .26), transparent 60%),
		var(--usw-navy);
}
.usw-banner::before { /* faint stars, like the ribbon on the logo */
	content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23ffffff' fill-opacity='.07' d='M20 12l2.2 6.6h7l-5.7 4.1 2.2 6.6L20 25.2l-5.7 4.1 2.2-6.6-5.7-4.1h7zM84 78l2.2 6.6h7l-5.7 4.1 2.2 6.6L84 91.2l-5.7 4.1 2.2-6.6-5.7-4.1h7z'/%3E%3C/svg%3E");
}
.usw-banner .usw-container { position: relative; padding-top: 22px; padding-bottom: 22px; }
.usw-banner__top { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.usw-banner .usw-logo__img { height: 76px; }

.usw-reviews { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.usw-review {
	display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--usw-navy);
	border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14.5px; line-height: 1; text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22); transition: transform .15s;
}
.usw-review:hover { transform: translateY(-1px); color: var(--usw-navy); }
.usw-stars { color: #f5b301; font-size: 15px; letter-spacing: 1px; }
.usw-review--img { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.usw-review--img img { height: 48px; width: auto; display: block; }

.usw-banner__bottom {
	display: flex; flex-direction: column; align-items: stretch; gap: 16px;
	margin-top: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.usw-banner__title { text-align: center; }
.usw-banner__title h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; line-height: 1.15; }
.usw-banner__title p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 16px; }

.usw-steps {
	list-style: none; margin: 0; padding: 22px 12px; counter-reset: step;
	display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 14px 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
	border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px rgba(0, 0, 0, .25);
}
.usw-steps li { counter-increment: step; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; }
.usw-steps li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
.usw-steps__n {
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
	font-weight: 800; font-size: 19px; background: var(--usw-red); color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.usw-steps__n::before { content: counter(step); }
.usw-steps li:nth-child(2) .usw-steps__n { background: #fff; color: var(--usw-navy); }
.usw-steps li:nth-child(3) .usw-steps__n { background: var(--usw-blue); }
.usw-steps strong { display: block; font-size: 20px; line-height: 1.25; }
.usw-steps em { display: block; font-style: normal; font-size: 15.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); }

/* ------------------------------------------------------------------ *
 * Forms section & tabs
 * ------------------------------------------------------------------ */
.usw-forms { padding: 36px 0 80px; background: var(--usw-bg); }

.usw-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.usw-tab {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
	font: inherit; color: var(--usw-ink); background: #fff; border: 2px solid var(--usw-line); border-radius: var(--usw-radius);
	padding: 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.usw-tab:hover { border-color: rgba(var(--usw-blue-rgb), .5); transform: translateY(-2px); }
.usw-tab:focus-visible { outline: 3px solid rgba(var(--usw-blue-rgb), .45); outline-offset: 2px; }
.usw-tab__icon {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	background: var(--usw-blue-soft); color: var(--usw-blue); transition: background .15s, color .15s;
}
.usw-tab__text strong { display: block; font-size: 16px; line-height: 1.25; margin-bottom: 4px; }
.usw-tab__text small { display: block; font-size: 13px; line-height: 1.45; color: var(--usw-muted); }
.usw-tab.is-active { border-color: var(--usw-blue); box-shadow: var(--usw-shadow); }
.usw-tab.is-active .usw-tab__icon { background: var(--usw-blue); color: #fff; }
.usw-tab.is-active::after { /* pointer to the panel */
	content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px; background: #fff;
	border-right: 2px solid var(--usw-blue); border-bottom: 2px solid var(--usw-blue);
	transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0; z-index: 2;
}

/* Tabbed behaviour only when JS is available; otherwise all forms stack. */
.js .usw-panel { display: none; }
.js .usw-panel.is-active { display: block; animation: usw-fade .25s ease; }
.usw-panel + .usw-panel { margin-top: 40px; }
.js .usw-panel + .usw-panel { margin-top: 0; }
html:not(.js) .usw-tabs { display: none; } /* without JS every form is shown, stacked */
@keyframes usw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ *
 * Form card
 * ------------------------------------------------------------------ */
.usw-form-card {
	background: #fff; border-radius: 20px; box-shadow: var(--usw-shadow); border: 1px solid var(--usw-line);
	overflow: hidden; position: relative; max-width: 940px; margin: 0 auto;
}
.usw-form-card::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--usw-blue) 0 55%, var(--usw-red) 55% 100%); }
.usw-form-head { padding: 36px 44px 4px; }
.usw-form-title { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 10px; }
.usw-form-intro { color: var(--usw-muted); font-size: 16.5px; max-width: 760px; margin-bottom: 0; }
.usw-form { padding: 12px 44px 44px; }

.usw-section { margin-top: 32px; }
.usw-section__title {
	font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--usw-blue);
	display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--usw-blue-soft);
}
.usw-section__title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--usw-red); flex: 0 0 auto; }

.usw-part {
	margin: 44px -44px 0; padding: 18px 44px; background: var(--usw-navy); color: #fff; position: relative;
	border-top: 4px solid var(--usw-red);
}
.usw-part span { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.usw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.usw-field { grid-column: 1 / -1; min-width: 0; border: 0; padding: 0; margin: 0; }
.usw-field--half { grid-column: span 1; }

.usw-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--usw-ink); padding: 0; }
.usw-req { color: var(--usw-red); font-weight: 800; }
.usw-hint { font-weight: 500; font-style: italic; color: var(--usw-muted); }

.usw-input {
	width: 100%; font: inherit; font-size: 16px; color: var(--usw-ink); background: #fff;
	border: 2px solid var(--usw-line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.usw-input { min-height: 118px; resize: vertical; line-height: 1.5; }
.usw-input:hover { border-color: #b9c6e4; }
.usw-input:focus { outline: none; border-color: var(--usw-blue); box-shadow: 0 0 0 4px rgba(var(--usw-blue-rgb), .16); }
.usw-input::placeholder { color: #98a3bf; }

/* Radio / checkbox tiles */
.usw-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.usw-choices--compact { display: flex; flex-wrap: wrap; }
.usw-choice {
	position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
	padding: 12px 14px; border: 2px solid var(--usw-line); border-radius: 12px; background: #fff;
	transition: border-color .15s, background .15s; line-height: 1.35; min-height: 50px;
}
.usw-choices--compact .usw-choice { padding-right: 20px; }
.usw-choice:hover { border-color: #b9c6e4; }
.usw-choice input[type="radio"], .usw-choice input[type="checkbox"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.usw-mark {
	flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #aab7d6; background: #fff; display: grid; place-items: center;
	transition: all .15s;
}
input[type="radio"] + .usw-mark { border-radius: 50%; }
input[type="checkbox"] + .usw-mark { border-radius: 6px; }
.usw-mark::after { content: ""; opacity: 0; transition: opacity .12s; }
input[type="radio"] + .usw-mark::after { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
input[type="checkbox"] + .usw-mark::after { width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.usw-choice input:checked + .usw-mark { background: var(--usw-blue); border-color: var(--usw-blue); }
.usw-choice input:checked + .usw-mark::after { opacity: 1; }
.usw-choice input:focus-visible + .usw-mark { box-shadow: 0 0 0 4px rgba(var(--usw-blue-rgb), .3); }
.usw-choice:has(input:checked) { border-color: var(--usw-blue); background: var(--usw-blue-soft); }
.usw-choice__text { font-size: 15.5px; }

.usw-choice--other { flex-wrap: nowrap; }
.usw-other-input {
	flex: 1 1 auto; min-width: 0; width: 100%; font: inherit; font-size: 15px; background: transparent; color: var(--usw-ink);
	border: 0; border-bottom: 2px solid var(--usw-line); padding: 4px 2px; border-radius: 0;
}
.usw-other-input:focus { outline: none; border-bottom-color: var(--usw-blue); }

/* Errors */
.usw-error { color: var(--usw-red); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.has-error > .usw-input, .has-error .usw-choice { border-color: var(--usw-red); }
.has-error > .usw-input:focus { box-shadow: 0 0 0 4px rgba(var(--usw-red-rgb), .15); }
.usw-alert { border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-top: 28px; }
.usw-alert--error { background: #fdecec; color: #8f1d20; border: 1px solid #f4bcbd; }

/* Honeypot – invisible to people */
.usw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Submit row */
.usw-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 28px; border-top: 2px solid var(--usw-blue-soft); }
.usw-submit { min-width: 200px; font-size: 17px; padding: 16px 34px; }
.usw-note { margin: 0; color: var(--usw-muted); font-size: 14px; }

/* Success */
.usw-success { padding: 64px 32px 72px; text-align: center; }
.usw-success[hidden], .usw-form[hidden], .usw-error[hidden], .usw-alert[hidden] { display: none !important; }
.usw-success__icon {
	width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 18px;
	background: var(--usw-blue); color: #fff; box-shadow: 0 0 0 10px var(--usw-blue-soft);
}
.usw-success__icon svg { width: 38px; height: 38px; stroke-width: 3; }
.usw-success h3 { font-size: 30px; }
.usw-success p { color: var(--usw-muted); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }

/* ------------------------------------------------------------------ *
 * Inner pages
 * ------------------------------------------------------------------ */
.usw-pagehead { background: var(--usw-navy); color: #fff; padding: 48px 0; }
.usw-pagehead .usw-logo { margin-bottom: 18px; }
.usw-pagehead .usw-logo__img { height: 64px; }
.usw-pagehead h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.usw-page { padding: 56px 0 80px; }
.usw-content { background: #fff; border: 1px solid var(--usw-line); border-radius: 18px; padding: 36px 40px; box-shadow: var(--usw-shadow); }
.usw-content + .usw-content { margin-top: 24px; }
.usw-content h2 a { text-decoration: none; color: var(--usw-ink); }
.usw-meta { color: var(--usw-muted); font-size: 14px; }
.usw-shortcode-form { margin: 8px 0; }
.usw-content .usw-form-card { box-shadow: none; max-width: none; }

/* ------------------------------------------------------------------ *
 * Footer (logo, email, copyright)
 * ------------------------------------------------------------------ */
.usw-footer { background: var(--usw-navy); color: rgba(255, 255, 255, .8); }
.usw-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.usw-footer .usw-logo__img { height: 56px; }
.usw-footer__meta { display: grid; gap: 4px; text-align: right; font-size: 14px; }
.usw-footer__meta a { color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.usw-footer__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.usw-tabs { grid-template-columns: repeat(3, 1fr); }
	.usw-tab.is-active::after { display: none; }
}
@media (max-width: 900px) {
	.usw-banner__top { justify-content: center; text-align: center; }
	.usw-banner__bottom { text-align: center; }
	.usw-steps em { display: none; }
	.usw-steps li { padding: 0 10px; gap: 10px; }
	.usw-steps strong { font-size: 16.5px; }
	.usw-reviews { justify-content: center; }
}
@media (max-width: 720px) {
	.usw-container { padding: 0 18px; }
	.usw-banner .usw-logo__img { height: 62px; }
	.usw-steps { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 16px 20px; }
	.usw-steps li { padding: 0; justify-content: flex-start; }
	.usw-steps li + li { border-left: 0; }
	.usw-steps em { display: none; } /* keep the 3 steps to one short line each on phones */
	.usw-tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.usw-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.usw-tab { padding: 14px; flex-direction: row; align-items: center; }
	.usw-tab__text small { display: none; }
	.usw-tab__icon { width: 38px; height: 38px; flex: 0 0 auto; }
	.usw-form-head { padding: 28px 22px 0; }
	.usw-form { padding: 6px 22px 32px; }
	.usw-part { margin-left: -22px; margin-right: -22px; padding: 16px 22px; }
	.usw-grid { grid-template-columns: 1fr; }
	.usw-field--half { grid-column: 1 / -1; }
	.usw-choices { grid-template-columns: 1fr; }
	.usw-choices--compact { display: grid; grid-template-columns: 1fr 1fr; }
	.usw-actions .usw-submit { width: 100%; }
	.usw-footer__inner { justify-content: center; flex-direction: column; text-align: center; }
	.usw-footer__meta { text-align: center; }
	.usw-content { padding: 24px 20px; }
}
@media (max-width: 420px) {
	.usw-choices--compact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
