/**
 * CC911 Request for Address — form presentation.
 *
 * Colours follow the site's Elementor kit: primary #BD2132, secondary #11208B.
 */

.cc911-form {
	--cc911-primary: #bd2132;
	--cc911-secondary: #11208b;
	--cc911-border: #c9ced6;
	--cc911-box-border: #dde1e8;
	--cc911-muted: #6b7280;
	--cc911-bg: #f4f5f7;

	/* Kept to a readable measure rather than the full content width. */
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------- letterhead */

.cc911-letterhead {
	border: 2px solid var(--cc911-secondary);
	border-bottom: 0;
	padding: 24px 24px 18px;
	text-align: center;
	background: #fff;
}

.cc911-letterhead h1,
.cc911-letterhead h2,
.cc911-letterhead p {
	margin: 0;
}

.cc911-letterhead .cc911-agency {
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cc911-secondary);
}

.cc911-letterhead .cc911-division {
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc911-muted);
	margin-top: 6px;
}

.cc911-letterhead .cc911-title {
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc911-primary);
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cc911-border);
}

.cc911-required-note {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	align-items: baseline;
	border: 2px solid var(--cc911-secondary);
	border-top: 0;
	border-bottom: 0;
	padding: 12px 20px;
	background: #fff;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cc911-muted);
}

.cc911-required-note strong {
	color: var(--cc911-primary);
}

/* ------------------------------------------------------------- form shell */

/**
 * Gravity Forms emits this wrapper with an inline `display:none` and relies on
 * its own theme script to reveal it once the page has loaded. The site's
 * GetTerms consent banner blocks that script until a visitor accepts cookies,
 * which left the whole form invisible to anyone who had not yet chosen. This
 * form collects no cookies and tracks nobody, so it is shown either way.
 * `!important` is what overrides Gravity Forms' inline style.
 */
.cc911-form .gform_wrapper {
	display: block !important;
}

/* The section cards carry the structure now, so the shell is a plain tray. */
.cc911-form .gform_wrapper {
	border: 2px solid var(--cc911-secondary);
	border-top: 0;
	padding: 18px;
	background: var(--cc911-bg);
	margin: 0;
}

/* ------------------------------------------------------------ section box */

.cc911-form .gform_wrapper .cc911-box {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-content: start;
	background: #fff;
	border: 1px solid var(--cc911-box-border);
	border-radius: 4px;
	padding: 18px 20px 20px;
	box-shadow: 0 1px 2px rgba(17, 32, 139, 0.05);
}

/* The heading reads as the card header. */
.cc911-form .gform_wrapper .cc911-box .gsection {
	grid-column: 1 / -1;
	border-bottom: 2px solid var(--cc911-primary);
	margin: 0 0 4px;
	padding-bottom: 8px;
}

.cc911-form .gform_wrapper .gsection_title {
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc911-secondary);
	margin: 0;
}

.cc911-form .gform_wrapper .gsection_description {
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--cc911-muted);
	text-transform: none;
	letter-spacing: 0;
	margin-top: 6px;
}

/* ------------------------------------------------- instructions and lock */

.cc911-form .gform_wrapper .cc911-callout {
	background: #f2f5ff;
	border-left: 3px solid var(--cc911-secondary);
	border-radius: 3px;
	padding: 12px 16px;
	margin: 0;
}

.cc911-form .gform_wrapper .cc911-callout p {
	margin: 0 0 8px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #24292d;
}

.cc911-form .gform_wrapper .cc911-callout p:last-child {
	margin-bottom: 0;
}

.cc911-form .gform_wrapper .cc911-callout-link a {
	color: var(--cc911-secondary);
	font-weight: 600;
}

.cc911-form .gform_wrapper .cc911-locked {
	margin: 0;
	padding: 12px 16px;
	background: var(--cc911-bg);
	border: 1px dashed var(--cc911-border);
	border-radius: 3px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--cc911-muted);
}

