/* ==========================================================================
   Contractor Directory — contractor-directory.css
   All classes prefixed with .cd- to avoid theme conflicts.
   ========================================================================== */

/* ── Wrapper — reset theme overrides ────────────────────────────────────── */
.cd-wrapper,
.cd-wrapper * {
    box-sizing: border-box;
}
.cd-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f5f7fa;
    min-height: 60vh;
    /* Pull full width outside theme content container */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}
/* Reset common theme overrides inside our wrapper */
.cd-wrapper h1, .cd-wrapper h2, .cd-wrapper h3,
.cd-wrapper h4, .cd-wrapper h5, .cd-wrapper h6 {
    margin: 0;
    padding: 0;
    line-height: inherit;
    font-weight: inherit;
    color: inherit;
}
.cd-wrapper p {
    margin: 0;
    padding: 0;
}
.cd-wrapper button {
    font-family: inherit;
    cursor: pointer;
}
.cd-wrapper input,
.cd-wrapper select,
.cd-wrapper textarea {
    font-family: inherit;
}
.cd-wrapper a {
    text-decoration: none;
}
.cd-wrapper label {
    display: block;
    margin: 0;
    font-weight: inherit;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.cd-hero {
    background: linear-gradient(135deg, #005fa3 0%, #00aeff 60%, #38c6ff 100%) !important;
    padding: 64px 24px 80px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    color: #fff !important;
}
.cd-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.cd-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.cd-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cd-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
}
.cd-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}
.cd-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 36px;
    line-height: 1.5;
}
.cd-search-bar {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cd-search-icon {
    padding: 0 0 0 20px;
    color: #adb5bd;
    font-size: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.cd-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #1a1a2e;
    padding: 17px 14px;
    min-width: 0;
}
.cd-search-bar input::placeholder { color: #adb5bd; }
.cd-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 18px;
    font-size: 20px;
    color: #adb5bd;
    display: none;
    flex-shrink: 0;
    line-height: 1;
}
.cd-search-clear:hover { color: #495057; }
.cd-search-clear.visible { display: block; }

/* ── Geolocation banner ─────────────────────────────────────────────────── */
.cd-geo-banner {
    background: #e8f4fd;
    border: 1px solid #bee3f8;
    border-radius: 0;
    padding: 12px 24px;
    font-size: 14px;
    color: #1a5276;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.cd-geo-banner button {
    background: #00aeff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cd-geo-banner button:hover { background: #0099e0; }
.cd-geo-dismiss {
    margin-left: auto;
    background: none !important;
    color: #7fb3d3 !important;
    padding: 4px 8px !important;
    font-size: 18px !important;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.cd-filter-bar {
    background: #fff !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 16px 28px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    transition: box-shadow 0.2s;
}
.cd-filter-bar.is-sticky {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.cd-filter-inner {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    max-width: 1300px;
    margin: 0 auto;
}
.cd-filter-group {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}
.cd-filter-group label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8a92a0 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
    display: block !important;
}
.cd-filter-group select,
.cd-filter-group input[type="text"] {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    color: #1a1a2e !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 140px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    box-shadow: none !important;
}
.cd-filter-group select:focus,
.cd-filter-group input[type="text"]:focus {
    border-color: #00aeff !important;
    box-shadow: 0 0 0 3px rgba(0,174,255,0.12) !important;
}
.cd-filter-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-left: auto !important;
    flex-shrink: 0;
}
.cd-result-count {
    font-size: 13px;
    color: #8a92a0;
    white-space: nowrap;
}
.cd-filter-sentinel { height: 1px; }

/* ── Tab nav ────────────────────────────────────────────────────────────── */
.cd-tabs-wrapper {
    background: #fff !important;
    border-bottom: 2px solid #e9ecef !important;
}
.cd-tab-nav {
    display: flex !important;
    gap: 0 !important;
    padding: 0 28px !important;
    max-width: 1300px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none !important;
}
.cd-tab-nav::-webkit-scrollbar { display: none; }
.cd-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 18px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -2px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}
.cd-tab-btn:hover { color: #00aeff !important; background: none !important; }
.cd-tab-btn.active {
    color: #00aeff !important;
    border-bottom-color: #00aeff !important;
    background: none !important;
}
.cd-tab-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 11px !important;
    background: #f0f2f5 !important;
    color: #6c757d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: background 0.15s, color 0.15s;
}
.cd-tab-btn.active .cd-tab-badge {
    background: #00aeff !important;
    color: #fff !important;
}

/* ── Tab content ────────────────────────────────────────────────────────── */
.cd-tab-content {
    padding: 36px 28px 60px;
    max-width: 1300px;
    margin: 0 auto;
}
.cd-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cd-tab-panel.active {
    display: block;
    opacity: 1;
}

/* ── Partner card grid ──────────────────────────────────────────────────── */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1080px) { .cd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cd-grid { grid-template-columns: 1fr; } }

/* ── Partner card ───────────────────────────────────────────────────────── */
.cd-partner-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.cd-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
/* Gold top accent for featured */
.cd-partner-card.is-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB800, #FF8C00);
}
.cd-card-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #FFB800, #FF8C00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    z-index: 1;
}
.cd-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px 12px;
}
.cd-partner-card.is-featured .cd-card-top { padding-top: 26px; }
.cd-card-meta { flex: 1; min-width: 0; }
.cd-card-company {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-card-body {
    padding: 4px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cd-card-location {
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.cd-radius-note { color: #adb5bd; font-size: 12px; }
.cd-card-contact-name { font-size: 13px; color: #6c757d; }
.cd-card-website { font-size: 13px; }
.cd-card-website a {
    color: #00aeff;
    text-decoration: none;
    font-weight: 500;
}
.cd-card-website a:hover { text-decoration: underline; }
.cd-card-social-proof {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
    margin-top: auto;
    padding-top: 4px;
}
.cd-card-footer {
    padding: 0 20px 20px;
}

/* ── Avatar ─────────────────────────────────────────────────────────────── */
.cd-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.cd-avatar--lg { width: 68px; height: 68px; font-size: 24px; }

.cd-avatar--color-0 { background: linear-gradient(135deg, #00aeff, #0077cc); }
.cd-avatar--color-1 { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.cd-avatar--color-2 { background: linear-gradient(135deg, #9c27b0, #6a0080); }
.cd-avatar--color-3 { background: linear-gradient(135deg, #ff9800, #e65100); }
.cd-avatar--color-4 { background: linear-gradient(135deg, #f44336, #b71c1c); }
.cd-avatar--color-5 { background: linear-gradient(135deg, #009688, #00574b); }
.cd-avatar--color-6 { background: linear-gradient(135deg, #3f51b5, #1a237e); }
.cd-avatar--color-7 { background: linear-gradient(135deg, #795548, #3e2723); }
.cd-avatar--color-8 { background: linear-gradient(135deg, #607d8b, #263238); }
.cd-avatar--color-9 { background: linear-gradient(135deg, #e91e63, #880e4f); }

/* ── Service type badge ─────────────────────────────────────────────────── */
.cd-service-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.cd-badge--color-0 { background: #e3f4ff; color: #005fa3; }
.cd-badge--color-1 { background: #e8f5e9; color: #2e7d32; }
.cd-badge--color-2 { background: #f3e5f5; color: #6a0080; }
.cd-badge--color-3 { background: #fff3e0; color: #e65100; }
.cd-badge--color-4 { background: #ffebee; color: #b71c1c; }
.cd-badge--color-5 { background: #e0f2f1; color: #00574b; }
.cd-badge--color-6 { background: #e8eaf6; color: #1a237e; }
.cd-badge--color-7 { background: #efebe9; color: #3e2723; }
.cd-badge--color-8 { background: #eceff1; color: #263238; }
.cd-badge--color-9 { background: #fce4ec; color: #880e4f; }

/* ── Featured pill (in modal) ───────────────────────────────────────────── */
.cd-featured-pill {
    display: inline-block;
    background: linear-gradient(135deg, #FFB800, #FF8C00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s ease;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.cd-btn-primary {
    background: #00aeff;
    color: #fff;
    border-color: #00aeff;
    width: 100%;
}
.cd-btn-primary:hover {
    background: #0099e0;
    border-color: #0099e0;
    transform: translateY(-1px);
    color: #fff;
}
.cd-btn-ghost {
    background: transparent;
    color: #6c757d;
    border-color: #dee2e6;
    padding: 8px 16px;
}
.cd-btn-ghost:hover {
    border-color: #00aeff;
    color: #00aeff;
    background: transparent;
}

/* ── Category grid (Service Listings tab) ──────────────────────────────── */
.cd-tab-panel-intro {
    margin-bottom: 28px;
    color: #6c757d;
    font-size: 15px;
}
.cd-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px)  { .cd-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cd-category-grid { grid-template-columns: 1fr; } }

.cd-category-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.cd-category-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00aeff, #38c6ff);
    opacity: 0;
    transition: opacity 0.2s;
}
.cd-category-card:hover {
    border-color: #00aeff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,174,255,0.15);
}
.cd-category-card:hover::before { opacity: 1; }
.cd-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.cd-category-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.cd-category-count {
    font-size: 13px;
    color: #8a92a0;
    margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.cd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 14px;
}
.cd-breadcrumb-back {
    background: none;
    border: none;
    color: #00aeff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cd-breadcrumb-back:hover { text-decoration: underline; }
.cd-breadcrumb-sep { color: #dee2e6; }
.cd-breadcrumb-current { color: #495057; font-weight: 600; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.cd-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #8a92a0;
}
.cd-empty-icon { font-size: 52px; margin-bottom: 16px; line-height: 1; }
.cd-empty-state h3 { font-size: 20px; font-weight: 700; color: #495057; margin: 0 0 10px; }
.cd-empty-state p  { font-size: 15px; margin: 0 0 24px; }

/* ── Loading skeleton ────────────────────────────────────────────────────── */
.cd-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1080px) { .cd-skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cd-skeleton-grid { grid-template-columns: 1fr; } }

.cd-skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cd-skeleton-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cd-skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e5e8ed 50%, #f0f2f5 75%);
    background-size: 400% 100%;
    animation: cd-shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes cd-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.cd-skeleton-avatar-sm { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.cd-skeleton-title     { height: 18px; width: 70%; }
.cd-skeleton-badge     { height: 22px; width: 90px; border-radius: 11px; }
.cd-skeleton-line      { height: 13px; width: 100%; }
.cd-skeleton-line-sm   { height: 13px; width: 55%; }
.cd-skeleton-btn       { height: 40px; width: 100%; border-radius: 8px; margin-top: 6px; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.cd-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.cd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.cd-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    animation: cd-modal-in 0.22s ease;
    z-index: 1;
}
@keyframes cd-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f2f5;
}
.cd-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.cd-modal-close {
    background: #f0f2f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.cd-modal-close:hover { background: #e0e4ea; color: #1a1a2e; }
.cd-modal-body { padding: 24px; }
.cd-modal-loading { text-align: center; padding: 40px; color: #8a92a0; }

/* Modal partner layout */
.cd-modal-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.cd-modal-partner-meta h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.cd-modal-details { border-top: 1px solid #f0f2f5; }
.cd-detail-row {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid #f0f2f5;
    gap: 16px;
}
.cd-detail-row:last-child { border-bottom: none; }
.cd-detail-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #8a92a0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-top: 2px;
}
.cd-detail-value {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.5;
    word-break: break-word;
}
.cd-detail-value a { color: #00aeff; text-decoration: none; }
.cd-detail-value a:hover { text-decoration: underline; }
.cd-modal-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
    text-align: center;
}
.cd-modal-cta .cd-btn { display: inline-flex; width: auto; padding: 12px 28px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cd-hero-title  { font-size: 30px; }
    .cd-hero        { padding: 48px 20px 60px; }
    .cd-filter-bar  { position: relative; top: auto; }
    .cd-filter-inner { gap: 10px; }
    .cd-tab-content { padding: 24px 16px 48px; }
    .cd-tab-btn     { padding: 14px 16px; font-size: 13px; }
}
@media (max-width: 600px) {
    .cd-hero-title  { font-size: 24px; }
    .cd-hero-subtitle { font-size: 15px; }
    .cd-filter-inner { flex-direction: column; align-items: stretch; }
    .cd-filter-group select,
    .cd-filter-group input[type="text"] { width: 100%; min-width: 0; }
    .cd-filter-actions { margin-left: 0; }
    .cd-modal-panel { border-radius: 12px; }
    .cd-modal-top   { flex-direction: column; align-items: flex-start; }
}

/* ── Two-Tier Card Styles ────────────────────────────────────────────────── */

/* Preferred tier: gold top border + subtle lift */
.cd-partner-card.is-preferred {
    border-top: 3px solid #f5a623;
    box-shadow: 0 4px 18px rgba(245, 166, 35, 0.12), 0 1px 4px rgba(0,0,0,0.06);
}
.cd-partner-card.is-preferred:hover {
    box-shadow: 0 8px 28px rgba(245, 166, 35, 0.2), 0 2px 6px rgba(0,0,0,0.08);
}

/* Free tier: standard card (no extra styles needed, base card applies) */
.cd-partner-card.is-free-tier {
    border-top: 3px solid transparent;
}

/* Featured (preferred) badge */
.cd-card-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f5a623, #e8920f);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

/* Phone shown on free-tier card before reveal */
.cd-card-phone-inline {
    font-size: 13px;
    color: #4a5568;
    margin: 6px 0 4px;
}
.cd-card-phone-inline a { color: #4a5568; text-decoration: none; }

/* Contact reveal area (hidden until JS reveals it) */
.cd-card-contact-reveal {
    background: #f0faf0;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 13px;
}
.cd-card-contact-reveal .cd-phone-link,
.cd-card-contact-reveal .cd-email-link {
    display: block;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 4px;
}
.cd-card-contact-reveal .cd-phone-link:hover,
.cd-card-contact-reveal .cd-email-link:hover { text-decoration: underline; }

/* Reveal Contact button */
.cd-btn-reveal-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #4a90d9;
    color: #4a90d9;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.cd-btn-reveal-contact:hover {
    background: #4a90d9;
    color: #fff;
}

/* "List Your Business" CTA in hero */
.cd-list-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.cd-list-cta span {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
}
.cd-btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.cd-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
}

/* ── Lead Form Modal ─────────────────────────────────────────────────────── */

#cd-lead-modal .cd-modal-panel { max-width: 520px; }

.cd-lead-form .cd-form-group {
    margin-bottom: 16px;
}
.cd-lead-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.cd-lead-form input,
.cd-lead-form select,
.cd-lead-form textarea {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.18s;
    box-sizing: border-box;
}
.cd-lead-form input:focus,
.cd-lead-form select:focus,
.cd-lead-form textarea:focus {
    border-color: #4a90d9;
    outline: none;
}
.cd-lead-form textarea { resize: vertical; min-height: 90px; }

.cd-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cd-lead-form-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.cd-lead-form-status.status-success {
    background: #f0faf0;
    color: #2e7d32;
    border: 1px solid #b2dfdb;
}
.cd-lead-form-status.status-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ── Registration Modal ──────────────────────────────────────────────────── */

#cd-register-modal .cd-modal-panel { max-width: 620px; }

.pp-register-form .pp-form-group {
    margin-bottom: 16px;
}
.pp-register-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.pp-register-form input,
.pp-register-form select {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.18s;
    box-sizing: border-box;
}
.pp-register-form input:focus,
.pp-register-form select:focus {
    border-color: #4a90d9;
    outline: none;
}
.pp-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pp-register-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.pp-register-status.status-success {
    background: #f0faf0;
    color: #2e7d32;
    border: 1px solid #b2dfdb;
}
.pp-register-status.status-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .cd-form-row-2col,
    .pp-form-row-2col { grid-template-columns: 1fr; }
    .cd-list-cta { flex-direction: column; }
}

/* ── View toggle (By Business / By Service) ─────────────────────────────── */
.cd-view-toggle {
    display: inline-flex;
    border: 1.5px solid #d0d5de;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.cd-view-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.cd-view-btn + .cd-view-btn {
    border-left: 1.5px solid #d0d5de;
}
.cd-view-btn:hover {
    background: #f0f4ff;
    color: #1a1a2e;
}
.cd-view-btn.active {
    background: #1a1a2e;
    color: #fff;
}
