/* =========================================================================
   Service plan enquiry: template-plan-enquiry.php
   (/billicare-service-plans/maintenance-plan-register/).
   Scoped to .pe, mobile first, min-width queries at 640 / 768 / 900 / 1200.
   The house recipe from docs/superpowers/specs/2026-09-18-support-and-
   content-pages-design.md, renamed, plus the plan summary panel and the
   layout of Gravity Form 23's fields. The controls themselves are
   css/product.css's, through the .pd .pd-enquiry reuse.
   ========================================================================= */

.pe {
	--pe-navy: #181d46;      /* Billi Blue */
	--pe-lightblue: #90cdeb; /* primary button on dark, accents */
	--pe-grey: #eaeaea;      /* borders, rules */
	--pe-band-grey: #f5f5f5;
	--pe-band-tint: #f1f5f5; /* Green Grey */
	--pe-text: #000;
	--pe-muted: #75757b;
	--pe-gutter: 20px;

	font-family: var(--font-din);
	color: var(--pe-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.pe { --pe-gutter: 40px; }
}

.pe *,
.pe *::before,
.pe *::after { box-sizing: border-box; }

/* framework.css sets a global img { width: 100% }: width must be reset. */
.pe img { max-width: 100%; width: auto; height: auto; display: block; }

.pe-container {
	width: 100%;
	max-width: 1436px;
	margin: 0 auto;
	padding-left: var(--pe-gutter);
	padding-right: var(--pe-gutter);
}


/* ---- Sections ------------------------------------------------------------ */

.pe-section { padding: 48px 0; }

@media (min-width: 900px) {
	.pe-section { padding: 80px 0; }
}

.pe-section--grey { background: var(--pe-band-grey); }
.pe-section--tint { background: var(--pe-band-tint); }

.pe :is(h2, h3) {
	margin-top: 0;
	text-transform: none;
	letter-spacing: normal;
}

.pe .pe-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--pe-navy);
}

@media (min-width: 900px) {
	.pe .pe-section-heading { font-size: 34px; }
}


/* ---- Buttons --------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.pe .pe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pe .pe-btn:hover,
.pe .pe-btn:focus-visible { opacity: 1; }

.pe .pe-btn svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.pe .pe-btn--navy { background: var(--pe-navy); color: #fff; }

.pe .pe-btn--navy:hover,
.pe .pe-btn--navy:focus-visible {
	background: #fff;
	color: var(--pe-navy);
	box-shadow: inset 0 0 0 1px var(--pe-navy);
}

.pe .pe-btn--light { background: var(--pe-lightblue); color: var(--pe-navy); }

.pe .pe-btn--light:hover,
.pe .pe-btn--light:focus-visible { background: #fff; color: var(--pe-navy); }

.pe .pe-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pe .pe-btn--ghost:hover,
.pe .pe-btn--ghost:focus-visible {
	background: #fff;
	color: var(--pe-navy);
	box-shadow: none;
}

.pe .pe-btn--outline {
	background: transparent;
	color: var(--pe-navy);
	box-shadow: inset 0 0 0 1px var(--pe-navy);
}

.pe .pe-btn--outline:hover,
.pe .pe-btn--outline:focus-visible { background: var(--pe-navy); color: #fff; }

/* framework.css removes focus outlines sitewide. */
.pe :is(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--pe-navy);
	outline-offset: 3px;
}

.pe .pe-hero :is(a, button, summary):focus-visible { outline-color: #fff; }


/* ---- Hero (compact) --------------------------------------------------------
   The title is an <h1>: typography.css gives it DM Serif Display at 400.
   Never set its font-weight or font-family. */

.pe-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--pe-navy);
	color: #fff;
	overflow: hidden;
}

.pe-hero--compact { min-height: 0; }

.pe-hero__inner {
	width: 100%;
	padding-top: 48px;
	padding-bottom: 48px;
}

.pe-hero__content { max-width: 720px; }

.pe-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--pe-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pe .pe-hero__title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1.12;
}

.pe-hero__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.pe-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.pe-hero__actions:empty { display: none; }

@media (min-width: 900px) {
	.pe-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.pe-hero--compact .pe-hero__inner { padding-top: 56px; padding-bottom: 56px; }
	.pe .pe-hero__title { font-size: 52px; }
	.pe-hero--compact .pe-hero__title { font-size: 44px; }
	.pe-hero__intro { font-size: 18px; }
}


/* ---- Form aside ------------------------------------------------------------ */

.pe h2.pd-section-heading { margin-top: 0; }

.pe-panel {
	margin-top: 28px;
	padding: 22px 24px;
	border-radius: 4px;
	background: #fff;
}

.pe .pe-panel__title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pe-navy);
}

.pe-plans { margin: 0; }

.pe-plans__row {
	padding: 12px 0;
	border-top: 1px solid var(--pe-grey);
}

.pe-plans__row:first-child { border-top: 0; }

.pe-plans__name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pe-navy);
}

.pe-plans__text {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: #5f5f66;
}

.pe .pe-panel__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--pe-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pe .pe-panel__link:hover { opacity: 1; text-decoration-thickness: 2px; }

.pe .pe-panel__link svg { width: 14px; height: 14px; }

.pe .pd-enquiry__alt a {
	color: var(--pe-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pe .pd-enquiry__alt a:hover { opacity: 1; }

.pe .pd-enquiry__fallback { margin: 0; font-size: 16px; }


/* ---- Gravity Form 23 field layout -------------------------------------------------
   The form still carries the old gf_left_half / gf_right_half classes, which
   Gravity Forms maps to half width on only some of its fields, so on its own
   it leaves Business name and Phone number half-empty rows. On a phone every
   field is full width; from 640px the four contact fields pair up (business
   and email, phone and region) and the plan choices sit in a row.
   Scoped .pe .pd ... to outrank product.css without touching it. */

.pe .pd .pd-enquiry__form .gform_wrapper .gform_fields > .gfield--width-half { grid-column: 1 / -1; }

@media (min-width: 640px) {
	.pe .pd .pd-enquiry__form .gform_wrapper .gform_fields > :is(.gfield--type-text, .gfield--type-email, .gfield--type-phone, .gfield--type-select) {
		grid-column: span 6;
	}

	.pe .pd .pd-enquiry__form .gform_wrapper .gfield--type-radio .gfield_radio {
		grid-template-columns: repeat(3, max-content);
		column-gap: 32px;
	}
}


/* ---- Closing band -------------------------------------------------------------------
   White with the standard navy button: it follows the grey form band, and
   Green Grey under that grey reads as a seam. Never navy above the navy footer. */

.pe-help__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.pe .pe-help .pe-section-heading { margin-bottom: 0; }

.pe-help__text {
	margin: 12px 0 0;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pe-text);
}

.pe .pe-help__text a {
	color: var(--pe-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pe .pe-help__text a:hover { opacity: 1; }

.pe-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (min-width: 768px) {
	.pe-help__row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.pe-help__actions { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.pe .pe-btn { transition: none; }
}
