.dp-contact-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dp-contact-search {
    background: var(--dp-contact-surface, #ffffff);
    border: 1px solid var(--dp-contact-border, #e5e7eb);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px var(--dp-contact-shadow, rgba(0, 0, 0, 0.05));
}

.dp-contact-search__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dp-contact-title, #0f4c81);
}

.dp-contact-search__controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dp-contact-search__input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--dp-contact-input-border, #d1d5db);
    border-radius: 4px;
    font-size: 15px;
}

.dp-contact-search__clear {
    padding: 10px 14px;
    border: 1px solid var(--dp-contact-input-border, #d1d5db);
    background: var(--dp-contact-input-bg, #f3f4f6);
    color: var(--dp-contact-input-text, #111827);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dp-contact-search__clear:hover {
    background: var(--dp-contact-border, #e5e7eb);
    border-color: var(--dp-contact-muted, #9ca3af);
}

.dp-contact-search__hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--dp-contact-text-muted, #6b7280);
}

.dp-contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dp-contact-card {
    background: var(--dp-contact-surface, #ffffff);
    border: 1px solid var(--dp-contact-border, #e5e7eb);
    border-radius: 4px;
    box-shadow: 0 1px 2px var(--dp-contact-shadow, rgba(0, 0, 0, 0.05));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.dp-contact-card:hover {
    box-shadow: 0 4px 12px var(--dp-contact-shadow-hover, rgba(0, 0, 0, 0.1));
}

.dp-contact-region {
    padding: 0 0 20px 0;
    font-weight: 500;
    font-size: 18px;
    color: var(--dp-contact-title, #0f4c81); /* Dark blue similar to image */
    background: transparent;
    text-align: center;
}

.dp-contact-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* New Identity Wrapper for Avatar + Name side-by-side */
.dp-contact-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.dp-contact-identity--stacked {
    flex-direction: column;
    gap: 10px;
}

.dp-contact-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dp-contact-input-bg, #f3f4f6);
}

.dp-contact-photo {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 0 !important;
    /* Grayscale filter to match the black & white look in image */
    filter: grayscale(100%);
}

.dp-contact-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--dp-contact-muted, #9ca3af);
}

.dp-contact-name {
    font-weight: 400;
    font-size: 16px;
    color: var(--dp-contact-text-muted, #6b7280); /* Gray text */
    text-align: left;
}

.dp-contact-identity--stacked .dp-contact-name {
    text-align: center;
}

.dp-contact-zip {
    font-size: 13px;
    color: var(--dp-contact-text-muted, #6b7280);
    background: var(--dp-contact-input-bg, #f3f4f6);
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 15px;
    align-self: center;
}

.dp-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.dp-contact-phone,
.dp-contact-mail,
.dp-contact-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--dp-contact-surface, #ffffff);
    border: 1px solid var(--dp-contact-border, #e5e7eb); /* Light gray border */
    border-radius: 2px; /* Slightly squared corners like image */
    color: var(--dp-contact-icon, #000000);
    transition: all 0.2s ease;
}

/* Remove old pseudo-elements */
.dp-contact-phone::before,
.dp-contact-mail::before,
.dp-contact-whatsapp::before {
    content: none;
    display: none;
}

.dp-contact-phone svg,
.dp-contact-mail svg,
.dp-contact-whatsapp svg {
    color: var(--dp-contact-icon, #000000); /* Force black icons */
    flex-shrink: 0;
}

.dp-contact-phone a,
.dp-contact-mail__link,
.dp-contact-whatsapp a {
    font-weight: 500;
    font-size: 16px;
    color: var(--dp-contact-icon, #000000);
    text-decoration: none;
}

.dp-contact-phone:hover,
.dp-contact-mail:hover,
.dp-contact-whatsapp:hover {
    border-color: var(--dp-contact-muted, #9ca3af);
}

.dp-contact-mail__address {
    display: none;
}

.dp-contact-empty {
    text-align: center;
    color: var(--dp-contact-text-muted, #6b7280);
    padding: 40px 20px;
    font-size: 16px;
}

.dp-contact-no-results {
    display: none;
    text-align: center;
    color: var(--dp-contact-text-muted, #6b7280);
    margin-top: 16px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .dp-contact-grid {
        grid-template-columns: 1fr;
    }
}
