/* KKT Campaign Photo page (/campaign-photo/). Loaded only on that page. */
.kkt-cp-page { --cp-g: #14532D; --cp-d: #0B3D24; --cp-gold: #D4AF37; --cp-cream: #F8F5EA; background: var(--cp-cream); }

/* hero */
.kkt-cp-hero { background: radial-gradient(120% 140% at 85% 0%, #1f6b3a 0%, var(--cp-g) 45%, var(--cp-d) 100%); color: #fff; padding: 56px 0 46px; text-align: center; position: relative; overflow: hidden; }
.kkt-cp-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, #a8781c, #f6dc8e, #c9962d, #f2d27c, #a8781c); }
.kkt-cp-eye { display: inline-block; margin: 0 0 14px; padding: 6px 16px; border-radius: 99px; background: rgba(212, 175, 55, .18); border: 1px solid rgba(212, 175, 55, .5); color: #f6dc8e; font-weight: 700; font-size: .95rem; }
.kkt-cp-h1 { margin: 0 0 12px; color: #fff; }
.kkt-cp-h1 .kkt-en { display: block; font: 800 clamp(2rem, 1.3rem + 3vw, 3.4rem)/1.1 var(--kkt-serif, Fraunces, Georgia, serif); }
.kkt-cp-h1 .kkt-urx { display: block; font: 700 clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem)/2 var(--kkt-urdu, "Noto Nastaliq Urdu", serif); color: #f6dc8e; }
.kkt-cp-lead { max-width: 720px; margin: 0 auto 22px; color: rgba(255, 255, 255, .9); font-size: 1.1rem; line-height: 1.7; }
.kkt-cp-path { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.kkt-cp-path li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 700; }
html:not(.kkt-l-en) .kkt-cp-path li { padding: 8px 8px 8px 16px; }
.kkt-cp-path b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cp-gold); color: var(--cp-d); font: 800 .95rem/1 Inter, sans-serif; }

/* sections */
.kkt-cp-sec { padding: 46px 0; }
.kkt-cp-sec--sand { background: #efe9d6; }
.kkt-cp-sec--green { background: linear-gradient(160deg, var(--cp-g), var(--cp-d)); color: #fff; }
.kkt-cp-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--cp-d); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.kkt-cp-h2 i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--cp-g); color: #fff; font: 800 1.2rem/1 Inter, sans-serif; font-style: normal; box-shadow: 0 0 0 4px rgba(212, 175, 55, .55); }
.kkt-cp-h2--light { color: #fff; }

/* buttons */
.kkt-cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.3; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.kkt-cp-btn:hover { transform: translateY(-1px); }
.kkt-cp-btn:focus-visible, .kkt-cp-ib:focus-visible, .kkt-cp-tpl:focus-visible, .kkt-cp-fmt button:focus-visible { outline: 3px solid var(--cp-gold); outline-offset: 3px; }
.kkt-cp-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.kkt-cp-btn--gold { background: linear-gradient(180deg, #f2d27c, var(--cp-gold) 55%, #b98a24); color: var(--cp-d); box-shadow: 0 6px 18px rgba(185, 138, 36, .35); }
.kkt-cp-btn--ghost { background: #fff; border-color: var(--cp-g); color: var(--cp-g); }
.kkt-cp-btn--light { background: #fff; color: var(--cp-d); }
.kkt-cp-btn--wa, .kkt-cp-btn--wa:visited, .kkt-cp-btn--wa:hover { background: #25D366; color: #06371b !important; }
.kkt-cp-btn--fb, .kkt-cp-btn--fb:visited, .kkt-cp-btn--fb:hover { background: #1877F2; color: #fff !important; }
.kkt-cp-btn--ghostlight { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }

/* upload */
.kkt-cp-up { max-width: 820px; }
.kkt-cp-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border: 3px dashed rgba(20, 83, 45, .45); border-radius: 22px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.kkt-cp-drop:hover, .kkt-cp-drop.is-over { border-color: var(--cp-gold); background: #fffbea; }
.kkt-cp-drop[hidden] { display: none; }
.kkt-cp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kkt-cp-drop__ic { font-size: 3.2rem; line-height: 1; }
.kkt-cp-drop__t { font-size: 1.2rem; color: var(--cp-d); }
.kkt-cp-drop__s { color: #5b6b5f; max-width: 520px; line-height: 1.7; }
.kkt-cp-drop .kkt-cp-btn { margin-top: 6px; pointer-events: none; }
.kkt-cp-orig { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(11, 61, 36, .08); }
.kkt-cp-orig[hidden] { display: none; }
.kkt-cp-orig img { width: 170px; height: 210px; object-fit: cover; border-radius: 14px; background: #eee; }
.kkt-cp-orig__side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.kkt-cp-status { margin: 0; font-weight: 700; line-height: 1.7; }
.kkt-cp-status.is-ok { color: #1b6b35; }
.kkt-cp-status.is-warn { color: #8a5a00; }
.kkt-cp-status.is-busy { color: var(--cp-d); }
.kkt-cp-bar { width: 100%; height: 8px; border-radius: 9px; background: #e6eee8; overflow: hidden; }
.kkt-cp-bar[hidden] { display: none; }
.kkt-cp-bar i { display: block; width: 40%; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--cp-g), var(--cp-gold)); animation: kkt-cp-bar 1.2s ease-in-out infinite; }
@keyframes kkt-cp-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
html:not(.kkt-l-en) .kkt-cp-bar i { animation-direction: reverse; }
.kkt-cp-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.kkt-cp-check input { width: 22px; height: 22px; accent-color: var(--cp-g); }
.kkt-cp-err { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-weight: 700; }
.kkt-cp-err[hidden] { display: none; }
.kkt-cp-privacy { margin: 16px 0 0; max-width: 820px; color: #44544a; line-height: 1.8; font-size: .95rem; }

/* templates */
.kkt-cp-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.kkt-cp-tpl { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 3px solid transparent; background: #fff; box-shadow: 0 4px 14px rgba(11, 61, 36, .1); cursor: pointer; font: inherit; color: var(--cp-d); text-align: start; transition: transform .15s, border-color .15s; }
.kkt-cp-tpl:hover { transform: translateY(-2px); }
.kkt-cp-tpl[aria-checked="true"] { border-color: var(--cp-gold); box-shadow: 0 0 0 3px rgba(20, 83, 45, .9), 0 8px 22px rgba(11, 61, 36, .25); }
.kkt-cp-tpl__cv { display: block; width: 100%; height: auto; border-radius: 10px; background: #e9e4d2; }
.kkt-cp-tpl__n { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; line-height: 1.5; padding: 0 4px 2px; }
.kkt-cp-tpl__n b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cp-g); color: #fff; font: 800 .8rem/1 Inter, sans-serif; }

/* edit */
.kkt-cp-edit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.kkt-cp-fmt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kkt-cp-fmt button { padding: 10px 16px; border-radius: 99px; border: 2px solid rgba(20, 83, 45, .3); background: #fff; color: var(--cp-d); font: inherit; font-weight: 700; cursor: pointer; }
.kkt-cp-fmt button[aria-checked="true"] { background: var(--cp-g); border-color: var(--cp-g); color: #fff; }
.kkt-cp-canvaswrap { position: relative; }
.kkt-cp-canvas { display: block; width: 100%; max-width: 560px; height: auto; max-height: 78vh; object-fit: contain; border-radius: 14px; box-shadow: 0 14px 40px rgba(11, 61, 36, .25); background: #ddd; touch-action: none; cursor: grab; }
.kkt-cp-canvas:active { cursor: grabbing; }
.kkt-cp-hint { margin: 10px 0 0; color: #5b6b5f; font-size: .95rem; }
.kkt-cp-ctrl { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.kkt-cp-box { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(11, 61, 36, .08); }
.kkt-cp-lbl { display: block; margin: 0 0 6px; font-weight: 800; color: var(--cp-d); }
.kkt-cp-box .kkt-cp-lbl + .kkt-cp-in + .kkt-cp-lbl, .kkt-cp-in + .kkt-cp-lbl { margin-top: 14px; }
.kkt-cp-opt { margin: 0 0 12px; color: #5b6b5f; font-weight: 700; }
.kkt-cp-in { width: 100%; box-sizing: border-box; min-height: 50px; padding: 10px 14px; border: 2px solid #d7ded8; border-radius: 12px; font: inherit; font-size: 1.05rem; background: #fbfcfa; }
.kkt-cp-in:focus { outline: none; border-color: var(--cp-g); background: #fff; }
.kkt-cp-zoom { display: flex; align-items: center; gap: 10px; direction: ltr; }
.kkt-cp-zoom input { flex: 1; min-width: 0; accent-color: var(--cp-g); height: 32px; }
.kkt-cp-ib { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(20, 83, 45, .3); background: #f3f7f2; color: var(--cp-d); font: 800 1.3rem/1 Inter, sans-serif; cursor: pointer; }
.kkt-cp-ib:hover { background: #e3eee1; }
.kkt-cp-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; direction: ltr; }
.kkt-cp-reset { min-height: 46px; padding: 8px 16px; font-size: .95rem; }
.kkt-cp-go { width: 100%; min-height: 62px; font-size: 1.2rem; }
.kkt-cp-need { margin: -4px 0 0; color: #8a5a00; font-weight: 700; text-align: center; }
.kkt-cp-need[hidden] { display: none; }

/* result */
.kkt-cp-sec[hidden] { display: none; }
.kkt-cp-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.kkt-cp-res__img img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.kkt-cp-res__p { color: rgba(255, 255, 255, .9); line-height: 1.8; margin: 0 0 18px; }
.kkt-cp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kkt-cp-actions [hidden] { display: none; }
.kkt-cp-tip { color: rgba(255, 255, 255, .8); font-size: .95rem; line-height: 1.8; margin: 0 0 16px; }

@media (max-width: 900px) {
	.kkt-cp-edit, .kkt-cp-res { grid-template-columns: minmax(0, 1fr); }
	.kkt-cp-ctrl { position: static; }
	.kkt-cp-canvas { max-width: 100%; margin: 0 auto; }
	.kkt-cp-res__img img { margin: 0 auto; }
}
@media (max-width: 560px) {
	.kkt-cp-hero { padding: 40px 0 34px; }
	.kkt-cp-sec { padding: 34px 0; }
	.kkt-cp-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kkt-cp-tpl__n { font-size: .85rem; }
	.kkt-cp-orig { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; }
	.kkt-cp-orig img { width: 110px; height: 140px; }
	.kkt-cp-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.kkt-cp-btn, .kkt-cp-tpl { transition: none; }
	.kkt-cp-bar i { animation-duration: 3s; }
}

.kkt-cp-credits { margin: 18px 0 0; color: #5b6b5f; font-size: .82rem; line-height: 1.8; }
.kkt-cp-credits a { color: #14532D; }
