/* ========================================
 * PMPRO MEMBER DIRECTORY & PROFILE STYLES
 * Styles for Paid Memberships Pro member directory,
 * single profiles, account pages, and badges
   ======================================== */

.pmpro-member-profile-edit .pmpro_member_badges img {
    width: 141px;
}

.pmpro_card {
    border: none !important;
    background: var(--blue-grey) !important;
    border-radius: 0 !important;
}

.pmpro_member_directory .pmpro_card {
    background: var(--light-orange) !important;
}

.pmpro_card.pmpro_content_message {
    max-width: 900px;
    margin: 40px auto;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_card_actions,
.pmpro_card.pmpro_member_profile .pmpro_card_actions {
    display: none;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
    display: flex;
    flex-wrap: wrap;
    padding: 25px 21% 39px;
    background: var(--light-orange);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
    position: relative;
    min-height: 172px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar {
    width: 128px;
    margin-right: 20px;
}

.pmpro:not(.directory-only) .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
    border-radius: 50%;
    width: 50%;
    height: 50%;
    object-fit: cover;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-clinic_or_practice_name {
    width: 100%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: capitalize;
    margin-bottom: 0;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-pmpro_member_badge {
    position: absolute;
    top: 16px;
    right: 25px;
    width: 90px;
    text-align: right;
}

.pmpro_member_directory.pmpro_member_directory-div .membership-level-1 .pmpro_member_profile_field-pmpro_member_badge {
    right: 25px;
    top: 25px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_badge {
    max-width: 90px;
    height: auto;
}

.pmpro_member_directory.pmpro_member_directory-div .membership-level-1 .pmpro_member_badge {
    width: 90px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_address {
    width: 100%;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_address,
.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_city,
.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_state,
.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_zip {
    margin-right: 0px;
    display: inline-block;
    margin-bottom: 5px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_email,
.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_phone,
.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_web {
    margin-right: 15px;
    display: inline-block;
    margin-bottom: 5px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field_label {
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field_data {
    display: inline-block;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_card_actions {
    width: 100%;
    margin-top: 0px;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_card_actions a {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.pmpro_member_directory.pmpro_member_directory-div .pmpro_card_actions a:hover {
    background-color: var(--navy);
}

.pmpro_pagination {
    margin-bottom: 0 !important;
}

.pmpro_pagination-previous,
.pmpro_pagination-next {
    display: none;
}

@media (max-width: 1300px) {
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
        padding: 25px 16% 39px 23%;
    }
    .pmpro_member_profile_field.pmpro_member_profile_field-pmpro_member_badge {
        width: 54px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_badge {
        max-width: 70px;
    }

    .pmpro_member_profile_field.pmpro_member_profile_field-avatar {
        height: 90px !important;
    }
}


@media (min-width: 900px) and (max-width: 1160px) {
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
        border-radius: 50%;
        width: 100px;
        height: 100px;
        object-fit: cover;
    }
    .pmpro_card.pmpro_member_profile .pmpro_card_content {
        padding-top: 31px;
    }
    .pmpro_member_profile_field.pmpro_member_profile_field-pmpro_member_badge {
        width: 54px;
    }

    .pmpro:not(.directory-only) {
        column-gap: 40px;
    }

    .pmpro_member_directory.pmpro_member_directory-div {
        width: calc(45% - 20px) !important;
    }
    .pmpro_member_directory_after {
        width: calc(55% - 20px) !important;
    }
    .pmpro_member_directory.pmpro_member_directory-div     .pmpro_member_profile_field-avatar {
        position: relative;
        left: 0;
        width: 100%;
        margin-right: 0px;
    }
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
        padding: 30px 30px 40px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-pmpro_member_badge {
        top: 25px;
        right: 30px;
    }
}

@media (max-width: 1000px) {
    .pmpro_member_profile_field-clinic_or_practice_name a {
        font-size: 20px !important;
    }
}

@media(max-width: 900px) {
    #pmpro_member_directory_subheading {
        margin: 0 !important;
    }

    .pmpro_member_directory_after,
    .pmpro_member_directory.pmpro_member_directory-div {
        width: 100% !important;
    }

    .pmpro_member_directory_after {
        height: 400px !important;
        margin-bottom: 30px !important;
    }

    .pmpro_member_directory_after #map {
        height: 400px !important;
    }

    .pmpro:not(.directory-only) .pmpro_member_directory.pmpro_member_directory-div {
        max-height: unset !important;
    }

    .pmpro:not(.directory-only) .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
        width: 100% !important;
        max-width: 100px;
    }
}

@media (max-width: 800px) {
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
        padding: 30px 30px 40px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar,
    .pmpro_member_profile_field.pmpro_member_profile_field-avatar {
        position: relative;
        left: 0;
        width: 100%;
        margin-right: 0px;
    }
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
        border-radius: 50%;
        width: 120px;
        height: 120px;
        object-fit: cover;
    }
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
        flex-direction: column;
        text-align: left;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    div.pmpro_member_profile_field.pmpro_member_profile_field-avatar > div,
    div.pmpro_member_profile_field.pmpro_member_profile_field-clinic_or_practice_name > div {
        text-align: left;
        line-height: 1.5;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_email,
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_phone,
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-doctor_web {
        margin-right: 15px;
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }

    .pmpro_card.pmpro_member_profile .pmpro_card_content {
        padding-left: 20px;
        padding-right: 20px;
    }

    div.pmpro_card_content > div.pmpro_member_profile_field.pmpro_member_profile_field-avatar > div > img {
        width: 142px;
        height: 142px;
    }

    .custom-profile-flex-layout {
        gap: 0px;
        width: 100%;
        text-align: left;
    }

    .button-wrapper {
        position: relative;
        bottom: 0px;
        right: 0px;
        gap: 14px;
        order: 2;
        margin-top: 20px;
    }

    .button-wrapper a {
        color: #ffffff;
        font-weight: 600;
        background: var(--aqua);
        border-radius: 8px;
        padding: 10px 21px;
        font-size: 14px;
    }

    .hourlogo {
        width: 100%;
        text-align: left;
        box-shadow: none;
        padding: 0px;
    }

    .clinic-hours p {
        justify-content: left;
        box-shadow: none;
        font-size: 17px;
    }

    .pmpro_card.pmpro_member_profile .pmpro_member_profile_field.pmpro_member_profile_field-pmpro_member_badge {
        right: 3px;
        top: 0px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_content {
        padding: 24px 7% 36px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar {
        width: 100%;
    }

    .pmpro_member_profile_field.pmpro_member_profile_field-schedule_consultation {
        margin-top: 31px;
    }

    .pmpro:not(.directory-only) .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
        width: 100% !important;
        max-width: 90px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-avatar img {
        width: 90px;
        height: 90px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_member_profile_field-clinic_or_practice_name {
        font-size: 18px;
    }

    .pmpro_member_directory.pmpro_member_directory-div .pmpro_card_actions a {
        width: 100%;
        padding: 10px;
    }

    .pmpro_member_directory_after {
        height: 350px !important;
    }

    .pmpro_member_directory_after #map {
        height: 350px !important;
    }
}

/* ========================================
   AVATAR UPLOAD FORM
   ======================================== */
#basic-user-avatar-form {
    background: var(--blue-grey);
    padding: 30px;
    color: var(--text);
    max-width: 100%;
    margin: 2rem auto;
}

#basic-user-avatar-form img.avatar {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid var(--navy);
}

input[type="file"],
#basic-user-avatar-form input[type="checkbox"] {
    margin-top: 1rem;
    display: block;
    border: none !important;
    background-color: white !important;
    border-radius: 0 !important;
}

#basic-user-avatar-form label {
    color: var(--text);
    font-weight: 500;
    margin-left: 0.5rem;
}

#basic-user-avatar-form .description {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 1rem;
}

#basic-user-avatar-form input[type="submit"] {
    background: var(--orange);
    color: white;
    border: none;
    padding: 16px 30px;
    margin-top: 20px;
    border-radius: 25px;
    font-size: 15px;
    line-height: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    height: unset;
}

#basic-user-avatar-form input[type="submit"]:hover {
    background-color: var(--dark-orange);
}

.pmpro_form_field-file-actions button {
    padding: 10px 15px !important;
    line-height: 1em !important;
    font-weight: 500 !important;
}

.pmpro_section:has(.pmpro_form) .pmpro_card_content {
    padding: 30px;
}

/* ========================================
   ======================================== */
#pmpro_account .pmpro_box {
    background: var(--blue-grey);
    padding: 30px;
}

#pmpro_account table {
    background: transparent;
    border: none;
    border-radius: 0;
}

#pmpro_account table thead th {
    padding: 0 !important;
    border: none !important;
}

