/* Builds on top of challenge-form.css design tokens (--navy, --gold, --border, etc.) */

/* SECTION REFERENCE TAG */
.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold);
    background: rgba(12,108,57,0.08);
    border: 1px solid rgba(12,108,57,0.18);
    border-radius: 5px;
    padding: 2px 7px;
    margin-right: 8px;
}

.step-title-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 4px; }
.step-title-row .step-title { margin-bottom: 0; }

.step-hint {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-hint strong { color: var(--text-primary); }

/* VERIFY STEP */
.verify-wrap {
    max-width: 420px;
    margin: 12px auto 4px;
    text-align: center;
}

.verify-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(1,34,59,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.verify-icon svg { width: 24px; height: 24px; color: var(--navy); }

.verify-wrap .form-group { text-align: left; }

.btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: var(--navy);
    color: var(--white);
    transition: background 0.18s;
}

.btn-verify:hover { background: #01324f; }
.btn-verify:disabled { opacity: 0.6; cursor: not-allowed; }

/* PROJECT PICKER (email linked to more than one project) */
.project-picker {
    margin: 18px 0;
    text-align: left;
}

.project-picker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 6px;
}

.project-picker-label svg { width: 13px; height: 13px; }

.project-picker-hint {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 14px;
}

.project-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.project-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.project-option:hover {
    border-color: var(--navy);
    background: var(--off-white);
}

.project-option.selected {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(1,34,59,0.08);
}

.project-option-body { min-width: 0; }

.project-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.project-option-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.project-option-role {
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(1,34,59,0.06);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.project-option-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-option-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.project-option-arrow { display: inline-flex; color: var(--text-muted); }
.project-option-arrow svg { width: 14px; height: 14px; }
.project-option:hover .project-option-arrow { color: var(--navy); }

@media (max-width: 560px) {
    .project-option { flex-direction: column; align-items: stretch; gap: 10px; }
    .project-option-side { justify-content: space-between; }
}

/* PROJECT CONFIRM CARD */
.confirm-card {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin: 18px 0;
    text-align: left;
}

.confirm-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-card-label svg { width: 13px; height: 13px; }

.confirm-row { padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.confirm-row:last-child { border-bottom: none; }

.confirm-row .k {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.confirm-row .v { font-size: 14px; color: var(--text-primary); font-weight: 500; line-height: 1.5; }

.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn-confirm-yes {
    flex: 1;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, #0f5e4c, #0f6e56);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm-yes:hover { filter: brightness(1.07); }

.btn-confirm-no {
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-strong);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.btn-confirm-no:hover { background: var(--off-white); }

/* STATUS BANNER (draft / submitted) */
.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.status-pill.draft { background: rgba(212,160,23,0.12); color: #8a6d1c; border: 1px solid rgba(212,160,23,0.3); }
.status-pill.submitted { background: rgba(15,110,86,0.1); color: var(--success); border: 1px solid rgba(15,110,86,0.25); }

.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn-save-draft {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-strong);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-save-draft:hover { border-color: var(--navy); color: var(--navy); }
.btn-save-draft svg { width: 14px; height: 14px; }
.btn-save-draft:disabled { opacity: 0.6; cursor: not-allowed; }

.save-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--navy);
    color: var(--white);
    padding: 11px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 40;
}

.save-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.save-toast svg { width: 14px; height: 14px; color: #34d39a; }

/* REQUIREMENT / CRITERION CARDS */
.req-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }

.req-card {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.req-card:hover { border-color: var(--border-strong); }

.req-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
}

.req-header .req-num {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.req-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.req-fields { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.btn-add-req {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.btn-add-req:hover { border-color: var(--navy); color: var(--navy); background: rgba(1,34,59,0.03); }
.btn-add-req svg { width: 14px; height: 14px; }

/* FILE UPLOAD */
.upload-zone {
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
    background: var(--off-white);
}

.upload-zone:hover { border-color: var(--navy); background: rgba(1,34,59,0.03); }
.upload-zone.dragover { border-color: var(--gold); background: rgba(12,108,57,0.05); }
.upload-zone.uploading { opacity: 0.55; pointer-events: none; }

.upload-zone svg { width: 22px; height: 22px; color: var(--text-muted); margin-bottom: 8px; }
.upload-zone p { font-size: 12.5px; color: var(--text-secondary); }
.upload-zone p strong { color: var(--navy); }
.upload-zone small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; }

.attachment-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.attachment-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
}

.attachment-chip .file-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(1,34,59,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attachment-chip .file-icon svg { width: 14px; height: 14px; color: var(--navy); }
.attachment-chip .file-name { flex: 1; color: var(--text-primary); word-break: break-all; }
.attachment-chip .file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
}
.attachment-chip .file-remove:hover { color: var(--error); }
.attachment-chip .file-remove svg { width: 13px; height: 13px; }

/* LOCKED / READ-ONLY STATE */
.form-locked .form-control { background: var(--off-white); cursor: not-allowed; }
.form-locked .btn-remove,
.form-locked .btn-add-req,
.form-locked .upload-zone,
.form-locked .file-remove { display: none !important; }