/* A card whose every field is currently hidden should not sit there empty. */
.cc911-form .gform_wrapper .cc911-box[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- fields */

.cc911-form .gform_wrapper .gfield_label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #24292d;
}

.cc911-form .gform_wrapper .gfield_required {
	color: var(--cc911-primary);
}

.cc911-form .gform_wrapper .gfield_description {
	font-size: 0.8rem;
	color: var(--cc911-muted);
}

.cc911-form .gform_wrapper .cc911-charcount {
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--cc911-muted);
	text-align: right;
}

.cc911-form .gform_wrapper .cc911-charcount.is-low {
	color: var(--cc911-primary);
	font-weight: 600;
}

.cc911-form .gform_wrapper input[type="text"],
.cc911-form .gform_wrapper input[type="email"],
.cc911-form .gform_wrapper input[type="tel"],
.cc911-form .gform_wrapper select,
.cc911-form .gform_wrapper textarea {
	border: 1px solid var(--cc911-border);
	border-radius: 3px;
}

.cc911-form .gform_wrapper input[type="text"]:focus,
.cc911-form .gform_wrapper input[type="email"]:focus,
.cc911-form .gform_wrapper input[type="tel"]:focus,
.cc911-form .gform_wrapper select:focus,
.cc911-form .gform_wrapper textarea:focus {
	outline: 2px solid var(--cc911-secondary);
	outline-offset: 1px;
	border-color: var(--cc911-secondary);
}

.cc911-form .gform_wrapper .gform_footer {
	margin: 0;
	padding: 12px 0 0;
}

.cc911-form .gform_wrapper .gform_footer input[type="submit"] {
	background: var(--cc911-primary);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 14px 34px;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.cc911-form .gform_wrapper .gform_footer input[type="submit"]:hover,
.cc911-form .gform_wrapper .gform_footer input[type="submit"]:focus {
	background: var(--cc911-secondary);
}

/* ------------------------------------------------------ segmented inputs */

.cc911-real-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.cc911-seg {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.cc911-seg-group {
	display: inline-flex;
	gap: 6px;
}

.cc911-seg-sep {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--cc911-muted);
	line-height: 1;
}

/**
 * Gravity Forms stretches text inputs to the full field width at a higher
 * specificity than a bare class, so the box size is pinned here and the boxes
 * are taken out of flex sizing.
 */
.cc911-form .gform_wrapper .cc911-seg .cc911-seg-box,
.cc911-seg .cc911-seg-box {
	flex: 0 0 auto;
	width: 2.1rem;
	min-width: 2.1rem;
	max-width: 2.1rem;
	height: 2.9rem;
	padding: 0;
	text-align: center;
	font-family: "Courier New", ui-monospace, monospace;
	font-size: 1.3rem;
	font-weight: 700;
	color: #24292d;
	background: #fff;
	border: 1px solid var(--cc911-border) !important;
	border-radius: 3px;
	box-shadow: none;
}

.cc911-form .gform_wrapper .cc911-seg .cc911-seg-box:focus,
.cc911-seg .cc911-seg-box:focus {
	outline: 2px solid var(--cc911-secondary);
	outline-offset: 1px;
	border-color: var(--cc911-secondary) !important;
	background: #f2f5ff;
}

.cc911-form .gform_wrapper .gfield_error .cc911-seg-box,
.gfield_error .cc911-seg-box {
	border-color: var(--cc911-primary) !important;
}

/* ---------------------------------------------------------- jurisdiction */

.cc911-jurisdiction {
	--cc911-primary: #bd2132;
	--cc911-secondary: #11208b;
	--cc911-border: #c9ced6;
	--cc911-muted: #6b7280;

	max-width: 620px;
	margin: 0 0 28px;
}

.cc911-jurisdiction .cc911-jur-label {
	display: block;
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--cc911-secondary);
	margin-bottom: 8px;
}

