/* ==========================================================
   Nedu Springmart — KYC / Identity Verification page
   Dedicated responsive stylesheet. Loads after styles.css.
   ========================================================== */

.kyc-page {
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}

.kyc-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.kyc-head h1 {
  margin-bottom: 14px;
}

.kyc-head .lead {
  margin: 0 0 18px;
}

.kyc-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(230, 190, 106, 0.35);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background: rgba(230, 190, 106, 0.07);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 760px;
}

.kyc-notice strong {
  color: var(--warn);
}

/* ---------- Verification card ---------- */
.kyc-card {
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
}

.kyc-card .kyc-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
}

.kyc-card .kyc-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mute);
  box-shadow: 0 0 0 0 rgba(169, 80, 48, 0.6);
  animation: pulse 1.8s infinite;
}

.kyc-card .kyc-status.success .dot { background: var(--accent-strong); }
.kyc-card .kyc-status.warning .dot { background: var(--warn); }
.kyc-card .kyc-status.error .dot { background: var(--danger); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(169, 80, 48, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(169, 80, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 80, 48, 0); }
}

/* ---------- Form layout ---------- */
.kyc-form {
  display: grid;
  gap: 18px;
}

.kyc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kyc-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.kyc-field .hint {
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--font-mono);
}

.kyc-field .input-wrap {
  position: relative;
}

.kyc-field .input-wrap .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.kyc-field .input-wrap input,
.kyc-field .input-wrap select {
  padding-left: 42px;
}

.kyc-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.kyc-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  min-width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.kyc-consent .consent-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mute);
}

.kyc-consent .consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Submit row ---------- */
.kyc-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.kyc-submit .kyc-btn {
  min-width: 200px;
}

.kyc-submit .kyc-hint {
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--font-mono);
  max-width: 24ch;
}

/* ---------- Loading skeleton ---------- */
.kyc-skeleton {
  display: grid;
  gap: 14px;
}

.kyc-skeleton .skel {
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .kyc-card {
    padding: 20px;
  }

  .kyc-field .input-wrap input,
  .kyc-field .input-wrap select {
    padding-left: 44px;
  }

  .kyc-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .kyc-submit .kyc-btn {
    width: 100%;
  }

  .kyc-submit .kyc-hint {
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kyc-card .kyc-status .dot {
    animation: none;
  }
}