/* ── ZCF Membership Plugin – Frontend CSS ───────────────────────
   Matches the original ziacyberforce.org form design exactly.
   Full width, no artificial max-width container constraints.
───────────────────────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────────────────────── */
.zcf-wrap *,
.zcf-wrap *::before,
.zcf-wrap *::after { box-sizing: border-box; }

.zcf-wrap {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    width: 100%;          /* full width — no max-width cap */
    margin: 0;
    padding: 0;
}

/* ── HIDDEN UTILITY ───────────────────────────────────────── */
.zcf-hidden { display: none !important; }

/* ── HEADER BLOCK ─────────────────────────────────────────── */
/* Matches old site: white bg, logo left, text right, green border bottom */
.zcf-header-block {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: 3px solid #1a6b3a;
    padding: 12px 16px;
}

.zcf-hdr-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.zcf-hdr-text {
    flex: 1;
}

.zcf-hdr-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a6b3a;
    margin: 0 0 3px 0;
    padding: 0;
    line-height: 1.2;
}

.zcf-hdr-sub {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* ── FORM TITLE BAR ───────────────────────────────────────── */
/* The green bar that says "সদস্যপদ নিবন্ধন ফর্ম" */
.zcf-form-title-bar {
    background: #1a6b3a;
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #1a6b3a;
    border-top: none;
    margin-bottom: 0;
}

.zcf-form-title-bar span {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 5px;
}

/* ── MESSAGES ─────────────────────────────────────────────── */
#zcf-messages { margin: 0; }

.zcf-success {
    background: #d4edda;
    border: 1px solid #1a6b3a;
    color: #155724;
    padding: 13px 16px;
    font-size: 14px;
}

.zcf-error {
    background: #f8d7da;
    border: 1px solid #c0392b;
    color: #721c24;
    padding: 13px 16px;
    font-size: 13px;
}
.zcf-error ul { margin: 6px 0 0 18px; }

/* ── SECTION BAR (dark green header) ─────────────────────── */
/* Matches old form section bars exactly */
.zcf-sec-bar {
    background: #1a6b3a;
    color: #fff;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #1a6b3a;
    border-top: none;
    /* icon-like left accent */
}

/* ── SECTION BODY ─────────────────────────────────────────── */
.zcf-sec-body {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-top: none;
    padding: 16px 16px 10px;
}

/* ── GRID LAYOUTS ─────────────────────────────────────────── */
.zcf-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.zcf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.zcf-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* ── FIELDS ───────────────────────────────────────────────── */
.zcf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.zcf-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
}

.zcf-req { color: #c0392b; }

.zcf-input,
.zcf-select,
.zcf-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.zcf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.zcf-input:focus,
.zcf-select:focus,
.zcf-textarea:focus {
    outline: none;
    border-color: #1a6b3a;
    box-shadow: 0 0 0 2px rgba(26,107,58,0.12);
}

.zcf-input[type="date"] { cursor: pointer; }

.zcf-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.zcf-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* ── RADIO BUTTONS ────────────────────────────────────────── */
.zcf-radio-wrap {
    margin-bottom: 12px;
}

.zcf-radio-opt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 16px;
    font-size: 13px;
    cursor: pointer;
}

.zcf-radio-opt input { cursor: pointer; }

/* ── CHECKBOXES ───────────────────────────────────────────── */
.zcf-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.zcf-check-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.zcf-check-item input { cursor: pointer; }

/* ── SAME ADDRESS CHECKBOX ────────────────────────────────── */
.zcf-same-addr-wrap { margin-top: 6px; margin-bottom: 4px; }

.zcf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.zcf-checkbox-label input { margin-top: 3px; flex-shrink: 0; cursor: pointer; }

/* ── HINT TEXT ────────────────────────────────────────────── */
.zcf-hint {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

/* ── FILE INPUTS — matches old Choose File style ─────────── */
.zcf-file-btn {
    display: block;
    width: 100%;
    padding: 5px 0;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    /* Uses browser native file input — matches old site look */
}

.zcf-file-note {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 3px;
}

/* ── DROPZONE (additional docs) ───────────────────────────── */
/* Matches old Gravity Forms dropzone style */
.zcf-dropzone {
    border: 2px dashed #ccc;
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    font-size: 13px;
    color: #666;
}

.zcf-dz-icon {
    font-size: 24px;
    margin-bottom: 6px;
    color: #1a6b3a;
}

.zcf-dz-btn-label {
    display: inline-block;
    background: #1a6b3a;
    color: #fff;
    padding: 6px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 6px;
}

/* ── FILE PREVIEWS ────────────────────────────────────────── */
.zcf-preview { margin-top: 6px; }
.zcf-preview img {
    max-width: 100px;
    border: 2px solid #1a6b3a;
    border-radius: 3px;
}

/* ── CONSENT + SUBMIT SECTION ─────────────────────────────── */
.zcf-consent-body {
    border-top: 2px solid #1a6b3a;
    padding-top: 14px;
}

.zcf-submit-wrap {
    margin-top: 14px;
    text-align: center;
}

#zcf-submit {
    background: #1a6b3a;
    color: #fff;
    border: none;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.15s;
}

#zcf-submit:hover { background: #145530; }
#zcf-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.zcf-code-msg {
    font-size: 12px;
    display: block;
    margin-top: 3px;
    font-weight: 600;
}

/* ── MEMBER PROFILE ───────────────────────────────────────── */
.zcf-profile-wrapper { width: 100%; }

.zcf-profile-header {
    background: #f4fbf7;
    border: 1px solid #ccc;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.zcf-profile-photo {
    width: 80px;
    height: 98px;
    object-fit: cover;
    border: 2px solid #1a6b3a;
    border-radius: 3px;
}

