/* =====================================================
   PULSE-ART Member Profile / Edit Form – Final Clean CSS
   -----------------------------------------------------
   Controls the editable member profile page:
   - main card layout
   - profile image + intro area
   - editable rows
   - buttons / icons
   - map modal
   - responsive behavior
===================================================== */

/* Design tokens used only by the member profile page */
:root {
    --member-primary: #b12079;
    --member-primary-hover: #971a67;
    --member-primary-soft: rgba(177, 32, 121, 0.08);
    --member-primary-soft-2: rgba(177, 32, 121, 0.14);
    --member-text: #171940;
    --member-muted: #6f7285;
    --member-border: rgba(23, 25, 64, 0.10);
    --member-bg-soft: #faf8fc;
}

/* Main page spacing and profile card shell */
.member-profile-page {
    padding: 52px 0;
    background: transparent;
    font-family: "Inter", "Noto Sans", sans-serif;
}

.member-profile-card.card {
    min-height: 0 !important;
    display: block !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    background: #fff !important;
    border: 1px solid var(--member-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045) !important;
    overflow: hidden !important;
}

.member-profile-card .card-body {
    padding: 30px 40px !important;
}

.member-profile-footer {
    padding: 16px 24px 20px !important;
    border-top: 1px solid var(--member-border) !important;
}

/* Top profile area: image on the left, intro/account on the right */
.member-profile-top {
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) !important;
    column-gap: 28px !important;
    row-gap: 0 !important;
    align-items: start !important;
    margin-bottom: 8px !important;
}

/* Neutralize Bootstrap column widths inside the custom grid */
.member-profile-top > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.member-profile-top > [class*="col-"]:first-child {
    grid-column: 1 !important;
}

.member-profile-top > [class*="col-"]:last-child {
    grid-column: 2 !important;
}

/* Profile image and edit-pencil overlay */
.member-profile-image-wrap {
    position: relative !important;
    width: 120px !important;
    max-width: 120px !important;
    margin: 0 !important;
}

.member-profile-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    background: #f2f2f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

.member-image-edit-btn {
    position: absolute !important;
    right: 2px !important;
    bottom: 2px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: var(--member-primary) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
}

.member-image-edit-btn:hover {
    background: var(--member-primary-hover) !important;
    color: #fff !important;
}

.member-image-input {
    display: none !important;
}

/* Small image guidance text under the profile image */
.member-profile-top .member-field-help {
    max-width: 120px !important;
    margin-top: 8px !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
}

.member-field-help.member-field-help-hidden {
    display: none !important;
}

