/**
 * Products grid additions and the enquiry modal.
 *
 * The tiles themselves are styled by the site's own stylesheets — generated
 * markup carries the same Elementor classes — so only the button and the modal
 * are defined here. Colours follow the site: red #EF3F49 CTA, navy #091441.
 */

:root {
	--psep-red: #ef3f49;
	--psep-red-dark: #d32f39;
	--psep-navy: #091441;
	--psep-ink: #1d1d37;
	--psep-body: #4a4a4a;
}

/* ------------------------------------------------------------- the button */

.psep-enquiry-widget {
	text-align: center;
	margin-top: 12px;
}

.psep-enquiry-button,
.psep-grid-enquiry-form__submit {
	display: inline-block;
	padding: 11px 26px;
	border: 0;
	border-radius: 2px;
	background: var(--psep-red);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .4px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.psep-enquiry-button:hover,
.psep-enquiry-button:focus,
.psep-grid-enquiry-form__submit:hover,
.psep-grid-enquiry-form__submit:focus {
	background: var(--psep-red-dark);
	color: #fff;
	transform: translateY(-1px);
}

.psep-enquiry-button:focus-visible,
.psep-grid-enquiry-form__submit:focus-visible {
	outline: 2px solid var(--psep-navy);
	outline-offset: 2px;
}

.psep-grid-enquiry-form {
	display: inline-flex;
	align-items: stretch;
	gap: 8px;
}

.psep-grid-enquiry-form__qty {
	width: 56px;
	padding: 0 8px;
	border: 1px solid #d7d7de;
	border-radius: 2px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--psep-ink);
	text-align: center;
}

.psep-grid-enquiry-form__qty:focus {
	outline: none;
	border-color: var(--psep-navy);
}

/* The captured tiles animate in via Elementor. Should that script not run,
   products must still be readable rather than invisible. */
.psep-grid .elementor-invisible.psep-revealed {
	visibility: visible;
}

/* ------------------------------------------------ the site-wide control */

/*
 * Floats bottom-LEFT. The header is position:fixed and covers the top bar, so a
 * button there is invisible; the header's nav has no spare width at 1440px. This
 * placement costs no layout at all, and bottom-left keeps clear of the live chat
 * widget fixed in the opposite corner.
 */
.psep-float-button {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--psep-red);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .3px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(9, 20, 65, .28);
	transition: background-color .2s ease, transform .2s ease;
}

.psep-float-button:hover,
.psep-float-button:focus {
	background: var(--psep-red-dark);
	color: #fff;
	transform: translateY(-2px);
}

.psep-float-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.psep-float-button__icon { flex: none; }

@media (max-width: 767px) {
	.psep-float-button {
		left: 12px;
		bottom: 12px;
		padding: 11px 16px;
		font-size: 13px;
	}
}

/* Very short viewports: keep it from crowding the content. */
@media (max-height: 480px) {
	.psep-float-button { padding: 9px 14px; font-size: 12px; }
}

/* --------------------------------------------------- the service page CTA */

/*
 * Copy on the left, an elevated white action card on the right, against a
 * navy band — the same "dark band, white card" pattern the site's own
 * homepage already closes with ("Contact us today"), so this reads as part
 * of the site rather than a generic form bolted onto the end of the page.
 *
 * Earlier drafts tried to reproduce a reference screenshot's exact form
 * shape (a plain light card, quantity box, note field, stacked top to
 * bottom, centred in a narrow column) — the brief was only ever "a feature
 * like that", not that literal layout, and a centred column this narrow
 * wastes most of the band's width on desktop.
 */
.psep-service-cta {
	background: linear-gradient(135deg, #091441 0%, #10205e 100%);
	padding: 64px 20px;
}

.psep-service-cta__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.psep-service-cta__eyebrow {
	margin: 0 0 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--psep-red);
}

.psep-service-cta__title {
	margin: 0 0 16px;
	font-family: 'Rajdhani', 'Poppins', sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.18;
	color: #fff;
}

.psep-service-cta__lede {
	margin: 0 0 24px;
	max-width: 46ch;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .78);
}

.psep-service-cta__call {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, .7);
}
.psep-service-cta__call a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.psep-service-cta__call a:hover { border-color: var(--psep-red); color: var(--psep-red); }

/* ---- the action card ---- */

.psep-enquiry-box {
	padding: 28px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(5, 10, 35, .35);
}

