/* ------------------------------------------------------------------
   KK Loyalty Card Page
   ------------------------------------------------------------------ */

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

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

.kk-loyalty-hero {
	position: relative;
	overflow: hidden;
	padding: 80px 0 60px;
}

.kk-loyalty-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #89a343 0%, #a8c34a 40%, #c9d98a 100%);
	z-index: 0;
}

.kk-loyalty-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.kk-loyalty-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.kk-loyalty-hero__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 20px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.kk-loyalty-hero__desc {
	font-size: 16px;
	color: rgba(255,255,255,0.9);
	margin: 0 0 8px;
	max-width: 380px;
	line-height: 1.6;
}

.kk-loyalty-hero__note {
	font-size: 14px;
	color: rgba(255,255,255,0.7);
	margin: 0 0 24px;
}

/* Card image */
.kk-loyalty-hero__card {
	display: flex;
	justify-content: center;
}

.kk-loyalty-hero__card-img {
	max-width: 380px;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow:
		0 20px 60px rgba(0,0,0,0.3),
		0 4px 16px rgba(0,0,0,0.2);
	transform: rotateY(-5deg) rotateX(3deg);
	transition: transform 0.4s ease;
}

.kk-loyalty-hero__card-img:hover {
	transform: rotateY(0) rotateX(0);
}

/* ============ SCAN & SAVE BANNER ============ */

.kk-loyalty-banner {
	background: #fafaf8;
	padding: 40px 0;
	border-bottom: 1px solid #e8e8e4;
}

.kk-loyalty-banner__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 700px;
	margin: 0 auto;
}

.kk-loyalty-banner__img {
	flex-shrink: 0;
	width: 120px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.kk-loyalty-banner__icon {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #89a343;
	color: #fff;
	border-radius: 16px;
}

.kk-loyalty-banner__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 700;
	color: #5a4630;
	margin: 0 0 6px;
}

.kk-loyalty-banner__text p {
	font-size: 15px;
	color: #6b6b6b;
	margin: 0;
	line-height: 1.6;
}

/* ============ HOW IT WORKS — STEPS ============ */

.kk-loyalty-steps {
	padding: 60px 0 40px;
	background: #fff;
}

.kk-loyalty-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 40px;
}

.kk-loyalty-step {
	position: relative;
	text-align: center;
}

.kk-loyalty-step__num {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: #5a4630;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(90,70,48,0.3);
}

.kk-loyalty-step__card {
	background: #89a343;
	border-radius: 16px;
	padding: 48px 28px 32px;
	color: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kk-loyalty-step__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(137,163,67,0.25);
}

.kk-loyalty-step__icon {
	margin-bottom: 4px;
	opacity: 0.9;
}

.kk-loyalty-step__card h3 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 28px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0.04em;
}

.kk-loyalty-step__card p {
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
	opacity: 0.92;
	max-width: 240px;
}

.kk-loyalty-steps__footnote {
	text-align: center;
	font-size: 13px;
	color: #999;
	margin-top: 28px;
	font-style: italic;
}

/* ============ FAQS ============ */

.kk-loyalty-faq {
	padding: 60px 0;
	background: #fafaf8;
}

.kk-loyalty-faq__list {
	max-width: 780px;
	margin: 32px auto 0;
}

.kk-loyalty-faq__item {
	border-bottom: 1px solid #e8e8e4;
}

.kk-loyalty-faq__item:first-child {
	border-top: 1px solid #e8e8e4;
}

.kk-loyalty-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 8px;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	list-style: none;
	transition: color 0.2s;
}

.kk-loyalty-faq__question::-webkit-details-marker {
	display: none;
}

.kk-loyalty-faq__question::marker {
	display: none;
	content: '';
}

.kk-loyalty-faq__question:hover {
	color: #89a343;
}

.kk-loyalty-faq__chevron {
	flex-shrink: 0;
	transition: transform 0.25s ease;
	color: #999;
}

.kk-loyalty-faq__item[open] .kk-loyalty-faq__chevron {
	transform: rotate(180deg);
	color: #89a343;
}

.kk-loyalty-faq__answer {
	padding: 0 8px 20px;
}

.kk-loyalty-faq__answer p {
	font-size: 15px;
	color: #6b6b6b;
	margin: 0;
	line-height: 1.65;
}

.kk-loyalty-faq__answer a {
	color: #89a343;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.kk-loyalty-faq__answer a:hover {
	color: #6b8232;
}

/* ============ COMPACT HERO (Lost Card) ============ */

.kk-loyalty-hero--compact {
	padding: 50px 0 40px;
}

.kk-loyalty-hero__inner--center {
	grid-template-columns: 1fr;
	text-align: center;
}

/* ============ SIGN UP FORM ============ */

.kk-loyalty-signup {
	padding: 60px 0 80px;
	background: #fff;
}

.kk-loyalty-signup__lost {
	text-align: center;
	font-size: 14px;
	color: #6b6b6b;
	margin: -8px 0 32px;
}

.kk-loyalty-signup__lost a {
	color: #89a343;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
}

.kk-loyalty-form-wrap {
	max-width: 720px;
	margin: 0 auto;
}

.kk-loyalty-form__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 26px;
	font-weight: 700;
	color: #5a4630;
	text-align: center;
	margin: 0 0 28px;
}

.kk-loyalty-form__row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.kk-loyalty-form__row--1 { grid-template-columns: 1fr; }
.kk-loyalty-form__row--2 { grid-template-columns: 1fr 1fr; }
.kk-loyalty-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }

.kk-loyalty-form__field input,
.kk-loyalty-form__field select {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.kk-loyalty-form__field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

.kk-loyalty-form__field input:focus,
.kk-loyalty-form__field select:focus {
	outline: none;
	border-color: #89a343;
	box-shadow: 0 0 0 3px rgba(137,163,67,0.1);
}

.kk-loyalty-form__field input::placeholder {
	color: #999;
}

.kk-loyalty-form__newsletter {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0 8px;
	font-size: 14px;
	color: #555;
}

.kk-loyalty-form__newsletter label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-weight: 500;
}

.kk-loyalty-form__newsletter input[type="radio"] {
	accent-color: #89a343;
	width: 16px;
	height: 16px;
}

.kk-loyalty-form__submit {
	text-align: center;
	margin-top: 28px;
}

.kk-loyalty-form__submit .kk-btn {
	min-width: 220px;
	font-size: 15px;
	padding: 14px 36px;
}

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

@media (max-width: 900px) {
	.kk-loyalty-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 40px;
	}

	.kk-loyalty-hero__desc {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.kk-loyalty-hero__card-img {
		max-width: 280px;
		transform: none;
	}
}

@media (max-width: 768px) {
	.kk-loyalty-hero {
		padding: 50px 0 40px;
	}

	.kk-loyalty-steps__grid {
		grid-template-columns: 1fr;
		max-width: 340px;
		margin-left: auto;
		margin-right: auto;
	}

	.kk-loyalty-banner__inner {
		flex-direction: column;
		text-align: center;
	}

	.kk-loyalty-form__row--3 {
		grid-template-columns: 1fr;
	}

	.kk-loyalty-form__row--2 {
		grid-template-columns: 1fr;
	}

	.kk-loyalty-form__newsletter {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.kk-loyalty-hero__title {
		font-size: 32px;
	}

	.kk-loyalty-hero__card-img {
		max-width: 220px;
	}
}
