/* ------------------------------------------------------------------
   KK Pesach Prizedraw Page
   Matches old site: hero image, logo carousel, entry form, dates
   Enhanced premium styling with warm cream/gold palette
   ------------------------------------------------------------------ */

.kk-prizedraw {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #333;
	line-height: 1.7;
	background: #faf2ea;
}

/* ============ HERO BANNER ============ */

.kk-pd-hero {
	width: 100%;
	aspect-ratio: 1920 / 526;
	background-size: contain;
	background-position: top center;
	background-repeat: no-repeat;
	background-color: #faf2ea;
}

/* Fallback when no featured image */
.kk-pd-hero--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	aspect-ratio: auto;
	background: linear-gradient(135deg, #2a1f14 0%, #3d2e1e 40%, #5a4630 100%);
	text-align: center;
}

.kk-pd-hero__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 700;
	color: #C5A355;
	margin: 0 0 16px;
	line-height: 1.15;
	font-style: italic;
}

.kk-pd-hero__desc {
	font-size: 16px;
	color: rgba(255,255,255,0.85);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.65;
}

/* ============ LOGO CAROUSEL ============ */

.kk-pd-logos {
	padding: 20px 0;
	background: #fff;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.kk-pd-logos__track {
	display: flex;
	align-items: center;
	gap: 0;
	white-space: nowrap;
	animation: kk-pd-logo-scroll 25s linear infinite;
	width: max-content;
}

.kk-pd-logos__track:hover {
	animation-play-state: paused;
}

@keyframes kk-pd-logo-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.kk-pd-logos__item {
	flex-shrink: 0;
	width: 150px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
	transition: opacity 0.3s;
}

.kk-pd-logos__item:hover {
	opacity: 1;
}

.kk-pd-logos__item img {
	max-height: 70px;
	max-width: 140px;
	object-fit: contain;
}

/* ============ FORM SECTION ============ */

.kk-pd-form-section {
	padding: 48px 0 64px;
	background: #faf2ea;
}

.kk-pd-form-section__heading {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 700;
	color: #5a4630;
	text-align: center;
	margin: 0 0 32px;
	letter-spacing: -0.01em;
}

.kk-pd-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	background: #fdf8f2;
	border: 1px solid #e0d5c5;
	border-radius: 14px;
	padding: 40px 36px 32px;
	box-shadow: 0 4px 24px rgba(90, 70, 48, 0.06);
}

/* ── Formidable form styling ── */
.kk-prizedraw .frm_forms .frm_form_field input[type="text"],
.kk-prizedraw .frm_forms .frm_form_field input[type="email"],
.kk-prizedraw .frm_forms .frm_form_field input[type="tel"],
.kk-prizedraw .frm_forms .frm_form_field input[type="number"],
.kk-prizedraw .frm_forms .frm_form_field input[type="url"],
.kk-prizedraw .frm_forms .frm_form_field select,
.kk-prizedraw .frm_forms .frm_form_field textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.kk-prizedraw .frm_forms .frm_form_field input:focus,
.kk-prizedraw .frm_forms .frm_form_field select:focus,
.kk-prizedraw .frm_forms .frm_form_field textarea:focus {
	outline: none;
	border-color: #C5A355;
	box-shadow: 0 0 0 3px rgba(197,163,85,0.12);
}

.kk-prizedraw .frm_forms .frm_form_field label {
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #5a4630;
	margin-bottom: 6px;
}

/* Radio buttons (loyalty holder question) */
.kk-prizedraw .frm_forms .frm_radio label {
	font-size: 14px;
	color: #444;
}

/* Receipt helper link */
.kk-prizedraw .frm_forms a {
	color: #a42321;
	text-decoration: underline;
	font-size: 13px;
}

.kk-prizedraw .frm_forms a:hover {
	color: #7a1918;
}

/* Submit button — red to match old site */
.kk-prizedraw .frm_forms .frm_submit button,
.kk-prizedraw .frm_forms .frm_submit input[type="submit"] {
	display: inline-block;
	width: 100%;
	padding: 15px 36px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #a42321;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.15s ease;
}

.kk-prizedraw .frm_forms .frm_submit button:hover,
.kk-prizedraw .frm_forms .frm_submit input[type="submit"]:hover {
	background: #8a1d1b;
	transform: translateY(-1px);
}

/* Checkbox styling */
.kk-prizedraw .frm_forms .frm_checkbox label {
	font-size: 13px;
	color: #555;
}