#pmpro_account table tbody td {
    padding: 10px 0 0 !important;
    border: none !important;
}

.bb-pmpro_account-profile {
    background: transparent;
    padding: 0;
}

.pmpro_actionlinks a {
    text-decoration: underline;
}

/* ========================================
   ======================================== */
.pmpro_card.pmpro_member_profile .pmpro_member_profile_field.pmpro_member_profile_field-pmpro_member_badge {
    position: absolute;
    left: 3px;
    bottom: 0px;
    width: 125px;
}

.pmpro_card.pmpro_member_profile h1 {
    font-size: 32px;
    color: var(--navy);
}

.doctor-profile-service-areas ul {
    display: flex;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.pmpro_card.pmpro_member_profile {
    position: relative;
}

.button-wrapper {
    position: absolute;
    bottom: 12px;
    z-index: 2;
    right: 18px;
    display: flex;
    gap: 21px;
}

.button-wrapper a {
    color: white;
    font-weight: 600;
}

.button-wrapper a:hover {
    color: var(--cyan);
}

.profile-col.col-contact p {
    margin: 4px !important;
    line-height: 1.3em;
}

p.addresssingle {
    display: flex;
    align-items: flex-start;
}

.addresssingle img {
    padding-top: 5px;
}

.pmpro_card.pmpro_member_profile .pmpro_member_profile_field.pmpro_member_profile_field-clinic_or_practice_name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    text-transform: capitalize;
    width: 50%;
}

