/* === MODULE 7.3: CONTACTS CRM === */

.contacts-block {
    display: flex;
    flex-direction: row; /* Visual Left, Text Right */
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* UI Container */
.contacts-card-ui {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 450px; /* Narrower, phone-like width */
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.cnt-header {
    background: #0f172a; padding: 15px;
    border-bottom: 1px solid #334155;
}
.cnt-title {
    font-weight: 700; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}

/* Search Bar */
.cnt-search {
    position: relative;
}
.search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: #64748b; font-size: 0.8rem;
}
.search-input {
    width: 100%; background: #1e293b; border: 1px solid #334155;
    padding: 8px 10px 8px 32px; border-radius: 6px;
    color: #fff; font-size: 0.8rem;
}
.search-input:focus { outline: none; border-color: #3b82f6; }

/* List */
.cnt-list {
    max-height: 400px; overflow-y: auto;
    background: #1e293b;
}

/* Section Labels */
.cnt-section-label {
    background: #334155; color: #94a3b8; font-size: 0.65rem; font-weight: 700;
    padding: 6px 15px; text-transform: uppercase; letter-spacing: 0.5px;
    position: sticky; top: 0; z-index: 5;
}
.cnt-section-label.sec-partners { background: #1e293b; border-top: 1px solid #334155; border-bottom: 1px solid #334155; color: #3b82f6; }

/* Contact Item */
.cnt-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; border-bottom: 1px solid #334155;
    transition: background 0.2s;
}
.cnt-item:hover { background: #2d3e54; }

.ci-left { display: flex; align-items: center; gap: 12px; }

.ci-avatar {
    width: 36px; height: 36px; background: #0f172a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff; border: 1px solid #475569;
}
.ci-avatar.partner { background: rgba(59, 130, 246, 0.1); border-color: #3b82f6; font-size: 1rem; }

.ci-info { display: flex; flex-direction: column; }
.ci-role { font-size: 0.65rem; color: #94a3b8; margin-bottom: 2px; }
.ci-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.ci-phone { font-size: 0.7rem; color: #64748b; margin-top: 1px; }

/* Action Buttons */
.ci-actions { display: flex; gap: 8px; }

.btn-action {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s; font-size: 0.8rem;
}
.btn-action:hover { transform: scale(1.1); }

.btn-action.call { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.btn-action.msg { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }

/* Responsive */
@media (max-width: 900px) {
    .contacts-block { flex-direction: column-reverse; gap: 30px; }
    .feature-visual { width: 100%; }
}