/* STAYROOT BECOME A HOST ONBOARDING FLOW CSS */

.onboarding-card {
  background: #ffffff;
  border-radius: var(--card-radius, 18px);
  padding: 40px;
  border: 1px solid rgba(15, 81, 50, 0.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  max-width: 650px;
  margin: 40px auto;
  transition: all 0.3s ease;
}

.onboarding-step-wrapper {
  display: none;
  animation: stepFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-step-wrapper.active {
  display: block;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* OTP 6-Digit Inputs */
.otp-input-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 24px auto;
}

.otp-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid rgba(15, 81, 50, 0.12);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark, #0f3d2e);
  background-color: #f8faf9;
  transition: all 0.25s ease;
}

.otp-box:focus {
  border-color: #0f3d2e;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.06);
  outline: none;
}

/* KYC File upload boxes */
.kyc-upload-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .kyc-upload-container {
    grid-template-columns: 1fr;
  }
}

.kyc-upload-box {
  border: 2px dashed rgba(15, 81, 50, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background-color: #f8faf9;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.kyc-upload-box:hover {
  border-color: #0f3d2e;
  background-color: rgba(15, 81, 50, 0.02);
}

.kyc-upload-box i {
  font-size: 1.8rem;
  color: #0f3d2e;
  margin-bottom: 8px;
  display: block;
}

.kyc-upload-box span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f3d2e;
}

.kyc-file-preview-name {
  font-size: 0.72rem;
  color: #6c757d;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-truncate: ellipsis;
  display: none;
}

/* Onboarding Progress Stepper Timeline */
.onboard-timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 30px;
}

.onboard-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background-color: #e2e8f0;
}

.onboard-timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.onboard-timeline-item:last-child {
  padding-bottom: 0;
}

.onboard-timeline-bullet {
  position: absolute;
  left: -30px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a0aec0;
  z-index: 2;
  transition: all 0.3s;
}

.onboard-timeline-item.completed .onboard-timeline-bullet {
  border-color: #38a169;
  background-color: #38a169;
  color: #fff;
}

.onboard-timeline-item.active .onboard-timeline-bullet {
  border-color: #0f3d2e;
  background-color: #fff;
  color: #0f3d2e;
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.15);
}

.onboard-timeline-info h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2px;
}

.onboard-timeline-info p {
  font-size: 0.78rem;
  color: #718096;
  margin: 0;
}

/* Success Check Circle Animation */
.success-checkmark-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  background-color: rgba(56, 161, 105, 0.1);
  color: #38a169;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Dynamic avatar onboard upload */
.onboard-avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
