/* Therapist Directory Styles
   Extends the base Connected design system.
   All styles use CSS variables defined inline in each HTML page. */

/* === LAYOUT === */
.therapist-page { padding-top: 72px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }

/* === HERO / SEARCH === */
.directory-hero {
  background: var(--bg-cream);
  padding: 80px 48px 60px;
  text-align: center;
}
.directory-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.directory-hero h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.directory-hero p {
  font-size: 18px;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Search bar */
.search-bar {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 100px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  gap: 8px;
  align-items: center;
}
.search-bar select,
.search-bar input {
  font-family: var(--font-sans);
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}
.search-bar select { flex: 0 0 180px; color: var(--text-body); cursor: pointer; }
.search-bar .divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.search-bar button:hover { opacity: 0.85; }

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.filter-bar .results-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  user-select: none;
}
.filter-pill:hover { border-color: var(--text-muted); }
.filter-pill.active { border-color: var(--accent); background: rgba(155,138,160,0.08); color: var(--accent); }
.filter-pill .count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 100px;
  font-weight: 600;
}
.filter-pill .arrow { font-size: 10px; transition: transform 0.2s; }
.filter-pill.open .arrow { transform: rotate(180deg); }

/* Filter dropdown */
.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 12px 0;
  min-width: 240px;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}
.filter-dropdown.open { display: block; }
.filter-dropdown label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.15s;
}
.filter-dropdown label:hover { background: var(--bg-cream); }
.filter-dropdown input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* === THERAPIST GRID === */
.therapist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 24px 0 48px;
}

/* === THERAPIST CARD === */
.therapist-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.therapist-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.therapist-card .card-photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-cream);
}
.therapist-card .card-initials {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.therapist-card .card-info { flex: 1; min-width: 0; }
.therapist-card .card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.therapist-card .card-credential {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
.therapist-card .card-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.therapist-card .card-headline {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.therapist-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.therapist-card .card-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-cream);
  color: var(--text-body);
  white-space: nowrap;
}
.therapist-card .card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.therapist-card .card-rate { font-weight: 500; color: var(--text-body); }
.therapist-card .card-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #E8F5E9;
  color: #2E7D32;
  font-weight: 500;
}

/* === LOAD MORE === */
.load-more-container { text-align: center; padding: 0 0 48px; }

/* === BROWSE BY STATE === */
.browse-states { padding: 60px 0; }
.browse-states h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.state-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.state-chip:hover { border-color: var(--accent); background: rgba(155,138,160,0.06); }
.state-chip .chip-count { color: var(--accent); font-weight: 600; margin-left: 4px; }

/* === CTA SECTION === */
.cta-section {
  background: var(--bg-dark);
  padding: 80px 48px;
  text-align: center;
}
.cta-section .eyebrow { color: var(--accent); }
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}
.cta-section p { color: var(--text-on-dark-muted); margin-bottom: 32px; font-size: 16px; }

/* === PROFILE PAGE === */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 48px 80px;
}
.profile-main { min-width: 0; }
.profile-sidebar { position: sticky; top: 112px; align-self: start; }

.profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-initials {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--accent);
  flex-shrink: 0;
}
.profile-header-info h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 4px;
}
.profile-header-info .credential {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.profile-header-info .location {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.profile-header-info .badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.profile-badge.accepting { background: #E8F5E9; color: #2E7D32; }
.profile-badge.format { background: var(--bg-cream); color: var(--text-body); }
.profile-badge.rate { background: var(--bg-cream); color: var(--text-body); }

.profile-section { margin-bottom: 40px; }
.profile-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 16px;
}
.profile-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.specialty-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.specialty-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-cream);
  font-size: 14px;
  color: var(--text-body);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-cream);
}
.info-card h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.info-card ul { list-style: none; }
.info-card li {
  font-size: 14px;
  color: var(--text-body);
  padding: 4px 0;
}

/* === CONTACT FORM (sidebar) === */
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 20px;
}
.contact-success {
  display: none;
  text-align: center;
  padding: 20px;
}
.contact-success h3 {
  color: #2E7D32;
  margin-bottom: 8px;
}
.contact-error {
  display: none;
  color: #C62828;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #FFEBEE;
  border-radius: 8px;
}

/* === FORM ELEMENTS === */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

