/* ---------------------------------------------------------------------
   Discount / Special Offer — card badge + single-page banner.
--------------------------------------------------------------------- */

/* Small ribbon-style badge on listing cards, right next to the AD/SOLD
   ribbon (both sit inside the same relatively-positioned card block). */
.gpc-discount-badge-card {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
	color: #1a1a2e;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: -.1px;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(251,133,0,.45), 0 1px 3px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.35);
	border: 1px solid rgba(255,255,255,.3);
	animation: gpcDiscountPulse 1.8s ease-in-out infinite;
}
.gpc-discount-badge-icon { font-size: 12px; line-height: 1; }

@keyframes gpcDiscountPulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.06); }
}

/* Full-width banner on the single listing page — deliberately the
   loudest, most "inviting" element on the page, sitting above even
   the Book Now / Schedule Inspection widget. */
.gpc-discount-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 18px;
	padding: 18px 20px;
	border-radius: 16px;
	background: linear-gradient(120deg, #ff9a3c 0%, #ff6b6b 45%, #e0245e 100%);
	box-shadow: 0 10px 30px rgba(224,36,94,.28), inset 0 1px 0 rgba(255,255,255,.25);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.gpc-discount-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.25), transparent 45%);
	pointer-events: none;
}
.gpc-discount-banner-icon {
	font-size: 34px;
	line-height: 1;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
	animation: gpcDiscountBounce 2.2s ease-in-out infinite;
}
@keyframes gpcDiscountBounce {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-4px) rotate(-6deg); }
}
.gpc-discount-banner-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 220px;
	min-width: 0;
}
.gpc-discount-banner-badge {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.3px;
	text-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.gpc-discount-banner-label {
	font-size: 14.5px;
	font-weight: 600;
	opacity: .96;
	line-height: 1.35;
}
.gpc-discount-claim-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: #c2185b;
	border: none;
	font-size: 14px;
	font-weight: 800;
	padding: 11px 18px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0,0,0,.18);
	transition: transform .15s ease, box-shadow .15s ease;
}
.gpc-discount-claim-btn:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 6px 16px rgba(0,0,0,.24);
}
.gpc-discount-claim-btn:disabled { opacity: .7; cursor: default; transform: none; }
.gpc-discount-claim-icon { font-size: 15px; }
.gpc-discount-claim-msg {
	flex-basis: 100%;
	font-size: 13.5px;
	font-weight: 600;
	background: rgba(255,255,255,.18);
	border-radius: 10px;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: padding .2s ease, max-height .2s ease;
}
.gpc-discount-claim-msg.is-visible {
	padding: 9px 12px;
	max-height: 100px;
}

/* ---- Frontend submission form controls ---- */
.gpc-discount-box {
	background: #fff8ef;
	border: 1px solid #ffdca8;
	border-radius: 12px;
	padding: 14px;
	margin: 0 0 16px;
}
.gpc-discount-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #7c4a03;
	cursor: pointer;
}
.gpc-discount-toggle input { width: 17px; height: 17px; }
#gpcDiscountFields {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gpc-discount-row {
	display: flex;
	gap: 10px;
}
.gpc-discount-row .gpc-submit-input { flex: 1; }

@media (max-width: 480px) {
	.gpc-discount-banner { padding: 14px; }
	.gpc-discount-banner-icon { font-size: 28px; }
	.gpc-discount-banner-badge { font-size: 19px; }
	.gpc-discount-claim-btn { width: 100%; justify-content: center; }
}