/* Badge, member name and short intro paragraph */
.member-category.badge {
    display: inline-block !important;
    margin-bottom: 18px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: var(--member-primary) !important;
    border-color: var(--member-primary) !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.member-name {
    margin: 0 0 4px !important;
    color: var(--member-text) !important;
    font-size: clamp(1.25rem, 1.5vw, 1.55rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.member-card-note {
    max-width: 72ch !important;
    margin: 0 0 10px !important;
    color: var(--member-muted) !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
}


/* Account title should not have a top divider */
.member-account-box .member-edit-section-title,
.member-edit-section-title.mt-0 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Main editable list container */
.member-edit-list {
    display: flex !important;
    flex-direction: column !important;
}

/* Editable/read-only rows: label column + value/control column */
.member-edit-row.row,
.member-readonly-row.row {
    display: grid !important;
    grid-template-columns: 195px minmax(0, 1fr) !important;
    column-gap: 20px !important;
    row-gap: 4px !important;
    align-items: start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0 !important;
    border-color: var(--member-border) !important;
}

/* Neutralize Bootstrap columns inside profile rows */
.member-edit-row.row > [class*="col-"],
.member-readonly-row.row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Subtle highlight while editing / hovering read-only rows */
.member-edit-row.is-editing,
.member-readonly-row:hover {
    background: rgba(177, 32, 121, 0.025) !important;
}

/* Field labels */
.member-edit-label {
    display: block !important;
    margin: 0 !important;
    color: var(--member-text) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.035em !important;
}

/* Required asterisk */
.member-required {
    color: var(--member-primary) !important;
    font-weight: 700 !important;
    margin-left: 3px !important;
}

/* Value area: value first, then action buttons */
.member-edit-control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
    gap: 5px !important;
    align-items: center !important;
    min-width: 0 !important;
}

/* Displayed values */
.member-edit-value {
    min-width: 0 !important;
    color: #222 !important;
    font-size: 0.84rem !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word !important;
}

/* Fallback text for empty values */
.member-edit-value:empty::before {
    content: "Click edit to add";
    color: #999;
    font-style: italic;
}

/* Preserve line breaks in longer description fields */
.member-edit-paragraph {
    white-space: pre-line !important;
}

/* Password display spacing */
.member-password-value {
    letter-spacing: 0.12em !important;
}

/* Help text under each field */
.member-field-help,
.member-edit-control .member-field-help {
    grid-column: 1 / -1 !important;
    display: block !important;
    max-width: 720px !important;
    margin-top: 1px !important;
    color: var(--member-muted) !important;
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
}

/* Inputs and selects */
.member-edit-input,
.member-edit-textarea,
.member-social-url,
.member-social-type,
.form-select,
.form-control {
    min-height: 32px !important;
    border-color: rgba(23, 25, 64, 0.14) !important;
    border-radius: 8px !important;
    font-family: "Inter", "Noto Sans", sans-serif !important;
    font-size: 0.82rem !important;
}

/* Larger text area for profile description */
/* Inputs and selects */
.member-edit-input,
.member-edit-textarea,
.member-social-url,
.member-social-type,
.form-select,
.form-control {
    min-height: 32px !important;
    border-color: rgba(23, 25, 64, 0.14) !important;
    border-radius: 8px !important;
    font-family: "Inter", "Noto Sans", sans-serif !important;
    font-size: 0.82rem !important;
}

/* Larger text area for profile description */
.member-edit-textarea {
    min-height: 180px !important;
    height: auto !important;
    resize: vertical !important;
    overflow-y: auto !important;
}

/* Focus state follows PULSE-ART magenta */
.member-edit-input:focus,
.member-edit-textarea:focus,
.member-social-url:focus,
.member-social-type:focus,
.form-select:focus,
.form-control:focus {
    border-color: var(--member-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(177, 32, 121, 0.14) !important;
}

/* Focus state follows PULSE-ART magenta */
.member-edit-input:focus,
.member-edit-textarea:focus,
.member-social-url:focus,
.member-social-type:focus,
.form-select:focus,
.form-control:focus {
    border-color: var(--member-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(177, 32, 121, 0.14) !important;
}

/* Circular action buttons: edit, map pin, password eye, remove social */
.member-edit-pencil,
.member-map-btn,
.member-password-toggle,
.member-social-remove {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--member-primary-soft) !important;
    color: var(--member-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: 0.18s ease !important;
}

.member-edit-pencil:hover,
.member-map-btn:hover,
.member-password-toggle:hover,
.member-social-remove:hover {
    background: var(--member-primary-soft-2) !important;
    color: var(--member-primary) !important;
    transform: translateY(-1px) !important;
}





/* Done, cancel, add-social and save buttons */
.member-edit-done.btn,
.member-edit-cancel.btn,
.member-social-add.btn,
.member-action-btn.btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

/* Primary buttons */
.btn-primary,
.member-action-btn,
.member-edit-done.btn-primary {
    background-color: var(--member-primary) !important;
    border-color: var(--member-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.member-action-btn:hover,
.member-edit-done.btn-primary:hover {
    background-color: var(--member-primary-hover) !important;
    border-color: var(--member-primary-hover) !important;
    color: #fff !important;
}

.member-action-btn {
    min-height: 32px !important;
    padding: 6px 13px !important;
    font-size: 0.78rem !important;
}

/* Secondary reset button */
.member-action-btn.secondary,
.btn-light.member-action-btn {
    background: #f2f2f5 !important;
    border-color: #f2f2f5 !important;
    color: var(--member-text) !important;
}

/* Coordinates preview box */
.member-map-summary {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding: 8px 10px !important;
    border: 1px solid var(--member-border) !important;
    border-radius: 10px !important;
    background: var(--member-bg-soft) !important;
    color: var(--member-text) !important;
    font-size: 0.78rem !important;
}

/* Consent block for publishing on Members Map */
.member-map-consent-block {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--member-border) !important;
    border-radius: 12px !important;
    background: var(--member-bg-soft) !important;
}

.member-checkbox-line {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    color: var(--member-text) !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.member-checkbox-line input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px !important;
    accent-color: var(--member-primary) !important;
}

/* Social media fields */
.member-social-item {
    margin-bottom: 4px !important;
}

.member-social-add {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 3px !important;
    padding: 4px 10px !important;
    border-color: var(--member-primary) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--member-primary) !important;
    font-size: 0.72rem !important;
}

.member-social-add:hover {
    background: var(--member-primary) !important;
    color: #fff !important;
}

/* General spacing */
hr.my-4.my-lg-5 {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

/* City autocomplete dropdown */
.city-suggestions {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.375rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.city-suggestions[hidden] {
    display: none !important;
}

.city-suggestions .list-group-item {
    cursor: pointer;
    font-size: 0.9rem;
}

.city-suggestions .list-group-item:hover {
    background: var(--member-primary);
    color: #fff;
}

/* Leaflet map modal overlay */
#memberMapModal.member-map-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: rgba(0, 0, 0, 0.45) !important;
}

#memberMapModal.member-map-modal[hidden] {
    display: none !important;
}

/* Modal box layout: header / map / footer */
#memberMapModal .member-map-box {
    width: 900px !important;
    max-width: 95vw !important;
    height: 610px !important;
    max-height: 90vh !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
}

#memberMapModal .member-map-header,
#memberMapModal .member-map-footer {
    position: relative !important;
    z-index: 2 !important;
    background: #fff !important;
}

/* Modal header */
.member-map-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid var(--member-border) !important;
}

.member-map-header h3 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.member-map-close {
    border: none !important;
    background: none !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Leaflet map container */
#memberMap {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 430px !important;
    overflow: hidden !important;
    background: #ddd !important;
    display: block !important;
}

/* Modal footer */
.member-map-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 22px 22px !important;
    border-top: 1px solid var(--member-border) !important;
}

