/* ── CNIC Data Lookup – Frontend Styles ─────── */
.cnic-lookup-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 540px; margin: 20px auto; }

.cnic-lookup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}

/* header */
.cnic-lookup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #01696f;
    color: #fff;
    padding: 18px 24px;
}
.cnic-lookup-header svg { flex-shrink: 0; }
.cnic-lookup-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

/* form */
.cnic-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.cnic-field { display: flex; flex-direction: column; gap: 6px; }
.cnic-field label { font-size: .875rem; font-weight: 600; color: #374151; }
.cnic-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    letter-spacing: .06em;
}
.cnic-input:focus { border-color: #01696f; box-shadow: 0 0 0 3px rgba(1,105,111,.15); }
.cnic-hint { font-size: .78rem; color: #6b7280; }

/* button */
.cnic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #01696f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .1s;
}
.cnic-btn:hover:not(:disabled) { background: #0c4e54; }
.cnic-btn:active:not(:disabled) { transform: scale(.98); }
.cnic-btn:disabled { opacity: .7; cursor: not-allowed; }

/* spinner */
.cnic-btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cnic-spin .7s linear infinite;
}
.cnic-btn.loading .cnic-btn-text { display: none; }
.cnic-btn.loading .cnic-btn-spinner { display: block; }
@keyframes cnic-spin { to { transform: rotate(360deg); } }

/* result area */
.cnic-result { padding: 0 24px 24px; }

.cnic-found-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #01696f;
    margin-bottom: 10px;
}

.cnic-record {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.cnic-record-num {
    background: #01696f;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 14px;
    letter-spacing: .04em;
}
.cnic-row {
    display: flex;
    align-items: baseline;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
}
.cnic-row:last-child { border-bottom: none; }
.cnic-label {
    min-width: 90px;
    font-size: .8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
}
.cnic-value {
    font-size: .95rem;
    color: #111827;
    word-break: break-word;
}

/* states */
.cnic-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .9rem;
}
.cnic-empty {
    background: #fffbeb;
    border: 1px solid #f6e05e;
    color: #744210;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .9rem;
}

/* responsive */
@media (max-width: 480px) {
    .cnic-form, .cnic-result { padding-left: 16px; padding-right: 16px; }
    .cnic-lookup-header { padding: 14px 16px; }
    .cnic-row { flex-direction: column; gap: 2px; }
    .cnic-label { min-width: unset; }
}