.zcf-id-chip {
    background: #1a6b3a;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

.zcf-role-badge {
    background: #e8f5ee;
    color: #1a6b3a;
    border: 1px solid #ccc;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.zcf-pending-tag {
    background: #f0a500;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

.zcf-role-display { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zcf-role-arrow { color: #888; }

.zcf-profile-section {
    background: #fff;
    border: 1px solid #d8d8d8;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.zcf-profile-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1a6b3a;
    margin: 0 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.zcf-status-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.zcf-status-pending  { background: #fff3cd; color: #856404; }
.zcf-status-approved { background: #d4edda; color: #155724; }
.zcf-status-declined { background: #f8d7da; color: #721c24; }

.zcf-chain-display { margin-top: 8px; }

.zcf-chain-step {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    align-items: flex-start;
}

.zcf-chain-step:last-child { border-bottom: none; }

.zcf-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.zcf-step-approved .zcf-step-icon { background: #d4edda; color: #155724; }
.zcf-step-waiting  .zcf-step-icon { background: #fff3cd; color: #856404; }
.zcf-step-declined .zcf-step-icon { background: #f8d7da; color: #721c24; }
.zcf-step-by, .zcf-step-waiting { font-size: 12px; color: #666; display: block; }

.zcf-detail-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.zcf-detail-row:last-child { border-bottom: none; }
.zcf-detail-label { font-weight: 600; color: #444; width: 170px; flex-shrink: 0; }

.zcf-btn-green {
    display: inline-block;
    background: #1a6b3a;
    color: #fff;
    padding: 8px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* ── MEMBER DIRECTORY ─────────────────────────────────────── */
.zcf-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
    gap: 14px;
    margin-top: 14px;
}

.zcf-member-card {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 12px;
    text-align: center;
    background: #fff;
}

.zcf-member-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a6b3a;
    margin-bottom: 6px;
}

.zcf-member-photo-ph {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 6px;
}

.zcf-member-name { font-weight: 700; font-size: 13px; }
.zcf-member-id   { font-size: 11px; color: #1a6b3a; font-weight: 600; margin-top: 2px; }
.zcf-member-committee { font-size: 11px; color: #666; margin-top: 2px; }

/* ── SEARCH ───────────────────────────────────────────────── */
.zcf-search-wrap { margin: 10px 0; }

.zcf-search-input {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
}

.zcf-search-input:focus {
    outline: none;
    border-color: #1a6b3a;
}

.zcf-search-results-list {
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.zcf-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.zcf-search-result:last-child { border-bottom: none; }

.zcf-search-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a6b3a;
}

.zcf-id-pill {
    background: #1a6b3a;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
}

.zcf-no-results { color: #888; padding: 12px; text-align: center; font-style: italic; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 650px) {
    .zcf-row-2,
    .zcf-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .zcf-header-block { flex-direction: column; text-align: center; }
    .zcf-hdr-title { font-size: 17px; }
}

/* Language toggle bar */
.zcf-lang-bar{display:flex;justify-content:flex-end;gap:0;margin-bottom:0;border-bottom:2px solid #1a6b3a;}
.zcf-lang-btn{padding:6px 18px;border:1px solid #ccc;border-bottom:none;background:#f5f5f5;cursor:pointer;font-size:12px;font-weight:600;color:#555;font-family:inherit;border-radius:4px 4px 0 0;margin-right:2px;}
.zcf-lang-btn.active{background:#1a6b3a;color:#fff;border-color:#1a6b3a;}
.zcf-lang-btn:hover:not(.active){background:#e8f5ee;color:#1a6b3a;}

/* Form title bar - separate prominent bar */
.zcf-form-title-bar{background:#1a6b3a;color:#fff;text-align:center;padding:16px 20px 14px;border-top:none;}
.zcf-title-main{font-size:22px;font-weight:700;margin-bottom:5px;line-height:1.3;}
.zcf-title-sub{font-size:13px;opacity:.85;font-weight:400;line-height:1.4;}
.zcf-title-sep{display:none;}

/* Error popup */
#zcf-error-modal{display:flex!important;}
#zcf-error-modal[style*="display:none"]{display:none!important;}

/* Dropzone */
.zcf-dropzone{border:2px dashed #ccc;border-radius:3px;padding:18px;text-align:center;background:#fafafa;font-size:13px;color:#666;}
.zcf-dz-icon{font-size:22px;margin-bottom:5px;color:#1a6b3a;}
.zcf-dz-btn-label{display:inline-block;background:#1a6b3a;color:#fff;padding:5px 14px;border-radius:3px;cursor:pointer;font-size:12px;margin-top:5px;}

/* Title gap */
.zcf-title-gap{height:16px;background:#fff;border-left:1px solid #d0e8db;border-right:1px solid #d0e8db;}

/* Improved section bars */
.zcf-sec-bar{background:#006633;color:#fff;padding:8px 16px;font-size:13px;font-weight:700;letter-spacing:.3px;}

/* Radio options */
.zcf-radio-opt{display:inline-flex;align-items:center;gap:6px;font-size:13px;cursor:pointer;margin-right:8px;}

/* Consent section */
.zcf-consent-body{background:#f5fdf8;border:1px solid #006633;margin-top:14px;padding:16px;}
.zcf-checkbox-label{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;cursor:pointer;margin-bottom:14px;}
.zcf-checkbox-label input{margin-top:3px;flex-shrink:0;width:16px;height:16px;}

/* Submit button */
.zcf-submit-wrap{text-align:center;}
#zcf-submit{background:#006633;color:#fff;border:none;padding:12px 40px;font-size:15px;font-weight:700;border-radius:4px;cursor:pointer;font-family:inherit;width:100%;max-width:400px;}
#zcf-submit:hover{background:#004d26;}
#zcf-submit:disabled{background:#999;}
