@charset "UTF-8";
/* CSS Document */

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-left {
    text-align: center;
}

.profile-social {
    text-align: left;
    margin: 8px 0 25px;
}

.profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 8px 0 0;
    border-radius: 50%;
    background: #29AEAE;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.profile-social a:hover {
    background: #133a3a;
}

.profile-shell {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
}

.profile-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.profile-logo {
    text-align: center;
    margin-bottom: 20px;
}

.profile-logo img {
    max-width: 260px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.profile-photo {
    text-align: center;
    margin-bottom: 25px;
}

.profile-photo img {
    width: 100%;
    max-width: 280px;
    max-height: 340px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-mobile-ctas {
    display: none;
}

.profile-actions a {
    background: #133a3a;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.profile-actions a:hover {
    background: #29AEAE;
}

.profile-title {
    font-size: 32px;
    line-height: 1.18;
    color: #133a3a;
    margin-bottom: 10px;
}

.profile-category-label {
    color: #29AEAE;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.profile-bio {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.profile-community-details {
    background: #f3fafa;
    border-left: 5px solid #29AEAE;
    padding: 18px 20px;
    margin: 0 0 28px;
    border-radius: 8px;
}

.profile-community-details h3 {
    color: #133a3a;
    font-size: 20px;
    margin: 0 0 10px;
}

.profile-community-details p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

.profile-details {
    font-size: 17px;
    line-height: 1.6;
}

.profile-details div {
    margin-bottom: 12px;
}

.profile-details strong {
    color: #133a3a;
}

.profile-details a {
    color: #29AEAE;
    font-weight: 600;
    text-decoration: none;
}

.profile-details a:hover {
    text-decoration: underline;
}

.profile-update-link {
    display: inline-block;
    margin-top: 15px;
    color: #29AEAE;
    font-weight: 600;
    text-decoration: none;
}

.profile-update-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #29AEAE;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.member-referrals {
    margin-top: 30px;
}

.member-referral {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.member-referral p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.member-referral small {
    font-size: 14px;
    line-height: 1.4;
}

.referral-button,
.referral-modal-footer button[type="submit"] {
    background: #133a3a;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.referral-button:hover,
.referral-modal-footer button[type="submit"]:hover {
    background: #29AEAE;
}

.referral-success {
    margin-top: 15px;
    padding: 12px;
    background: #e8f7f6;
    color: #133a3a;
    border-radius: 8px;
}

.referral-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.referral-modal.is-open {
    display: block;
}

.referral-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.referral-modal-content {
    position: relative;
    background: #fff;
    max-width: 520px;
    margin: 8vh auto;
    padding: 24px;
    border-radius: 12px;
    z-index: 1;
}

.referral-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.referral-close {
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.referral-modal-body label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
}

.referral-modal-body input,
.referral-modal-body textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 5px;
}

.referral-note {
    font-size: 0.9rem;
    color: #666;
}

.referral-modal-footer {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-shell {
        padding: 15px;
        margin: 25px auto;
    }

    .profile-card {
        padding: 22px;
    }

    .profile-title {
        font-size: 26px;
    }

    .profile-bio,
    .profile-community-details p,
    .profile-details {
        font-size: 16px;
    }

    .profile-actions--desktop,
    .profile-update-link--desktop,
    .profile-open-house-link--desktop {
        display: none;
    }

    .profile-mobile-ctas {
        display: block;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid #dce8e8;
        text-align: center;
    }

    .profile-mobile-ctas .profile-actions {
        margin-top: 0;
    }
}
.profile-open-house-link {
    background: #0ea4a2;
    border-radius: 6px;
    color: #fff;
    display: block;
    font-weight: 700;
    margin-top: 12px;
    padding: 12px 14px;
    text-align: center;
    text-decoration: none;
}

.profile-open-house-link:hover {
    background: #11383A;
    color: #fff;
}

@media (max-width: 768px) {
    .profile-left .profile-open-house-link--desktop {
        display: none;
    }
}
