/* ============================================================
   Kasirye Labs — Services Page v2.0
   ============================================================ */

.kl-services-wrap {
	font-family: 'Jost', sans-serif;
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px 0 70px;
}

/* ── Section ─────────────────────────────────────────────────── */
.kl-services-section { margin-bottom: 70px; }

.kl-services-section-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.kl-services-section-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #fff8e1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #ffbe00;
}

.kl-services-section-meta { flex: 1; }

.kl-services-section-title {
	font-family: 'Jost', sans-serif !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #1a2035 !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: none !important;
}

.kl-services-section-desc {
	font-size: 13px;
	color: #888;
	margin: 0;
	line-height: 1.5;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.kl-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) { .kl-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kl-services-grid { grid-template-columns: 1fr; } }

/* ── Card base ─────────────────────────────────────────────────── */
.kl-service-card {
	position: relative;
	border-radius: 16px;
	background: #fff;
	border: 1.5px solid #eee;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s, transform 0.25s;
	overflow: hidden;
}

.kl-service-card:hover {
	box-shadow: 0 12px 40px rgba(0,0,0,0.10);
	transform: translateY(-4px);
}

/* Featured card — dark */
.kl-service-card--featured {
	background: #1a2035;
	border-color: #1a2035;
	box-shadow: 0 8px 32px rgba(26,32,53,0.22);
}

.kl-service-card--featured:hover {
	box-shadow: 0 16px 48px rgba(26,32,53,0.32);
	transform: translateY(-4px);
}

/* Badge */
.kl-service-badge {
	display: block;
	background: #ffbe00;
	color: #111;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
	padding: 7px 0;
}