/* Honeypot - hidden from users, visible to bots */
.form-hp { position: absolute; left: -9999px; }

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* === APP CTA SIDEBAR CARD === */
.app-cta-card {
  background: linear-gradient(135deg, var(--accent), #B39DBA);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  text-align: center;
  margin-top: 20px;
}
.app-cta-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}
.app-cta-card p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
}
.app-cta-card .btn { background: #fff; color: var(--accent); }

/* === DASHBOARD === */
.dashboard-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 48px 80px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dashboard-header h1 {
  font-family: var(--font-serif);
  font-size: 28px;
}
.dashboard-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.dashboard-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -3px;
}
.dashboard-nav a:hover { color: var(--text-primary); }
.dashboard-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); }
.stat-card .stat-change { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* Completeness bar */
.completeness-bar-container { margin-bottom: 40px; }
.completeness-bar-container h3 { font-size: 16px; margin-bottom: 12px; }
.completeness-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 100px;
  overflow: hidden;
}
.completeness-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.completeness-tips { margin-top: 12px; }
.completeness-tips li {
  font-size: 14px;
  color: var(--text-body);
  padding: 4px 0;
}

/* Inquiries */
.inquiry-list { margin-bottom: 40px; }
.inquiry-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}
.inquiry-row:hover { background: var(--bg-cream); margin: 0 -16px; padding: 16px; border-radius: 8px; }
.inquiry-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.inquiry-dot.read { background: transparent; }
.inquiry-info { flex: 1; min-width: 0; }
.inquiry-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.inquiry-preview { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inquiry-date { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

/* Inquiry status buttons */
.inquiry-actions { display: flex; gap: 8px; margin-top: 12px; }
.inquiry-action-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-body);
  transition: border-color 0.2s, background 0.2s;
}
.inquiry-action-btn:hover { border-color: var(--accent); }
.inquiry-action-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === STEP PROGRESS === */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.step-dot.active { border-color: var(--accent); color: var(--accent); background: rgba(155,138,160,0.08); }
.step-dot.completed { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-line { width: 40px; height: 2px; background: var(--border); }
.step-line.completed { background: var(--accent); }

/* === SPECIALTY PILLS (toggle-able) === */
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-toggle {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.pill-toggle:hover { border-color: var(--text-muted); }
.pill-toggle.selected { border-color: var(--accent); background: rgba(155,138,160,0.1); color: var(--accent); font-weight: 500; }

/* === AUTH PAGES === */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-value-side {
  background: var(--bg-dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-on-dark);
}
.auth-value-side h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #FFFFFF;
}
.auth-value-side .benefit-list { list-style: none; }
.auth-value-side .benefit-list li {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-value-side .benefit-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}
.auth-form-side {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-side h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 8px;
}
.auth-form-side .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.auth-form { max-width: 400px; }
.auth-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-links {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* Auth centered (login, reset password) */
.auth-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.auth-centered .auth-box {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-centered h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 8px;
}
.auth-centered .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.auth-centered .auth-form { max-width: 100%; text-align: left; }

/* Alerts/messages */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #FFEBEE; color: #C62828; }
.alert-success { background: #E8F5E9; color: #2E7D32; }

/* === STATE/CITY LISTING === */
.listing-header {
  padding: 100px 48px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.listing-header h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  margin-bottom: 8px;
}
.listing-header p { font-size: 16px; color: var(--text-body); }
.listing-count { color: var(--accent); font-weight: 600; }

.city-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.city-nav a {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  background: var(--bg-cream);
  transition: background 0.2s;
}
.city-nav a:hover { background: rgba(155,138,160,0.12); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 48px;
  max-width: 500px;
  margin: 0 auto;
}
.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 16px;
}
.empty-state p { color: var(--text-body); margin-bottom: 24px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; order: -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .directory-hero { padding: 60px 24px 40px; }
  .directory-hero h1 { font-size: 32px; }
  .search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
  }
  .search-bar select { flex: 1; width: 100%; }
  .search-bar .divider { display: none; }
  .search-bar button { width: 100%; }
  .therapist-grid { grid-template-columns: 1fr; }
  .therapist-card { flex-direction: column; }
  .therapist-card .card-photo,
  .therapist-card .card-initials { width: 80px; height: 80px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
  .profile-layout { padding: 24px 24px 48px; }
  .profile-header { flex-direction: column; }
  .profile-photo, .profile-initials { width: 100px; height: 100px; }
  .profile-header-info h1 { font-size: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-value-side { padding: 48px 24px; }
  .auth-value-side h1 { font-size: 28px; }
  .auth-form-side { padding: 48px 24px; }
  .auth-form .form-row { grid-template-columns: 1fr; }
  .listing-header { padding: 80px 24px 24px; }
  .listing-header h1 { font-size: 28px; }
  .cta-section { padding: 48px 24px; }
  .cta-section h2 { font-size: 28px; }
  .dashboard-layout { padding: 80px 24px 48px; }
  .browse-states { padding: 40px 24px; }
  .browse-states h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-centered .auth-box { padding: 32px 24px; }
}