.psep-enquiry-field {
	margin: 0 0 16px;
}
.psep-enquiry-field:last-of-type {
	margin-bottom: 20px;
}

.psep-enquiry-field--qty {
	max-width: 120px;
}

.psep-enquiry-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1d1d37;
	margin: 0 0 6px;
}

.psep-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d7d9e0;
	border-radius: 3px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #1d1d37;
	background: #fff;
}
.psep-input:focus { outline: none; border-color: var(--psep-red); }
textarea.psep-input { resize: vertical; }

/*
 * Scoped to .psep-enquiry-box rather than the bare class: OceanWP's own
 * style.min.css carries `button[type="submit"], .button, input[type=...]
 * { background: #13aff0; padding: 14px 20px; }`, which is MORE specific
 * (element+attribute, 0-1-1) than a single class (0-1-0) — so it silently
 * won regardless of load order, turning this button OceanWP blue instead of
 * PSE red. Nesting under the box's own class (0-2-0) beats it cleanly
 * without needing !important.
 */
.psep-enquiry-box .psep-enquiry-submit--block {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--psep-red);
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.psep-enquiry-box .psep-enquiry-submit--block:hover { background: var(--psep-navy); }

@media (max-width: 900px) {
	.psep-service-cta__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 640px) {
	.psep-service-cta { padding: 40px 18px; }
	.psep-service-cta__title { font-size: 27px; }
}

/* -------------------------------------------------------------- the modal */

.psep-modal[hidden] {
	display: none;
}

.psep-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.psep-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 20, 65, .72);
}

.psep-modal__panel {
	position: relative;
	/* Stated, not assumed: the dialog is injected outside .elementor, so it does
	   not inherit Elementor's border-box reset. Without this the 32px padding is
	   added to width:100% and the panel overflows a phone viewport. */
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	padding: 32px 32px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	font-family: 'Poppins', sans-serif;
	color: var(--psep-body);
}

.psep-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #9a9a9a;
	cursor: pointer;
	padding: 4px 8px;
}

.psep-modal__close:hover {
	color: var(--psep-ink);
}

.psep-modal__title {
	margin: 0 0 6px;
	font-family: 'Rajdhani', 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--psep-ink);
	text-transform: capitalize;
}

.psep-modal__product {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--psep-body);
}

.psep-modal__product strong {
	color: var(--psep-navy);
}

/* Restated: neither line sets `display`, but if one ever does it would beat the
   browser's own [hidden] rule and both lines would show at once. */
.psep-modal__product[hidden],
.psep-modal__note[hidden] {
	display: none;
}

/* Stands in for the product line when the enquiry names nothing specific —
   which is the case when the form opens by itself. */
.psep-modal__note {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--psep-body);
}

.psep-field {
	margin: 0 0 14px;
}

.psep-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 500;
	color: var(--psep-ink);
}

.psep-field input,
.psep-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	font-family: inherit;
	font-size: 14px;
	color: var(--psep-ink);
	background: #fff;
	box-sizing: border-box;
}

.psep-field input:focus,
.psep-field textarea:focus {
	border-color: var(--psep-navy);
	outline: none;
}

.psep-field textarea {
	resize: vertical;
}

.psep-actions {
	margin: 20px 0 0;
}

/* Scoped to .psep-form — see the comment on .psep-enquiry-box
   .psep-enquiry-submit above; the same OceanWP button[type="submit"] rule
   overrides a bare .psep-submit class exactly the same way. */
.psep-form .psep-submit {
	width: 100%;
	padding: 13px 24px;
	border: 0;
	border-radius: 2px;
	background: var(--psep-red);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .4px;
	cursor: pointer;
}

.psep-form .psep-submit:hover {
	background: var(--psep-red-dark);
}

/* Honeypot, kept out of sight but reachable by nothing that reads labels. */
.psep-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------- messages */

.psep-flash {
	margin: 0;
	padding: 16px 20px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
}

.psep-flash--ok {
	background: #e8f5ec;
	color: #1c6b39;
	border-bottom: 2px solid #1c6b39;
}

.psep-flash--bad {
	background: #fdecec;
	color: #96242c;
	border-bottom: 2px solid var(--psep-red);
}

@media (max-width: 767px) {
	.psep-modal__panel {
		padding: 26px 20px 20px;
	}
	.psep-modal__title {
		font-size: 25px;
	}
}