.cc911-jurisdiction .cc911-jur-select {
	width: 100%;
	max-width: 360px;
	padding: 10px 12px;
	font-size: 1rem;
	border: 1px solid var(--cc911-border);
	border-radius: 3px;
	background: #fff;
}

.cc911-jurisdiction .cc911-jur-select:focus {
	outline: 2px solid var(--cc911-secondary);
	outline-offset: 1px;
	border-color: var(--cc911-secondary);
}

.cc911-jurisdiction .cc911-jur-panel {
	margin-top: 18px;
	padding: 18px 20px;
	background: #f4f5f7;
	border-radius: 4px;
}

.cc911-jurisdiction .cc911-jur-panel[hidden] {
	display: none !important;
}

.cc911-jurisdiction .cc911-jur-title {
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	color: #24292d;
	margin: 0 0 12px;
}

.cc911-jurisdiction .cc911-jur-panel p {
	margin: 0 0 12px;
	line-height: 1.6;
	color: #24292d;
}

.cc911-jurisdiction .cc911-jur-panel p:last-child {
	margin-bottom: 0;
}

.cc911-jurisdiction .cc911-jur-form-link {
	color: var(--cc911-secondary);
	font-weight: 600;
	text-decoration: underline;
}

/* --------------------------------------------------------------- footer */

.cc911-footer {
	border: 2px solid var(--cc911-secondary);
	border-top: 0;
	padding: 16px 20px;
	background: #fff;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.7;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cc911-muted);
}

.cc911-footer strong {
	color: var(--cc911-secondary);
}

/* --------------------------------------------------------- confirmation */

.cc911-confirm {
	border: 2px solid var(--cc911-secondary);
	background: #fff;
	padding: 28px;
}

.cc911-confirm h2 {
	font-family: Lato, "Source Sans Pro", sans-serif;
	color: var(--cc911-secondary);
	margin-top: 0;
}

.cc911-confirm .cc911-confirm-lead {
	font-family: Lato, "Source Sans Pro", sans-serif;
	font-size: 1.15rem;
	line-height: 1.5;
	font-weight: 700;
	color: var(--cc911-secondary);
	margin-top: 0;
}

.cc911-confirm-actions {
	margin: 20px 0 28px;
}

.cc911-print {
	display: inline-block;
	background: var(--cc911-primary);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 13px 30px;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.cc911-print:hover,
.cc911-print:focus {
	background: var(--cc911-secondary);
	color: #fff;
}

.cc911-confirm table {
	width: 100%;
	border-collapse: collapse;
}

.cc911-confirm table td {
	border-bottom: 1px solid var(--cc911-border);
	padding: 8px 10px;
	vertical-align: top;
	font-size: 0.92rem;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 640px) {
	.cc911-form .gform_wrapper {
		padding: 12px;
	}

	.cc911-form .gform_wrapper .cc911-box {
		padding: 14px 14px 16px;
	}

	.cc911-seg {
		gap: 5px;
	}

	.cc911-seg-group {
		gap: 4px;
	}

	.cc911-form .gform_wrapper .cc911-seg .cc911-seg-box,
	.cc911-seg .cc911-seg-box {
		width: 1.85rem;
		min-width: 1.85rem;
		max-width: 1.85rem;
		height: 2.5rem;
		font-size: 1.05rem;
	}
}

/* --------------------------------------------------------------- print */

@media print {
	header,
	footer,
	nav,
	.elementor-location-header,
	.elementor-location-footer,
	.cc911-confirm-actions,
	.grecaptcha-badge {
		display: none !important;
	}

	.cc911-form {
		max-width: none;
	}

	.cc911-confirm,
	.cc911-letterhead,
	.cc911-footer {
		border-color: #000;
	}

	.cc911-confirm {
		padding: 0;
		border: 0;
	}

	.cc911-form .gform_wrapper .cc911-box {
		break-inside: avoid;
		box-shadow: none;
	}

	body {
		background: #fff;
	}
}
