:root {
  --primary: #4f6cf7;
  --secondary: #7b5cff;
  --text-dark: #1f2937;
  --text-soft: #6b7280;
  --border-soft: #e6e9ff;
}

* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at top left, #6f8cff 0%, transparent 60%),
    radial-gradient(900px 500px at bottom right, #8b5cf6 0%, transparent 55%),
    linear-gradient(135deg, #eef2ff, #f8f9ff);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0;
  color: var(--text-dark);
}

.app {
  width: 92%;
  max-width: 1300px;
  min-height: 640px;
  background: linear-gradient(180deg, #ffffff, #f9faff);
  border-radius: 36px;
  display: grid;
  grid-template-columns: 320px 1fr 1.25fr;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(79,108,247,.28),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.steps {
  padding: 36px 28px;
  background: linear-gradient(180deg, #f5f7ff, #eef1ff);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-soft);
}

.steps h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 32px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  align-items: center;
  opacity: .45;
  background: rgba(255,255,255,.75);
  transition: .35s;
}

.step i {
  font-size: 20px;
  color: var(--primary);
}

.step strong {
  font-size: 14px;
}

.step span {
  font-size: 12px;
  color: var(--text-soft);
}

.step.active {
  opacity: 1;
  background: linear-gradient(135deg, #ffffff, #f4f6ff);
  box-shadow: 0 18px 40px rgba(79,108,247,.3);
}

.secure {
  margin-top: auto;
  font-size: 13px;
  color: #374151;
  display: flex;
  gap: 10px;
  align-items: center;
}

.preview {
  padding: 36px;
  background: linear-gradient(180deg, #f9faff, #f2f5ff);
}

.result {
  padding: 36px;
  background: #ffffff;
}

.card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.card h4 {
  font-size: 17px;
  margin-bottom: 18px;
  font-weight: 700;
}

.ktp-frame {
  width: 100%;
  aspect-ratio: 85.6 / 53.98;
  background: linear-gradient(135deg, #eef1ff, #f8f9ff);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ktp-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.7), rgba(15,23,42,.85));
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-size: 14px;
  gap: 14px;
}

.upload {
  margin-top: 18px;
  border: 2px dashed #6366f1;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 600;
  transition: .3s;
}

.upload:hover {
  background: #eef2ff;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4f6cf7, #7b5cff);
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  background: #fafbff;
}

textarea {
  height: 70px;
  resize: none;
  margin-top: 6px;
}

.result .card button {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  margin-top: 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(34,197,94,.35);
  transition: .25s;
}

.result .card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(34,197,94,.45);
}

.result .card button:active {
  transform: scale(.98);
}

@media (max-width: 1200px) {   
.app {
     grid-template-columns: 280px 1fr 1fr;
   } 
}

@media (max-width: 900px) {
.app {     
	display: flex;
	flex-direction: column;
	padding: 20px
   }

.steps {
	flex-direction: column;
	border-right: none;
	border-bottom: none;
	padding: 0;
	margin-bottom: 20px;
}

.step {
	flex-direction: row;
	align-items: center;
	padding: 18px
	gap: 16px;
	margin-bottom: 16px;
	border-radius: 16px;
	width: 100%;
	background: rgba(255,255,255,.9);
}

.step i {
	font-size: 24px;
	min-width: 40px;
	text-align: center;
}

.step div {
	display: flex;
	flex-derection: column;
}


.preview, .result {
	padding: 20px;
}

.card {
	padding: 20px;
}

.grid {
	grid-template-columns: 1fr;
	gap: 14px;
}

input, textarea {
	font-size: 14px;
	padding: 12px;
}

button {
	font-size: 14px;
	padding: 14px;
}

.ktp-frame {
	aspect-ratio: auto;
	height: 220px;
}

.upload {
	padding: 16px;
	font-size: 14px
}

}

@media (max-width: 500px) {
.app {
	padding: 16px;
}

.card {
	padding: 16px;
}

.step {
	padding: 14px;
	gap: 12px;
}

.ktp-frame {
	height: 180px;

button {
	padding: 12px;
	font-sixe: 13px;
}

input, textarea {
	font-size: 13px;
	padding: 10px;
}
}

