:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #e2e8f0, #f8fafc);
  color: var(--text);
}

.wrapper {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.logo {
  display: block;
  max-width: 180px;
  max-height: 80px;
  margin: 0 auto 8px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin-bottom: 18px;
}

h2 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 6px;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox {
  display: flex;
  align-items: center;
  font-size: 13px;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 20px;
}

button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

button:active {
  transform: scale(0.98);
}

button.secondary {
  background: #e2e8f0;
  color: var(--text);
  margin-bottom: 10px;
}

video,
img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
}

.info p {
  font-size: 14px;
  margin-bottom: 10px;
}

.info span {
  display: block;
  font-weight: 500;
  margin-top: 2px;
}

.hidden {
  display: none;
}

.success {
  text-align: center;
}

.success h3 {
  color: var(--primary);
}


.terms {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.4;
}

.terms input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.terms a:active {
  text-decoration: underline;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



.section-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.upload-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.upload-box {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: border 0.2s, background 0.2s;
}

.upload-box:hover {
  border-color: var(--primary);
  background: #f1f5ff;
}

.upload-box input {
  display: none;
}

.upload-box span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-box strong {
  font-size: 14px;
  font-weight: 500;
}

.upload-box small {
  font-size: 12px;
  color: var(--muted);
}


.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}

.camera-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 55%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
}

#selfiePreview {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
}
