/**
 * Footer CTA Widget — Picklemall Widgets
 *
 * Design tokens used (from theme variables.css):
 *   --pm-font-header    'A Love of Thunder'
 *   --pm-font-graffiti  'TheGraffitiFont'
 *   --pm-color-*        brand palette
 */

/* ── Section wrapper ──────────────────────────────────────────────────────── */

.pm-footer-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	gap: clamp(2rem, 6vw, 5rem);
	padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 6rem);
	background-color: var(--pm-color-primary-dark, #052E2C);
	min-height: 800px;
}

/* ── Left column ──────────────────────────────────────────────────────────── */

.pm-footer-cta__left {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 10;
}

.pm-footer-cta__title {
	font-family: var(--pm-font-header, 'A Love of Thunder', serif);
	font-size: 62px;
	line-height: 1;
	color: var(--pm-color-white, #fff);
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.pm-footer-cta__title-graffiti {
	display: block;
	font-family: var(--pm-font-graffiti, 'TheGraffitiFont', cursive);
	font-size: 62px;
	color: var(--pm-color-orange, #E85D22);
	line-height: 1;
}

.pm-footer-cta__subtitle {
	/* font-family: var(--pm-font-header, 'A Love of Thunder', serif); */
	font-size: 16px;
	/* font-weight: 700;
	text-transform: uppercase; */
	color: var(--pm-color-white, #fff);
	line-height: 1.45;
	margin: 0;
	max-width: 420px;
}

/* ── Right column (form) ──────────────────────────────────────────────────── */

.pm-footer-cta__right {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 10;
}

.pm-footer-cta__form-heading {
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	margin: 0 0 1rem;
	opacity: 0.9;
}

/* ── CF7 form reset ───────────────────────────────────────────────────────── */

.pm-footer-cta__right .wpcf7 {
	margin: 0;
}

.pm-footer-cta__right .wpcf7-form {
	display: block;
}

/* Remove CF7's default paragraph spacing between fields */
.pm-footer-cta__right .wpcf7-form p {
	margin: 0;
}

/* "You are interested in:" paragraph */
.pm-footer-cta__right .wpcf7-form p:has(> .wpcf7-radio) {
	margin-top: 1.25rem;
}

.pm-footer-cta__right .wpcf7-form p:not(:has(> .wpcf7-form-control)) {
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	margin-bottom: 0.75rem;
	opacity: 0.9;
}

/* ── Two-column row (name + phone) ────────────────────────────────────────── */

.pm-footer-cta__right .pm-fcta-row {
	display: flex;
	gap: 0.75rem;
}

.pm-footer-cta__right .pm-fcta-row p {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
}

/* ── CF7 text / email / tel / textarea inputs ─────────────────────────────── */

.pm-footer-cta__right .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 0.75rem;
}

.pm-footer-cta__right .wpcf7-form-control.wpcf7-text,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-email,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-tel {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	outline: none;
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	transition: border-color 200ms;
	box-sizing: border-box;
}

.pm-footer-cta__right .wpcf7-form-control.wpcf7-text:focus,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-email:focus,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-tel:focus {
	border-color: rgba(255, 255, 255, 0.65);
}

.pm-footer-cta__right .wpcf7-form-control.wpcf7-text::placeholder,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-email::placeholder,
.pm-footer-cta__right .wpcf7-form-control.wpcf7-tel::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

/* ── Textarea ─────────────────────────────────────────────────────────────── */

.pm-footer-cta__right .wpcf7-form-control.wpcf7-textarea {
	display: block;
	width: 100%;
	min-height: calc(5 * 1.5rem + 2 * 0.9rem);
	padding: 0.9rem 1rem;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	outline: none;
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	font-family: inherit;
	line-height: 1.5;
	resize: vertical;
	transition: border-color 200ms;
	box-sizing: border-box;
}

.pm-footer-cta__right .wpcf7-form-control.wpcf7-textarea:focus {
	border-color: rgba(255, 255, 255, 0.65);
}

.pm-footer-cta__right .wpcf7-form-control.wpcf7-textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

/* ── CF7 labels — only plain (non-list) labels get the block treatment ─────── */

.pm-footer-cta__right .wpcf7-form p>label {
	display: block;
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	margin-bottom: 0.5rem;
	opacity: 0.9;
}

/* ── CF7 radio group — styled as pill toggles ────────────────────────────── */

/* Force the radio span (which is inline by default) into a flex row */
.pm-footer-cta__right .wpcf7-form-control.wpcf7-radio {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 1rem 0;
}

/* Reset CF7's default inline-block + 1em left margin; add click cursor */
.pm-footer-cta__right .wpcf7-radio .wpcf7-list-item {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	position: relative;
	cursor: pointer;
}

/* Hide native radio dot — no <label> wrapper exists so we target the input directly */
.pm-footer-cta__right .wpcf7-radio .wpcf7-list-item input[type="radio"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	pointer-events: none;
}

/* Pill button — the visible element */
.pm-footer-cta__right .wpcf7-radio .wpcf7-list-item-label {
	display: inline-block;
	padding: 1.25rem;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	color: var(--pm-color-white, #fff);
	font-size: 0.9rem;
	line-height: 1.4;
	transition: border-color 200ms, background-color 200ms;
	user-select: none;
}

/* Hover — on the item span, not a label */
.pm-footer-cta__right .wpcf7-radio .wpcf7-list-item:hover .wpcf7-list-item-label {
	border-color: rgba(255, 255, 255, 0.65);
}

/* Checked — input and .wpcf7-list-item-label are direct siblings inside .wpcf7-list-item */
.pm-footer-cta__right .wpcf7-radio .wpcf7-list-item input[type="radio"]:checked+.wpcf7-list-item-label {
	border-color: var(--pm-color-white, #fff);
	background-color: rgba(255, 255, 255, 0.12);
}

/* ── CF7 submit button ────────────────────────────────────────────────────── */

.pm-footer-cta__right .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2.25rem;
	margin-top: 1.5rem;
	background-color: var(--pm-color-primary-teal, #1A7A6E);
	color: var(--pm-color-white, #fff);
	font-family: var(--pm-font-header, 'A Love of Thunder', serif);
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: opacity 200ms;
	appearance: none;
	-webkit-appearance: none;
}

.pm-footer-cta__right .wpcf7-submit:hover {
	opacity: 0.85;
}

/* ── CF7 spinner (sits next to the submit button) ─────────────────────────── */

.pm-footer-cta__right .wpcf7-spinner {
	vertical-align: middle;
	margin-left: 0.5rem;
}

/* ── CF7 validation messages ──────────────────────────────────────────────── */

.pm-footer-cta__right .wpcf7-not-valid-tip {
	color: #FF9A9A;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: block;
}

.pm-footer-cta__right .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.625rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	color: var(--pm-color-white, #fff);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Editor placeholder (no shortcode set) ────────────────────────────────── */

.pm-footer-cta__cf7-notice {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.875rem;
	padding: 2rem;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	text-align: center;
	margin: 0;
}

/* ── Social media buttons ─────────────────────────────────────────────────── */
.pm-footer-cta__social-text {
	color: var(--pm-color-white, #fff);
	font-size: 1rem;
	margin: 2rem 0 0.75rem;
	opacity: 0.9;
}

.pm-footer-cta__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.pm-footer-cta__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: var(--pm-color-white, #fff);
	background-color: white;
	text-decoration: none;
	transition:
		border-color 250ms var(--pm-ease, cubic-bezier(.4, 0, .2, 1)),
		background-color 250ms var(--pm-ease, cubic-bezier(.4, 0, .2, 1)),
		transform 250ms var(--pm-ease, cubic-bezier(.4, 0, .2, 1));
	flex-shrink: 0;
}

.pm-footer-cta__social-btn:hover {
	border-color: var(--pm-color-white, #fff);
	background-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-3px);
	color: var(--pm-color-white, #fff);
}

.pm-footer-cta__social-btn:active {
	transform: translateY(-1px);
}

.pm-footer-cta__social-btn i,
.pm-footer-cta__social-btn svg {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
	display: block;
}

/* ── Decorative SVG shapes ────────────────────────────────────────────────── */

.pm-footer-cta__shape {
	position: absolute;
	pointer-events: none;
	user-select: none;
	display: block;
}

/* Bottom-left */
.pm-footer-cta__shape--1 {
	bottom: 0;
	left: 0;
	z-index: 1;
	max-width: 40% !important;
}

/* Bottom-right (back layer) */
.pm-footer-cta__shape--2 {
	bottom: 0;
	right: 0;
	z-index: 2;
	max-width: 60% !important;
	/* Prevent shape from overflowing on smaller screens */
}

/* Bottom-right (front layer — higher z-index than shape-2) */
.pm-footer-cta__shape--3 {
	bottom: 0;
	right: 0;
	z-index: 3;
	max-width: 40% !important;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.pm-footer-cta {
		flex-direction: column;
		padding: 3rem clamp(1.25rem, 5vw, 2rem);
		gap: 2.5rem;
	}

	.pm-footer-cta__title,
	.pm-footer-cta__title-graffiti {
		font-size: clamp(40px, 10vw, 62px);
	}

	.pm-footer-cta__subtitle {
		max-width: 100%;
	}

	/* Hide bottom-left shape on mobile */
	.pm-footer-cta__shape--1 {
		display: none;
	}

	/* Stack name + phone vertically on mobile */
	.pm-footer-cta__right .pm-fcta-row {
		flex-direction: column;
		gap: 0;
	}
}