/* Card body */
.kl-service-card-inner {
	padding: 26px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Name */
.kl-service-name {
	font-family: 'Jost', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1a2035;
	margin: 0 0 20px;
	line-height: 1.3;
}
.kl-service-card--featured .kl-service-name { color: #fff; }

/* Price */
.kl-service-price {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 24px;
	line-height: 1;
}

.kl-service-currency {
	font-size: 13px;
	font-weight: 700;
	color: #aaa;
	margin-top: 6px;
}
.kl-service-card--featured .kl-service-currency { color: rgba(255,255,255,0.5); }

.kl-service-amount {
	font-size: 36px;
	font-weight: 800;
	color: #1a2035;
	letter-spacing: -1px;
}
.kl-service-card--featured .kl-service-amount { color: #ffbe00; }

/* Divider */
.kl-service-divider {
	height: 1px;
	background: #f0f0f0;
	margin: 0 0 20px;
}
.kl-service-card--featured .kl-service-divider { background: rgba(255,255,255,0.10); }

/* Features */
.kl-service-features {
	list-style: none !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	flex: 1;
}

.kl-service-features li {
	font-size: 13px;
	color: #555;
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.4;
}
.kl-service-features li::before { display: none !important; }
.kl-service-card--featured .kl-service-features li { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.07); }
.kl-service-features li:last-child { border-bottom: none; }

.kl-service-feat-check {
	width: 18px;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff3c4;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
	flex-shrink: 0;
}
.kl-service-card--featured .kl-service-feat-check { background: rgba(255,190,0,0.18); }
.kl-service-feat-check svg { color: #c8930a; }
.kl-service-card--featured .kl-service-feat-check svg { color: #ffbe00; }

/* CTA */
.kl-service-btn {
	width: 100%;
	height: 46px;
	background: #ffbe00;
	color: #111;
	border: none;
	border-radius: 10px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}
.kl-service-btn:hover { background: #e6ab00; }
.kl-service-card--featured .kl-service-btn {
	background: #fff;
	color: #1a2035;
}
.kl-service-card--featured .kl-service-btn:hover { background: #f0f0f0; }

/* ── Payment Modal ─────────────────────────────────────────────── */
.kl-pay-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99990;
	align-items: center;
	justify-content: center;
}
.kl-pay-modal.kl-open { display: flex; }

.kl-pay-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.65);
}

.kl-pay-modal-box {
	position: relative;
	z-index: 1;
	width: 540px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 28px 72px rgba(0,0,0,0.28);
}

.kl-pay-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #f0f0f0;
	color: #888;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}
.kl-pay-modal-close:hover { background: #fee2e2; color: #e8461e; }

/* Step 1 form */
.kl-pay-step { overflow-y: auto; }

.kl-pay-modal-header {
	padding: 28px 28px 18px;
	border-bottom: 1px solid #f0f0f0;
	background: #fafafa;
}

.kl-pay-modal-pkg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: #fff8e1;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #92600a;
	margin-bottom: 10px;
}

.kl-pay-modal-title {
	font-family: 'Jost', sans-serif !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #1a2035 !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: none !important;
}

.kl-pay-modal-sub {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* Form */
.kl-pay-form { padding: 22px 28px 28px; }

.kl-pay-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 480px) { .kl-pay-form-grid { grid-template-columns: 1fr; } }

.kl-pay-form-row { margin-bottom: 12px; }
.kl-pay-form-row.kl-full { grid-column: 1 / -1; }

.kl-pay-form-row label {
	display: block;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 5px;
}
.kl-pay-form-row label span { color: #e8461e; }

.kl-pay-form-row input,
.kl-pay-form-row textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	color: #1a2035;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	background: #fff;
}
.kl-pay-form-row input:focus,
.kl-pay-form-row textarea:focus { border-color: #ffbe00; }
.kl-pay-form-row textarea { resize: vertical; min-height: 80px; }

/* Deposit toggle */
.kl-pay-deposit-wrap {
	margin-bottom: 16px;
	padding: 16px;
	background: #f8f9ff;
	border: 1.5px solid #e8eaf0;
	border-radius: 10px;
}

.kl-pay-deposit-label {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #888;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.kl-pay-deposit-opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.kl-pay-deposit-opt {
	position: relative;
}

.kl-pay-deposit-opt input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.kl-pay-deposit-opt label {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 10px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	text-transform: none;
	letter-spacing: 0;
	color: #1a2035;
	text-align: center;
	font-size: 12px;
	margin: 0;
}

.kl-pay-deposit-opt input:checked + label {
	border-color: #ffbe00;
	background: #fff8e1;
}

.kl-pay-deposit-opt-amount {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #1a2035;
	display: block;
	margin-bottom: 2px;
	font-family: 'Jost', sans-serif;
}

.kl-pay-deposit-opt-desc {
	font-size: 11px;
	color: #888;
	display: block;
}

.kl-pay-balance-note {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fff3c4;
	border-radius: 6px;
	font-size: 12px;
	color: #92600a;
	display: none;
}
.kl-pay-balance-note.kl-visible { display: block; }

/* Charge summary box */
.kl-pay-charge-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #1a2035;
	border-radius: 10px;
	margin-bottom: 14px;
}

.kl-pay-charge-label {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	color: rgba(255,255,255,0.6);
	font-weight: 600;
}

.kl-pay-charge-amount {
	font-family: 'Jost', sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: #ffbe00;
}

/* Error */
.kl-pay-form-error {
	display: none;
	margin-bottom: 12px;
	padding: 10px 14px;
	background: #fee2e2;
	border-radius: 8px;
	font-size: 13px;
	color: #c53030;
	font-family: 'Jost', sans-serif;
}
.kl-pay-form-error.kl-active { display: block; }

/* Submit */
.kl-pay-submit-btn {
	width: 100%;
	height: 50px;
	background: #ffbe00;
	color: #111;
	border: none;
	border-radius: 10px;
	font-family: 'Jost', sans-serif;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.kl-pay-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.kl-pay-submit-btn:hover:not(:disabled) { background: #e6ab00; }

.kl-pay-submit-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0,0,0,0.15);
	border-top-color: #111;
	border-radius: 50%;
	animation: kl-pay-spin 0.6s linear infinite;
}
@keyframes kl-pay-spin { to { transform: rotate(360deg); } }

/* Step 2 — iframe */
.kl-pay-iframe-header {
	padding: 18px 24px 14px;
	border-bottom: 1px solid #f0f0f0;
	background: #fafafa;
}
.kl-pay-iframe-hint { font-size: 13px; color: #888; margin: 4px 0 0; font-family: 'Jost', sans-serif; }

.kl-pay-iframe-wrap {
	position: relative;
	flex: 1;
	min-height: 500px;
}

.kl-pay-iframe-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #fff;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	color: #888;
}
.kl-pay-iframe-loader.kl-hidden { display: none; }

.kl-pay-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #f0f0f0;
	border-top-color: #ffbe00;
	border-radius: 50%;
	animation: kl-pay-spin 0.7s linear infinite;
}

#kl-pesapal-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	opacity: 0;
	transition: opacity 0.3s;
}
#kl-pesapal-iframe.kl-loaded { opacity: 1; }

/* Steps 3 & 4 */
.kl-pay-success, .kl-pay-failed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 52px 28px;
	text-align: center;
	font-family: 'Jost', sans-serif;
}

.kl-pay-success-icon, .kl-pay-failed-icon {
	width: 68px;
	height: 68px;
	margin-bottom: 20px;
}

.kl-pay-success h3, .kl-pay-failed h3 {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #1a2035 !important;
	margin: 0 0 10px !important;
	border: none !important;
	padding: 0 !important;
}

.kl-pay-success p, .kl-pay-failed p {
	font-size: 14px;
	color: #666;
	margin: 0 0 28px;
	max-width: 340px;
}

.kl-pay-done-btn, .kl-pay-retry-btn {
	height: 46px;
	padding: 0 36px;
	border: none;
	border-radius: 10px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: opacity 0.15s;
}
.kl-pay-done-btn:hover, .kl-pay-retry-btn:hover { opacity: 0.85; }
.kl-pay-done-btn  { background: #22c55e; color: #fff; }
.kl-pay-retry-btn { background: #1a2035; color: #fff; }