.pmpro_member_profile_field.pmpro_member_profile_field-schedule_consultation {
    flex: 1 1 100%;
    margin-top: 18px;
}

.scheduleconsultation {
    padding: 16px 30px;
    line-height: 1em;
    font-size: 14px;
    background: var(--orange);
    border-radius: 25px;
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}

.scheduleconsultation:hover {
    background: var(--dark-orange);
}

@media(max-width: 1000px) {
    .scheduleconsultation {
        font-size: 13px !important;
    }
}

.custom-profile-flex-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0rem;
    width: 50%;
}

.custom-profile-flex-layout.limited-access {
    width: 100%;
}

.clinic-profile-badges .pmpro_member_badge {
    height: 70px !important;
    width: fit-content !important;
}

.clinic-hours p {
    font-size: 14px;
    display: flex;
    margin-block-end: 0px;
    justify-content: center;
    margin: 0px !important;
    line-height: 1.8em;
}

.profile-top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-col {
    flex: 1;
    min-width: 280px;
}

.col-map iframe,
.doctor-video iframe {
    width: 100%;
    border-radius: 8px;
    height: auto;
    aspect-ratio: 16 / 9;
}

.profile-bottom-row {
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

.profile-bottom-row h4 {
    margin-top: 20px;
}

.pmpro_member_profile_field.pmpro_member_profile_field-avatar {
    width: 130px;
    height: 130px;
    position: absolute;
    left: 35px;
}

.col-contact {
    font-size: 16px;
    max-width: 100%;
    text-wrap: auto;
    line-height: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pmpro_member_profile .pmpro_card_content {
    gap: 4px;
}

#pmpro_login {
    width: 100% !important;
}

.pmpro_btn {
    padding: 16px 30px !important;
    background: var(--orange) !important;
    color: white !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--orange) !important
}

.pmpro_btn-plain {
    padding: 0 !important;
    background: unset !important;
    border: unset !important;
    color: var(--text) !important;
    font-size: 12px !important;
}

.pmpro_btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.pmpro_member_directory_search {
    margin-bottom: 40px !important;
}

.pmpro_member_directory_search .pmpro_form_fields {
    width: 100%;
}