.member-map-coords {
    margin: 0 !important;
    color: var(--member-muted) !important;
    font-size: 0.9rem !important;
}

/* Leaflet internal positioning fix */
#memberMap .leaflet-pane,
#memberMap .leaflet-map-pane,
#memberMap .leaflet-tile-pane,
#memberMap .leaflet-overlay-pane,
#memberMap .leaflet-shadow-pane,
#memberMap .leaflet-marker-pane,
#memberMap .leaflet-tooltip-pane,
#memberMap .leaflet-popup-pane,
#memberMap .leaflet-tile-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

/* Leaflet tile image reset */
#memberMap img.leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: none !important;
    object-position: initial !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    transform: none;
}

/* Tablet layout */
@media (max-width: 991.98px) {
    .member-profile-card {
        max-width: 92vw !important;
    }

    .member-profile-card .card-body {
        padding: 24px 28px !important;
    }

    .member-edit-row.row,
    .member-readonly-row.row {
        grid-template-columns: 170px minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }
}

/* Mobile layout */
@media (max-width: 767.98px) {
    .member-profile-page {
        padding: 32px 0 !important;
    }

    .member-profile-card {
        max-width: 94vw !important;
    }

    .member-profile-card .card-body {
        padding: 20px 18px !important;
    }

    .member-profile-top {
        grid-template-columns: 1fr !important;
        row-gap: 14px !important;
    }

    .member-profile-top > [class*="col-"]:first-child,
    .member-profile-top > [class*="col-"]:last-child {
        grid-column: auto !important;
    }

    .member-profile-image-wrap {
        margin: 0 auto !important;
    }

    .member-profile-top .member-field-help {
        max-width: none !important;
        text-align: center !important;
    }

    .member-edit-row.row,
    .member-readonly-row.row {
        grid-template-columns: 1fr !important;
        row-gap: 6px !important;
        padding: 10px 0 !important;
    }

    .member-edit-control {
        grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    }

    .member-profile-footer {
        padding: 14px 18px 18px !important;
    }

    .member-profile-footer .d-flex,
    .member-action-btn {
        width: 100% !important;
    }

    #memberMapModal .member-map-box {
        width: 95vw !important;
        height: 80vh !important;
    }

    .member-map-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}


/* =====================================================
   Top/account alignment cleanup
===================================================== */

hr.my-4.my-lg-5 {
    display: none !important;
}

