/* Client Onboarding — Multi-Step Form */

.onboarding-page {
  min-height: 100vh;
  background: #000;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
}

.onboarding-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 4rem;
}

/* Progress Bar */
.ob-progress {
  width: 100%;
  max-width: 680px;
  margin-bottom: 2rem;
}

.ob-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.ob-progress-label strong {
  color: rgba(255,255,255,0.75);
}

.ob-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: #D4A84B;
  border-radius: 2px;
  transition: width 0.45s ease;
}

/* Step Card */
.ob-card {
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  animation: ob-fadein 0.25s ease;
}

@keyframes ob-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ob-card-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.35rem;
}

.ob-card-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* Save notice */
.ob-save-notice {
  font-size: 0.8rem;
  color: rgba(212,168,75,0.7);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Form Fields */
.ob-field {
  margin-bottom: 1.25rem;
}

.ob-field label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.ob-field label .req {
  color: #D4A84B;
  margin-left: 2px;
}

.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
  line-height: 1.5;
}

.ob-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ob-field select option {
  background: #1a1a1a;
  color: #fff;
}

.ob-field textarea {
  min-height: 100px;
  resize: vertical;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  outline: none;
  border-color: #D4A84B;
}

.ob-field input::placeholder,
.ob-field textarea::placeholder {
  color: rgba(255,255,255,0.22);
}

.ob-field input.invalid,
.ob-field select.invalid,
.ob-field textarea.invalid {
  border-color: #e05;
}

.ob-field-error {
  font-size: 0.8rem;
  color: #f08090;
  margin-top: 0.3rem;
  min-height: 1em;
  display: none;
}

.ob-field-error.visible {
  display: block;
}

/* Helper text */
.ob-field-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.3rem;
}

/* Two-column grid */
.ob-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

/* Checkbox Group */
.ob-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.ob-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.ob-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #D4A84B;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Inline conditional sub-field */
.ob-conditional {
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(212,168,75,0.3);
  border-radius: 0 6px 6px 0;
  margin-top: 0.75rem;
}

/* Terms box */
.ob-terms-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 1.25rem 1.25rem;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ob-terms-box h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}

.ob-terms-box h4:first-child {
  margin-top: 0;
}

.ob-terms-box p {
  margin: 0 0 0.6rem;
}

.ob-terms-scroll-msg {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 1rem;
}

.ob-terms-scroll-msg.done {
  color: rgba(212,168,75,0.6);
}

.ob-signature-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* Navigation Buttons */
.ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.ob-btn-back {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.ob-btn-back:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.35);
}

.ob-btn-next {
  background: #D4A84B;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-left: auto;
}

.ob-btn-next:hover {
  opacity: 0.88;
}

.ob-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ob-btn-submit {
  background: #D4A84B;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-left: auto;
}

.ob-btn-submit:hover { opacity: 0.88; }
.ob-btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Review Summary */
.ob-review-section {
  margin-bottom: 1.5rem;
}

.ob-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.ob-review-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #D4A84B;
}

.ob-review-edit {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ob-review-edit:hover { color: #D4A84B; }

.ob-review-table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}

.ob-review-table td {
  padding: 0.35rem 0;
  vertical-align: top;
}

.ob-review-table td:first-child {
  color: rgba(255,255,255,0.4);
  width: 44%;
  padding-right: 0.75rem;
}

.ob-review-table td:last-child {
  color: rgba(255,255,255,0.85);
}

/* Alert */
.ob-alert {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.ob-alert.error {
  background: rgba(220,53,69,0.15);
  border: 1px solid rgba(220,53,69,0.4);
  color: #f08090;
}

.ob-alert.success {
  background: rgba(40,167,69,0.15);
  border: 1px solid rgba(40,167,69,0.4);
  color: #75d88e;
}

/* Thank You Screen */
.ob-thankyou {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.ob-thankyou-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.ob-thankyou h2 {
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ob-thankyou p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.ob-thankyou a {
  color: #D4A84B;
}

/* Spinner */
.ob-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: ob-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes ob-spin {
  to { transform: rotate(360deg); }
}

/* Section divider */
.ob-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}

@media (max-width: 720px) {
  .ob-card {
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
  }
  .ob-grid-2 {
    grid-template-columns: 1fr;
  }
  .ob-btn-next,
  .ob-btn-submit {
    width: 100%;
    text-align: center;
  }
  .ob-nav {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }
  .ob-btn-back {
    width: 100%;
    text-align: center;
  }
  .ob-card-title {
    font-size: 1.3rem;
  }
}