.pmpro_form_submit .pmpro_btn {
    padding: 16px 30px !important;
    line-height: 1em;
    height: unset;
    border: 1px solid var(--orange);
}

.pmpro_form_submit .pmpro_btn:hover,
.pmpro_btn:hover {
    background: var(--dark-orange) !important;
    border-color: var(--dark-orange) !important;
}

.pmpro_form_input {
    border-color: var(--bb-content-border-color) !important;
    border-radius: 0 !important;
}

.pmpro_card_actions {
    background-color: var(--orange) !important;
    color: white;
}

.pmpro_card_actions a {
    color: white;
    font-weight: 600;
}

.pmpro_card_actions a:hover {
    color: var(--navy);
}

.pmpro_card.pmpro_member_profile .pmpro_card_content {
    padding-left: 186px;
    padding-right: 12px;
}

.doctor-profile-logo {
    text-align: center;
}

.doctor-profile-services ul {
    padding-left: 0px;
    color: black;
    line-height: 2;
    font-weight: 500;
    font-size: 17px;
}

.hourlogo {
    background-color: white;
    border-radius: 8px;
    padding: 20px 20px;
    text-align: center;
    width: 43%;
    box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.5);
}

.clinic-logo img {
    max-width: 120px;
}

.clinic-hours img {
    max-width: 16px;
    vertical-align: middle;
}

.clinic-hours h4 {
    font-size: 19px;
    padding: 0px;
    margin: 10px 0px;
}

.doctor-profile-services img {
    max-width: 29px;
    vertical-align: middle;
}

/* ========================================
   MAP STYLES (Leaflet)
   ======================================== */
#map {
    height: 75vh !important;
}

#map h3 {
    font-size: 20px !important;
}

#map .clinic-popup-content {
    text-align: center;
}

#map .scheduleconsultation {
    display: block;
    margin: 15px auto;
    text-align: center;
}

.clinic-popup {
    max-width: 300px;
}

.clinic-popup-header {
    text-align: center;
    margin-bottom: 10px;
}

.clinic-popup-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.clinic-popup-content {
    font-size: 14px;
}

.clinic-popup-content p {
    margin: 5px 0;
}

.clinic-popup-content a {
    color: var(--navy);
    text-decoration: none;
}

.clinic-popup-content a:hover {
    color: rgb(4, 12, 121);
}

.leaflet-container {
    border-radius: 0 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border-radius: 0 !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-control-zoom-fullscreen.fullscreen-icon {
    background-image: url('../images/full-screen-black.svg') !important;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

/* ========================================
   PMPRO UTILITY & MISC
   ======================================== */
#pmpro_form_fieldset-directory-and-profile-preferences {
    display: none;
}

.pmpro_message.pmpro_error .more-link {
    display: none;
}

#pmpro_level-1 h1.entry-title,
#pmpro_level-1 h2.pmpro_card_title.pmpro_font-large,
#pmpro_level-1 p.pmpro_level_name_text,
#pmpro_level-1 .pmpro_level_cost_text {
    display: none;
}

#pmpro_level-1 {
    margin-top: 40px;
}

#pmpro_actionlink-view-all-members {
    display: none;
}

/* ========================================
   PROFILE CONSULTATION WIDGET
   ======================================== */
.bb-sticky-sidebar #block-13 { /* For the Request Consult Widget that displays shortcode on BB member profile pages */
    background: var(--light-orange);
}

.consultation-widget h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--text);
}

.consultation-widget form input[type="text"],
.consultation-widget form input[type="email"],
.consultation-widget form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    color: var(--text);
    border: none;
    border-radius: 0;
    font-weight: normal;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.consultation-widget form textarea {
    min-height: 100px;
    resize: vertical;
}

.consultation-widget .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: var(--text);
    line-height: 1.5em !important;
}

.consultation-widget .consent-label input[type="checkbox"] {
    margin-right: 4px;
    flex-shrink: 0;
}

.consultation-widget button.submit-consultation {
    width: 100%;
    padding: 16px 30px;
    background: var(--orange) !important;
    color: white;
    border: none;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.consultation-widget button.submit-consultation:hover {
    background: var(--dark-orange) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-sidebar-widget.consultation-widget {
        padding: 20px;
    }
}
