/* Public contact page: PBD typography, colour and spacing. */
.pbd-contact-layout { align-items: stretch; }
.pbd-contact-layout > [class*="col-"] { min-width: 0; }
.pbd-contact-section,
.pbd-team-section {
    background: rgba(15,15,15,.75);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    padding: 22px;
}
.pbd-contact-section { height: 100%; }
.pbd-contact-section > h5,
.pbd-team-section > h5 {
    margin: 0 0 17px !important;
    padding-left: 12px !important;
    border-left: 3px solid var(--primary-orange) !important;
    color: #fff !important;
    font: 800 19px/1.3 Raleway, sans-serif !important;
    letter-spacing: 0 !important;
}
.pbd-contact-section > h5 i,
.pbd-team-section > h5 i { color: #a8bac3 !important; }

.pbd-primary-contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 190px;
    padding: 18px;
    margin-bottom: 8px;
    background: rgba(12,14,15,.94);
    border: 1px solid #86502b;
    border-radius: 13px;
}
.pbd-primary-contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.pbd-primary-contact::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,rgba(10,12,13,.99) 0%,rgba(10,12,13,.94) 35%,rgba(10,12,13,.55) 75%,rgba(10,12,13,.3) 100%); }
.pbd-primary-contact > :not(.pbd-primary-contact-photo) { position: relative; z-index: 2; }
.pbd-contact-kicker {
    display: block;
    color: #ffae70;
    font: 800 11px/1.3 Raleway, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pbd-primary-number {
    display: inline-block;
    margin: 6px 0 15px;
    color: #fff !important;
    font: 900 clamp(23px, 2vw, 29px)/1.2 Lato, sans-serif;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.pbd-primary-number:hover { color: #ffb273 !important; }
.pbd-contact-actions { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr; gap: 8px; }
.pbd-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 7px;
    border-radius: 10px;
    border: 1px solid #526066;
    background: #2c353a;
    color: #fff !important;
    font: 800 12px/1.25 Raleway, sans-serif;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}
.pbd-contact-action:hover,
.pbd-contact-action:focus-visible { background: #38454b; border-color: #73848b; }
.pbd-contact-action-primary { background: var(--primary-orange); border-color: var(--primary-orange); }
.pbd-contact-action-primary:hover,
.pbd-contact-action-primary:focus-visible { background: #e96606; border-color: #e96606; }
.pbd-contact-action:focus-visible,
.team-card:focus-visible { outline: 3px solid #ff9d50; outline-offset: 2px; }

.pbd-contact-section .contact-list-container,
.pbd-contact-section .personnel-list { gap: 0; }
.pbd-contact-section .contact-list-item,
.pbd-contact-section .person-strip {
    min-height: 64px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    background: transparent;
    padding: 11px 3px;
    box-shadow: none;
}
.pbd-contact-section .contact-list-item:last-child,
.pbd-contact-section .person-strip:last-child { border-bottom: 0; }
.pbd-contact-section .contact-list-item:hover,
.pbd-contact-section .person-strip:hover {
    background: #242c30;
    transform: none;
    border-color: rgba(255,255,255,.08);
}
.pbd-contact-section .contact-icon {
    width: 37px;
    min-width: 37px;
    height: 37px;
    margin-right: 12px;
    background: #37291f;
    color: #ff9d50;
}
.pbd-contact-section .contact-text { display: block; min-width: 0; }
.pbd-contact-section .contact-label,
.pbd-contact-section .person-info .title {
    display: block;
    color: #aec0c8;
    font: 800 10px/1.3 Raleway, sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.pbd-contact-section .contact-value {
    display: block;
    margin-top: 3px;
    color: #fff;
    font: 700 15px/1.4 Lato, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}
.pbd-contact-section .item-emergency .contact-icon { background: rgba(220,53,69,.12); color: #dc3545; }
.pbd-contact-section .item-emergency:hover .contact-icon { background: #dc3545; color: #fff; }
.pbd-contact-section .item-emergency .contact-value { color: #ff6b75; }
.pbd-contact-section .person-info { min-width: 0; }
.pbd-contact-section .person-info .name { font: 800 15px/1.3 Raleway, sans-serif; }
.pbd-contact-section .person-info .title { margin-top: 4px; text-transform: none; font: 400 13px/1.35 Lato, sans-serif; letter-spacing: 0; }
.pbd-contact-section .person-actions { flex: none; }
.pbd-contact-section .action-icon { width: 42px; height: 42px; border-radius: 10px; background: #2c353a; border-color: #526066; }
.pbd-contact-section .person-actions .phone-popup-btn { background: var(--primary-orange); border-color: var(--primary-orange); }
.pbd-contact-section .person-actions .phone-popup-btn:hover { background: #e96606; border-color: #e96606; }
.pbd-contact-section .action-icon:hover { transform: none; box-shadow: none; }

.pbd-team-section > h5 { text-align: left; }
.pbd-team-section .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 12px;
    margin-top: 0;
}
.pbd-team-section .team-card {
    width: 100%;
    min-width: 0;
    min-height: 92px;
    padding: 13px;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    border: 1px solid #465359;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    color: #fff;
    text-align: left;
    box-shadow: none;
    font-family: Lato, sans-serif;
}
.pbd-team-section .team-card:hover { transform: none; background: #2a3338; border-color: var(--primary-orange); box-shadow: none; }
.pbd-team-section .team-avatar {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border: 2px solid #67767d;
    border-radius: 50%;
    object-fit: cover;
}
.pbd-team-section .team-card-header {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 3px !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.3;
}
.pbd-team-section .team-card-header .name-role { font: 800 15px/1.3 Raleway, sans-serif; color: #fff; }
.pbd-team-section .team-card-role { color: #bccbd0; font: 400 13px/1.3 Lato, sans-serif; }
.pbd-team-section .team-card-view { margin-top: 4px; color: #ffad6b; font: 800 12px/1.2 Raleway, sans-serif; }
.pbd-team-section .team-card-view i { margin-right: 4px; }

@media (max-width: 991px) {
    .pbd-contact-layout { margin-top: 0 !important; }
    .pbd-contact-section,
    .pbd-team-section { padding: 20px 18px; border-radius: 14px; }
    .pbd-team-section > h5 { margin-bottom: 18px !important; padding-top: 2px; }
    body .dashboard-panel > .pbd-team-section.mt-4 { margin-top: 28px !important; }
    .pbd-contact-section > h5,
    .pbd-team-section > h5 { font-size: 17px !important; }
    .pbd-primary-contact { min-height: 218px; padding: 15px; }
    .pbd-primary-contact::after { background: linear-gradient(0deg,rgba(10,12,13,.99) 0%,rgba(10,12,13,.95) 66%,rgba(10,12,13,.70) 100%); }
    .pbd-primary-contact .pbd-contact-kicker { margin-top: 48px; }
    .pbd-primary-number { font-size: 24px; margin-bottom: 12px; }
    .pbd-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pbd-contact-action-primary { grid-column: 1 / -1; }
    .pbd-contact-action { white-space: normal; }
    .pbd-team-section .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .pbd-contact-section,
    .pbd-team-section { padding: 13px; }
    .pbd-team-section .team-avatar { width: 56px; min-width: 56px; height: 56px; }
}

/* Team detail popup: owner portal layout with the public site's earlier glass surface. */
#teamModal .modal-dialog { max-width: 560px; margin-inline: auto; }
/* Key personnel email popup follows the public contact page's dark glass surface. */
#emailModal .modal-dialog { max-width: 500px; margin-inline: auto; }
#emailModal .modal-content { background: #151515; color: #f1f3f4; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 28px 75px #0009; overflow: hidden; }
#emailModal .modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 18px; background: #151515 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
#emailModal .pbd-email-kicker { display: block; margin-bottom: 6px; color: #ff9d50; font: 800 11px/1.2 Raleway,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
#emailModal .modal-title { color: #fff; font: 800 21px/1.25 Raleway,sans-serif; }
#emailModal .btn-close { margin: 0; opacity: .88; }
#emailModal .modal-body { padding: 22px 24px 24px; }
#emailModal .pbd-email-person { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
#emailModal .pbd-email-person-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid rgba(255,123,22,.4); border-radius: 50%; background: rgba(255,123,22,.12); color: #ff9d50; font-size: 20px; }
#emailModal .pbd-email-person-copy { display: grid; gap: 3px; min-width: 0; }
#emailModal .pbd-email-person-copy strong { color: #fff; font: 800 17px/1.3 Raleway,sans-serif; }
#emailModal .pbd-email-person-copy span { color: #c3cdd1; font: 400 14px/1.4 Lato,sans-serif; }
#emailModal .pbd-email-field-label { display: block; margin-bottom: 8px; color: #c3cdd1; font: 800 12px/1.3 Raleway,sans-serif; }
#emailModal .pbd-email-address-row { display: flex; gap: 9px; }
#emailModal .pbd-email-address-row .form-control { min-width: 0; min-height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.06); color: #fff; font: 400 14px/1.4 Lato,sans-serif; }
#emailModal .pbd-email-copy,#emailModal .pbd-email-close,#emailModal .pbd-email-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 15px; border-radius: 9px; font: 800 13px/1.3 Raleway,sans-serif; white-space: nowrap; }
#emailModal .pbd-email-copy,#emailModal .pbd-email-close { border: 1px solid rgba(255,255,255,.2); background: #30363a; color: #fff; }
#emailModal .pbd-email-open { border: 1px solid #ff7b16; background: #ff7b16; color: #fff; text-decoration: none; }
#emailModal .pbd-email-copy:hover,#emailModal .pbd-email-close:hover { background: #41494d; color: #fff; }
#emailModal .pbd-email-open:hover { background: #e66d07; color: #fff; }
#emailModal .modal-footer { margin: 0 24px; padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 575px) { #emailModal .modal-dialog { margin: 12px; } #emailModal .modal-header { padding: 18px; } #emailModal .modal-body { padding: 18px; } #emailModal .modal-footer { margin-inline: 18px; } }
#teamModal .modal-content {
    overflow: hidden;
    background: rgba(15,15,15,.92);
    color: #f1f3f4;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 28px 75px #0009;
}
#teamModal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
#teamModal .pbd-team-modal-kicker {
    display: block;
    margin-bottom: 6px;
    color: #ff9d50;
    font: 800 11px/1.2 Raleway, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
#teamModal .modal-title { color: #fff; font: 800 21px/1.25 Raleway, sans-serif; }
#teamModal .btn-close { flex: none; margin: 0; opacity: .88; }
#teamModal .modal-body { padding: 20px 24px 22px; }
#teamModal .pbd-team-modal-profile { display: flex; align-items: flex-start; gap: 18px; }
#teamModal .pbd-team-modal-photo {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: #151515;
    object-fit: cover;
}
#teamModal .pbd-team-modal-copy { min-width: 0; }
#teamModal.pbd-team-modal-photo-only .pbd-team-modal-profile { justify-content: center; }
#teamModal.pbd-team-modal-photo-only .pbd-team-modal-photo { width: 130px; height: 130px; flex-basis: 130px; }
#teamModal.pbd-team-modal-photo-only .pbd-team-modal-copy { display: none; }

/* Quiet desktop-only copy action alongside secondary contact details. */
.pbd-contact-copy-row { position: relative; }
.pbd-contact-copy-row .contact-list-item { padding-right: 48px; }
.pbd-contact-copy {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9aabb2;
    font-size: 12px;
    opacity: .52;
    transition: opacity .2s ease, color .2s ease, background .2s ease;
}
.pbd-contact-copy:hover,
.pbd-contact-copy:focus-visible { opacity: 1; color: #ff9d50; background: rgba(255,123,22,.1); }
.pbd-contact-copy:focus-visible { outline: 2px solid #ff9d50; outline-offset: 2px; }
.pbd-contact-copy-note { position: absolute; right: 41px; top: 50%; transform: translateY(-50%); color: #ffad70; font: 700 11px Lato,sans-serif; }
@media (max-width: 991px) { .pbd-contact-copy { display: none; } .pbd-contact-copy-row .contact-list-item { padding-right: 3px; } }
#teamModal .pbd-team-modal-role {
    margin: 0 0 9px;
    color: #ff9d50;
    font: 800 11px/1.3 Raleway, sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
}
#teamModal .pbd-team-modal-rule { margin: 0 0 10px; border-color: rgba(255,255,255,.1); }
#teamModal .pbd-team-modal-bio { margin: 0; color: #d0d8dc; font: 400 14px/1.6 Lato, sans-serif; white-space: pre-line; }
#teamModal .modal-footer { margin: 0 24px; padding: 16px 0 21px; border-top: 1px solid rgba(255,255,255,.1); }
#teamModal .modal-footer .btn {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #4b555b;
    border-radius: 9px;
    background: #30363a;
    color: #fff;
    font: 800 13px/1.3 Raleway, sans-serif;
}
@media (max-width: 575px) {
    #teamModal .modal-dialog { margin: 12px; }
    #teamModal .modal-header { padding: 18px; }
    #teamModal .modal-body { padding: 18px; }
    #teamModal .modal-footer { margin-inline: 18px; }
    #teamModal .pbd-team-modal-profile { flex-direction: column; gap: 12px; }
    #teamModal .pbd-team-modal-photo { width: 84px; height: 84px; flex-basis: 84px; }
}
