/* Phone Consultancy – Front CSS v2.1.0
   Clean, light, standard.
   Author: Lakshmidas Menon Manikkath – Choondal Global Services */

.pcs-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #111827;
    box-sizing: border-box;
}
.pcs-wrap *, .pcs-wrap *::before, .pcs-wrap *::after { box-sizing: border-box; }

/* Step indicator */
.pcs-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.pcs-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    font-weight: 500;
}
.pcs-step.active { color: #1d4ed8; font-weight: 600; }
.pcs-step.done   { color: #16a34a; }
.pcs-step-n {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.pcs-step.active .pcs-step-n { background: #1d4ed8; color: #fff; }
.pcs-step.done   .pcs-step-n { background: #16a34a; color: #fff; }
.pcs-step-line { flex: 1; min-width: 20px; height: 1px; background: #e5e7eb; margin: 0 6px; }

/* Panels */
.pcs-panel { display: none; }
.pcs-panel.active { display: block; }

.pcs-panel-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: #111827; }
.pcs-panel-sub   { color: #6b7280; font-size: 14px; margin: 0 0 20px; }

/* Advocate list */
#pcs-adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.pcs-adv-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.pcs-adv-card:hover  { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(29,78,216,.08); }
.pcs-adv-card.picked { border-color: #1d4ed8; background: #eff6ff; }
.pcs-adv-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 10px;
}
.pcs-adv-name { font-weight: 700; font-size: 14px; color: #111827; margin-bottom: 3px; }
.pcs-adv-spec { font-size: 12px; color: #2563eb; background: #dbeafe; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.pcs-adv-rate { font-size: 13px; color: #374151; font-weight: 600; }
.pcs-adv-min  { font-size: 12px; color: #6b7280; }

/* Date grid */
.pcs-date-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pcs-date-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    color: #374151;
    transition: all .15s;
    text-align: center;
    min-width: 90px;
}
.pcs-date-btn:hover  { border-color: #93c5fd; background: #eff6ff; }
.pcs-date-btn.picked { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.pcs-date-day  { font-weight: 700; font-size: 14px; }
.pcs-date-info { font-size: 11px; opacity: .8; }

/* Slot grid */
.pcs-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pcs-slot {
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #374151;
    transition: all .15s;
}
.pcs-slot:hover  { border-color: #93c5fd; background: #eff6ff; }
.pcs-slot.picked { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }

/* Form */
.pcs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcs-field { display: flex; flex-direction: column; gap: 5px; }
.pcs-field.pcs-full { grid-column: 1 / -1; }
.pcs-label { font-size: 13px; font-weight: 600; color: #374151; }
.pcs-req { color: #dc2626; }
.pcs-input {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.pcs-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.pcs-fee-note {
    margin-top: 6px;
    font-size: 13px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 6px 10px;
}

/* Buttons */
.pcs-btn-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.pcs-btn-primary {
    padding: 10px 22px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.pcs-btn-primary:hover    { background: #1e40af; }
.pcs-btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }
.pcs-btn-secondary {
    padding: 10px 18px;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.pcs-btn-secondary:hover { background: #f9fafb; }

/* Payment box */
.pcs-pay-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    max-width: 480px;
}
.pcs-pay-amount {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.pcs-pay-label { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.pcs-pay-val   { font-size: 2rem; font-weight: 700; color: #111827; }
.pcs-pay-upi-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
}
.pcs-copy-btn {
    padding: 4px 10px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}
.pcs-upi-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #16a34a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: background .15s;
}
.pcs-upi-btn:hover { background: #15803d; color: #fff; }
.pcs-qr-wrap { text-align: center; margin-bottom: 16px; }
.pcs-qr-wrap img { border-radius: 6px; border: 1px solid #e5e7eb; }
.pcs-pay-fields { border-top: 1px solid #f3f4f6; padding-top: 16px; display: grid; gap: 12px; }

/* Success */
.pcs-success { text-align: center; padding: 20px 0; }
.pcs-success-icon {
    width: 64px; height: 64px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.pcs-success h2 { font-size: 1.3rem; margin: 0 0 8px; }
.pcs-ref-badge {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 4px 0 14px;
    font-family: monospace;
}
.pcs-success-note { font-size: 13px; color: #6b7280; max-width: 400px; margin: 0 auto; line-height: 1.6; }

/* Lookup result */
.pcs-lookup-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.pcs-lookup-head {
    background: #f3f4f6;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}
.pcs-lookup-body { padding: 16px; }
.pcs-detail { display: flex; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.pcs-detail:last-child { border-bottom: none; }
.pcs-dl { min-width: 120px; color: #6b7280; font-weight: 600; }
.pcs-dv { color: #111827; }

/* Modal */
.pcs-modal-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.pcs-modal {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    max-width: 520px; width: 92%;
    max-height: 80vh; overflow-y: auto;
    position: relative;
}
.pcs-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #6b7280;
}

/* Directory */
.pcs-dir-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.pcs-dir-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; background: #fff; }
.pcs-dir-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 12px;
}
.pcs-dir-name { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.pcs-dir-spec { font-size: 12px; color: #2563eb; margin: 0 0 8px; }
.pcs-dir-bio  { font-size: 13px; color: #6b7280; margin: 0 0 10px; line-height: 1.5; }
.pcs-dir-rate { font-size: 13px; font-weight: 600; color: #374151; }

/* Utils */
.pcs-loading { color: #6b7280; font-size: 13px; padding: 8px 0; }
.pcs-error   { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 14px; border-radius: 5px; font-size: 13px; }
.pcs-notice  { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 10px 14px; border-radius: 5px; font-size: 13px; }

@media (max-width: 600px) {
    .pcs-form-grid { grid-template-columns: 1fr; }
    #pcs-adv-list  { grid-template-columns: 1fr; }
    .pcs-step-label { display: none; }
}

/* Category cards */
#pcs-cat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.pcs-cat-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    background: #fff;
}
.pcs-cat-card:hover  { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(29,78,216,.08); transform: translateY(-2px); }
.pcs-cat-card.picked { border-color: #1d4ed8; background: #eff6ff; }
.pcs-cat-icon { font-size: 2.2rem; margin-bottom: 10px; }
.pcs-cat-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.pcs-cat-desc { font-size: 12px; color: #6b7280; line-height: 1.4; }
