.sgbms-fd-app{--fd:#0f766e;--fd-dark:#115e59;--fd-soft:#f0fdfa;--fd-border:#d5e8e5;font-family:inherit;color:#17302e;max-width:1100px;margin:24px auto;padding:0 12px;box-sizing:border-box}.sgbms-fd-app *{box-sizing:border-box}.sgbms-fd-card{background:#fff;border:1px solid var(--fd-border);border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(15,118,110,.08)}.sgbms-fd-header{padding:24px;background:linear-gradient(135deg,var(--fd-dark),var(--fd));color:#fff}.sgbms-fd-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.12em;background:rgba(255,255,255,.15);padding:5px 9px;border-radius:999px}.sgbms-fd-header h2{margin:10px 0 4px;color:#fff;font-size:28px;line-height:1.25}.sgbms-fd-header p{margin:0;opacity:.92}.sgbms-fd-form{padding:22px}.sgbms-fd-section-title{margin:8px 0 14px;padding-bottom:9px;border-bottom:1px solid var(--fd-border);color:var(--fd-dark);font-size:17px;font-weight:800}.sgbms-fd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:24px}.sgbms-fd-field{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:14px}.sgbms-fd-field em{color:#b91c1c;font-style:normal}.sgbms-fd-field input,.sgbms-fd-field select,.sgbms-fd-field textarea{width:100%;min-height:46px;border:1px solid #cbdedb;border-radius:10px;background:#fff;color:#172a28;padding:10px 12px;font:inherit;font-weight:500;outline:none;transition:.2s}.sgbms-fd-field textarea{resize:vertical}.sgbms-fd-field input:focus,.sgbms-fd-field select:focus,.sgbms-fd-field textarea:focus{border-color:var(--fd);box-shadow:0 0 0 3px rgba(15,118,110,.12)}.sgbms-fd-span-2{grid-column:span 2}.sgbms-fd-consent{display:flex;align-items:flex-start;gap:10px;margin:2px 0 18px;padding:13px;border-radius:10px;background:var(--fd-soft);font-size:14px;font-weight:600}.sgbms-fd-consent input{margin-top:3px}.sgbms-fd-submit{width:100%;border:0;border-radius:11px;padding:14px 18px;background:var(--fd);color:#fff;font-size:16px;font-weight:800;cursor:pointer}.sgbms-fd-submit:hover{background:var(--fd-dark)}.sgbms-fd-notice{margin:18px 22px 0;padding:14px 16px;border-radius:11px;display:flex;flex-direction:column;gap:4px}.sgbms-fd-notice.is-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.sgbms-fd-notice.is-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}@media(max-width:640px){.sgbms-fd-app{margin:12px auto;padding:0 8px}.sgbms-fd-card{border-radius:14px}.sgbms-fd-header{padding:20px 17px}.sgbms-fd-header h2{font-size:24px}.sgbms-fd-form{padding:17px 14px}.sgbms-fd-grid{grid-template-columns:1fr;gap:13px}.sgbms-fd-span-2{grid-column:span 1}.sgbms-fd-notice{margin:14px 14px 0}.sgbms-fd-field input,.sgbms-fd-field select,.sgbms-fd-field textarea{font-size:16px}}

.sgbms-fd-help{margin:-5px 0 14px;color:#55706d;font-size:14px}.sgbms-fd-members{display:flex;flex-direction:column;gap:16px}.sgbms-fd-member-card{padding:16px;border:1px solid var(--fd-border);border-radius:13px;background:#fbfefd}.sgbms-fd-member-card .sgbms-fd-grid{margin-bottom:0}.sgbms-fd-member-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--fd-dark)}.sgbms-fd-remove-member{border:0;background:#fef2f2;color:#991b1b;border-radius:8px;padding:7px 10px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.sgbms-fd-add-member{margin:14px 0 24px;border:1px dashed var(--fd);background:var(--fd-soft);color:var(--fd-dark);border-radius:10px;padding:11px 15px;font:inherit;font-weight:800;cursor:pointer}.sgbms-fd-add-member:disabled{opacity:.55;cursor:not-allowed}@media(max-width:640px){.sgbms-fd-member-card{padding:13px}.sgbms-fd-member-heading{align-items:flex-start}.sgbms-fd-remove-member{padding:6px 8px}}
.sgbms-fd-optional-panel{margin-top:18px;padding:16px;border:1px solid #d7e6e2;border-radius:14px;background:#f7fbfa}.sgbms-fd-optional-panel[hidden]{display:none!important}.sgbms-fd-optional-panel h4{margin:0 0 14px;color:#165f57;font-size:17px}

.sgbms-fd-notice.is-warning {
    background: #fff8e1;
    border: 1px solid #f0c36d;
    color: #6b4f00;
}

/* Separate public directory pages */
.sgbms-fd-directory{--fd-accent:#0f766e;--fd-accent-dark:#115e59;--fd-soft:#f0fdfa;max-width:1100px;margin:24px auto;padding:0 12px;font-family:inherit;color:#17302e;box-sizing:border-box}.sgbms-fd-directory *{box-sizing:border-box}.sgbms-fd-directory-business{--fd-accent:#1d4ed8;--fd-accent-dark:#1e3a8a;--fd-soft:#eff6ff}.sgbms-fd-directory-donor{--fd-accent:#dc2626;--fd-accent-dark:#991b1b;--fd-soft:#fef2f2}.sgbms-fd-directory-header{padding:24px;border-radius:18px;background:linear-gradient(135deg,var(--fd-accent-dark),var(--fd-accent));color:#fff;margin-bottom:18px}.sgbms-fd-directory-header h2{margin:10px 0 4px;color:#fff;font-size:28px;line-height:1.25}.sgbms-fd-directory-header p{margin:0;opacity:.93}.sgbms-fd-directory-filter{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px) auto;gap:10px;margin-bottom:18px;padding:14px;background:#fff;border:1px solid #dbe7e5;border-radius:14px}.sgbms-fd-family-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sgbms-fd-business-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sgbms-fd-directory-filter input,.sgbms-fd-directory-filter select{width:100%;min-height:45px;border:1px solid #cbdedb;border-radius:9px;background:#fff;padding:9px 11px;font:inherit}.sgbms-fd-directory-filter button{border:0;border-radius:9px;background:var(--fd-accent);color:#fff;padding:10px 20px;font:inherit;font-weight:800;cursor:pointer}.sgbms-fd-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sgbms-fd-directory-card{position:relative;background:#fff;border:1px solid #dbe7e5;border-radius:14px;padding:17px;box-shadow:0 7px 22px rgba(15,23,42,.05)}.sgbms-fd-directory-card h3{margin:7px 0 12px;color:var(--fd-accent-dark);font-size:19px;line-height:1.35}.sgbms-fd-directory-card p{margin:7px 0;font-size:14px;line-height:1.55}.sgbms-fd-code{display:inline-block;padding:5px 9px;border-radius:999px;background:var(--fd-soft);color:var(--fd-accent-dark);font-size:12px;font-weight:800}.sgbms-fd-contact{display:inline-flex;margin-top:10px;padding:9px 14px;border-radius:9px;background:var(--fd-accent);color:#fff!important;text-decoration:none;font-weight:800}.sgbms-fd-blood-group{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:52px;padding:0 10px;border-radius:50%;background:var(--fd-accent);color:#fff;font-size:18px;font-weight:900}.sgbms-fd-empty{grid-column:1/-1;padding:30px;text-align:center;border:1px dashed #cbdedb;border-radius:14px;background:#fff;color:#5b6f6d;font-weight:700}@media(max-width:850px){.sgbms-fd-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.sgbms-fd-directory{margin:12px auto;padding:0 8px}.sgbms-fd-directory-header{padding:20px 17px;border-radius:14px}.sgbms-fd-directory-header h2{font-size:24px}.sgbms-fd-directory-filter{grid-template-columns:1fr;padding:12px}.sgbms-fd-directory-grid{grid-template-columns:1fr}.sgbms-fd-family-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sgbms-fd-business-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sgbms-fd-directory-filter input,.sgbms-fd-directory-filter select{font-size:16px}}

/* Layout Fix Step 2: consistent left alignment on all public pages */
.sgbms-fd-app,
.sgbms-fd-directory,
.sgbms-fd-card,
.sgbms-fd-header,
.sgbms-fd-form,
.sgbms-fd-section-title,
.sgbms-fd-help,
.sgbms-fd-field,
.sgbms-fd-field label,
.sgbms-fd-field input,
.sgbms-fd-field select,
.sgbms-fd-field textarea,
.sgbms-fd-consent,
.sgbms-fd-member-card,
.sgbms-fd-member-heading,
.sgbms-fd-optional-panel,
.sgbms-fd-directory-header,
.sgbms-fd-directory-filter,
.sgbms-fd-directory-card,
.sgbms-fd-directory-card h3,
.sgbms-fd-directory-card p,
.sgbms-fd-empty {
    direction: ltr;
    text-align: left;
}

.sgbms-fd-field input,
.sgbms-fd-field select,
.sgbms-fd-field textarea,
.sgbms-fd-directory-filter input,
.sgbms-fd-directory-filter select {
    text-align: left;
}

.sgbms-fd-header h2,
.sgbms-fd-header p,
.sgbms-fd-directory-header h2,
.sgbms-fd-directory-header p,
.sgbms-fd-section-title,
.sgbms-fd-optional-panel h4 {
    text-align: left;
}

.sgbms-fd-consent {
    justify-content: flex-start;
}

.sgbms-fd-directory-card .sgbms-fd-blood-group {
    margin-left: 0;
    margin-right: auto;
}

/* Age visibility must override theme label/grid styles. */
.sgbms-fd-form [data-adult-only][hidden],
.sgbms-fd-form .sgbms-fd-age-hidden {display:none!important;}


/* Phase 1 Step 3: public directory layout alignment. */
/* Hide only the WordPress/theme page heading above Family, Business and Blood Donor heroes. */
body.sgbms-fd-directory-page .entry-title,
body.sgbms-fd-directory-page .page-title,
body.sgbms-fd-directory-page .wp-block-post-title,
body.sgbms-fd-directory-page article.page > header.entry-header {
    display: none !important;
}

/* Keep the existing directory wrapper, filters and cards; center only hero content. */
.sgbms-fd-directory .sgbms-fd-directory-header {
    text-align: center;
}

.sgbms-fd-directory .sgbms-fd-directory-header .sgbms-fd-kicker,
.sgbms-fd-directory .sgbms-fd-directory-header h2,
.sgbms-fd-directory .sgbms-fd-directory-header p {
    text-align: center;
}


/* v1.3.2: Blood donor card width usage fix. */
.sgbms-fd-donor-card{
    display:flex;
    flex-direction:column;
    width:100%;
    min-width:0;
}
.sgbms-fd-donor-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
}
.sgbms-fd-donor-top .sgbms-fd-code{
    max-width:calc(100% - 64px);
    margin-left:auto;
    text-align:right;
    overflow-wrap:anywhere;
}
.sgbms-fd-donor-card h3{
    width:100%;
}
.sgbms-fd-donor-meta{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(105px,.65fr);
    gap:10px 18px;
    width:100%;
    margin-top:2px;
}
.sgbms-fd-donor-meta p{
    min-width:0;
    margin:0!important;
}
.sgbms-fd-donor-contact{
    align-self:flex-start;
}
@media(max-width:420px){
    .sgbms-fd-donor-meta{
        grid-template-columns:minmax(0,1fr) minmax(95px,.7fr);
        gap:8px 12px;
    }
}


/* v1.4.6: Gujarat-wide Business Committee on Business Directory page */
.sgbms-fd-business-committee{margin:0 0 18px;padding:22px;border:1px solid #dbe7f7;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(29,78,216,.06)}
.sgbms-fd-business-committee-heading{margin-bottom:18px;text-align:left;direction:ltr}.sgbms-fd-business-committee-heading>span{display:block;color:#1d4ed8;font-size:13px;font-weight:800}.sgbms-fd-business-committee-heading h2{margin:5px 0 6px;color:#1e3a8a;font-size:23px;line-height:1.35;text-align:left}.sgbms-fd-business-committee-heading p{margin:0;color:#5f6f85;line-height:1.6;text-align:left}
.sgbms-fd-business-committee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sgbms-fd-business-committee-card{display:flex;align-items:center;gap:18px;min-width:0;padding:18px;border:1px solid #dbe7f7;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);direction:ltr;text-align:left}.sgbms-fd-business-committee-photo-wrap{width:108px;height:108px;flex:0 0 108px;overflow:hidden;border-radius:17px;background:#eff6ff;border:1px solid #dbe7f7}.sgbms-fd-business-committee-photo{display:block;width:100%;height:100%;object-fit:cover}.sgbms-fd-business-committee-info{min-width:0;flex:1}.sgbms-fd-business-committee-info h3{margin:0 0 6px;color:#1e3a8a;font-size:20px;line-height:1.35;text-align:left;overflow-wrap:anywhere}.sgbms-fd-business-committee-designation{margin:0!important;color:#64748b;font-size:15px;line-height:1.5;text-align:left}.sgbms-fd-business-committee-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.sgbms-fd-business-committee-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 14px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#1d4ed8!important;text-decoration:none;font-size:14px;font-weight:700}.sgbms-fd-business-committee-actions a:hover,.sgbms-fd-business-committee-actions a:focus{background:#1d4ed8;color:#fff!important;border-color:#1d4ed8}.sgbms-fd-business-committee-empty{padding:18px;border:1px dashed #bfdbfe;border-radius:14px;background:#eff6ff;color:#64748b;text-align:center;font-weight:700}
@media(max-width:780px){.sgbms-fd-business-committee-grid{grid-template-columns:1fr}}@media(max-width:640px){.sgbms-fd-business-committee{padding:16px;border-radius:14px}.sgbms-fd-business-committee-card{gap:14px;padding:14px}.sgbms-fd-business-committee-photo-wrap{width:88px;height:88px;flex-basis:88px}.sgbms-fd-business-committee-info h3{font-size:18px}.sgbms-fd-business-committee-actions{margin-top:10px}.sgbms-fd-business-committee-actions a{min-height:36px;padding:6px 12px;font-size:13px}}@media(max-width:420px){.sgbms-fd-business-committee-card{align-items:flex-start}.sgbms-fd-business-committee-photo-wrap{width:78px;height:78px;flex-basis:78px}.sgbms-fd-business-committee-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.sgbms-fd-business-committee-actions a{width:100%}}


/* v1.4.8: Gujarat-wide Health Committee below Blood Donor results */
.sgbms-fd-health-committee{--fd-health-accent:#dc2626;--fd-health-soft:#fff5f5;--fd-health-border:#f2d2d2;margin:18px 0 0;padding:24px;border:1px solid #dbe7e5;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(23,32,51,.06);direction:ltr;text-align:left}
.sgbms-fd-health-committee-heading{margin-bottom:18px}.sgbms-fd-health-committee-heading>span{display:block;color:var(--fd-health-accent);font-size:13px;font-weight:800}.sgbms-fd-health-committee-heading h2{margin:5px 0 6px;color:#263238;font-size:23px;line-height:1.35;text-align:left}.sgbms-fd-health-committee-heading p{margin:0;color:#667085;line-height:1.65;text-align:left}
.sgbms-fd-health-committee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sgbms-fd-health-committee-card{display:flex;align-items:center;gap:18px;min-height:154px;padding:20px;overflow:hidden;border:1px solid var(--fd-health-border);border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.06);direction:ltr;text-align:left}.sgbms-fd-health-committee-photo-wrap{width:112px;height:112px;flex:0 0 112px;overflow:hidden;border:1px solid var(--fd-health-border);border-radius:18px;background:var(--fd-health-soft)}.sgbms-fd-health-committee-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.sgbms-fd-health-committee-info{min-width:0;flex:1}.sgbms-fd-health-committee-info h3{margin:0 0 6px;color:#263238;font-size:20px;line-height:1.35;text-align:left;overflow-wrap:anywhere}.sgbms-fd-health-committee-designation{margin:0!important;color:#667085;font-size:15px;line-height:1.5;text-align:left}.sgbms-fd-health-committee-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.sgbms-fd-health-committee-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 14px;border:1px solid #f1b6b6;border-radius:999px;background:#fff;color:var(--fd-health-accent)!important;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.sgbms-fd-health-committee-actions a:hover,.sgbms-fd-health-committee-actions a:focus{border-color:var(--fd-health-accent);background:var(--fd-health-accent);color:#fff!important;outline:none}.sgbms-fd-health-committee-empty{padding:18px;border:1px dashed #f1b6b6;border-radius:16px;background:var(--fd-health-soft);color:#667085;text-align:center}
@media(max-width:780px){.sgbms-fd-health-committee-grid{grid-template-columns:1fr}}@media(max-width:640px){.sgbms-fd-health-committee{padding:17px;border-radius:15px}.sgbms-fd-health-committee-card{align-items:center;gap:14px;min-height:0;padding:15px;border-radius:18px}.sgbms-fd-health-committee-photo-wrap{width:88px;height:88px;flex-basis:88px;border-radius:15px}.sgbms-fd-health-committee-info h3{font-size:18px}.sgbms-fd-health-committee-actions{gap:7px;margin-top:10px}.sgbms-fd-health-committee-actions a{min-height:36px;padding:6px 12px;font-size:13px}}@media(max-width:420px){.sgbms-fd-health-committee-card{align-items:flex-start;gap:12px}.sgbms-fd-health-committee-photo-wrap{width:78px;height:78px;flex-basis:78px}.sgbms-fd-health-committee-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.sgbms-fd-health-committee-actions a{width:100%;padding-left:8px;padding-right:8px}}