/* ============ T&Cs SUMMARY BOX ============ */

.kk-pd-tcs-summary {
	max-width: 640px;
	margin: 28px auto 0;
	background: #fff;
	border: 1px solid #e8dfd2;
	border-left: 4px solid #a42321;
	border-radius: 0 12px 12px 0;
	padding: 22px 28px 18px;
}

.kk-pd-tcs-summary__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 16px;
	font-weight: 700;
	color: #a42321;
	margin: 0 0 12px;
}

.kk-pd-tcs-summary ul {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.kk-pd-tcs-summary ul li {
	position: relative;
	padding-left: 18px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #555;
	margin-bottom: 6px;
}

.kk-pd-tcs-summary ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	background: #C5A355;
	border-radius: 50%;
}

.kk-pd-tcs-summary ul li strong {
	color: #5a4630;
}

.kk-pd-tcs-summary__link {
	margin: 0;
	font-size: 13px;
}

.kk-pd-tcs-summary__link a {
	color: #a42321;
	font-weight: 600;
	text-decoration: underline;
}

.kk-pd-tcs-summary__link a:hover {
	color: #7a1918;
}

/* ============ RECEIPT NUMBER — CREDIT CARD STYLE ============ */

.kk-receipt {
	display: flex;
	align-items: center;
	gap: 6px;
}

.kk-receipt__seg {
	width: 25% !important;
	max-width: 110px;
	padding: 12px 8px !important;
	font-family: 'Courier New', Courier, monospace !important;
	font-size: 17px !important;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-align: center;
	text-transform: uppercase;
	color: #333;
	background: #fff;
	border: 1.5px solid #ddd !important;
	border-radius: 8px !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.kk-receipt__seg:focus {
	outline: none;
	border-color: #C5A355 !important;
	box-shadow: 0 0 0 3px rgba(197,163,85,0.15) !important;
}

.kk-receipt__seg--locked {
	background: #f5f0e8 !important;
	color: #b0a48e !important;
	border-color: #e0d5c5 !important;
	cursor: not-allowed;
	user-select: none;
}

.kk-receipt__sep {
	font-size: 18px;
	font-weight: 600;
	color: #ccc;
	line-height: 1;
	flex-shrink: 0;
}

/* ============ DATES SECTION ============ */

.kk-pd-dates {
	max-width: 640px;
	margin: 32px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background: #fff;
	border: 1px solid #e8dfd2;
	border-radius: 12px;
	padding: 24px 32px;
	box-shadow: 0 2px 12px rgba(90,70,48,0.04);
}

.kk-pd-dates__item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #5a4630;
}

.kk-pd-dates__item svg {
	flex-shrink: 0;
	color: #C5A355;
}

.kk-pd-dates__label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
	margin-bottom: 2px;
}

.kk-pd-dates__item strong {
	font-size: 15px;
	font-weight: 600;
	color: #5a4630;
}

.kk-pd-dates__divider {
	width: 1px;
	height: 40px;
	background: #e0d5c5;
	flex-shrink: 0;
}

/* ============ T&Cs LINK ============ */

.kk-pd-tcs {
	text-align: center;
	margin: 20px 0 0;
	font-size: 13px;
}

.kk-pd-tcs a {
	color: #a42321;
	text-decoration: underline;
}

.kk-pd-tcs a:hover {
	color: #7a1918;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
	.kk-pd-hero {
		aspect-ratio: 1920 / 526;
	}

	.kk-pd-hero--fallback {
		min-height: 260px;
	}

	.kk-pd-logos__item {
		width: 100px;
		height: 60px;
	}

	.kk-pd-logos__item img {
		max-height: 50px;
		max-width: 90px;
	}

	.kk-pd-form-wrap {
		padding: 28px 22px 24px;
	}

	.kk-pd-dates {
		flex-direction: column;
		gap: 16px;
		padding: 20px 24px;
	}

	.kk-pd-dates__divider {
		width: 80%;
		height: 1px;
	}
}

@media (max-width: 480px) {
	.kk-pd-hero {
		aspect-ratio: auto;
		min-height: 180px;
	}
	.kk-pd-form-wrap {
		padding: 20px 16px 18px;
	}
	.kk-receipt__seg {
		font-size: 14px !important;
		padding: 10px 4px !important;
		max-width: none;
	}
	.kk-receipt {
		gap: 4px;
	}
	.kk-pd-dates {
		padding: 16px;
	}
	.kk-pd-logos__item {
		width: 80px;
		height: 48px;
	}
}
