/* Host/Agent application: phone number + ID selfie (applicant holding NRC/passport). */
.apply-phone-field input {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.apply-field-hint { margin: 6px 2px 0; line-height: 1.4; }
.apply-field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 2px 0;
  color: #ffb4a8;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}
.apply-field-error::before {
  content: "!";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(251, 113, 133, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.apply-field-error[hidden] { display: none; }
.apply-phone-field.has-error input {
  border-color: rgba(251, 113, 133, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2) !important;
}

.id-selfie-section { margin: 4px 0 14px; }
.id-selfie-section h3 { margin: 6px 0 6px; }
.id-selfie-section > p.small { margin: 0 0 10px; line-height: 1.45; }

.id-selfie-box {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 46%, rgba(255, 255, 255, 0.06)),
    rgba(10, 8, 16, 0.32);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.id-selfie-box.has-error {
  border-color: rgba(251, 113, 133, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 3px rgba(251, 113, 133, 0.18);
}
.id-selfie-pick {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 176px;
  padding: 20px 16px;
  margin: 8px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.26);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.16s ease, transform 0.12s ease;
}
.id-selfie-pick[hidden] { display: none; }
.id-selfie-pick:active { transform: scale(0.985); background: rgba(255, 255, 255, 0.05); }
.id-selfie-illus {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, var(--hero-a, #7c3aed), var(--hero-b, #ec4899));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px rgba(0, 0, 0, 0.28);
}
.id-selfie-illus svg { width: 38px; height: 38px; }
.id-selfie-cta { font-weight: 800; font-size: 0.98rem; color: var(--sw-ink, #fff); }
.id-selfie-formats { font-size: 0.78rem; color: var(--sw-faint, rgba(255, 255, 255, 0.5)); }

.id-selfie-preview { position: relative; margin: 8px; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.id-selfie-preview[hidden] { display: none; }
.id-selfie-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
}
.id-selfie-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}
.id-selfie-btn {
  appearance: none;
  min-height: 40px;
  min-width: 104px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.id-selfie-btn:active { transform: translateY(1px); }
.id-selfie-btn.is-remove {
  border-color: rgba(255, 170, 160, 0.55);
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.42), rgba(225, 29, 72, 0.22));
}
.id-selfie-busy {
  display: grid;
  place-items: center;
  min-height: 176px;
  margin: 8px;
  color: var(--sw-muted, rgba(255, 255, 255, 0.72));
  font-weight: 700;
}
.id-selfie-busy[hidden] { display: none; }
.id-selfie-private {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 2px 0;
  font-size: 0.78rem;
  color: var(--sw-faint, rgba(255, 255, 255, 0.5));
}
.id-selfie-private svg { flex: 0 0 auto; width: 14px; height: 14px; }

@media (max-width: 370px) {
  .id-selfie-pick, .id-selfie-busy { min-height: 156px; }
  .id-selfie-btn { min-width: 92px; padding: 8px 12px; }
}
