/* WinBids — contractor directory (contacts pages). */

.contacts-page { padding: 28px 0 80px; }

/* ---------- Head ---------- */
.ct-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ct-head-main h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.ct-head-main p { font-size: 14px; color: var(--stone); margin-top: 5px; }

.ct-stats {
    display: flex;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 4px;
}
.ct-stat { padding: 0 20px; border-right: 1px solid var(--line); }
.ct-stat:last-child { border-right: none; }
.ct-stat b {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.25;
}
.ct-stat span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ---------- Filters ---------- */
.ct-filters {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}
.ct-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ct-search {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14.5px;
    background: var(--paper);
    color: var(--ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 40px;
}
.ct-search:focus { outline: none; border-color: #a8a29e; box-shadow: 0 0 0 3px rgba(28,25,23,0.06); }
.ct-search-row .btn-primary { height: 46px; padding: 0 22px; border-radius: 10px; }

.ct-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.ct-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--stone);
}
.ct-field select,
.ct-field input {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--canvas);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.ct-field select:focus,
.ct-field input:focus { outline: none; border-color: #a8a29e; }

.ct-socio-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f4;
}
.ct-socio-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
}
.ct-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #44403c;
    cursor: pointer;
}
.ct-check input { accent-color: var(--ink); }
.ct-check-active { margin-left: auto; }
.ct-actions { display: inline-flex; align-items: center; gap: 10px; }
.ct-reset { font-size: 13px; color: var(--stone); text-decoration: underline; }

.ct-result-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--stone);
    margin: 0 2px 10px;
}
.ct-result-line strong { color: var(--ink); font-weight: 700; }
.ct-upsell a { font-weight: 600; }

/* ---------- Cards ---------- */
.ct-list { display: flex; flex-direction: column; gap: 8px; }

.ct-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 210px;
    gap: 18px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 15px 18px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ct-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 4px 14px -6px rgba(28, 25, 23, 0.12);
}
.ct-card-main { min-width: 0; }
.ct-name-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ct-name {
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: -0.15px;
    color: var(--ink);
    text-decoration: none;
}
.ct-name:hover { text-decoration: underline; }
.ct-dba { font-size: 12px; color: var(--stone); }
.ct-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--stone);
}
.ct-meta > span + span::before { content: "·"; margin-right: 8px; color: #d6d3d1; }
.ct-exp { color: #a8a29e; }
.ct-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ct-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 5px;
    padding: 2px 6px;
}

.ct-awards {
    border-left: 1px solid #f5f5f4;
    padding-left: 16px;
    text-align: left;
}
.ct-award-num { font-size: 15px; font-weight: 750; color: var(--ink); line-height: 1.3; }
.ct-award-num span { font-size: 11px; font-weight: 600; color: var(--stone); }
.ct-award-sub { font-size: 11.5px; color: var(--stone); margin-top: 1px; }
.ct-award-none { font-size: 12px; color: #a8a29e; }

.ct-contact {
    border-left: 1px solid #f5f5f4;
    padding-left: 16px;
    font-size: 12px;
    min-width: 0;
}
.ct-poc-name { font-weight: 650; color: #292524; font-size: 12.5px; }
.ct-poc-title { color: var(--stone); font-size: 11.5px; }
.ct-poc-link {
    display: block;
    color: #1d4ed8;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ct-poc-phone { color: #57534e; }
.ct-muted { color: #a8a29e; font-size: 11.5px; }
.ct-locked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--canvas);
    border: 1px dashed #d6d3d1;
    border-radius: 8px;
    padding: 5px 9px;
    color: var(--stone);
    font-size: 11px;
}
.ct-lock-icon { font-size: 12px; }
.ct-locked b {
    font-size: 9px;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: #fff;
    border-radius: 4px;
    padding: 2px 5px;
}

/* ---------- Empty / footer ---------- */
.ct-empty {
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 42px 20px;
    text-align: center;
    color: var(--stone);
}
.ct-empty-sub { font-size: 13px; color: #a8a29e; margin-top: 4px; }
.ct-source { font-size: 11.5px; color: #a8a29e; margin-top: 24px; }

/* ---------- Profile page ---------- */
.ct-back {
    display: inline-block;
    font-size: 13px;
    color: var(--stone);
    text-decoration: none;
    margin-bottom: 14px;
}
.ct-back:hover { color: var(--ink); }

.cd-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 14px;
}
.cd-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.2; }
.cd-dba { font-size: 13px; color: var(--stone); margin-top: 2px; }
.cd-meta { margin-top: 8px; font-size: 13px; }
.cd-status { text-align: right; flex: none; }
.cd-status span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone);
}
.cd-status b { font-size: 14px; }

.cd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}
.cd-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.cd-card h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.cd-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.cd-metric {
    background: var(--canvas);
    border-radius: 10px;
    padding: 10px 12px;
}
.cd-metric b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.cd-metric span { font-size: 11px; color: var(--stone); }
.cd-last { font-size: 12.5px; color: var(--stone); margin-bottom: 12px; }

.cd-agencies { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cd-agencies th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone);
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
}
.cd-agencies td { padding: 7px 8px; border-bottom: 1px solid #f5f5f4; vertical-align: top; }
.cd-agencies tr:last-child td { border-bottom: none; }
.cd-none { font-size: 12.5px; color: #a8a29e; }

.cd-poc-name { font-size: 16px; font-weight: 700; }
.cd-poc-title { font-size: 12.5px; color: var(--stone); margin-bottom: 8px; }
.cd-poc-email { display: block; color: #1d4ed8; font-size: 13px; word-break: break-all; }
.cd-poc-phone { color: #57534e; font-size: 13px; }
.cd-locked {
    background: var(--canvas);
    border: 1px dashed #d6d3d1;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.cd-locked p { font-size: 12.5px; color: var(--stone); margin: 8px 0 12px; }
.cd-company-facts { margin-top: 16px; border-top: 1px solid #f5f5f4; padding-top: 12px; }
.cd-company-facts div { font-size: 12.5px; margin-bottom: 8px; word-break: break-word; }
.cd-company-facts span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone);
}

@media (max-width: 900px) {
    .ct-card { grid-template-columns: 1fr; gap: 10px; }
    .ct-awards, .ct-contact { border-left: none; padding-left: 0; border-top: 1px solid #f5f5f4; padding-top: 8px; }
    .cd-grid { grid-template-columns: 1fr; }
    .cd-head { flex-direction: column; }
    .cd-status { text-align: left; }
}
