/* ============================================================
   CareNestPro Registry – Stylesheet v1.3.0
   Brand Colours: #00ADFF (bright) · #0370CB (primary) · #42C6F3 (light)
   Critical colours use !important to defeat theme override.
   ============================================================ */

/* ── Scoped Variables ── */
#cnp-registry-wrap,
#cnp-careseekers-register-wrap,
.cnp-registry-wrap,
.cnp-register-wrap {
    --cnp-blue:        #0370CB;
    --cnp-blue-dark:   #025499;
    --cnp-blue-bright: #00ADFF;
    --cnp-blue-light:  #42C6F3;
    --cnp-blue-wash:   #e8f6ff;
    --cnp-blue-tint:   #d0ecff;
    --cnp-text:        #0d1b2e;
    --cnp-muted:       #5a7184;
    --cnp-border:      #c8dff5;
    --cnp-radius:      12px;
}

/* ── Registry Wrap ── */
.cnp-registry-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px 40px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box;
}

/* ============================================================
   ACCESS BANNER — forced blue gradient, no green at all
   ============================================================ */
.cnp-access-banner {
    background: linear-gradient(135deg, #025499 0%, #0370CB 55%, #42C6F3 100%) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 36px 28px !important;
    margin-bottom: 28px !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(3,112,203,0.25) !important;
}
.cnp-access-banner-inner { max-width: 540px; margin: 0 auto; }
.cnp-lock-icon { margin-bottom: 14px; }
.cnp-lock-icon i {
    font-size: 44px !important;
    color: rgba(255,255,255,0.93) !important;
    display: block !important;
}
.cnp-access-banner h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    color: #ffffff !important;
}
.cnp-access-banner p {
    margin: 0 0 22px !important;
    line-height: 1.65 !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 15px !important;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.cnp-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #c8dff5 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 14px rgba(3,112,203,0.07) !important;
}
.cnp-filter-search {
    position: relative;
    flex: 1 1 240px;
}
.cnp-filter-search input {
    width: 100% !important;
    padding: 10px 14px 10px 40px !important;
    border: 1.5px solid #c8dff5 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #0d1b2e !important;
    transition: border-color .2s, box-shadow .2s;
}
.cnp-filter-search input:focus {
    border-color: #0370CB !important;
    box-shadow: 0 0 0 3px rgba(3,112,203,0.12) !important;
}
.cnp-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 1;
}
.cnp-search-icon i { color: #5a7184 !important; font-size: 14px !important; }
.cnp-filter-selects { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cnp-filter-selects select {
    padding: 10px 12px !important;
    border: 1.5px solid #c8dff5 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    outline: none !important;
    color: #0d1b2e !important;
    transition: border-color .2s;
    appearance: auto;
}
.cnp-filter-selects select:hover  { border-color: #42C6F3 !important; }
.cnp-filter-selects select:focus  { border-color: #0370CB !important; box-shadow: 0 0 0 3px rgba(3,112,203,0.12) !important; }
.cnp-results-info { font-size: 14px; color: #5a7184; margin-bottom: 16px; }

/* ============================================================
   PROVIDER GRID
   ============================================================ */
.cnp-providers-grid { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 20px !important; }
@media (max-width: 900px) { .cnp-providers-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 580px) { .cnp-providers-grid { grid-template-columns: 1fr !important; } }

/* ============================================================
   CARD
   ============================================================ */
.cnp-provider-card {
    background: #ffffff !important;
    border: 1.5px solid #c8dff5 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(3,112,203,0.07) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
}
.cnp-provider-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px rgba(0,173,255,0.20) !important;
    border-color: #42C6F3 !important;
}
/* Hidden state — used by JS for search/filter/pagination.
   Combined selector + !important beats the display:flex !important above. */
.cnp-provider-card.cnp-card-hidden {
    display: none !important;
}

/* Locked / clickable card */
.cnp-provider-card.cnp-card-locked { cursor: pointer !important; }
.cnp-provider-card.cnp-card-locked:hover { border-color: #0370CB !important; }

/* Card header strip — BLUE, not green */
.cnp-card-header {
    position: relative !important;
    background: linear-gradient(135deg, #e8f6ff 0%, #cce8ff 100%) !important;
    padding: 22px 16px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 92px !important;
    border-bottom: 1.5px solid #c8dff5 !important;
}

/* Avatar */
.cnp-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 3px 12px rgba(3,112,203,0.28) !important;
    flex-shrink: 0 !important;
}
.cnp-avatar-photo { background: #d0e8ff !important; overflow: hidden !important; }
.cnp-avatar-img   { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Available badge */
.cnp-badge-available {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: linear-gradient(135deg, #0370CB, #00ADFF) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.cnp-badge-available i { font-size: 9px !important; color: #fff !important; }

/* Card body */
.cnp-card-body { padding: 16px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
.cnp-provider-name { font-size: 16px !important; font-weight: 700 !important; color: #0d1b2e !important; margin: 0 !important; line-height: 1.3 !important; }

/* Course badge */
.cnp-course-badge {
    display: inline-block !important;
    background: linear-gradient(90deg, #e8f6ff, #d0ecff) !important;
    color: #025499 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 11px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    border: 1px solid #b3d9f5 !important;
}

/* Meta rows */
.cnp-provider-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.cnp-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #5a7184; }
.cnp-meta-icon { display: flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.cnp-meta-icon i { color: #42C6F3 !important; font-size: 12px !important; width: 14px !important; text-align: center !important; }
.cnp-provider-bio { font-size: 13px; color: #5a7184; line-height: 1.5; margin: 0; font-style: italic; }

/* Contact section */
.cnp-contact-section {
    background: linear-gradient(135deg, #e8f6ff, #d0ecff) !important;
    border: 1px solid #b3d9f5 !important;
    border-radius: 8px !important;
    padding: 10px 13px !important;
    margin-top: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.cnp-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cnp-contact-item i { color: #0370CB !important; font-size: 12px !important; width: 14px !important; text-align: center !important; flex-shrink: 0 !important; }
.cnp-contact-value { font-weight: 600 !important; color: #025499 !important; }

/* Blur */
.cnp-blurred { filter: blur(5px) !important; user-select: none !important; pointer-events: none !important; }

/* Unlock hint */
.cnp-unlock-hint {
    font-size: 12px !important;
    text-align: center !important;
    color: #5a7184 !important;
    padding: 7px 0 2px !important;
    border-top: 1px solid #e4eff8 !important;
    margin-top: 4px !important;
}
.cnp-unlock-hint a { color: #0370CB !important; text-decoration: none !important; font-weight: 600 !important; }
.cnp-unlock-hint a:hover { color: #00ADFF !important; text-decoration: underline !important; }
.cnp-unlock-hint i { color: #0370CB !important; margin-right: 4px !important; }

.cnp-no-results { grid-column: 1/-1; text-align: center; padding: 56px 24px; color: #5a7184; font-size: 16px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.cnp-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.cnp-page-btn {
    padding: 8px 16px !important;
    border: 1.5px solid #c8dff5 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0d1b2e !important;
    transition: all .2s !important;
}
.cnp-page-btn:hover { background: #e8f6ff !important; border-color: #0370CB !important; color: #0370CB !important; }
.cnp-page-btn.active { background: #0370CB !important; color: #ffffff !important; border-color: #0370CB !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.cnp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: none !important;
    transition: background .2s, transform .15s, box-shadow .2s !important;
    text-align: center !important;
    line-height: 1.3 !important;
}
.cnp-btn-primary {
    background: linear-gradient(135deg, #0370CB, #00ADFF) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(3,112,203,0.30) !important;
}
.cnp-btn-primary:hover {
    background: linear-gradient(135deg, #025499, #0370CB) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(3,112,203,0.38) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.cnp-btn-outline {
    background: transparent !important;
    border: 2px solid #0370CB !important;
    color: #0370CB !important;
}
.cnp-btn-outline:hover { background: #e8f6ff !important; border-color: #025499 !important; color: #025499 !important; }
.cnp-btn-block { width: 100% !important; display: flex !important; box-sizing: border-box !important; }

/* ============================================================
   REGISTER WRAP
   ============================================================ */
.cnp-register-wrap { max-width: 640px !important; margin: 0 auto !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; padding: 0 16px 48px !important; }
.cnp-register-header {
    text-align: center !important;
    margin-bottom: 28px !important;
    padding: 28px 24px 24px !important;
    background: linear-gradient(135deg, #e8f6ff, #cce8ff) !important;
    border-radius: 14px !important;
    border: 1.5px solid #c8dff5 !important;
}
.cnp-register-logo { margin-bottom: 12px; }
.cnp-register-logo i { font-size: 52px !important; color: #0370CB !important; }
.cnp-register-header h2 { font-size: 26px !important; font-weight: 700 !important; color: #025499 !important; margin: 0 0 6px !important; }
.cnp-register-header p  { color: #5a7184 !important; font-size: 15px !important; margin: 0 !important; }

/* Steps */
.cnp-steps-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; gap: 4px; }
.cnp-step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5a7184; font-weight: 500; padding: 6px 12px; border-radius: 20px; transition: all .2s; }
.cnp-step span { width: 24px; height: 24px; border-radius: 50%; background: #d6e8f7; color: #5a7184; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.cnp-step-active { color: #025499 !important; }
.cnp-step-active span { background: #0370CB !important; color: #ffffff !important; box-shadow: 0 2px 8px rgba(3,112,203,0.35) !important; }
.cnp-step-done span { background: #00ADFF !important; color: #ffffff !important; }
.cnp-step-line { flex: 1; max-width: 44px; height: 2px; background: #c8dff5; border-radius: 2px; }

/* Form */
.cnp-step-content { animation: cnpFadeIn .3s ease; }
@keyframes cnpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cnp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .cnp-form-row { grid-template-columns: 1fr; } }
.cnp-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.cnp-form-group label { font-weight: 600 !important; font-size: 14px !important; color: #0d1b2e !important; }
.cnp-req { color: #d63638; }
.cnp-form-group input,
.cnp-form-group select {
    padding: 11px 14px !important;
    border: 1.5px solid #c8dff5 !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #ffffff !important;
    color: #0d1b2e !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color .2s, box-shadow .2s;
}
.cnp-form-group input:hover,
.cnp-form-group select:hover { border-color: #42C6F3 !important; }
.cnp-form-group input:focus,
.cnp-form-group select:focus { border-color: #0370CB !important; box-shadow: 0 0 0 3px rgba(3,112,203,0.13) !important; }
.cnp-field-hint { font-size: 12px; margin-top: 3px; }
.cnp-pw-wrap { position: relative; }
.cnp-pw-wrap input { padding-right: 46px !important; }
.cnp-pw-toggle {
    position: absolute !important; right: 10px !important; top: 50% !important;
    transform: translateY(-50%) !important; background: transparent !important;
    border: none !important; cursor: pointer !important; padding: 4px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 32px !important; height: 32px !important; color: #5a7184 !important; transition: color .2s !important;
}
.cnp-pw-toggle:hover { color: #0370CB !important; }
.cnp-pw-toggle i { font-size: 14px !important; }
.cnp-pw-strength { font-size: 12px; margin-top: 4px; font-weight: 600; padding: 2px 0; }
.cnp-pw-weak   { color: #d63638 !important; }
.cnp-pw-medium { color: #d97706 !important; }
.cnp-pw-strong { color: #0370CB !important; }

/* Fee box */
.cnp-fee-box {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    background: linear-gradient(135deg, #e8f6ff, #cde8ff) !important;
    border: 1.5px solid #93c8ef !important; border-radius: 12px !important; padding: 16px 20px !important; margin: 20px 0 !important;
}
.cnp-fee-box-left strong { font-size: 15px !important; color: #025499 !important; display: block !important; }
.cnp-fee-box-left p { font-size: 12px !important; color: #5a7184 !important; margin: 3px 0 0 !important; }
.cnp-fee-amount { font-size: 26px !important; font-weight: 800 !important; color: #0370CB !important; }

/* Errors */
.cnp-errors { background: #fef0f0 !important; border: 1.5px solid #f5c6cb !important; border-radius: 9px !important; padding: 12px 16px !important; color: #d63638 !important; font-size: 14px !important; margin-bottom: 16px !important; }
.cnp-errors ul { margin: 0; padding: 0 0 0 18px; }
.cnp-errors li { margin-bottom: 4px; }

.cnp-secure-note { text-align: center; font-size: 12px; color: #5a7184; margin-top: 10px; }
.cnp-secure-note i { color: #42C6F3 !important; margin-right: 4px; }

/* Payment confirm */
.cnp-payment-confirm { text-align: center; }
.cnp-payment-confirm h3 { font-size: 20px !important; color: #025499 !important; margin-bottom: 16px !important; }
.cnp-payment-summary { background: #f4f8ff !important; border: 1px solid #c8dff5 !important; border-radius: 10px !important; padding: 16px !important; margin-bottom: 16px !important; text-align: left !important; }
.cnp-payment-summary p { margin: 5px 0; font-size: 14px; color: #0d1b2e; }
.cnp-payment-summary i { color: #0370CB !important; margin-right: 6px; }
.cnp-payment-amount { font-size: 18px; margin-bottom: 22px; color: #5a7184; }
.cnp-payment-amount strong { color: #0370CB !important; font-size: 28px !important; display: block; margin-top: 4px; }

/* Success */
.cnp-success-wrap { text-align: center; padding: 24px 0; }
.cnp-success-icon { margin-bottom: 14px; }
.cnp-success-icon i { font-size: 68px !important; color: #00ADFF !important; }
.cnp-success-wrap h3 { font-size: 22px !important; color: #025499 !important; margin: 0 0 8px !important; }
.cnp-success-wrap p { color: #5a7184; margin: 0 0 12px; }

/* Already access */
.cnp-already-access { text-align: center !important; background: linear-gradient(135deg, #e8f6ff, #d0ecff) !important; border: 1.5px solid #c8dff5 !important; border-radius: 14px !important; padding: 44px 28px !important; max-width: 500px !important; margin: 0 auto !important; }
.cnp-access-success-icon { margin-bottom: 12px; }
.cnp-access-success-icon i { font-size: 52px !important; color: #0370CB !important; }
.cnp-already-access h3 { color: #025499 !important; font-size: 20px !important; margin: 0 0 8px !important; }
.cnp-already-access p { color: #5a7184; margin: 0 0 20px; }

/* Loading */
.cnp-loading { text-align: center; padding: 48px; color: #5a7184; font-size: 16px; }

/* Admin meta header icon spacing */
.cnp-meta-header i { margin-right: 6px; }
