/* Copyright (c) Janyasi's Legal Associates. All Rights Reserved. */

.friends-directory-page { padding: 36px 0 72px; background: var(--white); }
.friends-directory-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.45fr); gap: 8px; align-items: start; }
.friends-directory-steps-heading { display: flex; grid-column: 1 / -1; justify-content: center; margin: 0; padding: 0 20px 10px; text-align: center; }
.friends-directory-steps-heading h2 { margin: 0; color: var(--black); font-family: var(--font-display); font-size: 44px; line-height: 1.1; }
.friends-directory-steps { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
.friends-directory-step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.friends-directory-step { display: flex; gap: 10px; align-items: flex-start; min-height: 64px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-card); }
.friends-directory-step-number { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cream-dark); color: var(--gold-dark); font-family: var(--font-display); font-size: 15px; }
.friends-directory-step div { display: grid; gap: 4px; }
.friends-directory-step strong { color: var(--black); font-size: 16px; }
.friends-directory-step span:last-child { color: var(--text-dark); font-size: 15px; line-height: 1.35; }
.friends-directory-intro { position: sticky; top: 24px; }
.friends-directory-intro h2 { margin: 8px 0 14px; font-size: 30px; line-height: 1.15; color: var(--black); }
.friends-directory-intro > p { color: var(--text-muted); line-height: 1.7; margin: 0 0 24px; }
.friends-directory-intro > p.friends-directory-intro-value { margin-top: -12px; }
.friends-directory-note { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border-light); }
.friends-directory-note i { color: var(--gold-dark); font-size: 18px; margin-top: 3px; }
.friends-directory-note strong, .friends-directory-note span { display: block; }
.friends-directory-note strong { color: var(--black); font-size: 14px; margin-bottom: 3px; }
.friends-directory-note span { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.friends-access-reassurance { display: grid; gap: 10px; margin: 18px 0 0; padding: 13px 14px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--cream); }
.friends-access-reassurance > div { display: flex; gap: 10px; align-items: flex-start; }
.friends-access-reassurance > div > i { flex: 0 0 auto; margin-top: 2px; color: var(--gold-dark); }
.friends-access-reassurance span, .friends-access-reassurance strong, .friends-access-reassurance small { display: block; }
.friends-access-reassurance strong { color: var(--black); font-size: 12px; }
.friends-access-reassurance small { margin-top: 2px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.friends-directory-content { min-width: 0; }
.friends-directory-status { min-height: 0; margin-bottom: 14px; color: var(--text-muted); }
.friends-directory-status.is-error { padding: 12px 14px; border-left: 3px solid #b34242; background: #fff5f5; color: #8b2c2c; }
.friends-directory-status.is-success { padding: 12px 14px; border-left: 3px solid #4a8b5a; background: #f2fbf4; color: #2d6b3b; }
.friends-card, .friends-detail-card { padding: 28px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
#friendsAccessCard { padding: 22px; }
#friendsAccessCard .friends-card-lead { margin: 12px 0 14px; }
.friends-access-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.friends-access-form-row .form-group { margin-bottom: 0; }
.friends-access-form-row .btn { min-height: 46px; margin-top: 29px; padding-inline: 20px; }
.friends-card-heading, .friends-detail-header { display: flex; gap: 13px; align-items: flex-start; }
.friends-card-heading h2, .friends-detail-header h2 { margin: 3px 0 0; color: var(--black); font-size: 27px; }
.friends-card-icon { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(201,164,92,.16); color: var(--gold-dark); flex: 0 0 auto; }
.friends-card-lead { margin: 20px 0; color: var(--text-muted); line-height: 1.6; }
.friends-form-required-note { margin: -8px 0 18px; color: var(--text-muted); font-size: 12px; }
.friends-form-required-note span { color: var(--gold-dark); font-weight: 800; }
.friends-form-section { min-width: 0; margin: 0 0 16px; padding: 18px; border: 1px solid var(--border-light); border-radius: 10px; background: #fcfbf8; }
.friends-form-section legend { display: flex; width: 100%; gap: 10px; align-items: center; padding: 0 2px; color: var(--black); }
.friends-form-section legend > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.friends-form-section legend strong { font-size: 15px; line-height: 1.25; }
.friends-form-section legend small { color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.friends-form-step { display: inline-flex; width: 27px; height: 27px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: rgba(201,164,92,.16); color: var(--gold-dark); font-size: 12px; font-weight: 800; }
.friends-form-section .form-row { margin-top: 16px; }
.friends-form-section .form-group { margin-bottom: 14px; }
.friends-form-section .form-group:last-child { margin-bottom: 0; }
.friends-form-section .form-row .form-group { margin-bottom: 0; }
.friends-form-section--visibility { padding-bottom: 2px; }
.friends-form-section--visibility .friends-consent-section { margin: 16px 0; }
.field-optional { color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; }
.friends-card .form-group { margin-bottom: 16px; }
.friends-card input[type="file"] { padding: 10px; }
.friends-card .form-row { gap: 16px; }
.field-hint { margin-top: 5px; font-size: 12px; color: var(--text-muted); }
.field-hint.limit-close { color: var(--gold-dark); font-weight: 700; }
.field-hint.limit-reached { color: #9a3030; font-weight: 700; }
.friends-photo-preview-wrap {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.friends-photo-preview {
  display: block;
  width: 160px;
  height: 160px;
  max-width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  object-fit: contain;
  object-position: center;
  padding: 8px;
}
.friends-form-actions, .friends-search-actions, .friends-app-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.friends-consent-section { margin: 20px 0; padding: 18px; border: 1px solid var(--border-light); border-left-width: 4px; border-radius: 8px; }
.friends-consent-section--required { border-color: rgba(177,135,54,.48); border-left-color: var(--gold-dark); background: #fffaf0; }
.friends-consent-section--optional { border-color: #cbd8e4; border-left-color: #5c809d; background: #f5f9fc; }
.friends-consent-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.friends-consent-heading .eyebrow { display: block; margin-bottom: 4px; color: var(--gold-dark); font-size: 11px; }
.friends-consent-section--optional .friends-consent-heading .eyebrow { color: #426b89; }
.friends-consent-heading h3 { margin: 0; color: var(--black); font-size: 17px; line-height: 1.3; }
.friends-consent-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.friends-consent-badge--required { background: rgba(177,135,54,.15); color: var(--gold-dark); }
.friends-consent-badge--optional { background: #e5eff6; color: #426b89; }
.friends-consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 14px; border: 1px solid rgba(177,135,54,.22); border-radius: 6px; background: rgba(255,255,255,.66); }
.friends-consent-section--optional .friends-consent-row { border-color: #d5e1ea; }
.friends-consent-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--gold-dark); }
.friends-consent-section--optional .friends-consent-row input { accent-color: #426b89; }
.friends-consent-row input:focus-visible { outline: 3px solid rgba(177,135,54,.35); outline-offset: 2px; }
.friends-consent-row label { color: var(--text-muted); font-size: 13px; line-height: 1.55; cursor: pointer; }
.friends-consent-label-title, .friends-consent-label-copy { display: block; }
.friends-consent-label-title { margin-bottom: 3px; color: var(--black); font-weight: 700; }
.friends-consent-help { margin: 9px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.friends-consent-section--optional .friends-consent-help { color: #526c80; }
.btn-danger-outline { border: 1px solid #c06c6c; color: #9a3030; background: transparent; }
.btn-danger-outline:hover, .btn-danger-outline:focus-visible { background: #fff1f1; border-color: #9a3030; }
.friends-directory-app { margin-top: 24px; }
.friends-directory-app-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.friends-directory-app-header h2 { margin: 4px 0 6px; font-size: 30px; color: var(--black); }
.friends-directory-app-header p { max-width: 650px; margin: 0; color: var(--text-muted); line-height: 1.55; }
.friends-app-actions { flex: 0 0 auto; }
.friends-search-form { padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--cream); }
.friends-search-toolbar { display: flex; gap: 14px; align-items: flex-end; }
.friends-search-input { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; padding: 0 14px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--white); }
.friends-search-input > i { color: var(--gold-dark); font-size: 18px; }
.friends-search-input .form-group { flex: 1; margin-bottom: 0; }
.friends-search-input label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.friends-search-input input { padding: 13px 0; border: 0; background: transparent; box-shadow: none; }
.friends-search-input input:focus { border-color: var(--gold); }
.friends-search-toolbar .friends-search-actions { flex: 0 0 auto; }
.friends-filter-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--border-light); border-radius: 8px; background: rgba(255,255,255,.65); }
.friends-filter-panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.friends-filter-panel-heading strong, .friends-filter-panel-heading span { display: block; }
.friends-filter-panel-heading strong { color: var(--black); font-size: 14px; }
.friends-filter-panel-heading span { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.friends-filter-close { padding: 0; border: 0; background: transparent; color: var(--gold-dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.friends-filter-count { display: inline-flex; min-width: 19px; height: 19px; align-items: center; justify-content: center; margin-left: 4px; border-radius: 50%; background: var(--gold-dark); color: var(--white); font-size: 11px; }
.friends-search-actions .is-active { background: var(--cream); border-color: var(--gold-dark); }
.friends-filter-row { gap: 12px; }
.friends-filter-row .form-group { flex: 1 1 150px; }
.friends-results-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin: 22px 0 12px; color: var(--text-muted); font-size: 13px; }
.friends-results-meta strong, .friends-results-privacy { display: block; }
.friends-results-meta strong { color: var(--black); font-size: 15px; }
.friends-results-privacy { margin-top: 4px; font-size: 12px; }
.friends-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.friends-result-card { display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
.friends-result-card-heading { display: flex; gap: 12px; align-items: center; min-width: 0; }
.friends-result-avatar { display: inline-flex; width: 48px; height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: rgba(201,164,92,.18); color: var(--gold-dark); font-size: 16px; font-weight: 800; }
.friends-result-photo { display: block; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--cream); object-fit: cover; }
.friends-result-identity { min-width: 0; flex: 1 1 auto; }
.friends-result-identity h3 { overflow: hidden; margin: 0 0 4px; color: var(--black); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.friends-result-identity p { overflow: hidden; margin: 0; color: var(--text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.friends-result-identity p i { color: var(--gold-dark); }
.friends-result-gender { padding: 4px 8px; border-radius: 99px; background: var(--cream); color: var(--text-muted); font-size: 11px; font-weight: 700; }
.friends-result-card-body { display: grid; gap: 13px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.friends-result-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
.friends-result-card-body strong, .friends-result-card-body p { display: block; margin: 0; color: var(--text-dark); font-size: 13px; line-height: 1.45; }
.friends-view-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 13px; border: 1px solid rgba(177,135,54,.55); border-radius: 6px; background: var(--white); color: var(--gold-dark); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.friends-view-btn:hover, .friends-view-btn:focus-visible { border-color: var(--gold-dark); background: var(--gold-dark); color: var(--white); }
.friends-empty { display: flex; min-height: 170px; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 30px; border: 1px dashed var(--border-light); border-radius: var(--radius-md); color: var(--text-muted); text-align: center; }
.friends-empty i { margin-bottom: 5px; color: var(--gold-dark); font-size: 24px; }
.friends-empty strong { color: var(--black); font-size: 15px; }
.friends-empty span { font-size: 13px; }
.friends-results-loading { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.friends-results-loading span { display: block; height: 190px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: linear-gradient(90deg, var(--cream) 25%, #fff 50%, var(--cream) 75%); background-size: 200% 100%; animation: friends-loading 1.3s infinite; }
@keyframes friends-loading { to { background-position: -200% 0; } }
.friends-pagination { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.friends-detail-card { margin-top: 24px; }
.friends-detail-header { justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--border-light); }
.friends-detail-identity { display: flex; min-width: 0; gap: 18px; align-items: center; }
.friends-detail-photo-wrap { flex: 0 0 auto; }
.friends-detail-photo { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }
.friends-detail-subtitle { max-width: 680px; margin: 7px 0 0; color: var(--text-muted); line-height: 1.5; }
.friends-detail-grid { margin-top: 0; }
.friends-detail-section { padding: 23px 0; border-bottom: 1px solid var(--border-light); }
.friends-detail-section:last-child { border-bottom: 0; padding-bottom: 4px; }
.friends-detail-section h3 { margin: 0 0 18px; color: var(--gold-dark); font-size: 13px; letter-spacing: .8px; text-transform: uppercase; }
.friends-detail-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; }
.friends-detail-section-grid--bio { grid-template-columns: 1fr; }
.friends-detail-item { min-width: 0; }
.friends-detail-item dt { margin-bottom: 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.friends-detail-item dd { margin: 0; color: var(--black); line-height: 1.5; word-break: break-word; }
.friends-contact-value { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.friends-detail-link { color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.friends-detail-link:hover, .friends-detail-link:focus-visible { text-decoration: underline; }
.friends-contact-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(37, 211, 102, .45); border-radius: 999px; color: #168c45; font-size: 12px; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.friends-contact-action:hover, .friends-contact-action:focus-visible { border-color: #168c45; background: #effbf3; text-decoration: none; }
.friends-whatsapp-action i { color: var(--success-green); font-size: 15px; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .friends-directory-layout { grid-template-columns: 1fr; gap: 28px; } .friends-directory-intro { position: static; } .friends-directory-step-list { grid-template-columns: 1fr; } .friends-directory-step { min-height: 0; border: 1px solid var(--border-light); } }
@media (max-width: 900px) { .friends-results-grid, .friends-results-loading { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .friends-card, .friends-detail-card { padding: 20px; } .friends-directory-app-header, .friends-detail-header { flex-direction: column; } .friends-detail-identity { align-items: flex-start; } .friends-detail-photo { width: 88px; height: 88px; } .friends-app-actions { width: 100%; } .friends-app-actions .btn { flex: 1; } .friends-search-toolbar { flex-direction: column; align-items: stretch; } .friends-search-toolbar .friends-search-actions { justify-content: stretch; } .friends-search-toolbar .friends-search-actions .btn { flex: 1; } .friends-results-meta { align-items: flex-start; flex-direction: column; } .friends-detail-header .btn { align-self: flex-start; } .friends-detail-section-grid { grid-template-columns: 1fr; gap: 18px; } .friends-card-heading h2, .friends-detail-header h2 { font-size: 23px; } .friends-directory-intro h2 { font-size: 26px; } .friends-directory-steps-heading { padding: 0 16px 8px; } .friends-directory-steps-heading h2 { font-size: 30px; } .friends-access-form-row { grid-template-columns: 1fr; } .friends-access-form-row .btn { width: 100%; margin-top: 0; } }
