/* Onboarding pages — step indicator, form styles, booking embed */

.onboarding-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--fg-muted);
  color: var(--fg-muted);
}
.step-num.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}
.step-num.done {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}
.step-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.step-label.active { color: var(--fg); font-weight: 600; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--bg-alt);
  margin: 0 12px;
  min-width: 20px;
}
.step-line.done { background: var(--fg); }

/* Page header */
.onboarding-header {
  margin-bottom: 40px;
}
.onboarding-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
}
.onboarding-header p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Forms */
.form-card {
  background: var(--bg);
  border: 1px solid rgba(26, 26, 46, 0.08);
  padding: 40px;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 6px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group .hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(26, 26, 46, 0.2);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg); }

.error-msg {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c00;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Booking embed */
.booking-card {
  background: var(--bg);
  border: 1px solid rgba(26, 26, 46, 0.08);
  padding: 32px;
  margin-bottom: 32px;
}
.booking-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.booking-card p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.booking-embed {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: 8px;
}

/* Profile doc */
.profile-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.profile-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}
.profile-doc-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
}
.profile-doc-header .client-meta {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.profile-section {
  margin-bottom: 40px;
}
.profile-section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.profile-section p,
.profile-section ul {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.7;
}
.profile-section ul {
  list-style: none;
  padding: 0;
}
.profile-section ul li::before {
  content: '— ';
  color: var(--accent);
}
.profile-section ul li {
  margin-bottom: 6px;
  padding-left: 20px;
}

@media (max-width: 600px) {
  .form-card { padding: 20px 16px; }
  .onboarding-header h1 { font-size: 28px; }

  /* Primary and secondary buttons — full width on mobile, adequate height */
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
  }

  /* Form inputs — ensure they span full width on mobile */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 48px;
  }

  /* Booking card — prevent horizontal overflow */
  .booking-card {
    padding: 24px 16px;
    overflow-x: hidden;
  }

  /* Booking embed — keep it visible alongside the form */
  .booking-embed {
    min-height: 280px;
    max-height: 50vh;
  }

  /* Step indicator — make step circles tappable */
  .step-num {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    font-size: 13px;
  }

  /* Done page — center the buttons on mobile */
  .onboarding-page > div[style*="flex"] {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    font-size: 14px;
    padding: 14px 16px;
  }

  .booking-embed {
    min-height: 240px;
    max-height: 45vh;
  }
}