.member-profile-top,
.member-edit-row.row,
.member-readonly-row.row {
    grid-template-columns: 170px minmax(0, 1fr) !important;
    column-gap: 22px !important;
}

.member-profile-top > [class*="col-"]:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.member-profile-image-wrap {
    width: 120px !important;
    max-width: 120px !important;
    margin: 36px auto 0 !important;
}

.member-profile-top .member-field-help {
    max-width: 120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
}

.member-profile-top > [class*="col-"]:last-child {
    width: 100% !important;
    max-width: none !important;
}

.member-edit-list > .member-edit-section-title:first-child {
    margin-top: 42px !important;
}

.member-name {
    border-bottom: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
}

.member-name::after {
    display: none !important;
    content: none !important;
}

.member-edit-section-title {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 40px !important;
    margin-bottom: 0px !important;
}

.member-account-box .member-edit-section-title,
.member-edit-section-title.mt-0 {
    margin-top: 0 !important;
}

/* Account password row: align help text under the password value */
.member-account-box .member-edit-row[data-password-row] .member-edit-control {
    display: inline-grid !important;
    grid-template-columns: 110px 26px 26px !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    align-items: center !important;
    justify-content: start !important;
    width: auto !important;
    max-width: 260px !important;
}

.member-account-box .member-edit-row[data-password-row] .member-password-value {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.member-account-box .member-edit-row[data-password-row] .member-password-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.member-account-box .member-edit-row[data-password-row] .member-edit-pencil {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.member-account-box {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-top: 10px !important;
    margin-right: 16px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 1px solid var(--member-border) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

/* Account password row: align help text under the password value */
.member-account-box .member-edit-row[data-password-row] .member-edit-control {
    display: inline-grid !important;
    grid-template-columns: 110px 26px 26px !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    align-items: center !important;
    justify-content: start !important;
    width: auto !important;
    max-width: 260px !important;
}
/* Account box: bring username/password values more to the left */
.member-account-box .member-edit-row.row,
.member-account-box .member-readonly-row.row {
    grid-template-columns: 150px minmax(0, 1fr) !important;
    column-gap: 18px !important;
}


/* Purple accent bar at the very top of the profile card */
.member-profile-card.card {
    position: relative !important;
    overflow: hidden !important;    
}

.member-profile-card.card::before {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 4px !important;
    background: var(--member-primary) !important;
    border-radius: 18px 18px 0 0 !important;
}

/* Softer add buttons for repeatable fields */
.member-social-add {
    background: transparent !important;
    border: none !important;
    color: var(--member-primary) !important;
    padding: 2px 0 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.member-social-add:hover {
    background: transparent !important;
    color: var(--member-primary-hover) !important;
    text-decoration: underline !important;
}

.member-social-add i {
    font-size: 0.68rem !important;
    margin-right: 3px !important;
}

/* =========================
   Repeatable fields: move actions a bit higher
========================= */
.member-repeat-list {
    margin-bottom: 4px !important;
}

.member-social-add {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.member-repeat-list + .member-social-add + .member-field-help {
    margin-top: 2px !important;
}

/* =========================
   Section titles: line closer to title, more space below
========================= */
.member-edit-section-title {
    border-top: none !important;
    border-bottom: 1px solid var(--member-border) !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;   /* η γραμμή πιο κοντά στον τίτλο */
    margin-top: 34px !important;
    margin-bottom: 18px !important;   /* μεγαλύτερο κενό κάτω από τη γραμμή */
}
/* Coordinates box: no background */
.member-map-summary {
    background: transparent !important;
}

/* Password help: align left with password dots */
.member-account-box .member-edit-row[data-password-row] .member-edit-control {
    display: inline-grid !important;
    grid-template-columns: auto 26px 26px !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    justify-content: start !important;
    align-items: center !important;
}

.member-account-box .member-edit-row[data-password-row] .member-password-value {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-self: start !important;
}

.member-account-box .member-edit-row[data-password-row] .member-field-help {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    width: 190px !important;
    max-width: 190px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.25 !important;
}
.member-account-box .member-edit-row[data-password-row] .member-field-help {
    width: 145px !important;
    max-width: 145px !important;
}

/* Remove profile picture button */
.member-image-remove-btn {
    position: absolute !important;
    right: 2px !important;
    top: 2px !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(177, 32, 121, 0.10) !important;
    color: var(--member-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    cursor: pointer !important;
}

.member-image-remove-btn:hover {
    background: rgba(177, 32, 121, 0.18) !important;
}

/* Align labels with field values */
.member-edit-row.row,
.member-readonly-row.row {
    align-items: center !important;
}

/* Keep long/help-text rows aligned from the top */
.member-edit-row.row:has(.member-field-help),
.member-edit-row.row:has(.member-repeat-list),
.member-readonly-row.row:has(.member-field-help) {
    align-items: start !important;
}

/* Push label slightly down so it lines up with the actual value/input */
.member-edit-label {
    padding-top: 5px !important;
}

/* Read-only registration rows: align label and value cleanly */
.member-readonly-row .member-edit-value {
    display: block !important;
    padding-top: 3px !important;
}

.profile-loader {
    width: 100%;
    min-height: 420px;
}

.profile-loader .card-body {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-loader[hidden],
#memberProfileForm[hidden] {
    display: none !important;
}

.member-edit-control .member-field-help.member-field-help-hidden,
.member-field-help.member-field-help-hidden {
    display: none !important;
}
.member-force-hidden {
    display: none !important;
}

.member-save-status {
    margin-bottom: 18px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

.member-save-status-info {
    background: rgba(177, 32, 121, 0.08) !important;
    color: var(--member-primary) !important;
}

.member-save-status-success {
    background: #eef8f1 !important;
    color: #26733d !important;
}

.member-save-status-error {
    background: #fff0f0 !important;
    color: #a52828 !important;
}

.member-form-busy {
    position: relative !important;
}

.member-form-busy::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    z-index: 20 !important;
    cursor: wait !important;
}

.member-save-status {
    position: relative !important;
    z-index: 30 !important;
    margin-bottom: 18px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: rgba(177, 32, 121, 0.08) !important;
    color: var(--member-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

.member-form-busy {
    position: relative !important;
}

.member-form-busy::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    z-index: 20 !important;
    cursor: wait !important;
}

.member-form-busy .card-body,
.member-form-busy .member-profile-footer {
    pointer-events: none !important;
}

.member-save-status {
    position: relative !important;
    z-index: 30 !important;
}

.member-profile-image-wrap.is-empty .member-profile-image {
    opacity: 0 !important;
}

.member-profile-image-wrap.is-empty::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    background: #f2f2f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.member-edit-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    white-space: nowrap;
}

.member-edit-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.member-edit-control .member-edit-input {
    flex: 1 1 auto;
    min-width: 0;
}

.member-edit-done,
.member-edit-cancel {
    white-space: nowrap;
}

.member-password-row .member-edit-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.member-password-row .member-inline-error {
    width: 100%;
    margin-top: 8px;

    color: #c13a58;
    font-size: 14px;

    order: 100;
}

.member-password-row .member-edit-input {
    flex: 1;
    min-width: 220px;
}

.member-password-row .member-edit-done,
.member-password-row .member-edit-cancel {
    flex-shrink: 0;
}

.member-password-row .member-edit-control {
    grid-template-columns: minmax(220px, 1fr) auto !important;
    align-items: start !important;
    column-gap: 14px !important;
}

.member-password-row #password {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.member-password-row .member-edit-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.member-password-row .member-inline-error {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 6px !important;
    color: #c13a58 !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

.member-password-row .member-field-help {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

.member-inline-error {
    display: block !important;
    width: 100% !important;
    margin-top: 6px !important;
    color: #c13a58 !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
}

.is-invalid {
    border-color: #c13a58 !important;
}

.member-edit-row .member-edit-control {
    align-items: flex-start !important;
}

.member-edit-row .member-edit-done,
.member-edit-row .member-edit-cancel {
    align-self: flex-start !important;
    margin-top: 0 !important;
}

.member-map-help{
    margin-left: 0 !important;
    padding-left: 1.6rem;
    margin-top: 6px;
}

.member-personal-title {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.member-privacy-note{
    font-size:.82rem;
    font-weight:600;

    color: var(--member-primary);

    background: rgba(177, 32, 121, 0.08);

    padding: 3px 10px;
    border-radius: 999px;

    line-height:1.2;
}