/* ============================================================
   BODHI ADVISOR NETWORK — Phase 1 Styles
   ============================================================ */

/* Hero on registry */
.registry-hero { text-align: center; padding: 32px 16px 24px; }
.hero-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #C9A84C; margin-bottom: 8px; }
.hero-title { font-size: 32px; font-weight: 700; margin: 0 0 10px; }
.hero-sub { font-size: 15px; color: #666; max-width: 600px; margin: 0 auto 18px; line-height: 1.6; }
.hero-cta { display: inline-block; background: #C9A84C; color: #fff; padding: 12px 24px;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.hero-cta:hover { background: #b8943e; }

/* Tier badge colors */
.tier-badge { display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; }
.tier-associate { background: rgba(100,100,100,0.15); color: #666; }
.tier-certified { background: rgba(201,168,76,0.15); color: #C9A84C; border: 1px solid rgba(201,168,76,0.3); }
.tier-senior    { background: rgba(29,158,117,0.15); color: #1D9E75; border: 1px solid rgba(29,158,117,0.3); }

/* Registry grid */
.advisor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.advisor-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.advisor-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.advisor-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eee; }
.advisor-photo-wrap { position: relative; display: inline-block; }
.availability-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #fff; }
.availability-dot.available   { background: #1D9E75; }
.availability-dot.unavailable { background: #999; }
.advisor-name    { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.advisor-name-kh { font-size: 13px; color: #666; margin-top: -6px; }
.advisor-specialty { font-size: 13px; color: #444; display: flex; align-items: center; gap: 4px; }
.advisor-rating  { font-size: 13px; color: #C9A84C; font-weight: 500; }
.rating-count    { color: #999; font-weight: 400; }
.province-tag    { display: inline-block; font-size: 11px; background: #f5f5f5; color: #555;
  padding: 2px 8px; border-radius: 10px; margin: 2px; }
.lang-tag        { display: inline-block; font-size: 10px; font-weight: 600; background: #eee;
  color: #555; padding: 2px 6px; border-radius: 4px; margin: 2px; letter-spacing: 0.5px; }
.card-cta        { font-size: 13px; color: #C9A84C; font-weight: 500; margin-top: auto; }

/* Filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.filter-bar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 13px; background: #fff; cursor: pointer; }
.clear-filter { font-size: 13px; color: #999; text-decoration: underline; }
.results-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-icon { font-size: 40px; margin-bottom: 10px; }
.empty-title { font-size: 18px; font-weight: 600; color: #444; }
.empty-body { font-size: 13px; margin-top: 6px; }
.pagination-wrap { margin: 24px 0; }

/* Profile page */
.back-link { font-size: 13px; color: #999; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.back-link:hover { color: #C9A84C; }
.profile-hero { display: flex; gap: 24px; align-items: center; padding: 24px 0; flex-wrap: wrap; }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #eee; }
.profile-header-info { flex: 1; min-width: 240px; }
.profile-name { font-size: 28px; font-weight: 700; margin: 8px 0 4px; }
.profile-name-kh { font-size: 16px; color: #666; margin-bottom: 6px; }
.profile-specialty { font-size: 14px; color: #444; margin: 6px 0; }
.profile-rating { font-size: 14px; color: #C9A84C; margin: 6px 0; }
.profile-availability { margin: 8px 0; }
.avail-badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.avail-badge.available { background: rgba(29,158,117,0.12); color: #1D9E75; }
.avail-badge.unavailable { background: #f0f0f0; color: #888; }
.profile-body { margin-top: 16px; }
.profile-section { padding: 18px 0; border-top: 1px solid #eee; }
.section-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #999; margin-bottom: 10px; }
.bio-text { font-size: 14px; line-height: 1.7; color: #333; margin: 6px 0; }
.cert-info { display: flex; gap: 24px; flex-wrap: wrap; }
.cert-label { color: #999; margin-right: 6px; font-size: 12px; }
.profile-cta-section { background: #f9f9f9; border-radius: 12px; padding: 24px; margin-top: 24px; }
.cta-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cta-body { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.cta-button { display: inline-block; background: #C9A84C; color: #fff; padding: 12px 24px;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.cta-button:hover { background: #b8943e; }
.cta-note { font-size: 12px; color: #888; margin-top: 10px; }

/* Join page */
.join-hero { text-align: center; padding: 40px 20px; }
.join-hero-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #C9A84C; margin-bottom: 8px; }
.join-hero-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.join-hero-sub   { font-size: 15px; color: #666; max-width: 560px; margin: 0 auto; line-height: 1.6; }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0; }
.benefit-card  { background: #f9f9f9; border-radius: 12px; padding: 20px; }
.benefit-icon  { font-size: 28px; margin-bottom: 10px; }
.benefit-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.benefit-body  { font-size: 13px; color: #666; line-height: 1.5; }

/* Tier comparison table */
.tier-comparison  { border: 1px solid #eee; border-radius: 12px; overflow: hidden; margin: 24px 0; background: #fff; }
.tier-compare-title { font-size: 13px; font-weight: 600; padding: 14px 16px; background: #f9f9f9; color: #333; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0;
  border-top: 1px solid #eee; padding: 12px 16px; font-size: 13px; align-items: center; }
.header-row { font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #999; background: #fafafa; }
.featured-row { background: rgba(201,168,76,0.05); }

/* Application form */
.application-form-wrap { max-width: 640px; margin: 0 auto; padding: 24px 0; background: #fff; padding: 28px; border-radius: 12px; border: 1px solid #eee; }
.form-title { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.form-sub   { font-size: 14px; color: #666; margin-bottom: 24px; }
.form-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: #C9A84C; margin: 24px 0 12px; padding-top: 16px;
  border-top: 1px solid #eee; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: #333; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; width: 100%; transition: border-color 0.2s;
  font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.field-note  { font-size: 12px; color: #999; }
.required    { color: #e05a3a; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.checkbox-row  { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: #444; cursor: pointer; }
.checkbox-label input { width: auto; }
.kh-small { font-size: 12px; color: #888; }

/* Policy & agreement (advisor join form + portal) */
.policy-box { max-height: 320px; overflow-y: auto; border: 1px solid #e3e3e3;
  border-radius: 10px; padding: 16px 20px; background: #fafafa; font-size: 13px;
  line-height: 1.7; color: #333; margin-bottom: 14px; }
.policy-box h1 { font-size: 18px; margin: 0 0 10px; }
.policy-box h2 { font-size: 15px; margin: 18px 0 8px; color: #1a1a1a; }
.policy-box h3 { font-size: 13px; margin: 14px 0 6px; }
.policy-box table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.policy-box th, .policy-box td { border: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; }
.policy-box th { background: #f0e9d4; }
.policy-box blockquote { border-left: 3px solid #C9A84C; margin: 10px 0; padding: 4px 14px; color: #555; background: #fff; }
.policy-box ul, .policy-box ol { padding-left: 20px; }
.policy-box hr { border: none; border-top: 1px solid #e3e3e3; margin: 16px 0; }
.policy-agree { align-items: flex-start; gap: 8px; font-size: 14px; color: #1a1a1a; font-weight: 500; margin-top: 12px; }
.policy-agree input { margin-top: 3px; }
.policy-sign-note { font-size: 12.5px; line-height: 1.6; color: #6b6b6b; margin: 8px 0 0;
  padding-left: 26px; }
.policy-sign-note span[lang=en] { color: #888; font-style: italic; }
.policy-link { color: #8a6d1b; font-weight: 600; text-decoration: underline; }
.policy-link:hover { color: #C9A84C; }
.policy-view-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff;
  color: #8a6d1b; border: 1px solid #f0e1a8; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.policy-view-btn:hover { background: #fff7e6; }

/* Policy modal */
.policy-modal { display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55); padding: 24px; overflow-y: auto; }
.policy-modal.open { display: flex; align-items: flex-start; justify-content: center; }
.policy-modal-card { background: #fff; border-radius: 14px; max-width: 720px; width: 100%;
  margin: auto; display: flex; flex-direction: column; max-height: 88vh; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.policy-modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee; }
.policy-modal-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.policy-modal-close { background: none; border: none; font-size: 28px; line-height: 1;
  color: #999; cursor: pointer; padding: 0 4px; }
.policy-modal-close:hover { color: #333; }
.policy-modal-body { max-height: none; flex: 1; overflow-y: auto; border: none;
  border-radius: 0; background: #fff; margin: 0; }
.policy-modal-foot { padding: 14px 20px; border-top: 1px solid #eee; text-align: right; }
.policy-modal-agree { padding: 12px 28px; }
.submit-btn  { background: #C9A84C; color: #fff; border: none; padding: 14px 32px;
  border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; }
.submit-btn:hover { background: #b8943e; }
.submit-note { font-size: 13px; color: #999; margin-top: 10px; }
.form-submit-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.form-errors { background: #fff0ee; border: 1px solid #ffd0c8; border-radius: 8px;
  padding: 14px; margin-bottom: 20px; }
.form-error-item { font-size: 13px; color: #e05a3a; margin-bottom: 4px; }

/* Join banner on registry page */
.join-banner { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); color: #fff;
  border-radius: 16px; padding: 28px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.join-banner-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.join-banner-sub   { font-size: 14px; color: #aaa; line-height: 1.5; }
.join-banner-cta   { background: #C9A84C; color: #fff; padding: 12px 24px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.2s; }
.join-banner-cta:hover { background: #b8943e; }

/* Success page */
.success-page  { max-width: 520px; margin: 60px auto; text-align: center; }
.success-icon  { font-size: 56px; color: #1D9E75; margin-bottom: 16px; }
.success-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.success-name  { font-size: 16px; color: #666; margin-bottom: 20px; }
.success-body  { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 24px; }
.kh-text { font-size: 14px; color: #666; margin-top: 12px; line-height: 1.8; }
.success-next-steps { background: #f9f9f9; border-radius: 12px; padding: 20px;
  text-align: left; margin-bottom: 24px; counter-reset: li; }
.next-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 10px; }
.next-list  { list-style: none; padding: 0; margin: 0; }
.next-list li { font-size: 13px; color: #555; padding: 8px 0; border-bottom: 1px solid #eee;
  display: flex; align-items: center; gap: 10px; }
.next-list li:last-child { border-bottom: none; }
.next-list li::before { content: counter(li); counter-increment: li;
  background: #C9A84C; color: #fff; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  font-weight: 700; flex-shrink: 0; }
.success-cta { display: inline-block; background: #C9A84C; color: #fff;
  padding: 12px 28px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: background 0.2s; }
.success-cta:hover { background: #b8943e; }
